From andy at minstersystems.co.uk Thu Feb 1 01:39:12 2007 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 1 Feb 2007 07:39:12 -0000 Subject: [AccessD] My Book and Thanks In-Reply-To: Message-ID: <00b601c745d4$11538ce0$453b0c54@minster33c3r25> Great stuff Martin. Must have been a lot of hard work. Hats off to you. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid > Sent: 31 January 2007 21:15 > To: Access Developers discussion and problem solving > Subject: [AccessD] My Book and Thanks > > > I just finished writing Professional Access 2007 for Apress. > This is not an ad. I just wanted to thank the following > individuals and this list in general for all the assistance I > received when writing this book. from people reading and > commenting chapters to individuals testing code to people who > allowed me to reuse their code adn indeed in John and Drews > case their class postings. If I have left your name out > forgive me. So in no order thank you to the following > > John Colby for code and writing and trying to teach me about > classes Marty Connelly for amazing examples. and teaching AD > for permissions and being a gentleman Drew for code and > writing and classes Rocky for permissions and review and > being a friend Shamil for code (GUIDs) Steve for reveiw > > Others whose code I have put into the book will see their > name in print at some point in the book and a big thank you > to all. Many books begin with thanks and I could not have > done it without you statements. In this case that is so true, > I would never have finished this book where it not for this > list and the unselfish actions of its many members. > > Overall the book is my creation (with exceptions mentioned) I > hope it is well received it took 8 months of work every > evening and contains what I think are pointers to the > direction Access is going. Its dosnt contain mind blowing > code examples, nothing new or origional (excepts Marty > Connellys example) but its my first book "alone" and > personally whatever the amazon reviews say I will be proud of > it. I cant of course forgot Susan Harkins whose fault this all is. > > Finally in the immortal words of Rocky > > "Yo Adrian I DID IT" > > > Martin > > Martin WP Reid > Training and Assessment Unit > Riddle Hall > Belfast > > tel: 02890 974477 > > From JHewson at karta.com Thu Feb 1 07:56:24 2007 From: JHewson at karta.com (Jim Hewson) Date: Thu, 1 Feb 2007 07:56:24 -0600 Subject: [AccessD] OT: Are you ready for vista? Message-ID: <9C382E065F54AE48BC3AA7925DCBB01C04D9A2B1@karta-exc-int.Karta.com> Jim jhewson at karta.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Wednesday, January 31, 2007 8:43 PM To: dba-ot at databaseadvisors.com Cc: 'Access Developers discussion and problem solving' Subject: [AccessD] OT: Are you ready for vista? Spotted by a colleague: Check out the Vista Upgrade Advisor. You download this little app and it scans your system and tells you what you might have problems with, both software and hardware. http://www.microsoft.com/windows/products/windowsvista/buyorupgrade/upgradeadvisor.mspx Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Chester_Kaup at kindermorgan.com Thu Feb 1 08:00:02 2007 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Thu, 1 Feb 2007 08:00:02 -0600 Subject: [AccessD] Interesting Wilcard Action Message-ID: I have two tables in a query. One is a native Access table and one is a linked SQL Server table. The Access table has a 14 character text field. The SQL Server table with a 10 character text field. I verified all character positions are filled using a Len statement. When I join these two tables on these fields no matching records are found as expected. If I put a criteria using a wildcard (Like "PAT*") on another field in the Access table suddenly the two joined fields are equal. However if I use a wildcard criteria using the % sign (Like "PAT%") no matching records are found. Interesting! Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. From hollisvj at pgdp.usec.com Thu Feb 1 09:27:47 2007 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Thu, 01 Feb 2007 09:27:47 -0600 Subject: [AccessD] Six Month Review Message-ID: <703BDA18A87DFA4CB265A86F42E4178D01E75F59@c2k3exchange.pgdp.corp.usec.com> I need to determine the next semi-annual review date. So if the review date is 2/22/2007, the next review should be 8/22/2007. I have DateReview & DateNxtReview fields - how do I get the DateNxtReview to add 6 months to the DateReview field? Virginia From EdTesiny at oasas.state.ny.us Thu Feb 1 09:44:24 2007 From: EdTesiny at oasas.state.ny.us (Tesiny, Ed) Date: Thu, 1 Feb 2007 10:44:24 -0500 Subject: [AccessD] Six Month Review In-Reply-To: <703BDA18A87DFA4CB265A86F42E4178D01E75F59@c2k3exchange.pgdp.corp.usec.com> References: <703BDA18A87DFA4CB265A86F42E4178D01E75F59@c2k3exchange.pgdp.corp.usec.com> Message-ID: I think the DateAdd function would do it...DateAdd("m",6,[DateReview]) Ed Tesiny EdTesiny at oasas.state.ny.us > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Hollis, Virginia > Sent: Thursday, February 01, 2007 10:28 AM > To: accessD at databaseadvisors.com > Subject: [AccessD] Six Month Review > > I need to determine the next semi-annual review date. So if the review > date is 2/22/2007, the next review should be 8/22/2007. I have > DateReview & DateNxtReview fields - how do I get the DateNxtReview to > add 6 months to the DateReview field? > > > > Virginia > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From RRANTHON at sentara.com Thu Feb 1 09:52:08 2007 From: RRANTHON at sentara.com (RANDALL R ANTHONY) Date: Thu, 01 Feb 2007 10:52:08 -0500 Subject: [AccessD] Six Month Review In-Reply-To: References: <703BDA18A87DFA4CB265A86F42E4178D01E75F59@c2k3exchange.pgdp.corp.usec.com> Message-ID: <200702011552.l11FqWL28473@databaseadvisors.com> Ed's on the money, I use something similar, it takes today's date and gets the exact 6 month prior: RollingDate = Format(DateAdd("m", -6, Now), "mm/dd/yyyy") >>> "Tesiny, Ed" 2/1/2007 10:44 AM >>> I think the DateAdd function would do it...DateAdd("m",6,[DateReview]) Ed Tesiny EdTesiny at oasas.state.ny.us > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Hollis, Virginia > Sent: Thursday, February 01, 2007 10:28 AM > To: accessD at databaseadvisors.com > Subject: [AccessD] Six Month Review > > I need to determine the next semi-annual review date. So if the review > date is 2/22/2007, the next review should be 8/22/2007. I have > DateReview & DateNxtReview fields - how do I get the DateNxtReview to > add 6 months to the DateReview field? > > > > Virginia > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 setel.com Thu Feb 1 10:11:53 2007 From: ssharkins at setel.com (Susan Harkins) Date: Thu, 1 Feb 2007 11:11:53 -0500 Subject: [AccessD] Interesting Wilcard Action In-Reply-To: Message-ID: <003b01c7461b$b2b86a00$f6b62ad1@SUSANONE> That's because the wildcards for Jet SQL and T-SQL aren't the same. ADO's a problem too -- well, problem's the wrong word. You just have to know which wildcards the engine/library supports. http://articles.techrepublic.com.com/5100-10877-6154704.html See tips 8 and 9. Susan H. I have two tables in a query. One is a native Access table and one is a linked SQL Server table. The Access table has a 14 character text field. The SQL Server table with a 10 character text field. I verified all character positions are filled using a Len statement. When I join these two tables on these fields no matching records are found as expected. If I put a criteria using a wildcard (Like "PAT*") on another field in the Access table suddenly the two joined fields are equal. However if I use a wildcard criteria using the % sign (Like "PAT%") no matching records are found. Interesting! Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 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 -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.17.14/657 - Release Date: 1/29/2007 9:04 AM From DWUTKA at marlow.com Thu Feb 1 10:14:14 2007 From: DWUTKA at marlow.com (Drew Wutka) Date: Thu, 1 Feb 2007 10:14:14 -0600 Subject: [AccessD] Six Month Review Message-ID: <17724746D360394AA3BFE5B8D40A9C1B01A03362@marlow_main2.marlow.ii-vi.net> My personal preference is the DateSerial function: DateNxtReview=DateSerial(Month(DateReview)+6,Year(DateReview), Day(DateReview)) Drew -----Original Message----- From: Hollis, Virginia [mailto:hollisvj at pgdp.usec.com] Sent: Thursday, February 01, 2007 9:28 AM To: accessD at databaseadvisors.com Subject: [AccessD] Six Month Review I need to determine the next semi-annual review date. So if the review date is 2/22/2007, the next review should be 8/22/2007. I have DateReview & DateNxtReview fields - how do I get the DateNxtReview to add 6 months to the DateReview field? Virginia -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Thu Feb 1 10:14:39 2007 From: DWUTKA at marlow.com (Drew Wutka) Date: Thu, 1 Feb 2007 10:14:39 -0600 Subject: [AccessD] BringToFront Message-ID: <17724746D360394AA3BFE5B8D40A9C1B01A03363@marlow_main2.marlow.ii-vi.net> Well, did it do the trick? Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Wednesday, January 31, 2007 4:10 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] BringToFront What do you mean it doesn't stick. Will it stick long enough for the user to click the button and cause that form to close? John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Wednesday, January 31, 2007 5:00 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] BringToFront Private Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, _ ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, ByVal _ cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long Private Const SWP_NOMOVE = &H2 Private Const SWP_NOSIZE = &H1 Private Const HWND_TOPMOST = -1 Private Sub PutMeOnTop() SetWindowPos Me.Hwnd, HWND_TOPMOST, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End Sub This will put the form in front of everything. It doesn't 'stick' though. Access forms are subclassed windows, so to put it truly always on top is a little trickier. Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Wednesday, January 31, 2007 3:41 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] BringToFront Is there a Bring To Front for a FORM? I may have a series of progress meters, which open modal, and as it happens centered and right on top of each other. I have devised a way to display an OK button which I display the very last line as that process finishes IF I want the user to know that a specific process finished. The problem is that things being the way they are, the one that is finishing may be physically hidden by another progress meter on top. I need to cause the progress meter that is displaying the "OK to continue" to pop in front of anything else that may be currently displayed. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at verizon.net Thu Feb 1 10:20:04 2007 From: jimdettman at verizon.net (Jim Dettman) Date: Thu, 01 Feb 2007 11:20:04 -0500 Subject: [AccessD] database is not digitally signed In-Reply-To: Message-ID: <020f01c7461c$d7ad5cc0$8abea8c0@XPS> Note that there is no programmatic way to turn this off; the user must do it through the Access UI. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Francisco Tapia Sent: Wednesday, January 31, 2007 8:16 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] database is not digitally signed Nevermind I found the help on MSDN, I had to go to Tools > Security > Low :) On 1/31/07, Francisco Tapia wrote: > I used sagekey to install a demo copy of my own db for my end users, > version Access2003, I had been using the 2000 for years now w/o any > problems. > > Now the error that I am seeing is described here > http://office.microsoft.com/en-us/access/HA011225981033.aspx#080 > > "Access cannot open the file due to security restrictions. Security > settings restrict access to the file because it is not digitally > signed" > > but what it does NOT tell you is how to set the macro security level > to low so that I CAN open the projects I was opening before I did the > wise install (sagekey) install. I called Sagekey and the guy there > was stunned and asked me to re-install Access 2003... but that of > course has not fixed anything... :( > > > > > -- > -Francisco > http://sqlthis.blogspot.com | Tsql and More... > -- -Francisco http://sqlthis.blogspot.com | Tsql and More... -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at verizon.net Thu Feb 1 10:20:04 2007 From: jimdettman at verizon.net (Jim Dettman) Date: Thu, 01 Feb 2007 11:20:04 -0500 Subject: [AccessD] My Book and Thanks In-Reply-To: Message-ID: <021001c7461c$daa12150$8abea8c0@XPS> Very nice! I look forward to picking up a copy. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Wednesday, January 31, 2007 4:15 PM To: Access Developers discussion and problem solving Subject: [AccessD] My Book and Thanks I just finished writing Professional Access 2007 for Apress. This is not an ad. I just wanted to thank the following individuals and this list in general for all the assistance I received when writing this book. from people reading and commenting chapters to individuals testing code to people who allowed me to reuse their code adn indeed in John and Drews case their class postings. If I have left your name out forgive me. So in no order thank you to the following John Colby for code and writing and trying to teach me about classes Marty Connelly for amazing examples. and teaching AD for permissions and being a gentleman Drew for code and writing and classes Rocky for permissions and review and being a friend Shamil for code (GUIDs) Steve for reveiw Others whose code I have put into the book will see their name in print at some point in the book and a big thank you to all. Many books begin with thanks and I could not have done it without you statements. In this case that is so true, I would never have finished this book where it not for this list and the unselfish actions of its many members. Overall the book is my creation (with exceptions mentioned) I hope it is well received it took 8 months of work every evening and contains what I think are pointers to the direction Access is going. Its dosnt contain mind blowing code examples, nothing new or origional (excepts Marty Connellys example) but its my first book "alone" and personally whatever the amazon reviews say I will be proud of it. I cant of course forgot Susan Harkins whose fault this all is. Finally in the immortal words of Rocky "Yo Adrian I DID IT" Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From reuben at gfconsultants.com Thu Feb 1 10:26:20 2007 From: reuben at gfconsultants.com (Reuben Cummings) Date: Thu, 1 Feb 2007 11:26:20 -0500 Subject: [AccessD] Six Month Review In-Reply-To: Message-ID: I agree. But you should also make sure the new date falls into your work week rather than a week end. Check if it's a Saturday or Sunday and add one or two days. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Tesiny, Ed > Sent: Thursday, February 01, 2007 10:44 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Six Month Review > > > I think the DateAdd function would do it...DateAdd("m",6,[DateReview]) > > Ed Tesiny > EdTesiny at oasas.state.ny.us > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > Hollis, Virginia > > Sent: Thursday, February 01, 2007 10:28 AM > > To: accessD at databaseadvisors.com > > Subject: [AccessD] Six Month Review > > > > I need to determine the next semi-annual review date. So if the review > > date is 2/22/2007, the next review should be 8/22/2007. I have > > DateReview & DateNxtReview fields - how do I get the DateNxtReview to > > add 6 months to the DateReview field? > > > > > > > > Virginia > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From cfoust at infostatsystems.com Thu Feb 1 10:26:46 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 1 Feb 2007 08:26:46 -0800 Subject: [AccessD] OT: Are you ready for vista? In-Reply-To: <00f301c745aa$bd3eb9f0$0201a8c0@HAL9005> References: <00f301c745aa$bd3eb9f0$0201a8c0@HAL9005> Message-ID: Check out the latest Windows Secrets newsletter at WindowsSecrets.com for more information and some additional links. The Office Watch newsletter suggests waiting until SP1 before installing Vista! Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Wednesday, January 31, 2007 6:43 PM To: dba-ot at databaseadvisors.com Cc: 'Access Developers discussion and problem solving' Subject: [AccessD] OT: Are you ready for vista? Spotted by a colleague: Check out the Vista Upgrade Advisor. You download this little app and it scans your system and tells you what you might have problems with, both software and hardware. http://www.microsoft.com/windows/products/windowsvista/buyorupgrade/upgr adea dvisor.mspx Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at setel.com Thu Feb 1 10:31:11 2007 From: ssharkins at setel.com (Susan Harkins) Date: Thu, 1 Feb 2007 11:31:11 -0500 Subject: [AccessD] Six Month Review In-Reply-To: <17724746D360394AA3BFE5B8D40A9C1B01A03362@marlow_main2.marlow.ii-vi.net> Message-ID: <004401c7461e$62f7aaf0$f6b62ad1@SUSANONE> Why? Is it superior to the shorter expression in some way? Susan H. My personal preference is the DateSerial function: DateNxtReview=DateSerial(Month(DateReview)+6,Year(DateReview), Day(DateReview)) From DWUTKA at marlow.com Thu Feb 1 10:37:27 2007 From: DWUTKA at marlow.com (Drew Wutka) Date: Thu, 1 Feb 2007 10:37:27 -0600 Subject: [AccessD] Six Month Review Message-ID: <17724746D360394AA3BFE5B8D40A9C1B01A03376@marlow_main2.marlow.ii-vi.net> I doubt it. I like the DateSerial method because if I am building a date, I don't have to worry abut the format of a date, or international standard. DateSerial is always month, year, day. Just a personal quirk, I guess. Drew -----Original Message----- From: Susan Harkins [mailto:ssharkins at setel.com] Sent: Thursday, February 01, 2007 10:31 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Six Month Review Why? Is it superior to the shorter expression in some way? Susan H. My personal preference is the DateSerial function: DateNxtReview=DateSerial(Month(DateReview)+6,Year(DateReview), Day(DateReview)) -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Thu Feb 1 10:40:45 2007 From: john at winhaven.net (John Bartow) Date: Thu, 1 Feb 2007 10:40:45 -0600 Subject: [AccessD] database is not digitally signed In-Reply-To: <020f01c7461c$d7ad5cc0$8abea8c0@XPS> References: <020f01c7461c$d7ad5cc0$8abea8c0@XPS> Message-ID: <05a101c7461f$b8f39490$6502a8c0@ScuzzPaq> http://www.sagekey.com/access_2003.aspx Key Features Digital Certificate not required - Installations built using our tools will not display the Macro Security Warning Message "The file may not be safe if it contains code that was intended to harm your computer" when run without a digital signature. It works for me. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Thursday, February 01, 2007 10:20 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] database is not digitally signed Note that there is no programmatic way to turn this off; the user must do it through the Access UI. Jim. From jimdettman at verizon.net Thu Feb 1 10:13:20 2007 From: jimdettman at verizon.net (Jim Dettman) Date: Thu, 01 Feb 2007 11:13:20 -0500 Subject: [AccessD] database is not digitally signed In-Reply-To: Message-ID: <020e01c7461b$ef43fca0$8abea8c0@XPS> Note that there is no programmatic way to turn this off; the user must do it through the Access UI. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Francisco Tapia Sent: Wednesday, January 31, 2007 8:16 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] database is not digitally signed Nevermind I found the help on MSDN, I had to go to Tools > Security > Low :) On 1/31/07, Francisco Tapia wrote: > I used sagekey to install a demo copy of my own db for my end users, > version Access2003, I had been using the 2000 for years now w/o any > problems. > > Now the error that I am seeing is described here > http://office.microsoft.com/en-us/access/HA011225981033.aspx#080 > > "Access cannot open the file due to security restrictions. Security > settings restrict access to the file because it is not digitally > signed" > > but what it does NOT tell you is how to set the macro security level > to low so that I CAN open the projects I was opening before I did the > wise install (sagekey) install. I called Sagekey and the guy there > was stunned and asked me to re-install Access 2003... but that of > course has not fixed anything... :( > > > > > -- > -Francisco > http://sqlthis.blogspot.com | Tsql and More... > -- -Francisco http://sqlthis.blogspot.com | Tsql and More... -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at setel.com Thu Feb 1 10:48:49 2007 From: ssharkins at setel.com (Susan Harkins) Date: Thu, 1 Feb 2007 11:48:49 -0500 Subject: [AccessD] Six Month Review In-Reply-To: <17724746D360394AA3BFE5B8D40A9C1B01A03376@marlow_main2.marlow.ii-vi.net> Message-ID: <004c01c74620$d9660c70$f6b62ad1@SUSANONE> Well, not a quirk if there's a good reason. Your explanation is reasonable. Sorry, you can't call yourself quirky today. :) Try again tomorrow. :) Susan H. I doubt it. I like the DateSerial method because if I am building a date, I don't have to worry abut the format of a date, or international standard. DateSerial is always month, year, day. Just a personal quirk, I guess. From ssharkins at setel.com Thu Feb 1 10:50:09 2007 From: ssharkins at setel.com (Susan Harkins) Date: Thu, 1 Feb 2007 11:50:09 -0500 Subject: [AccessD] How to bypass the opening security measures Message-ID: <005201c74621$092a9840$f6b62ad1@SUSANONE> A long time ago, I did something to inhibit the opening security warnings, but I don't remember what I did. I ran a repair on Office and reset everything and now I'm getting the annoying security warnings again. Anybody remember how to inhibit those? Susan H. From andy at minstersystems.co.uk Thu Feb 1 10:52:14 2007 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 1 Feb 2007 16:52:14 +0000 Subject: [AccessD] Six Month Review Message-ID: <20070201165220.2B2AE67AE5@smtp.nildram.co.uk> That's odd because here in the UK DateSerial takes year, month, day! How can that be? Also DateSerial and DateAdd give differing results when handling month-end situations. Add 6 months to the last day of August 2007 and DateAdd gives the last day of Feb 2008, whereas DateSerial gives 1st March. You'd need to be aware if that's significant. -- 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] Six Month Review Date: 01/02/07 16:41 I doubt it. I like the DateSerial method because if I am building a date, I don't have to worry abut the format of a date, or international standard. DateSerial is always month, year, day. Just a personal quirk, I guess. Drew -----Original Message----- From: Susan Harkins [mailto:ssharkins at setel.com] Sent: Thursday, February 01, 2007 10:31 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Six Month Review Why? Is it superior to the shorter expression in some way? Susan H. My personal preference is the DateSerial function: DateNxtReview=DateSerial(Month(DateReview)+6,Year(DateReview), Day(DateReview)) -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 DWUTKA at marlow.com Thu Feb 1 10:50:34 2007 From: DWUTKA at marlow.com (Drew Wutka) Date: Thu, 1 Feb 2007 10:50:34 -0600 Subject: [AccessD] Six Month Review Message-ID: <17724746D360394AA3BFE5B8D40A9C1B01A0337E@marlow_main2.marlow.ii-vi.net> LOL. Ok, I don't mind being quirky, or not quirky, as long as I don't hear 'bad practice', I'm good. ;) Drew -----Original Message----- From: Susan Harkins [mailto:ssharkins at setel.com] Sent: Thursday, February 01, 2007 10:49 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Six Month Review Well, not a quirk if there's a good reason. Your explanation is reasonable. Sorry, you can't call yourself quirky today. :) Try again tomorrow. :) Susan H. I doubt it. I like the DateSerial method because if I am building a date, I don't have to worry abut the format of a date, or international standard. DateSerial is always month, year, day. Just a personal quirk, I guess. -- 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 Feb 1 10:57:12 2007 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Thu, 1 Feb 2007 10:57:12 -0600 Subject: [AccessD] How to bypass the opening security measures Message-ID: <34C8A2AB1EF3564CB0D64DB6AFFDD5C201200F7E@xlivmbx35.aig.com> Susan, In Excel go Tool/Options/Security, then hit the Macro Security button and set the security level to Medium. That should do it. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Thursday, February 01, 2007 11:50 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] How to bypass the opening security measures A long time ago, I did something to inhibit the opening security warnings, but I don't remember what I did. I ran a repair on Office and reset everything and now I'm getting the annoying security warnings again. Anybody remember how to inhibit those? Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Feb 1 10:59:42 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Thu, 1 Feb 2007 11:59:42 -0500 Subject: [AccessD] BringToFront In-Reply-To: <17724746D360394AA3BFE5B8D40A9C1B01A03363@marlow_main2.marlow.ii-vi.net> Message-ID: <011501c74622$6a174210$657aa8c0@m6805> I haven't tested it yet. Other fires to put out, you know how that is. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, February 01, 2007 11:15 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] BringToFront Well, did it do the trick? Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Wednesday, January 31, 2007 4:10 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] BringToFront What do you mean it doesn't stick. Will it stick long enough for the user to click the button and cause that form to close? John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Wednesday, January 31, 2007 5:00 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] BringToFront Private Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, _ ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, ByVal _ cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long Private Const SWP_NOMOVE = &H2 Private Const SWP_NOSIZE = &H1 Private Const HWND_TOPMOST = -1 Private Sub PutMeOnTop() SetWindowPos Me.Hwnd, HWND_TOPMOST, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End Sub This will put the form in front of everything. It doesn't 'stick' though. Access forms are subclassed windows, so to put it truly always on top is a little trickier. Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Wednesday, January 31, 2007 3:41 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] BringToFront Is there a Bring To Front for a FORM? I may have a series of progress meters, which open modal, and as it happens centered and right on top of each other. I have devised a way to display an OK button which I display the very last line as that process finishes IF I want the user to know that a specific process finished. The problem is that things being the way they are, the one that is finishing may be physically hidden by another progress meter on top. I need to cause the progress meter that is displaying the "OK to continue" to pop in front of anything else that may be currently displayed. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Thu Feb 1 10:57:55 2007 From: DWUTKA at marlow.com (Drew Wutka) Date: Thu, 1 Feb 2007 10:57:55 -0600 Subject: [AccessD] Six Month Review Message-ID: <17724746D360394AA3BFE5B8D40A9C1B01A03387@marlow_main2.marlow.ii-vi.net> It is Year, Month, Day..... sorry, still working on first cup of coffee, and Outlook still doesn't use Intellisense!!! ;) Good point on the differences. Drew -----Original Message----- From: Andy Lacey [mailto:andy at minstersystems.co.uk] Sent: Thursday, February 01, 2007 10:52 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Six Month Review That's odd because here in the UK DateSerial takes year, month, day! How can that be? Also DateSerial and DateAdd give differing results when handling month-end situations. Add 6 months to the last day of August 2007 and DateAdd gives the last day of Feb 2008, whereas DateSerial gives 1st March. You'd need to be aware if that's significant. -- 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] Six Month Review Date: 01/02/07 16:41 I doubt it. I like the DateSerial method because if I am building a date, I don't have to worry abut the format of a date, or international standard. DateSerial is always month, year, day. Just a personal quirk, I guess. Drew -----Original Message----- From: Susan Harkins [mailto:ssharkins at setel.com] Sent: Thursday, February 01, 2007 10:31 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Six Month Review Why? Is it superior to the shorter expression in some way? Susan H. My personal preference is the DateSerial function: DateNxtReview=DateSerial(Month(DateReview)+6,Year(DateReview), Day(DateReview)) -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Thu Feb 1 11:00:47 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Thu, 1 Feb 2007 12:00:47 -0500 Subject: [AccessD] Six Month Review In-Reply-To: <17724746D360394AA3BFE5B8D40A9C1B01A0337E@marlow_main2.marlow.ii-vi.net> Message-ID: <011601c74622$8a4bbc00$657aa8c0@m6805> Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! ;~) John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, February 01, 2007 11:51 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Six Month Review LOL. Ok, I don't mind being quirky, or not quirky, as long as I don't hear 'bad practice', I'm good. ;) Drew -----Original Message----- From: Susan Harkins [mailto:ssharkins at setel.com] Sent: Thursday, February 01, 2007 10:49 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Six Month Review Well, not a quirk if there's a good reason. Your explanation is reasonable. Sorry, you can't call yourself quirky today. :) Try again tomorrow. :) Susan H. I doubt it. I like the DateSerial method because if I am building a date, I don't have to worry abut the format of a date, or international standard. DateSerial is always month, year, day. Just a personal quirk, I guess. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 setel.com Thu Feb 1 11:03:05 2007 From: ssharkins at setel.com (Susan Harkins) Date: Thu, 1 Feb 2007 12:03:05 -0500 Subject: [AccessD] How to bypass the opening security measures In-Reply-To: <34C8A2AB1EF3564CB0D64DB6AFFDD5C201200F7E@xlivmbx35.aig.com> Message-ID: <005801c74622$d7a6be50$f6b62ad1@SUSANONE> No Security tab in Access. Susan H. In Excel go Tool/Options/Security, then hit the Macro Security button and set the security level to Medium. That should do it. From Kwilliamson at RTKL.com Thu Feb 1 11:11:55 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Thu, 1 Feb 2007 12:11:55 -0500 Subject: [AccessD] Six Month Review In-Reply-To: <011601c74622$8a4bbc00$657aa8c0@m6805> References: <17724746D360394AA3BFE5B8D40A9C1B01A0337E@marlow_main2.marlow.ii-vi.net> <011601c74622$8a4bbc00$657aa8c0@m6805> Message-ID: So.....what exactly are you saying??? This is bad practice?? :) Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, February 01, 2007 12:01 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Six Month Review Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! ;~) John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, February 01, 2007 11:51 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Six Month Review LOL. Ok, I don't mind being quirky, or not quirky, as long as I don't hear 'bad practice', I'm good. ;) Drew -----Original Message----- From: Susan Harkins [mailto:ssharkins at setel.com] Sent: Thursday, February 01, 2007 10:49 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Six Month Review Well, not a quirk if there's a good reason. Your explanation is reasonable. Sorry, you can't call yourself quirky today. :) Try again tomorrow. :) Susan H. I doubt it. I like the DateSerial method because if I am building a date, I don't have to worry abut the format of a date, or international standard. DateSerial is always month, year, day. Just a personal quirk, I guess. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Thu Feb 1 11:04:42 2007 From: DWUTKA at marlow.com (Drew Wutka) Date: Thu, 1 Feb 2007 11:04:42 -0600 Subject: [AccessD] Six Month Review Message-ID: <17724746D360394AA3BFE5B8D40A9C1B01A0338D@marlow_main2.marlow.ii-vi.net> Oh, but from you that's different. I can ignore you! ;) Hey, did that SetWindowPos API work? I'm curious. You posted later how you were opening the form. I still think the API would work on the form's window, but Access is funny with it's 'windows'. Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Thursday, February 01, 2007 11:01 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Six Month Review Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! ;~) John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, February 01, 2007 11:51 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Six Month Review LOL. Ok, I don't mind being quirky, or not quirky, as long as I don't hear 'bad practice', I'm good. ;) Drew -----Original Message----- From: Susan Harkins [mailto:ssharkins at setel.com] Sent: Thursday, February 01, 2007 10:49 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Six Month Review Well, not a quirk if there's a good reason. Your explanation is reasonable. Sorry, you can't call yourself quirky today. :) Try again tomorrow. :) Susan H. I doubt it. I like the DateSerial method because if I am building a date, I don't have to worry abut the format of a date, or international standard. DateSerial is always month, year, day. Just a personal quirk, I guess. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kens.programming at verizon.net Thu Feb 1 10:59:02 2007 From: kens.programming at verizon.net (kens.programming) Date: Thu, 01 Feb 2007 08:59:02 -0800 Subject: [AccessD] How to bypass the opening security measures In-Reply-To: <005201c74621$092a9840$f6b62ad1@SUSANONE> References: <005201c74621$092a9840$f6b62ad1@SUSANONE> Message-ID: <000c01c74622$474253b0$6b01a8c0@Stoker.com> Are you asking about where you go to Tools --> Macros --> Security and select Low (Not Recommended)? Ken -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Thursday, February 01, 2007 8:50 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] How to bypass the opening security measures A long time ago, I did something to inhibit the opening security warnings, but I don't remember what I did. I ran a repair on Office and reset everything and now I'm getting the annoying security warnings again. Anybody remember how to inhibit those? Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.17.18/662 - Release Date: 1/31/2007 3:16 PM -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.17.18/662 - Release Date: 1/31/2007 3:16 PM From DWUTKA at marlow.com Thu Feb 1 11:05:10 2007 From: DWUTKA at marlow.com (Drew Wutka) Date: Thu, 1 Feb 2007 11:05:10 -0600 Subject: [AccessD] BringToFront Message-ID: <17724746D360394AA3BFE5B8D40A9C1B01A0338E@marlow_main2.marlow.ii-vi.net> Ah, asked again in a different thread. Let me know, I'm curious, with how you are opening those forms. Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Thursday, February 01, 2007 11:00 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] BringToFront I haven't tested it yet. Other fires to put out, you know how that is. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, February 01, 2007 11:15 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] BringToFront Well, did it do the trick? Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Wednesday, January 31, 2007 4:10 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] BringToFront What do you mean it doesn't stick. Will it stick long enough for the user to click the button and cause that form to close? John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Wednesday, January 31, 2007 5:00 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] BringToFront Private Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, _ ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, ByVal _ cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long Private Const SWP_NOMOVE = &H2 Private Const SWP_NOSIZE = &H1 Private Const HWND_TOPMOST = -1 Private Sub PutMeOnTop() SetWindowPos Me.Hwnd, HWND_TOPMOST, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End Sub This will put the form in front of everything. It doesn't 'stick' though. Access forms are subclassed windows, so to put it truly always on top is a little trickier. Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Wednesday, January 31, 2007 3:41 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] BringToFront Is there a Bring To Front for a FORM? I may have a series of progress meters, which open modal, and as it happens centered and right on top of each other. I have devised a way to display an OK button which I display the very last line as that process finishes IF I want the user to know that a specific process finished. The problem is that things being the way they are, the one that is finishing may be physically hidden by another progress meter on top. I need to cause the progress meter that is displaying the "OK to continue" to pop in front of anything else that may be currently displayed. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Thu Feb 1 11:12:40 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 01 Feb 2007 18:12:40 +0100 Subject: [AccessD] Six Month Review Message-ID: Hi Drew Never missed an appointment? DateSerial is year, month, day! /gustav >>> ssharkins at setel.com 01-02-2007 17:48:49 >>> Well, not a quirk if there's a good reason. Your explanation is reasonable. Sorry, you can't call yourself quirky today. :) Try again tomorrow. :) Susan H. I doubt it. I like the DateSerial method because if I am building a date, I don't have to worry abut the format of a date, or international standard. DateSerial is always month, year, day. Just a personal quirk, I guess. From jwcolby at colbyconsulting.com Thu Feb 1 11:27:17 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Thu, 1 Feb 2007 12:27:17 -0500 Subject: [AccessD] BringToFront In-Reply-To: <17724746D360394AA3BFE5B8D40A9C1B01A0338E@marlow_main2.marlow.ii-vi.net> Message-ID: <011a01c74626$3b40c2f0$657aa8c0@m6805> It should work. When I open the form, the class grabs a pointer to the form. So while it Me. Refers to the form class, mfrm. Refers to the form and I can (and have) grabbed a pointer to the form window that way. I am attempting to use a similar set of API calls to reposition the window. Haven't got that code straightened out yet either though. Other fires to put out, you know. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, February 01, 2007 12:05 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] BringToFront Ah, asked again in a different thread. Let me know, I'm curious, with how you are opening those forms. Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Thursday, February 01, 2007 11:00 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] BringToFront I haven't tested it yet. Other fires to put out, you know how that is. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, February 01, 2007 11:15 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] BringToFront Well, did it do the trick? Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Wednesday, January 31, 2007 4:10 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] BringToFront What do you mean it doesn't stick. Will it stick long enough for the user to click the button and cause that form to close? John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Wednesday, January 31, 2007 5:00 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] BringToFront Private Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, _ ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, ByVal _ cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long Private Const SWP_NOMOVE = &H2 Private Const SWP_NOSIZE = &H1 Private Const HWND_TOPMOST = -1 Private Sub PutMeOnTop() SetWindowPos Me.Hwnd, HWND_TOPMOST, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End Sub This will put the form in front of everything. It doesn't 'stick' though. Access forms are subclassed windows, so to put it truly always on top is a little trickier. Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Wednesday, January 31, 2007 3:41 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] BringToFront Is there a Bring To Front for a FORM? I may have a series of progress meters, which open modal, and as it happens centered and right on top of each other. I have devised a way to display an OK button which I display the very last line as that process finishes IF I want the user to know that a specific process finished. The problem is that things being the way they are, the one that is finishing may be physically hidden by another progress meter on top. I need to cause the progress meter that is displaying the "OK to continue" to pop in front of anything else that may be currently displayed. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Thu Feb 1 11:28:36 2007 From: DWUTKA at marlow.com (Drew Wutka) Date: Thu, 1 Feb 2007 11:28:36 -0600 Subject: [AccessD] Six Month Review Message-ID: <17724746D360394AA3BFE5B8D40A9C1B01A033A1@marlow_main2.marlow.ii-vi.net> Your honor, it was lack of coffee and lack of intellisense. I plead the 5th! ;) Drew -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Thursday, February 01, 2007 11:13 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Six Month Review Hi Drew Never missed an appointment? DateSerial is year, month, day! /gustav >>> ssharkins at setel.com 01-02-2007 17:48:49 >>> Well, not a quirk if there's a good reason. Your explanation is reasonable. Sorry, you can't call yourself quirky today. :) Try again tomorrow. :) Susan H. I doubt it. I like the DateSerial method because if I am building a date, I don't have to worry abut the format of a date, or international standard. DateSerial is always month, year, day. Just a personal quirk, I guess. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Thu Feb 1 11:33:12 2007 From: DWUTKA at marlow.com (Drew Wutka) Date: Thu, 1 Feb 2007 11:33:12 -0600 Subject: [AccessD] BringToFront Message-ID: <17724746D360394AA3BFE5B8D40A9C1B01A033A5@marlow_main2.marlow.ii-vi.net> I hear ya. I think it should work too, but I've done enough playing around with the windows in Access to know that there's a chance it won't. Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Thursday, February 01, 2007 11:27 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] BringToFront It should work. When I open the form, the class grabs a pointer to the form. So while it Me. Refers to the form class, mfrm. Refers to the form and I can (and have) grabbed a pointer to the form window that way. I am attempting to use a similar set of API calls to reposition the window. Haven't got that code straightened out yet either though. Other fires to put out, you know. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, February 01, 2007 12:05 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] BringToFront Ah, asked again in a different thread. Let me know, I'm curious, with how you are opening those forms. Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Thursday, February 01, 2007 11:00 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] BringToFront I haven't tested it yet. Other fires to put out, you know how that is. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, February 01, 2007 11:15 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] BringToFront Well, did it do the trick? Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Wednesday, January 31, 2007 4:10 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] BringToFront What do you mean it doesn't stick. Will it stick long enough for the user to click the button and cause that form to close? John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Wednesday, January 31, 2007 5:00 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] BringToFront Private Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, _ ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, ByVal _ cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long Private Const SWP_NOMOVE = &H2 Private Const SWP_NOSIZE = &H1 Private Const HWND_TOPMOST = -1 Private Sub PutMeOnTop() SetWindowPos Me.Hwnd, HWND_TOPMOST, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End Sub This will put the form in front of everything. It doesn't 'stick' though. Access forms are subclassed windows, so to put it truly always on top is a little trickier. Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Wednesday, January 31, 2007 3:41 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] BringToFront Is there a Bring To Front for a FORM? I may have a series of progress meters, which open modal, and as it happens centered and right on top of each other. I have devised a way to display an OK button which I display the very last line as that process finishes IF I want the user to know that a specific process finished. The problem is that things being the way they are, the one that is finishing may be physically hidden by another progress meter on top. I need to cause the progress meter that is displaying the "OK to continue" to pop in front of anything else that may be currently displayed. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Feb 1 11:39:43 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 1 Feb 2007 09:39:43 -0800 Subject: [AccessD] Six Month Review In-Reply-To: <011601c74622$8a4bbc00$657aa8c0@m6805> References: <17724746D360394AA3BFE5B8D40A9C1B01A0337E@marlow_main2.marlow.ii-vi.net> <011601c74622$8a4bbc00$657aa8c0@m6805> Message-ID: ROTFL! You beat me to it, John! Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, February 01, 2007 9:01 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Six Month Review Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! ;~) John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, February 01, 2007 11:51 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Six Month Review LOL. Ok, I don't mind being quirky, or not quirky, as long as I don't hear 'bad practice', I'm good. ;) Drew -----Original Message----- From: Susan Harkins [mailto:ssharkins at setel.com] Sent: Thursday, February 01, 2007 10:49 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Six Month Review Well, not a quirk if there's a good reason. Your explanation is reasonable. Sorry, you can't call yourself quirky today. :) Try again tomorrow. :) Susan H. I doubt it. I like the DateSerial method because if I am building a date, I don't have to worry abut the format of a date, or international standard. DateSerial is always month, year, day. Just a personal quirk, I guess. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at sc.rr.com Thu Feb 1 11:43:13 2007 From: bheid at sc.rr.com (Bobby Heid) Date: Thu, 1 Feb 2007 12:43:13 -0500 Subject: [AccessD] OT: Are you ready for vista? In-Reply-To: <00f801c745b0$da8c0ac0$0201a8c0@HAL9005> References: <0JCR00AT8KRBCX90@l-daemon> <00f801c745b0$da8c0ac0$0201a8c0@HAL9005> Message-ID: <001e01c74628$72f0d350$2d01a8c0@bhxp> It did not tell me that I might have problems with my VS 2005. Are your VS 2005 patches up-to-date? I have Vista business that I got at the launch. I just have to wait for a good time to redo my system. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Wednesday, January 31, 2007 10:27 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Are you ready for vista? What I found noteworthy was the number of apps I have installed that I'm warned may have "minor" compatibility issues with Vista - Sygate, Ghost, Musicmatch, SQL Server VSS writer, Messenger, Outlook 2003(!!!!), Visual Studio 2005 Standard, Dell Utilities and others. Hopefully, they all these vendors would have updates on their websites. I'd also need a DVD drive or have to order Vista on CD. It told me that 1GB memory is OK but I've heard that you really need 2. Rocky From cfoust at infostatsystems.com Thu Feb 1 11:42:09 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 1 Feb 2007 09:42:09 -0800 Subject: [AccessD] Six Month Review In-Reply-To: References: <17724746D360394AA3BFE5B8D40A9C1B01A0337E@marlow_main2.marlow.ii-vi.net><011601c74622$8a4bbc00$657aa8c0@m6805> Message-ID: No, he's just triggering Drew's urge to react to hearing "Bad Practice"! Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, February 01, 2007 9:12 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Six Month Review So.....what exactly are you saying??? This is bad practice?? :) Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, February 01, 2007 12:01 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Six Month Review Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! ;~) John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, February 01, 2007 11:51 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Six Month Review LOL. Ok, I don't mind being quirky, or not quirky, as long as I don't hear 'bad practice', I'm good. ;) Drew -----Original Message----- From: Susan Harkins [mailto:ssharkins at setel.com] Sent: Thursday, February 01, 2007 10:49 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Six Month Review Well, not a quirk if there's a good reason. Your explanation is reasonable. Sorry, you can't call yourself quirky today. :) Try again tomorrow. :) Susan H. I doubt it. I like the DateSerial method because if I am building a date, I don't have to worry abut the format of a date, or international standard. DateSerial is always month, year, day. Just a personal quirk, I guess. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Feb 1 11:48:26 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Thu, 1 Feb 2007 12:48:26 -0500 Subject: [AccessD] Six Month Review In-Reply-To: Message-ID: <011b01c74629$2dee8bc0$657aa8c0@m6805> BWAAAAHHAAAAAHAAAAA John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, February 01, 2007 12:42 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Six Month Review No, he's just triggering Drew's urge to react to hearing "Bad Practice"! Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, February 01, 2007 9:12 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Six Month Review So.....what exactly are you saying??? This is bad practice?? :) Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, February 01, 2007 12:01 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Six Month Review Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! ;~) John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, February 01, 2007 11:51 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Six Month Review LOL. Ok, I don't mind being quirky, or not quirky, as long as I don't hear 'bad practice', I'm good. ;) Drew -----Original Message----- From: Susan Harkins [mailto:ssharkins at setel.com] Sent: Thursday, February 01, 2007 10:49 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Six Month Review Well, not a quirk if there's a good reason. Your explanation is reasonable. Sorry, you can't call yourself quirky today. :) Try again tomorrow. :) Susan H. I doubt it. I like the DateSerial method because if I am building a date, I don't have to worry abut the format of a date, or international standard. DateSerial is always month, year, day. Just a personal quirk, I guess. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Thu Feb 1 11:56:47 2007 From: DWUTKA at marlow.com (Drew Wutka) Date: Thu, 1 Feb 2007 11:56:47 -0600 Subject: [AccessD] Six Month Review Message-ID: <17724746D360394AA3BFE5B8D40A9C1B01A033B5@marlow_main2.marlow.ii-vi.net> Luckily, lack of coffee kept me from reacting too quickly... ;) Drew -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Thursday, February 01, 2007 11:42 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Six Month Review No, he's just triggering Drew's urge to react to hearing "Bad Practice"! Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, February 01, 2007 9:12 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Six Month Review So.....what exactly are you saying??? This is bad practice?? :) Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, February 01, 2007 12:01 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Six Month Review Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! ;~) John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, February 01, 2007 11:51 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Six Month Review LOL. Ok, I don't mind being quirky, or not quirky, as long as I don't hear 'bad practice', I'm good. ;) Drew -----Original Message----- From: Susan Harkins [mailto:ssharkins at setel.com] Sent: Thursday, February 01, 2007 10:49 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Six Month Review Well, not a quirk if there's a good reason. Your explanation is reasonable. Sorry, you can't call yourself quirky today. :) Try again tomorrow. :) Susan H. I doubt it. I like the DateSerial method because if I am building a date, I don't have to worry abut the format of a date, or international standard. DateSerial is always month, year, day. Just a personal quirk, I guess. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Thu Feb 1 11:57:18 2007 From: DWUTKA at marlow.com (Drew Wutka) Date: Thu, 1 Feb 2007 11:57:18 -0600 Subject: [AccessD] Six Month Review Message-ID: <17724746D360394AA3BFE5B8D40A9C1B01A033B6@marlow_main2.marlow.ii-vi.net> Sooner or later that was BOUND to happen. Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Thursday, February 01, 2007 11:48 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Six Month Review BWAAAAHHAAAAAHAAAAA John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, February 01, 2007 12:42 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Six Month Review No, he's just triggering Drew's urge to react to hearing "Bad Practice"! Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, February 01, 2007 9:12 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Six Month Review So.....what exactly are you saying??? This is bad practice?? :) Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, February 01, 2007 12:01 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Six Month Review Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! ;~) John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, February 01, 2007 11:51 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Six Month Review LOL. Ok, I don't mind being quirky, or not quirky, as long as I don't hear 'bad practice', I'm good. ;) Drew -----Original Message----- From: Susan Harkins [mailto:ssharkins at setel.com] Sent: Thursday, February 01, 2007 10:49 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Six Month Review Well, not a quirk if there's a good reason. Your explanation is reasonable. Sorry, you can't call yourself quirky today. :) Try again tomorrow. :) Susan H. I doubt it. I like the DateSerial method because if I am building a date, I don't have to worry abut the format of a date, or international standard. DateSerial is always month, year, day. Just a personal quirk, I guess. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dmcafee at pacbell.net Thu Feb 1 12:13:46 2007 From: dmcafee at pacbell.net (David Mcafee) Date: Thu, 1 Feb 2007 10:13:46 -0800 (PST) Subject: [AccessD] Six Month Review Message-ID: <20070201181346.94867.qmail@web80813.mail.mud.yahoo.com> I also agree with Rueben. I made a similar function for my wife's database. She required that patients records be reviewed 90 days from their admit date. I had to make sure the the date didn't fall on a Saturday or Sunday. Let me know if you want a copy of the function so I can dig it up for you. David ----- Original Message ---- From: Reuben Cummings To: Access Developers discussion and problem solving Sent: Thursday, February 1, 2007 8:26:20 AM Subject: Re: [AccessD] Six Month Review I agree. But you should also make sure the new date falls into your work week rather than a week end. Check if it's a Saturday or Sunday and add one or two days. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Tesiny, Ed > Sent: Thursday, February 01, 2007 10:44 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Six Month Review > > > I think the DateAdd function would do it...DateAdd("m",6,[DateReview]) > > Ed Tesiny > EdTesiny at oasas.state.ny.us > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > Hollis, Virginia > > Sent: Thursday, February 01, 2007 10:28 AM > > To: accessD at databaseadvisors.com > > Subject: [AccessD] Six Month Review > > > > I need to determine the next semi-annual review date. So if the review > > date is 2/22/2007, the next review should be 8/22/2007. I have > > DateReview & DateNxtReview fields - how do I get the DateNxtReview to > > add 6 months to the DateReview field? > > > > > > > > Virginia > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Feb 1 12:31:06 2007 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Thu, 1 Feb 2007 13:31:06 -0500 Subject: [AccessD] How to bypass the opening security measures Message-ID: <34C8A2AB1EF3564CB0D64DB6AFFDD5C201200F80@xlivmbx35.aig.com> I know, but I think that the setting is actually global to all Office apps. Give it a whirl in Excel and see if it changes the way Access behaves. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Thursday, February 01, 2007 12:03 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How to bypass the opening security measures No Security tab in Access. Susan H. In Excel go Tool/Options/Security, then hit the Macro Security button and set the security level to Medium. That should do it. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at setel.com Thu Feb 1 12:37:36 2007 From: ssharkins at setel.com (Susan Harkins) Date: Thu, 1 Feb 2007 13:37:36 -0500 Subject: [AccessD] favor -- someone to run a quick test Message-ID: <006201c74630$0c3b35d0$f6b62ad1@SUSANONE> =[Form].[RecordsetClone].[Fields](1).[Name] =======Gustav and I are working on an article together and the above expression works for him, but not for me. There are no missing references and the RecordsetClone class is present on my system. What this expression does is return the name of underlying fields in a text box control in a form. Just add a text box to any bound form and enter the above expression as the Control Source and let me know if it returns the field name or the name? error. I'm using Access 2003 and this is the second name? error that's turned up that I can't explain. Susan H. From ssharkins at setel.com Thu Feb 1 12:48:36 2007 From: ssharkins at setel.com (Susan Harkins) Date: Thu, 1 Feb 2007 13:48:36 -0500 Subject: [AccessD] How to bypass the opening security measures In-Reply-To: <34C8A2AB1EF3564CB0D64DB6AFFDD5C201200F80@xlivmbx35.aig.com> Message-ID: <006801c74631$9637ce50$f6b62ad1@SUSANONE> Well, that didn't work. My problem -- Help says I can find this setting through Tools | Macro | Security |Security Tab There's no Security submenu off the Macro submenu. There's a Security menu off the Tools menu, but it doesn't offer anything that takes me to a Security Level setting. I'm using 2003. Does anyone else have these settings? I don't know if Help is wrong or if my system is choking. Susan H. I know, but I think that the setting is actually global to all Office apps. Give it a whirl in Excel and see if it changes the way Access behaves. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Thursday, February 01, 2007 12:03 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How to bypass the opening security measures No Security tab in Access. Susan H. In Excel go Tool/Options/Security, then hit the Macro Security button and set the security level to Medium. That should do it. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.17.14/657 - Release Date: 1/29/2007 9:04 AM From JHewson at karta.com Thu Feb 1 12:56:51 2007 From: JHewson at karta.com (Jim Hewson) Date: Thu, 1 Feb 2007 12:56:51 -0600 Subject: [AccessD] favor -- someone to run a quick test Message-ID: <9C382E065F54AE48BC3AA7925DCBB01C04D9A2FC@karta-exc-int.Karta.com> I got the field name - using A2003. Jim jhewson at karta.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Thursday, February 01, 2007 12:38 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] favor -- someone to run a quick test =[Form].[RecordsetClone].[Fields](1).[Name] =======Gustav and I are working on an article together and the above expression works for him, but not for me. There are no missing references and the RecordsetClone class is present on my system. What this expression does is return the name of underlying fields in a text box control in a form. Just add a text box to any bound form and enter the above expression as the Control Source and let me know if it returns the field name or the name? error. I'm using Access 2003 and this is the second name? error that's turned up that I can't explain. Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kens.programming at verizon.net Thu Feb 1 12:57:58 2007 From: kens.programming at verizon.net (kens.programming) Date: Thu, 01 Feb 2007 10:57:58 -0800 Subject: [AccessD] How to bypass the opening security measures In-Reply-To: <006801c74631$9637ce50$f6b62ad1@SUSANONE> References: <34C8A2AB1EF3564CB0D64DB6AFFDD5C201200F80@xlivmbx35.aig.com> <006801c74631$9637ce50$f6b62ad1@SUSANONE> Message-ID: <001b01c74632$e733a8a0$6b01a8c0@Stoker.com> I double-checked in my Access 2003 before I responded earlier and I found it at Tools --> Macros --> Security and there were three radio buttons on the first tab, High, Medium, Low. You have to set it to Low for the message to stop appearing. Ken -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Thursday, February 01, 2007 10:49 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How to bypass the opening security measures Well, that didn't work. My problem -- Help says I can find this setting through Tools | Macro | Security |Security Tab There's no Security submenu off the Macro submenu. There's a Security menu off the Tools menu, but it doesn't offer anything that takes me to a Security Level setting. I'm using 2003. Does anyone else have these settings? I don't know if Help is wrong or if my system is choking. Susan H. I know, but I think that the setting is actually global to all Office apps. Give it a whirl in Excel and see if it changes the way Access behaves. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Thursday, February 01, 2007 12:03 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How to bypass the opening security measures No Security tab in Access. Susan H. In Excel go Tool/Options/Security, then hit the Macro Security button and set the security level to Medium. That should do it. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.17.14/657 - Release Date: 1/29/2007 9:04 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.17.19/663 - Release Date: 2/1/2007 2:28 PM -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.17.19/663 - Release Date: 2/1/2007 2:28 PM From JHewson at karta.com Thu Feb 1 12:59:36 2007 From: JHewson at karta.com (Jim Hewson) Date: Thu, 1 Feb 2007 12:59:36 -0600 Subject: [AccessD] How to bypass the opening security measures Message-ID: <9C382E065F54AE48BC3AA7925DCBB01C04D9A2FD@karta-exc-int.Karta.com> I found Tools | Macro | Security | Security Level tab. A2003... Jim jhewson at karta.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Thursday, February 01, 2007 12:49 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How to bypass the opening security measures Well, that didn't work. My problem -- Help says I can find this setting through Tools | Macro | Security |Security Tab There's no Security submenu off the Macro submenu. There's a Security menu off the Tools menu, but it doesn't offer anything that takes me to a Security Level setting. I'm using 2003. Does anyone else have these settings? I don't know if Help is wrong or if my system is choking. Susan H. I know, but I think that the setting is actually global to all Office apps. Give it a whirl in Excel and see if it changes the way Access behaves. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Thursday, February 01, 2007 12:03 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How to bypass the opening security measures No Security tab in Access. Susan H. In Excel go Tool/Options/Security, then hit the Macro Security button and set the security level to Medium. That should do it. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.17.14/657 - Release Date: 1/29/2007 9:04 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Thu Feb 1 13:02:58 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 01 Feb 2007 11:02:58 -0800 Subject: [AccessD] database is not digitally signed In-Reply-To: <020f01c7461c$d7ad5cc0$8abea8c0@XPS> References: <020f01c7461c$d7ad5cc0$8abea8c0@XPS> Message-ID: <45C23962.20202@shaw.ca> Well there is one way if you create a vbs file and open it from a shortcut, this assumes the network nabobs allow vbscript to run A bit more difficult if using a .msw file Const cDatabaseToOpen = "C:\Access files\Access2003 samples\Using Parameters with Queries and Reports.mdb" On Error Resume Next Dim AcApp Set AcApp = CreateObject("Access.Application.11") If AcApp.Version >= 11 Then AcApp.AutomationSecurity = 1 ' msoAutomationSecurityLow End If AcApp.Visible = True AcApp.OpenCurrentDatabase cDatabaseToOpen If AcApp.CurrentProject.FullName <> "" Then AcApp.UserControl = True Else AcApp.Quit MsgBox "Failed to open '" & cDatabaseToOpen & "'." End If Jim Dettman wrote: > Note that there is no programmatic way to turn this off; the user must do >it through the Access UI. > >Jim. > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Francisco Tapia >Sent: Wednesday, January 31, 2007 8:16 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] database is not digitally signed > >Nevermind I found the help on MSDN, I had to go to Tools > Security > Low >:) > > >On 1/31/07, Francisco Tapia wrote: > > >>I used sagekey to install a demo copy of my own db for my end users, >>version Access2003, I had been using the 2000 for years now w/o any >>problems. >> >>Now the error that I am seeing is described here >>http://office.microsoft.com/en-us/access/HA011225981033.aspx#080 >> >>"Access cannot open the file due to security restrictions. Security >>settings restrict access to the file because it is not digitally >>signed" >> >>but what it does NOT tell you is how to set the macro security level >>to low so that I CAN open the projects I was opening before I did the >>wise install (sagekey) install. I called Sagekey and the guy there >>was stunned and asked me to re-install Access 2003... but that of >>course has not fixed anything... :( >> >> >> >> >>-- >>-Francisco >>http://sqlthis.blogspot.com | Tsql and More... >> >> >> > > > > -- Marty Connelly Victoria, B.C. Canada From ssharkins at setel.com Thu Feb 1 13:19:18 2007 From: ssharkins at setel.com (Susan Harkins) Date: Thu, 1 Feb 2007 14:19:18 -0500 Subject: [AccessD] How to bypass the opening security measures In-Reply-To: <9C382E065F54AE48BC3AA7925DCBB01C04D9A2FD@karta-exc-int.Karta.com> Message-ID: <006a01c74635$e1a02b90$f6b62ad1@SUSANONE> Yeah, something's definitely wrong on my end -- I just don't know what it is or how to fix it. I ran a repair the other day. Guess I'll start there and run it again -- can't hurt. Susan H. I found Tools | Macro | Security | Security Level tab. A2003... From ssharkins at setel.com Thu Feb 1 13:19:18 2007 From: ssharkins at setel.com (Susan Harkins) Date: Thu, 1 Feb 2007 14:19:18 -0500 Subject: [AccessD] favor -- someone to run a quick test In-Reply-To: <9C382E065F54AE48BC3AA7925DCBB01C04D9A2FC@karta-exc-int.Karta.com> Message-ID: <006b01c74635$e263c9b0$f6b62ad1@SUSANONE> Thanks Jim -- now if I could figure out what's wrong on my end. Susan H. I got the field name - using A2003. From adtp at airtelbroadband.in Thu Feb 1 13:37:41 2007 From: adtp at airtelbroadband.in (A.D.TEJPAL) Date: Fri, 2 Feb 2007 01:07:41 +0530 Subject: [AccessD] favor -- someone to run a quick test References: <006201c74630$0c3b35d0$f6b62ad1@SUSANONE> Message-ID: <016b01c74638$820ecf30$110365cb@pcadt> All the four expressions ( in a calculated text box) as given below, return correct name of pertinent bound field (Access 2003) - =[Form].[RecordsetClone].[Fields](1).[Name] =[Form].[Recordset].[Fields](1).[Name] =[RecordsetClone].[Fields](1).[Name] =[Recordset].[Fields](1).[Name] A.D.Tejpal --------------- ----- Original Message ----- From: Susan Harkins To: 'Access Developers discussion and problem solving' Sent: Friday, February 02, 2007 00:07 Subject: [AccessD] favor -- someone to run a quick test =[Form].[RecordsetClone].[Fields](1).[Name] =======Gustav and I are working on an article together and the above expression works for him, but not for me. There are no missing references and the RecordsetClone class is present on my system. What this expression does is return the name of underlying fields in a text box control in a form. Just add a text box to any bound form and enter the above expression as the Control Source and let me know if it returns the field name or the name? error. I'm using Access 2003 and this is the second name? error that's turned up that I can't explain. Susan H. From martyconnelly at shaw.ca Thu Feb 1 13:40:36 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 01 Feb 2007 11:40:36 -0800 Subject: [AccessD] How to bypass the opening security measures In-Reply-To: <006801c74631$9637ce50$f6b62ad1@SUSANONE> References: <006801c74631$9637ce50$f6b62ad1@SUSANONE> Message-ID: <45C24234.1000806@shaw.ca> Reset the toolbars in Access 2003 Important If you reset the toolbars in Access 2003 to their original settings, you may lose the custom changes that are implemented in the toolbars. 1. Start Access 2003. 2. On the Tools menu, click Customize. 3. On the Toolbars tab, click to select the Menu Bar check box on the Customize dialog box. 4. Click Reset, and then click OK. 5. Click to select the Database check box, click Reset, and then click OK. 6. Click Close. See Menu items are missing after you upgrade from an earlier version of Microsoft Access to Microsoft Office Access 2003 http://support.microsoft.com/kb/833219 Susan Harkins wrote: >Well, that didn't work. > >My problem -- Help says I can find this setting through Tools | Macro | >Security |Security Tab > >There's no Security submenu off the Macro submenu. There's a Security menu >off the Tools menu, but it doesn't offer anything that takes me to a >Security Level setting. > >I'm using 2003. Does anyone else have these settings? I don't know if Help >is wrong or if my system is choking. > >Susan H. > >I know, but I think that the setting is actually global to all Office apps. >Give it a whirl in Excel and see if it changes the way Access behaves. > >Lambert > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins >Sent: Thursday, February 01, 2007 12:03 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] How to bypass the opening security measures > > >No Security tab in Access. > >Susan H. > >In Excel go Tool/Options/Security, then hit the Macro Security button and >set the security level to Medium. That should do it. > > > > -- Marty Connelly Victoria, B.C. Canada From fhtapia at gmail.com Thu Feb 1 14:10:04 2007 From: fhtapia at gmail.com (Francisco Tapia) Date: Thu, 1 Feb 2007 12:10:04 -0800 Subject: [AccessD] database is not digitally signed In-Reply-To: <037101c745aa$c814c630$6502a8c0@ScuzzPaq> References: <037101c745aa$c814c630$6502a8c0@ScuzzPaq> Message-ID: Hi John, Thanks for replying... In fact I created an ADE from the ADP, and packaged that via sagekey+wise (there is only one version on their site, I just checked today). What I had not anticipated was that my install changed the default behavior for the full version of access2003, not only the runtime version. I started searching for the keywords in google for the problem but I wasn't getting a solution, just simply that Access required a digitally signed certificate for the app, since I didn't know what had happend, I kinda went into a panic and started trying to query google w/ every keyword combination I could think of, :). I gave up and decided to search my gmail to find out if anyone had posted something in the last 2 years, and i was amazed that it didn't show up in my results :). So I posted it :) On 1/31/07, John Bartow wrote: > Hi Francisco! > Long time no hear. I haven't had that issue. Are you using the icons the > install places or opening Access and then the application? As far as I > understand SageKey's scripts will eliminate that problem but you do have to > let it do its thing. > > SageKey does post updates every now and again and they have a FAQ section on > their website. > > In order to test this I just turned macro security to high with my Access > 2003 full version. I installed an application which uses Wise/SageKey to > install Access 2003 runtime and shortcuts. I started the application and it > did not give me the error message. I then opened the same access app's file > but by opening (Access full version) and then selecting the file. this gave > me the error concerning the security setting. > > So I'm guessing that your opening it via full Access or your shortcut icon > is not referencing the runtime version of access that SageKey installs. > > If you want, I can help troubleshoot you through the install script. Contact > me off list. > > HTH > John B. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Francisco Tapia > Sent: Wednesday, January 31, 2007 6:49 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] database is not digitally signed > > I used sagekey to install a demo copy of my own db for my end users, version > Access2003, I had been using the 2000 for years now w/o any problems. > > Now the error that I am seeing is described here > http://office.microsoft.com/en-us/access/HA011225981033.aspx#080 > > "Access cannot open the file due to security restrictions. Security settings > restrict access to the file because it is not digitally signed" > > but what it does NOT tell you is how to set the macro security level to low > so that I CAN open the projects I was opening before I did the wise install > (sagekey) install. I called Sagekey and the guy there was stunned and asked > me to re-install Access 2003... but that of course has not fixed anything... > :( > > > > > -- > -Francisco > http://sqlthis.blogspot.com | Tsql and More... > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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://sqlthis.blogspot.com | Tsql and More... From fhtapia at gmail.com Thu Feb 1 14:10:56 2007 From: fhtapia at gmail.com (Francisco Tapia) Date: Thu, 1 Feb 2007 12:10:56 -0800 Subject: [AccessD] database is not digitally signed In-Reply-To: <45C23962.20202@shaw.ca> References: <020f01c7461c$d7ad5cc0$8abea8c0@XPS> <45C23962.20202@shaw.ca> Message-ID: SWEET! thank you :) On 2/1/07, MartyConnelly wrote: > Well there is one way if you create a vbs file and open it from a > shortcut, this assumes the network nabobs allow vbscript to run > A bit more difficult if using a .msw file > > Const cDatabaseToOpen = "C:\Access files\Access2003 samples\Using > Parameters with Queries and Reports.mdb" > On Error Resume Next > Dim AcApp > Set AcApp = CreateObject("Access.Application.11") > If AcApp.Version >= 11 Then > AcApp.AutomationSecurity = 1 ' msoAutomationSecurityLow > End If > AcApp.Visible = True > AcApp.OpenCurrentDatabase cDatabaseToOpen > If AcApp.CurrentProject.FullName <> "" Then > AcApp.UserControl = True > Else > AcApp.Quit > MsgBox "Failed to open '" & cDatabaseToOpen & "'." > End If > > Jim Dettman wrote: > > > Note that there is no programmatic way to turn this off; the user must do > >it through the Access UI. > > > >Jim. > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Francisco Tapia > >Sent: Wednesday, January 31, 2007 8:16 PM > >To: Access Developers discussion and problem solving > >Subject: Re: [AccessD] database is not digitally signed > > > >Nevermind I found the help on MSDN, I had to go to Tools > Security > Low > >:) > > > > > >On 1/31/07, Francisco Tapia wrote: > > > > > >>I used sagekey to install a demo copy of my own db for my end users, > >>version Access2003, I had been using the 2000 for years now w/o any > >>problems. > >> > >>Now the error that I am seeing is described here > >>http://office.microsoft.com/en-us/access/HA011225981033.aspx#080 > >> > >>"Access cannot open the file due to security restrictions. Security > >>settings restrict access to the file because it is not digitally > >>signed" > >> > >>but what it does NOT tell you is how to set the macro security level > >>to low so that I CAN open the projects I was opening before I did the > >>wise install (sagekey) install. I called Sagekey and the guy there > >>was stunned and asked me to re-install Access 2003... but that of > >>course has not fixed anything... :( > >> > >> > >> > >> > >>-- > >>-Francisco > >>http://sqlthis.blogspot.com | Tsql and More... > >> > >> > >> > > > > > > > > > > -- > Marty Connelly > Victoria, B.C. > Canada > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- -Francisco http://sqlthis.blogspot.com | Tsql and More... From jimdettman at verizon.net Thu Feb 1 14:27:50 2007 From: jimdettman at verizon.net (Jim Dettman) Date: Thu, 01 Feb 2007 15:27:50 -0500 Subject: [AccessD] database is not digitally signed In-Reply-To: <05a101c7461f$b8f39490$6502a8c0@ScuzzPaq> Message-ID: <002501c7463f$72be5a30$8abea8c0@XPS> John, They must be supplying a digital certificate as part of the install. I have found nothing that will allow me to go in and set the security to low (now that I say that, I wonder if it's a registry hack...hum). Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Thursday, February 01, 2007 11:41 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] database is not digitally signed http://www.sagekey.com/access_2003.aspx Key Features Digital Certificate not required - Installations built using our tools will not display the Macro Security Warning Message "The file may not be safe if it contains code that was intended to harm your computer" when run without a digital signature. It works for me. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Thursday, February 01, 2007 10:20 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] database is not digitally signed Note that there is no programmatic way to turn this off; the user must do it through the Access UI. Jim. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Thu Feb 1 14:29:06 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 01 Feb 2007 21:29:06 +0100 Subject: [AccessD] database is not digitally signed Message-ID: Hi Francisco I haven't followed the thread but if you wish to digitally sign your A2003 code, here is how: http://msdn2.microsoft.com/en-us/library/aa167281(office.11).aspx If selfcertification is not enough, you can obtain a free certificate here at CAcert: http://www.cacert.org/ /gustav >>> fhtapia at gmail.com 01-02-2007 21:10:04 >>> Hi John, Thanks for replying... In fact I created an ADE from the ADP, and packaged that via sagekey+wise (there is only one version on their site, I just checked today). What I had not anticipated was that my install changed the default behavior for the full version of access2003, not only the runtime version. I started searching for the keywords in google for the problem but I wasn't getting a solution, just simply that Access required a digitally signed certificate for the app, since I didn't know what had happend, I kinda went into a panic and started trying to query google w/ every keyword combination I could think of, :). I gave up and decided to search my gmail to find out if anyone had posted something in the last 2 years, and i was amazed that it didn't show up in my results :). So I posted it :) On 1/31/07, John Bartow wrote: > Hi Francisco! > Long time no hear. I haven't had that issue. Are you using the icons the > install places or opening Access and then the application? As far as I > understand SageKey's scripts will eliminate that problem but you do have to > let it do its thing. > > SageKey does post updates every now and again and they have a FAQ section on > their website. > > In order to test this I just turned macro security to high with my Access > 2003 full version. I installed an application which uses Wise/SageKey to > install Access 2003 runtime and shortcuts. I started the application and it > did not give me the error message. I then opened the same access app's file > but by opening (Access full version) and then selecting the file. this gave > me the error concerning the security setting. > > So I'm guessing that your opening it via full Access or your shortcut icon > is not referencing the runtime version of access that SageKey installs. > > If you want, I can help troubleshoot you through the install script. Contact > me off list. > > HTH > John B. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Francisco Tapia > Sent: Wednesday, January 31, 2007 6:49 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] database is not digitally signed > > I used sagekey to install a demo copy of my own db for my end users, version > Access2003, I had been using the 2000 for years now w/o any problems. > > Now the error that I am seeing is described here > http://office.microsoft.com/en-us/access/HA011225981033.aspx#080 > > "Access cannot open the file due to security restrictions. Security settings > restrict access to the file because it is not digitally signed" > > but what it does NOT tell you is how to set the macro security level to low > so that I CAN open the projects I was opening before I did the wise install > (sagekey) install. I called Sagekey and the guy there was stunned and asked > me to re-install Access 2003... but that of course has not fixed anything... > :( From gwsmith at iowatelecom.net Thu Feb 1 14:34:03 2007 From: gwsmith at iowatelecom.net (Greg Smith) Date: Thu, 1 Feb 2007 14:34:03 -0600 (CST) Subject: [AccessD] OT: Are you ready for vista? In-Reply-To: <001e01c74628$72f0d350$2d01a8c0@bhxp> References: <0JCR00AT8KRBCX90@l-daemon> <00f801c745b0$da8c0ac0$0201a8c0@HAL9005> <001e01c74628$72f0d350$2d01a8c0@bhxp> Message-ID: <19404.65.118.249.214.1170362043.squirrel@webmail.iowatelecom.net> Apparently NOT. I've found that my HP7140xi multifunction all-in-one networked (jet direct card) printer driver will not work with Vista (advanced features for sure) ?and HP is NOT going to update it.? Printer is about 2 years old.? So if I install Vista on my computer, I can no longer print to or scan from that device as a network device.? It's almost like HP is surprised that Microsoft really released Vista.? They've only been talking about it for the last YEAR or so... I was going to upgrade this weekend, but I think NOT now...particularly if VS2005 is hosed as well.? Greg <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< It did not tell me that I might have problems with my VS 2005. Are your VS 2005 patches up-to-date? I have Vista business that I got at the launch. I just have to wait for a good time to redo my system. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Wednesday, January 31, 2007 10:27 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Are you ready for vista? What I found noteworthy was the number of apps I have installed that I'm warned may have "minor" compatibility issues with Vista - Sygate, Ghost, Musicmatch, SQL Server VSS writer, Messenger, Outlook 2003(!!!!), Visual Studio 2005 Standard, Dell Utilities and others. Hopefully, they all these vendors would have updates on their websites. I'd also need a DVD drive or have to order Vista on CD. It told me that 1GB memory is OK but I've heard that you really need 2. Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Kwilliamson at RTKL.com Thu Feb 1 14:45:18 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Thu, 1 Feb 2007 15:45:18 -0500 Subject: [AccessD] Revisit Copy from Access Issue Message-ID: Well....I made sure that I only had ONE version of excel open....and still the same problem (from earlier this week.) I run a query, copy the result, and try to paste into excel. I get a weird option, when trying to paste special (so that I don't overwrite my formatted cells in excel).....Paste Special will only let me paste as one of the following: Biff5 HTML Unicode Text Text Csv Maybe I never tried to paste special before...only paste. But still....it seems odd. Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com From EdTesiny at oasas.state.ny.us Thu Feb 1 14:52:44 2007 From: EdTesiny at oasas.state.ny.us (Tesiny, Ed) Date: Thu, 1 Feb 2007 15:52:44 -0500 Subject: [AccessD] Revisit Copy from Access Issue In-Reply-To: References: Message-ID: My paste special has Microsoft Excel 8.0 Format as the first choice and then the ones you listed below Ed Tesiny EdTesiny at oasas.state.ny.us > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Keith Williamson > Sent: Thursday, February 01, 2007 3:45 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Revisit Copy from Access Issue > > Well....I made sure that I only had ONE version of excel open....and > still the same problem (from earlier this week.) I run a query, copy > the result, and try to paste into excel. I get a weird option, when > trying to paste special (so that I don't overwrite my > formatted cells in > excel).....Paste Special will only let me paste as one of the > following: > > Biff5 > > HTML > > Unicode Text > > Text > > Csv > > > > Maybe I never tried to paste special before...only paste. But > still....it seems odd. > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.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 Thu Feb 1 15:08:55 2007 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Thu, 1 Feb 2007 15:08:55 -0600 Subject: [AccessD] Revisit Copy from Access Issue Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DE276@corp-es01.fleetpride.com> Paste special has always behaved like that for me. Paste, however, should work just fine. What is the weird option you are getting? Jim Hale -----Original Message----- From: Keith Williamson [mailto:Kwilliamson at rtkl.com] Sent: Thursday, February 01, 2007 2:45 PM To: Access Developers discussion and problem solving Subject: [AccessD] Revisit Copy from Access Issue Well....I made sure that I only had ONE version of excel open....and still the same problem (from earlier this week.) I run a query, copy the result, and try to paste into excel. I get a weird option, when trying to paste special (so that I don't overwrite my formatted cells in excel).....Paste Special will only let me paste as one of the following: Biff5 HTML Unicode Text Text Csv Maybe I never tried to paste special before...only paste. But still....it seems odd. Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.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 Lambert.Heenan at AIG.com Thu Feb 1 15:12:01 2007 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Thu, 1 Feb 2007 15:12:01 -0600 Subject: [AccessD] Revisit Copy from Access Issue Message-ID: <34C8A2AB1EF3564CB0D64DB6AFFDD5C201200F91@xlivmbx35.aig.com> Regardless of the missing Excel x.x --- you should choose "Text". That leaves the preexisting format untouched. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, February 01, 2007 3:45 PM To: Access Developers discussion and problem solving Subject: [AccessD] Revisit Copy from Access Issue Well....I made sure that I only had ONE version of excel open....and still the same problem (from earlier this week.) I run a query, copy the result, and try to paste into excel. I get a weird option, when trying to paste special (so that I don't overwrite my formatted cells in excel).....Paste Special will only let me paste as one of the following: Biff5 HTML Unicode Text Text Csv Maybe I never tried to paste special before...only paste. But still....it seems odd. Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jim.moss at jlmoss.net Thu Feb 1 15:05:59 2007 From: jim.moss at jlmoss.net (Jim Moss) Date: Thu, 1 Feb 2007 15:05:59 -0600 (CST) Subject: [AccessD] Revisit Copy from Access Issue Message-ID: <46404.65.196.182.34.1170363959.squirrel@65.196.182.34> Keith, Why don't you just build a formatted excel file in vba and be done with it? Jim Well....I made sure that I only had ONE version of excel open....and still the same problem (from earlier this week.) I run a query, copy the result, and try to paste into excel. I get a weird option, when trying to paste special (so that I don't overwrite my formatted cells in excel).....Paste Special will only let me paste as one of the following: Biff5 HTML Unicode Text Text Csv Maybe I never tried to paste special before...only paste. But still....it seems odd. Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.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 Thu Feb 1 15:24:50 2007 From: dw-murphy at cox.net (Doug Murphy) Date: Thu, 1 Feb 2007 13:24:50 -0800 Subject: [AccessD] database is not digitally signed In-Reply-To: <002501c7463f$72be5a30$8abea8c0@XPS> Message-ID: <007b01c74647$682b77d0$0200a8c0@murphy3234aaf1> This is a registry setting, so Sagekey could be changing. When you use the Sagekey installer the shortcut actually runs a little exe called runaccess.exe which opens the runtime. It takes care of setting the registry so that if you run several versions of Access on the same computer that the next time you open an access file directly it does not try to open in the runtime. I would assume that if they do this they set the security setting. These are assumptions on my part based on a little knowledge of how the Sagekey scripts work. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Thursday, February 01, 2007 12:28 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] database is not digitally signed John, They must be supplying a digital certificate as part of the install. I have found nothing that will allow me to go in and set the security to low (now that I say that, I wonder if it's a registry hack...hum). Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Thursday, February 01, 2007 11:41 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] database is not digitally signed http://www.sagekey.com/access_2003.aspx Key Features Digital Certificate not required - Installations built using our tools will not display the Macro Security Warning Message "The file may not be safe if it contains code that was intended to harm your computer" when run without a digital signature. It works for me. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Thursday, February 01, 2007 10:20 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] database is not digitally signed Note that there is no programmatic way to turn this off; the user must do it through the Access UI. Jim. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Thu Feb 1 15:30:15 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 01 Feb 2007 13:30:15 -0800 Subject: [AccessD] database is not digitally signed In-Reply-To: References: Message-ID: <45C25BE7.5010500@shaw.ca> Just remember on a network, the digital signature cache can be locked down for general users. Gustav Brock wrote: >Hi Francisco > >I haven't followed the thread but if you wish to digitally sign your A2003 code, here is how: > >http://msdn2.microsoft.com/en-us/library/aa167281(office.11).aspx > >If selfcertification is not enough, you can obtain a free certificate here at CAcert: > >http://www.cacert.org/ > >/gustav > > > >>>>fhtapia at gmail.com 01-02-2007 21:10:04 >>> >>>> >>>> >Hi John, > Thanks for replying... In fact I created an ADE from the ADP, and >packaged that via sagekey+wise (there is only one version on their >site, I just checked today). What I had not anticipated was that my >install changed the default behavior for the full version of >access2003, not only the runtime version. > >I started searching for the keywords in google for the problem but I >wasn't getting a solution, just simply that Access required a >digitally signed certificate for the app, since I didn't know what had >happend, I kinda went into a panic and started trying to query google >w/ every keyword combination I could think of, :). I gave up and >decided to search my gmail to find out if anyone had posted something >in the last 2 years, and i was amazed that it didn't show up in my >results :). So I posted it :) > > > >On 1/31/07, John Bartow wrote: > > >>Hi Francisco! >>Long time no hear. I haven't had that issue. Are you using the icons the >>install places or opening Access and then the application? As far as I >>understand SageKey's scripts will eliminate that problem but you do have to >>let it do its thing. >> >>SageKey does post updates every now and again and they have a FAQ section on >>their website. >> >>In order to test this I just turned macro security to high with my Access >>2003 full version. I installed an application which uses Wise/SageKey to >>install Access 2003 runtime and shortcuts. I started the application and it >>did not give me the error message. I then opened the same access app's file >>but by opening (Access full version) and then selecting the file. this gave >>me the error concerning the security setting. >> >>So I'm guessing that your opening it via full Access or your shortcut icon >>is not referencing the runtime version of access that SageKey installs. >> >>If you want, I can help troubleshoot you through the install script. Contact >>me off list. >> >>HTH >>John B. >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Francisco Tapia >>Sent: Wednesday, January 31, 2007 6:49 PM >>To: Access Developers discussion and problem solving >>Subject: [AccessD] database is not digitally signed >> >>I used sagekey to install a demo copy of my own db for my end users, version >>Access2003, I had been using the 2000 for years now w/o any problems. >> >>Now the error that I am seeing is described here >>http://office.microsoft.com/en-us/access/HA011225981033.aspx#080 >> >>"Access cannot open the file due to security restrictions. Security settings >>restrict access to the file because it is not digitally signed" >> >>but what it does NOT tell you is how to set the macro security level to low >>so that I CAN open the projects I was opening before I did the wise install >>(sagekey) install. I called Sagekey and the guy there was stunned and asked >>me to re-install Access 2003... but that of course has not fixed anything... >>:( >> >> > > > > -- Marty Connelly Victoria, B.C. Canada From darrend at nimble.com.au Thu Feb 1 15:47:50 2007 From: darrend at nimble.com.au (Darren DICK) Date: Fri, 2 Feb 2007 08:47:50 +1100 Subject: [AccessD] A2003:Determining Background colour of the desktop Message-ID: <200702012147.l11LloL12935@databaseadvisors.com> Hi Team Does anyone know how to determine the background colour of the desktop? I have a form I want to set its background colour to match Many thanks Darren From DWUTKA at marlow.com Thu Feb 1 15:50:16 2007 From: DWUTKA at marlow.com (Drew Wutka) Date: Thu, 1 Feb 2007 15:50:16 -0600 Subject: [AccessD] A2003:Determining Background colour of the desktop Message-ID: <17724746D360394AA3BFE5B8D40A9C1B01A03452@marlow_main2.marlow.ii-vi.net> That may be a little tricky if someone has a picture in the background. Theoretically you can get the desktop 'window' with an API, and I'm pretty sure you can capture the 'pic' in a window with an API, so then you would just have to paint that picture into your form. All theory, mind you. Drew -----Original Message----- From: Darren DICK [mailto:darrend at nimble.com.au] Sent: Thursday, February 01, 2007 3:48 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2003:Determining Background colour of the desktop Hi Team Does anyone know how to determine the background colour of the desktop? I have a form I want to set its background colour to match 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 Feb 1 16:16:14 2007 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 02 Feb 2007 08:16:14 +1000 Subject: [AccessD] A2003:Determining Background colour of the desktop In-Reply-To: <200702012147.l11LloL12935@databaseadvisors.com> References: <200702012147.l11LloL12935@databaseadvisors.com> Message-ID: <45C266AE.27258.2EDB385@stuart.lexacorp.com.pg> On 2 Feb 2007 at 8:47, Darren DICK wrote: > Does anyone know how to determine the background colour of the desktop? > > I have a form I want to set its background colour to match Look up "System Color Constants" in VBA Help (remember to omit the "u" ) Specifically "vbDesktop 0x80000001 Desktop color " So set the Detail Backcolor property to &H80000001 or to -2147483647 -- Stuart From kp at sdsonline.net Thu Feb 1 17:42:45 2007 From: kp at sdsonline.net (Kath Pelletti) Date: Fri, 2 Feb 2007 10:42:45 +1100 Subject: [AccessD] My Book and Thanks References: <007001c743c9$d5e72010$0201a8c0@HAL9005><00b201c74544$f0355c30$731665cb@pcadt> Message-ID: <019101c7465a$acad7bc0$6401a8c0@office> Martin - congratulations. People who come home from their day job and write books like that in their 'spare time' amaze me. Such a huge effort and I look forward to reading it. Kath ----- Original Message ----- From: Martin Reid To: Access Developers discussion and problem solving Sent: Thursday, February 01, 2007 8:14 AM Subject: [AccessD] My Book and Thanks I just finished writing Professional Access 2007 for Apress. This is not an ad. I just wanted to thank the following individuals and this list in general for all the assistance I received when writing this book. from people reading and commenting chapters to individuals testing code to people who allowed me to reuse their code adn indeed in John and Drews case their class postings. If I have left your name out forgive me. So in no order thank you to the following John Colby for code and writing and trying to teach me about classes Marty Connelly for amazing examples. and teaching AD for permissions and being a gentleman Drew for code and writing and classes Rocky for permissions and review and being a friend Shamil for code (GUIDs) Steve for reveiw Others whose code I have put into the book will see their name in print at some point in the book and a big thank you to all. Many books begin with thanks and I could not have done it without you statements. In this case that is so true, I would never have finished this book where it not for this list and the unselfish actions of its many members. Overall the book is my creation (with exceptions mentioned) I hope it is well received it took 8 months of work every evening and contains what I think are pointers to the direction Access is going. Its dosnt contain mind blowing code examples, nothing new or origional (excepts Marty Connellys example) but its my first book "alone" and personally whatever the amazon reviews say I will be proud of it. I cant of course forgot Susan Harkins whose fault this all is. Finally in the immortal words of Rocky "Yo Adrian I DID IT" Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ------------------------------------------------------------------------------ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Thu Feb 1 18:01:59 2007 From: DWUTKA at marlow.com (Drew Wutka) Date: Thu, 1 Feb 2007 18:01:59 -0600 Subject: [AccessD] A2003:Determining Background colour of the desktop Message-ID: <17724746D360394AA3BFE5B8D40A9C1B01A03486@marlow_main2.marlow.ii-vi.net> Bad news on my idea. You can get the 'desktop' window, but that is what is actively being displayed, not the background. Plus, there's another downside. I setup a test to 'paint' the desktop window to an access form. In VB, it worked great. In Access, it was a complete PITA, because access forms don't have child windows like other windows, the form window itself has a few child windows, but the controls on that form are not separate windows, they are literally painted onto one specific window. That is the background. So, in my test db, I created a form, 'found' that background window, and painted it with the desktop window, on a timer. Great effect (because if you move the form around it kaleidoscopes if when it gets in the corner (because it is painting itself, over and over). Bad news is, the controls disappear. Giving the controls focus makes them reappear, but the timer kills them again. Someone just posted about getting system information, that's probably a better option. Drew -----Original Message----- From: Darren DICK [mailto:darrend at nimble.com.au] Sent: Thursday, February 01, 2007 3:48 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2003:Determining Background colour of the desktop Hi Team Does anyone know how to determine the background colour of the desktop? I have a form I want to set its background colour to match Many thanks Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From darrend at nimble.com.au Thu Feb 1 18:35:39 2007 From: darrend at nimble.com.au (Darren DICK) Date: Fri, 2 Feb 2007 11:35:39 +1100 Subject: [AccessD] Six Month Review In-Reply-To: <20070201181346.94867.qmail@web80813.mail.mud.yahoo.com> Message-ID: <200702020036.l120anL30168@databaseadvisors.com> Hi David Would you care to post it to the list? Many thanks Darren ------------------ -----Original Message----- From: David Mcafee [mailto:dmcafee at pacbell.net] Sent: Friday, 2 February 2007 5:14 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Six Month Review I also agree with Rueben. I made a similar function for my wife's database. She required that patients records be reviewed 90 days from their admit date. I had to make sure the the date didn't fall on a Saturday or Sunday. Let me know if you want a copy of the function so I can dig it up for you. David ----- Original Message ---- From: Reuben Cummings To: Access Developers discussion and problem solving Sent: Thursday, February 1, 2007 8:26:20 AM Subject: Re: [AccessD] Six Month Review I agree. But you should also make sure the new date falls into your work week rather than a week end. Check if it's a Saturday or Sunday and add one or two days. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Tesiny, Ed > Sent: Thursday, February 01, 2007 10:44 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Six Month Review > > > I think the DateAdd function would do it...DateAdd("m",6,[DateReview]) > > Ed Tesiny > EdTesiny at oasas.state.ny.us > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > Hollis, Virginia > > Sent: Thursday, February 01, 2007 10:28 AM > > To: accessD at databaseadvisors.com > > Subject: [AccessD] Six Month Review > > > > I need to determine the next semi-annual review date. So if the review > > date is 2/22/2007, the next review should be 8/22/2007. I have > > DateReview & DateNxtReview fields - how do I get the DateNxtReview to > > add 6 months to the DateReview field? > > > > > > > > Virginia > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From darrend at nimble.com.au Thu Feb 1 18:40:42 2007 From: darrend at nimble.com.au (Darren DICK) Date: Fri, 2 Feb 2007 11:40:42 +1100 Subject: [AccessD] BringToFront In-Reply-To: <17724746D360394AA3BFE5B8D40A9C1B01A03363@marlow_main2.marlow.ii-vi.net> Message-ID: <200702020041.l120fqL31911@databaseadvisors.com> Hi Drew Thanks for the ASP email - I will review it (plus the million others I have from Gurus on the list) soon I tried the BringMeToTheFront code on a small clock that sits on the desktop Works beautifully - Even sits on top of Task manager - hee hee Many thanks Have a great day Darren ------------------ T: 0424 696 433 -----Original Message----- From: Drew Wutka [mailto:DWUTKA at marlow.com] Sent: Friday, 2 February 2007 3:15 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] BringToFront Well, did it do the trick? Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Wednesday, January 31, 2007 4:10 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] BringToFront What do you mean it doesn't stick. Will it stick long enough for the user to click the button and cause that form to close? John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Wednesday, January 31, 2007 5:00 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] BringToFront Private Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, _ ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, ByVal _ cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long Private Const SWP_NOMOVE = &H2 Private Const SWP_NOSIZE = &H1 Private Const HWND_TOPMOST = -1 Private Sub PutMeOnTop() SetWindowPos Me.Hwnd, HWND_TOPMOST, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End Sub This will put the form in front of everything. It doesn't 'stick' though. Access forms are subclassed windows, so to put it truly always on top is a little trickier. Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Wednesday, January 31, 2007 3:41 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] BringToFront Is there a Bring To Front for a FORM? I may have a series of progress meters, which open modal, and as it happens centered and right on top of each other. I have devised a way to display an OK button which I display the very last line as that process finishes IF I want the user to know that a specific process finished. The problem is that things being the way they are, the one that is finishing may be physically hidden by another progress meter on top. I need to cause the progress meter that is displaying the "OK to continue" to pop in front of anything else that may be currently displayed. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd666 at yahoo.com Fri Feb 2 04:35:58 2007 From: accessd666 at yahoo.com (Sad Der) Date: Fri, 2 Feb 2007 02:35:58 -0800 (PST) Subject: [AccessD] Let Excel object live? Message-ID: <262660.77033.qm@web31603.mail.mud.yahoo.com> Hi group, I've got a form that opens an Excel template and fills it with data. I've got the following line: Private objXL As cExcel this is a 'form level variabel'. When the user presses the 'export button' this line is called (on click event): Set objXL = New cExcel In the initiate of this Class I call a function that checks if there is an Excel instance: If objExcel Is Nothing Then Set ExcelObject = CreateObject("Excel.Application") Else 'do nothing, object already alive End If So at this point I have a form. In the properties of the form there is an objXL. When I close the form: DoCmd.Close acForm, Me.Name, acSaveNo The Excel object (objXL) is destroyed and thus the terminate event is triggered. This event closes/kills the object and Excel itself is closed. How can I keep this object alive and still close the form? Maybe not closing the form but hiding it? But how do I hide the form and when opening the form first check if it's open? Regards, Sander ____________________________________________________________________________________ Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com From Gustav at cactus.dk Fri Feb 2 05:18:00 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 02 Feb 2007 12:18:00 +0100 Subject: [AccessD] Six Month Review Message-ID: Hi Andy (and Drew) That's not odd. You ask for two different things. datDate = #8/31/2007# datNext = DateAdd("m", 6, datDate) This will add 6 months to 2007-08-31. As there is no later day in February this year than 29, it returns 2008-02-29. datNext = DateSerial(Year(datDate), Month(datDate) + 6, Day(datDate)) This will build datNext from year-month 2007-08, add 6 months giving 2008-02 and then add 31 days to 2008-02-00 (which is the last day of Jan.). As the day count of 2008-02 is only 29, 2 days will fall in the next month giving 2008-03-02. It's important to distinguish between the two functions. DateAdd() does what humans think, while DateSerial takes a more mathematical approach. This might light a second thought for Drew, as DateSerial is capable of turning most "invalid" dates - like 2008-02-31 - into something meaningful. /gustav >>> andy at minstersystems.co.uk 01-02-2007 17:52 >>> That's odd because here in the UK DateSerial takes year, month, day! How can that be? Also DateSerial and DateAdd give differing results when handling month-end situations. Add 6 months to the last day of August 2007 and DateAdd gives the last day of Feb 2008, whereas DateSerial gives 1st March. You'd need to be aware if that's significant. -- 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] Six Month Review Date: 01/02/07 16:41 I doubt it. I like the DateSerial method because if I am building a date, I don't have to worry abut the format of a date, or international standard. DateSerial is always month, year, day. Just a personal quirk, I guess. Drew -----Original Message----- From: Susan Harkins [mailto:ssharkins at setel.com] Sent: Thursday, February 01, 2007 10:31 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Six Month Review Why? Is it superior to the shorter expression in some way? Susan H. My personal preference is the DateSerial function: DateNxtReview=DateSerial(Month(DateReview)+6,Year(DateReview), Day(DateReview)) From sgoodhall at comcast.net Fri Feb 2 07:39:27 2007 From: sgoodhall at comcast.net (sgoodhall at comcast.net) Date: Fri, 02 Feb 2007 13:39:27 +0000 Subject: [AccessD] Let Excel object live? Message-ID: <020220071339.8722.45C33F0F0009A70400002212220076106404040E080B0101099C@comcast.net> As much as I hate globals, I think this might be a valid use. You could make the Excel Application a global in another module, and it would stay open until you destroy it. You will need to ensure that it gets destroyed before the application terminates, or you may end up with a zombie task. If your user kills the application with the Windows control box, you may not be able to intercept it. Unless you make it visible, it will be hard to get rid of. Regards, Steve Goodhall -------------- Original message ---------------------- From: Sad Der > Hi group, > > I've got a form that opens an Excel template and fills > it with data. > > I've got the following line: > Private objXL As cExcel > > this is a 'form level variabel'. > When the user presses the 'export button' this line is > called (on click event): > Set objXL = New cExcel > In the initiate of this Class I call a function that > checks if there is an Excel instance: > If objExcel Is Nothing Then > Set ExcelObject = > CreateObject("Excel.Application") > Else > 'do nothing, object already alive > End If > > So at this point I have a form. In the properties of > the form there is an objXL. > When I close the form: > DoCmd.Close acForm, Me.Name, acSaveNo > > The Excel object (objXL) is destroyed and thus the > terminate event is triggered. This event closes/kills > the object and Excel itself is closed. > How can I keep this object alive and still close the > form? > > Maybe not closing the form but hiding it? But how do I > hide the form and when opening the form first check if > it's open? > Regards, > > Sander > > > > ________________________________________________________________________________ > ____ > Do you Yahoo!? > Everyone is raving about the all-new Yahoo! Mail beta. > http://new.mail.yahoo.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From dwaters at usinternet.com Fri Feb 2 07:58:09 2007 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 2 Feb 2007 07:58:09 -0600 Subject: [AccessD] Connections and Performance Message-ID: <005b01c746d2$2c59d630$0200a8c0@danwaters> I've read several times that maintaining a connection between a FE and a BE will increase the performance of the FE because it doesn't need to reconnect before transferring data. The connection here would be a bound form connected by a table link to a table in the BE. But, the connection limit for one BE is 5 FE's. So, will maintaining connections on more than 5 FE's reduce performance? Seems logical, but I was wondering if this is correct or is there more to it? Thanks! Dan Waters From jwcolby at colbyconsulting.com Fri Feb 2 08:01:38 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Fri, 2 Feb 2007 09:01:38 -0500 Subject: [AccessD] Connections and Performance In-Reply-To: <005b01c746d2$2c59d630$0200a8c0@danwaters> Message-ID: <018001c746d2$a90e4670$657aa8c0@m6805> >But, the connection limit for one BE is 5 FE's. What does this mean? I have never heard of any such thing. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 02, 2007 8:58 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Connections and Performance I've read several times that maintaining a connection between a FE and a BE will increase the performance of the FE because it doesn't need to reconnect before transferring data. The connection here would be a bound form connected by a table link to a table in the BE. But, the connection limit for one BE is 5 FE's. So, will maintaining connections on more than 5 FE's reduce performance? Seems logical, but I was wondering if this is correct or is there more to it? Thanks! Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From hollisvj at pgdp.usec.com Fri Feb 2 08:06:49 2007 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Fri, 02 Feb 2007 08:06:49 -0600 Subject: [AccessD] Six Month Review Message-ID: <703BDA18A87DFA4CB265A86F42E4178D01E75FA9@c2k3exchange.pgdp.corp.usec.com> Oh, yes, that would be great to have a copy. Virginia ******************* I also agree with Rueben. I made a similar function for my wife's database. She required that patients records be reviewed 90 days from their admit date. I had to make sure the the date didn't fall on a Saturday or Sunday. Let me know if you want a copy of the function so I can dig it up for you. David From hollisvj at pgdp.usec.com Fri Feb 2 08:15:01 2007 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Fri, 02 Feb 2007 08:15:01 -0600 Subject: [AccessD] Fields with Null Message-ID: <703BDA18A87DFA4CB265A86F42E4178D01E75FAA@c2k3exchange.pgdp.corp.usec.com> I am using the below in a query to join 3 field into one. Each field is designated by the description. My problem is I need to check for null fields. The way I have it now, if Comments are null and Remarks has text in it, it leaves a line & starts Remarks in the middle of the field. I need an Iff Null somewhere. Ex: COMMENTS: this is the comments REMARKS: remarks go here INV COMMENTS: Other comments What it is doing: REMARKS: remarks go here INV COMMENTS: Other comments Desc: ("COMMENTS: "+[Comments]) & (Chr(13) & Chr(10) & "REMARKS: "+[Remarks]) & (Chr(13) & Chr(10) & "INV COMMENTS: "+[InvComments]) Virginia From Gustav at cactus.dk Fri Feb 2 08:21:07 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 02 Feb 2007 15:21:07 +0100 Subject: [AccessD] Six Month Review Message-ID: Hi Virginia We use this function: Public Function DateSkipWeekend( _ ByVal datDate As Date, _ Optional ByVal booReverse As Boolean) _ As Date ' Purpose: Calculate first working day equal to or following/preceding datDate. ' Assumes: 5 or 6 working days per week. Weekend is (Saturday and) Sunday. ' Limitation: Does not count for public holidays. ' ' May be freely used and distributed. ' 1999-07-03, Gustav Brock, Cactus Data ApS, Copenhagen Const cintWorkdaysOfWeek As Integer = 5 Dim bytSunday As Byte Dim bytWeekday As Byte bytSunday = WeekDay(vbSunday, vbMonday) bytWeekday = WeekDay(datDate, vbMonday) If bytWeekday > cintWorkdaysOfWeek Then ' Weekend. If booReverse = False Then ' Get following workday. datDate = DateAdd("d", 1 + bytSunday - bytWeekday, datDate) Else ' Get preceding workday. datDate = DateAdd("d", cintWorkdaysOfWeek - bytWeekday, datDate) End If End If DateSkipWeekend = datDate End Function /gustav >>> hollisvj at pgdp.usec.com 02-02-2007 15:06:49 >>> Oh, yes, that would be great to have a copy. Virginia ******************* I also agree with Rueben. I made a similar function for my wife's database. She required that patients records be reviewed 90 days from their admit date. I had to make sure the the date didn't fall on a Saturday or Sunday. Let me know if you want a copy of the function so I can dig it up for you. David From Chester_Kaup at kindermorgan.com Fri Feb 2 08:22:19 2007 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Fri, 2 Feb 2007 08:22:19 -0600 Subject: [AccessD] Fields with Null In-Reply-To: <703BDA18A87DFA4CB265A86F42E4178D01E75FAA@c2k3exchange.pgdp.corp.usec.com> References: <703BDA18A87DFA4CB265A86F42E4178D01E75FAA@c2k3exchange.pgdp.corp.usec.com> Message-ID: How about something like this off the top of my head Desc: ("COMMENTS: "+If([Comments]is null,"",[Comments]) & (Chr(13) & Chr(10) & "REMARKS: "+[Remarks]) & (Chr(13) & Chr(10) & "INV COMMENTS: "+[InvComments]) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis, Virginia Sent: Friday, February 02, 2007 8:15 AM To: accessD at databaseadvisors.com Subject: [AccessD] Fields with Null I am using the below in a query to join 3 field into one. Each field is designated by the description. My problem is I need to check for null fields. The way I have it now, if Comments are null and Remarks has text in it, it leaves a line & starts Remarks in the middle of the field. I need an Iff Null somewhere. Ex: COMMENTS: this is the comments REMARKS: remarks go here INV COMMENTS: Other comments What it is doing: REMARKS: remarks go here INV COMMENTS: Other comments Desc: ("COMMENTS: "+[Comments]) & (Chr(13) & Chr(10) & "REMARKS: "+[Remarks]) & (Chr(13) & Chr(10) & "INV COMMENTS: "+[InvComments]) Virginia -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Fri Feb 2 08:23:26 2007 From: andy at minstersystems.co.uk (Andy Lacey) Date: Fri, 2 Feb 2007 14:23:26 +0000 Subject: [AccessD] Fields with Null Message-ID: <20070202142330.C58EC2B5D66@smtp.nildram.co.uk> Hi Virginia, try Desc: "COMMENTS: " + [Comments] + vbcrlf) & "REMARKS: " + [Remarks] & vbcrlf) & "INV COMMENTS: " + [InvComments] (I prefer the vbcrlf to chr(13) & chr(10) but they do the same) -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "accessD at databaseadvisors.com" Subject: [AccessD] Fields with Null Date: 02/02/07 14:16 I am using the below in a query to join 3 field into one. Each field is designated by the description. My problem is I need to check for null fields. The way I have it now, if Comments are null and Remarks has text in it, it leaves a line & starts Remarks in the middle of the field. I need an Iff Null somewhere. Ex: COMMENTS: this is the comments REMARKS: remarks go here INV COMMENTS: Other comments What it is doing: REMARKS: remarks go here INV COMMENTS: Other comments Desc: ("COMMENTS: "+[Comments]) & (Chr(13) & Chr(10) & "REMARKS: "+[Remarks]) & (Chr(13) & Chr(10) & "INV COMMENTS: "+[InvComments]) Virginia ________________________________________________ Message sent using UebiMiau 2.7.2 From Gustav at cactus.dk Fri Feb 2 08:26:30 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 02 Feb 2007 15:26:30 +0100 Subject: [AccessD] Fields with Null Message-ID: Hi Virginia Modify it like this: Desc: ("COMMENTS: "+[Comments] + Chr(13) & Chr(10)) & ("REMARKS: "+[Remarks] + Chr(13) & Chr(10)) & ("INV COMMENTS: "+ [InvComments]) /gustav >>> hollisvj at pgdp.usec.com 02-02-2007 15:15:01 >>> I am using the below in a query to join 3 field into one. Each field is designated by the description. My problem is I need to check for null fields. The way I have it now, if Comments are null and Remarks has text in it, it leaves a line & starts Remarks in the middle of the field. I need an Iff Null somewhere. Ex: COMMENTS: this is the comments REMARKS: remarks go here INV COMMENTS: Other comments What it is doing: REMARKS: remarks go here INV COMMENTS: Other comments Desc: ("COMMENTS: "+[Comments]) & (Chr(13) & Chr(10) & "REMARKS: "+[Remarks]) & (Chr(13) & Chr(10) & "INV COMMENTS: "+[InvComments]) Virginia From jwcolby at colbyconsulting.com Fri Feb 2 08:37:05 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Fri, 2 Feb 2007 09:37:05 -0500 Subject: [AccessD] Break a float into it's parts Message-ID: <018101c746d7$9f3d82f0$657aa8c0@m6805> How do I get the integer part and the decimal part of a floating point number 23.456 how do I get the 23 how do I get the .456 Using clng for example "rounds" the number up or down which isn't what I want for the integer portion John W. Colby Colby Consulting www.ColbyConsulting.com From reuben at gfconsultants.com Fri Feb 2 08:38:58 2007 From: reuben at gfconsultants.com (Reuben Cummings) Date: Fri, 2 Feb 2007 09:38:58 -0500 Subject: [AccessD] Six Month Review In-Reply-To: <20070201181346.94867.qmail@web80813.mail.mud.yahoo.com> Message-ID: You can do something like this...put in its own function or right where you need it... Select case datepart("w",YourDate) case 1 'Sunday YourDate = DateAdd("d", 1, YourDate) case 7 'Saturday YourDate = DateAdd("d", 2, YourDate) End Select Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of David Mcafee > Sent: Thursday, February 01, 2007 1:14 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Six Month Review > > > I also agree with Rueben. I made a similar function for my wife's > database. > She required that patients records be reviewed 90 days from their > admit date. > I had to make sure the the date didn't fall on a Saturday or Sunday. > > Let me know if you want a copy of the function so I can dig it up for you. > > David > > ----- Original Message ---- > From: Reuben Cummings > To: Access Developers discussion and problem solving > > Sent: Thursday, February 1, 2007 8:26:20 AM > Subject: Re: [AccessD] Six Month Review > > I agree. But you should also make sure the new date falls into your work > week rather than a week end. Check if it's a Saturday or Sunday > and add one > or two days. > > Reuben Cummings > GFC, LLC > 812.523.1017 > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Tesiny, Ed > > Sent: Thursday, February 01, 2007 10:44 AM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Six Month Review > > > > > > I think the DateAdd function would do it...DateAdd("m",6,[DateReview]) > > > > Ed Tesiny > > EdTesiny at oasas.state.ny.us > > > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > > Hollis, Virginia > > > Sent: Thursday, February 01, 2007 10:28 AM > > > To: accessD at databaseadvisors.com > > > Subject: [AccessD] Six Month Review > > > > > > I need to determine the next semi-annual review date. So if the review > > > date is 2/22/2007, the next review should be 8/22/2007. I have > > > DateReview & DateNxtReview fields - how do I get the DateNxtReview to > > > add 6 months to the DateReview field? > > > > > > > > > > > > Virginia > > > > > > -- > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Fri Feb 2 08:44:39 2007 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 2 Feb 2007 08:44:39 -0600 Subject: [AccessD] Connections and Performance In-Reply-To: <10240589.1170425284734.JavaMail.root@sniper34> References: <005b01c746d2$2c59d630$0200a8c0@danwaters> <10240589.1170425284734.JavaMail.root@sniper34> Message-ID: <005f01c746d8$ab3fe4c0$0200a8c0@danwaters> Access has the potential for 8 simultaneous connections, but 3 of them are reserved for the system's use. That leaves five for users. Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Friday, February 02, 2007 8:02 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance >But, the connection limit for one BE is 5 FE's. What does this mean? I have never heard of any such thing. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 02, 2007 8:58 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Connections and Performance I've read several times that maintaining a connection between a FE and a BE will increase the performance of the FE because it doesn't need to reconnect before transferring data. The connection here would be a bound form connected by a table link to a table in the BE. But, the connection limit for one BE is 5 FE's. So, will maintaining connections on more than 5 FE's reduce performance? Seems logical, but I was wondering if this is correct or is there more to it? Thanks! Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From hollisvj at pgdp.usec.com Fri Feb 2 08:46:04 2007 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Fri, 02 Feb 2007 08:46:04 -0600 Subject: [AccessD] Fields with Null Message-ID: <703BDA18A87DFA4CB265A86F42E4178D01E75FB0@c2k3exchange.pgdp.corp.usec.com> Gustav: This one gives me 2 little squares where the COMMENTS would be, and then it puts the REMARKS on the 2nd line. Chester: This gives me an error: Undefinded Function If: Desc: ("COMMENTS: "+If([Comments] Is Null,"",[Comments]) & (Chr(13) & Chr(10) & "REMARKS:"+[Remarks]) & (Chr(13) & Chr(10) & "INV COMMENTS: "+[InvComments])) Andy: First it gives, too many closing parenthesis, so I added some like before ([Comments]. But then it wants a parameter for vbcrlf. Desc: "COMMENTS: " + [Comments] + vbcrlf) & "REMARKS: " + [Remarks] & vbcrlf) & "INV COMMENTS: " + [InvComments] ******************** Hi Virginia Modify it like this: Desc: ("COMMENTS: "+[Comments] + Chr(13) & Chr(10)) & ("REMARKS: "+[Remarks] + Chr(13) & Chr(10)) & ("INV COMMENTS: "+ [InvComments]) /gustav From stuart at lexacorp.com.pg Fri Feb 2 08:46:56 2007 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 03 Feb 2007 00:46:56 +1000 Subject: [AccessD] Connections and Performance In-Reply-To: <018001c746d2$a90e4670$657aa8c0@m6805> References: <005b01c746d2$2c59d630$0200a8c0@danwaters>, <018001c746d2$a90e4670$657aa8c0@m6805> Message-ID: <45C34EE0.12712.678B7CF@stuart.lexacorp.com.pg> ? I regularly run apps with up to 30 FEs accessing the BE with no performance degradation. > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Friday, February 02, 2007 8:58 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Connections and Performance > > I've read several times that maintaining a connection between a FE and a BE > will increase the performance of the FE because it doesn't need to reconnect > before transferring data. The connection here would be a bound form > connected by a table link to a table in the BE. > > But, the connection limit for one BE is 5 FE's. So, will maintaining > connections on more than 5 FE's reduce performance? Seems logical, but I > was wondering if this is correct or is there more to it? > > Thanks! > > Dan Waters -- Stuart From Chester_Kaup at kindermorgan.com Fri Feb 2 08:50:20 2007 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Fri, 2 Feb 2007 08:50:20 -0600 Subject: [AccessD] Fields with Null In-Reply-To: <703BDA18A87DFA4CB265A86F42E4178D01E75FB0@c2k3exchange.pgdp.corp.usec.com> References: <703BDA18A87DFA4CB265A86F42E4178D01E75FB0@c2k3exchange.pgdp.corp.usec.com> Message-ID: That should be IIf not If. I forget switching back and forth between Access and Excel. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis, Virginia Sent: Friday, February 02, 2007 8:46 AM To: accessd at databaseadvisors.com Subject: [AccessD] Fields with Null Gustav: This one gives me 2 little squares where the COMMENTS would be, and then it puts the REMARKS on the 2nd line. Chester: This gives me an error: Undefinded Function If: Desc: ("COMMENTS: "+If([Comments] Is Null,"",[Comments]) & (Chr(13) & Chr(10) & "REMARKS:"+[Remarks]) & (Chr(13) & Chr(10) & "INV COMMENTS: "+[InvComments])) Andy: First it gives, too many closing parenthesis, so I added some like before ([Comments]. But then it wants a parameter for vbcrlf. Desc: "COMMENTS: " + [Comments] + vbcrlf) & "REMARKS: " + [Remarks] & vbcrlf) & "INV COMMENTS: " + [InvComments] ******************** Hi Virginia Modify it like this: Desc: ("COMMENTS: "+[Comments] + Chr(13) & Chr(10)) & ("REMARKS: "+[Remarks] + Chr(13) & Chr(10)) & ("INV COMMENTS: "+ [InvComments]) /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Feb 2 08:51:45 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Fri, 2 Feb 2007 09:51:45 -0500 Subject: [AccessD] Connections and Performance In-Reply-To: <45C34EE0.12712.678B7CF@stuart.lexacorp.com.pg> Message-ID: <018701c746d9$a9891790$657aa8c0@m6805> Likewise, though how do you tell???? John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, February 02, 2007 9:47 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance ? I regularly run apps with up to 30 FEs accessing the BE with no performance degradation. > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Friday, February 02, 2007 8:58 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Connections and Performance > > I've read several times that maintaining a connection between a FE and > a BE will increase the performance of the FE because it doesn't need > to reconnect before transferring data. The connection here would be a > bound form connected by a table link to a table in the BE. > > But, the connection limit for one BE is 5 FE's. So, will maintaining > connections on more than 5 FE's reduce performance? Seems logical, > but I was wondering if this is correct or is there more to it? > > Thanks! > > Dan Waters -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Fri Feb 2 08:56:14 2007 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 03 Feb 2007 00:56:14 +1000 Subject: [AccessD] Break a float into it's parts In-Reply-To: <018101c746d7$9f3d82f0$657aa8c0@m6805> References: <018101c746d7$9f3d82f0$657aa8c0@m6805> Message-ID: <45C3510E.20364.681399B@stuart.lexacorp.com.pg> Use Fix() for the integer part. (Int() will screw up on negative numbers) Use Abs(myNum - Fix(myNum)) to return the decimal part - assuming you always want the decimal part positive. On 2 Feb 2007 at 9:37, JWColby wrote: > How do I get the integer part and the decimal part of a floating point > number > > 23.456 > > how do I get the 23 > how do I get the .456 > > Using clng for example "rounds" the number up or down which isn't what I > want for the integer portion > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- Stuart From hollisvj at pgdp.usec.com Fri Feb 2 08:56:28 2007 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Fri, 02 Feb 2007 08:56:28 -0600 Subject: [AccessD] Fields with Null Message-ID: <703BDA18A87DFA4CB265A86F42E4178D01E75FB4@c2k3exchange.pgdp.corp.usec.com> Ok, getting close. But now it shows the word COMMENTS: at the beginning each field even if there isn't anything entered in the comments. ******************** That should be IIf not If. I forget switching back and forth between Access and Excel. Chester: This gives me an error: Undefinded Function If: Desc: ("COMMENTS: "+If([Comments] Is Null,"",[Comments]) & (Chr(13) & Chr(10) & "REMARKS:"+[Remarks]) & (Chr(13) & Chr(10) & "INV COMMENTS: "+[InvComments])) From Gustav at cactus.dk Fri Feb 2 08:57:17 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 02 Feb 2007 15:57:17 +0100 Subject: [AccessD] Break a float into it's parts Message-ID: Hi John Use Int() as here: ' Retrieve date (integer) part. dblDate = Int(datTime) ' Retrieve time (decimal) part. dblTime = datTime - dblDate ' Assemble date and time part. datTime = CVDate(dblDate + dblTime) /gustav >>> jwcolby at colbyconsulting.com 02-02-2007 15:37:05 >>> How do I get the integer part and the decimal part of a floating point number 23.456 how do I get the 23 how do I get the .456 Using clng for example "rounds" the number up or down which isn't what I want for the integer portion John W. Colby Colby Consulting www.ColbyConsulting.com From stuart at lexacorp.com.pg Fri Feb 2 08:57:46 2007 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 03 Feb 2007 00:57:46 +1000 Subject: [AccessD] Connections and Performance In-Reply-To: <018701c746d9$a9891790$657aa8c0@m6805> References: <45C34EE0.12712.678B7CF@stuart.lexacorp.com.pg>, <018701c746d9$a9891790$657aa8c0@m6805> Message-ID: <45C3516A.8447.682A214@stuart.lexacorp.com.pg> It doesn't seem any faster when only a couple of people are using it :-) On 2 Feb 2007 at 9:51, JWColby wrote: > Likewise, though how do you tell???? > > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan > Sent: Friday, February 02, 2007 9:47 AM To: Access Developers discussion and > problem solving Subject: Re: [AccessD] Connections and Performance > > ? > I regularly run apps with up to 30 FEs accessing the BE with no performance > degradation. > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > > Sent: Friday, February 02, 2007 8:58 AM To: 'Access Developers discussion > > and problem solving' Subject: [AccessD] Connections and Performance > > > > I've read several times that maintaining a connection between a FE and a > > BE will increase the performance of the FE because it doesn't need to > > reconnect before transferring data. The connection here would be a bound > > form connected by a table link to a table in the BE. > > > > But, the connection limit for one BE is 5 FE's. So, will maintaining > > connections on more than 5 FE's reduce performance? Seems logical, but I > > was wondering if this is correct or is there more to it? > > > > Thanks! > > > > Dan Waters > -- > 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 -- Stuart From jwcolby at colbyconsulting.com Fri Feb 2 08:57:49 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Fri, 2 Feb 2007 09:57:49 -0500 Subject: [AccessD] Connections and Performance In-Reply-To: <005f01c746d8$ab3fe4c0$0200a8c0@danwaters> Message-ID: <018801c746da$82ffb740$657aa8c0@m6805> >Access has the potential for 8 simultaneous connections, but 3 of them are reserved for the system's use. But what does this mean? Where does this come from? I have Bes which have 30-40 Fes connected to them, i.e. have "links" to the tables in them. Is this what you are calling a "connection"? In this case I have 30-40 "connections" to my Bes. IIRC Access has a limit of 255 simultaneous connections, but that has to do with the lock file (the LDB). Each FE with a link to ANY number of tables in the BE has a single lock file entry in the LDB. I have no idea what happens if you run a query that uses the "in X:\MyMDB.mdb", but my assumption is that would share the lock if any, and create a lock if none existed already for that FE. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 02, 2007 9:45 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance Access has the potential for 8 simultaneous connections, but 3 of them are reserved for the system's use. That leaves five for users. Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Friday, February 02, 2007 8:02 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance >But, the connection limit for one BE is 5 FE's. What does this mean? I have never heard of any such thing. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 02, 2007 8:58 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Connections and Performance I've read several times that maintaining a connection between a FE and a BE will increase the performance of the FE because it doesn't need to reconnect before transferring data. The connection here would be a bound form connected by a table link to a table in the BE. But, the connection limit for one BE is 5 FE's. So, will maintaining connections on more than 5 FE's reduce performance? Seems logical, but I was wondering if this is correct or is there more to it? Thanks! Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BarbaraRyan at cox.net Fri Feb 2 08:59:06 2007 From: BarbaraRyan at cox.net (Barbara Ryan) Date: Fri, 2 Feb 2007 09:59:06 -0500 Subject: [AccessD] Database size Message-ID: <007301c746da$af607ea0$0a00a8c0@PCRURI35> I just deleted many objects (probably 75 forms, queries, reports) from an Access 2002 database (using Access 2003). I then compiled and compacted. However, the database actually increased in size by 4MG!!! (from 26 to 30MG). What happened? :-( Thanks, Barb Ryan From andy at minstersystems.co.uk Fri Feb 2 08:59:41 2007 From: andy at minstersystems.co.uk (Andy Lacey) Date: Fri, 2 Feb 2007 14:59:41 +0000 Subject: [AccessD] Fields with Null Message-ID: <20070202145945.9F8D02BB98B@smtp.nildram.co.uk> Aah you're using this in SQL aren't you, not code. Vbcrlf is VBA so code-only. Ok, so going back to the chr(13) & chr(10) try: ("COMMENTS: "+[Comments]+(Chr(13) & Chr(10))) & ("REMARKS: "+[Remarks]+(Chr(13) & Chr(10))) & ("INV COMMENTS: "+[InvComments]) -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "accessd at databaseadvisors.com" Subject: [AccessD] Fields with Null Date: 02/02/07 14:47 Gustav: This one gives me 2 little squares where the COMMENTS would be, and then it puts the REMARKS on the 2nd line. Chester: This gives me an error: Undefinded Function If: Desc: ("COMMENTS: "+If([Comments] Is Null,"",[Comments]) & (Chr(13) & Chr(10) & "REMARKS:"+[Remarks]) & (Chr(13) & Chr(10) & "INV COMMENTS: "+[InvComments])) Andy: First it gives, too many closing parenthesis, so I added some like before ([Comments]. But then it wants a parameter for vbcrlf. Desc: "COMMENTS: " + [Comments] + vbcrlf) & "REMARKS: " + [Remarks] & vbcrlf) & "INV COMMENTS: " + [InvComments] ******************** Hi Virginia Modify it like this: Desc: ("COMMENTS: "+[Comments] + Chr(13) & Chr(10)) & ("REMARKS: "+[Remarks] + Chr(13) & Chr(10)) & ("INV COMMENTS: "+ [InvComments]) /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 hollisvj at pgdp.usec.com Fri Feb 2 09:03:02 2007 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Fri, 02 Feb 2007 09:03:02 -0600 Subject: [AccessD] Fields with Null Message-ID: <703BDA18A87DFA4CB265A86F42E4178D01E75FB7@c2k3exchange.pgdp.corp.usec.com> Yes, it is for reports. This works, but same as Chesters - It shows the COMMENTS in each field even if there aren't any comments. It doesn't do that for the REMARKS or INV COMMENTS. ******************* Aah you're using this in SQL aren't you, not code. Vbcrlf is VBA so code-only. Ok, so going back to the chr(13) & chr(10) try: ("COMMENTS: "+[Comments]+(Chr(13) & Chr(10))) & ("REMARKS: "+[Remarks]+(Chr(13) & Chr(10))) & ("INV COMMENTS: "+[InvComments]) -- Andy Lacey http://www.minstersystems.co.uk From Gustav at cactus.dk Fri Feb 2 09:02:55 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 02 Feb 2007 16:02:55 +0100 Subject: [AccessD] Fields with Null Message-ID: Hi Virginia Oops, missed a paranthesis or two: Desc: ("COMMENTS: "+[Comments] + (Chr(13) & Chr(10))) & ("REMARKS: "+[Remarks] + (Chr(13) & Chr(10))) & ("INV COMMENTS: "+ [InvComments]) >>> hollisvj at pgdp.usec.com 02-02-2007 15:46:04 >>> Gustav: This one gives me 2 little squares where the COMMENTS would be, and then it puts the REMARKS on the 2nd line. From rockysmolin at bchacc.com Fri Feb 2 09:04:06 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Fri, 2 Feb 2007 07:04:06 -0800 Subject: [AccessD] Break a float into it's parts In-Reply-To: <018101c746d7$9f3d82f0$657aa8c0@m6805> Message-ID: <006001c746db$62eab6c0$0201a8c0@HAL9005> JC: Will this do it? Dim dblNumber As Double Dim dblIntegerPart As Double Dim dblDecimalPart As Double dblNumber = 23.567 dblIntegerPart = Int(dblNumber) dblDecimalPart = dblNumber - dblIntegerPart MsgBox dblIntegerPart & " - " & dblDecimalPart Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Friday, February 02, 2007 6:37 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Break a float into it's parts How do I get the integer part and the decimal part of a floating point number 23.456 how do I get the 23 how do I get the .456 Using clng for example "rounds" the number up or down which isn't what I want for the integer portion John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.17.19/663 - Release Date: 2/1/2007 2:28 PM From stuart at lexacorp.com.pg Fri Feb 2 09:04:58 2007 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 03 Feb 2007 01:04:58 +1000 Subject: [AccessD] Break a float into it's parts In-Reply-To: <018101c746d7$9f3d82f0$657aa8c0@m6805> References: <018101c746d7$9f3d82f0$657aa8c0@m6805> Message-ID: <45C3531A.4.6893AEC@stuart.lexacorp.com.pg> Use Fix() for the integer part. (Int() will screw up on negative numbers) Use Abs(myNum - Fix(myNum)) to return the decimal part - assuming you always want the decimal part positive. On 2 Feb 2007 at 9:37, JWColby wrote: > How do I get the integer part and the decimal part of a floating point > number > > 23.456 > > how do I get the 23 > how do I get the .456 > > Using clng for example "rounds" the number up or down which isn't what I > want for the integer portion > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- Stuart From mmattys at rochester.rr.com Fri Feb 2 09:07:26 2007 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Fri, 2 Feb 2007 10:07:26 -0500 Subject: [AccessD] Connections and Performance References: <005b01c746d2$2c59d630$0200a8c0@danwaters> <018001c746d2$a90e4670$657aa8c0@m6805> <45C34EE0.12712.678B7CF@stuart.lexacorp.com.pg> Message-ID: <007d01c746db$db47dad0$0202a8c0@default> Heh :) It took me a few minutes, but I found this 'explanation' http://www.crystaltech.com/Newsletters/news2006-08tech.aspx Access vs. MS SQL or MySQL If you are utilizing a Microsoft Access database with your website, one strong recommendation would be to change to SQL or MySQL. Access uses a file server system approach where each user reads and writes directly to the raw data tables, making it ideal for use as a desktop solution at home. However, Access is not optimized for use with a large number of concurrent connections and does not scale for large databases. As more users connect to an Access database, the performance starts to degrade rapidly. Even moderately-trafficked websites can easily have 5 or more users at one time which can cause Access to lock the number of connections. MySQL and SQL, which utilize a more efficient client-server structure, can support hundreds, even thousands of concurrent users for a much more secure and stable level of performance. Since they can be configured to effectively accommodate multiple users with a high level of uptime, reliability and scalability that Access cannot offer, they are ideal for an online production environment. Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "Stuart McLachlan" To: "Access Developers discussion and problem solving" Sent: Friday, February 02, 2007 9:46 AM Subject: Re: [AccessD] Connections and Performance >? > I regularly run apps with up to 30 FEs accessing the BE with no > performance > degradation. > >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >> Sent: Friday, February 02, 2007 8:58 AM >> To: 'Access Developers discussion and problem solving' >> Subject: [AccessD] Connections and Performance >> >> I've read several times that maintaining a connection between a FE and a >> BE >> will increase the performance of the FE because it doesn't need to >> reconnect >> before transferring data. The connection here would be a bound form >> connected by a table link to a table in the BE. >> >> But, the connection limit for one BE is 5 FE's. So, will maintaining >> connections on more than 5 FE's reduce performance? Seems logical, but I >> was wondering if this is correct or is there more to it? >> >> Thanks! >> >> Dan Waters > -- > Stuart > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Feb 2 09:08:16 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Fri, 2 Feb 2007 10:08:16 -0500 Subject: [AccessD] Database size In-Reply-To: <007301c746da$af607ea0$0a00a8c0@PCRURI35> Message-ID: <018a01c746db$f8bd34c0$657aa8c0@m6805> Call Ghostbusters... John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Barbara Ryan Sent: Friday, February 02, 2007 9:59 AM To: Access List Subject: [AccessD] Database size I just deleted many objects (probably 75 forms, queries, reports) from an Access 2002 database (using Access 2003). I then compiled and compacted. However, the database actually increased in size by 4MG!!! (from 26 to 30MG). What happened? :-( Thanks, Barb Ryan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Fri Feb 2 09:09:04 2007 From: andy at minstersystems.co.uk (Andy Lacey) Date: Fri, 2 Feb 2007 15:09:04 +0000 Subject: [AccessD] Fields with Null Message-ID: <20070202150909.5F4A756FC1@smtp.nildram.co.uk> Mmm, doesn't do that for me. Are you sure the Comments field is null? Could it have blank spaces in it somehow? Add this to your query: TestNull: IsNull([Comments]) Do the "empty" Comments records return -1 (ie True)? -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "accessd at databaseadvisors.com" Subject: [AccessD] Fields with Null Date: 02/02/07 15:04 Yes, it is for reports. This works, but same as Chesters - It shows the COMMENTS in each field even if there aren't any comments. It doesn't do that for the REMARKS or INV COMMENTS. ******************* Aah you're using this in SQL aren't you, not code. Vbcrlf is VBA so code-only. Ok, so going back to the chr(13) & chr(10) try: ("COMMENTS: "+[Comments]+(Chr(13) & Chr(10))) & ("REMARKS: "+[Remarks]+(Chr(13) & Chr(10))) & ("INV COMMENTS: "+[InvComments]) -- 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 jwcolby at colbyconsulting.com Fri Feb 2 09:09:18 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Fri, 2 Feb 2007 10:09:18 -0500 Subject: [AccessD] Connections and Performance In-Reply-To: <45C3516A.8447.682A214@stuart.lexacorp.com.pg> Message-ID: <018b01c746dc$1da34fe0$657aa8c0@m6805> LOL< yea but there is so much external to the database (networks, server speed etc.). But yea, and that is why I say the same thing. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, February 02, 2007 9:58 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance It doesn't seem any faster when only a couple of people are using it :-) On 2 Feb 2007 at 9:51, JWColby wrote: > Likewise, though how do you tell???? > > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > McLachlan > Sent: Friday, February 02, 2007 9:47 AM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Connections and > Performance > > ? > I regularly run apps with up to 30 FEs accessing the BE with no > performance degradation. > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan > > Waters > > Sent: Friday, February 02, 2007 8:58 AM To: 'Access Developers > > discussion and problem solving' Subject: [AccessD] Connections and > > Performance > > > > I've read several times that maintaining a connection between a FE > > and a BE will increase the performance of the FE because it doesn't > > need to reconnect before transferring data. The connection here > > would be a bound form connected by a table link to a table in the BE. > > > > But, the connection limit for one BE is 5 FE's. So, will > > maintaining connections on more than 5 FE's reduce performance? > > Seems logical, but I was wondering if this is correct or is there more to it? > > > > Thanks! > > > > Dan Waters > -- > 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 -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Feb 2 09:12:02 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Fri, 2 Feb 2007 10:12:02 -0500 Subject: [AccessD] Break a float into it's parts In-Reply-To: <45C3510E.20364.681399B@stuart.lexacorp.com.pg> Message-ID: <018c01c746dc$84c10460$657aa8c0@m6805> Them's the ones. I could not find FIX to save my soul. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, February 02, 2007 9:56 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Break a float into it's parts Use Fix() for the integer part. (Int() will screw up on negative numbers) Use Abs(myNum - Fix(myNum)) to return the decimal part - assuming you always want the decimal part positive. On 2 Feb 2007 at 9:37, JWColby wrote: > How do I get the integer part and the decimal part of a floating point > number > > 23.456 > > how do I get the 23 > how do I get the .456 > > Using clng for example "rounds" the number up or down which isn't what I > want for the integer portion > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From hollisvj at pgdp.usec.com Fri Feb 2 09:15:29 2007 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Fri, 02 Feb 2007 09:15:29 -0600 Subject: [AccessD] Fields with Null Message-ID: <703BDA18A87DFA4CB265A86F42E4178D01E75FBC@c2k3exchange.pgdp.corp.usec.com> I get -1 **************** Mmm, doesn't do that for me. Are you sure the Comments field is null? Could it have blank spaces in it somehow? Add this to your query: TestNull: IsNull([Comments]) Do the "empty" Comments records return -1 (ie True)? -- Andy Lacey http://www.minstersystems.co.uk From stuart at lexacorp.com.pg Fri Feb 2 09:17:00 2007 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 03 Feb 2007 01:17:00 +1000 Subject: [AccessD] Connections and Performance In-Reply-To: <007d01c746db$db47dad0$0202a8c0@default> References: <005b01c746d2$2c59d630$0200a8c0@danwaters>, <007d01c746db$db47dad0$0202a8c0@default> Message-ID: <45C355EC.4998.6943F1D@stuart.lexacorp.com.pg> On 2 Feb 2007 at 10:07, Michael R Mattys wrote: > Heh :) It took me a few minutes, but I found this 'explanation' > http://www.crystaltech.com/Newsletters/news2006-08tech.aspx ... > However, Access is not optimized for use with a large number of > concurrent connections and does not scale for large databases. As more > users connect to an Access database, the performance starts to degrade > rapidly. Even moderately-trafficked websites can easily have 5 or more > users at one time which can cause Access to lock the number of connections. Alternatively: http://www.2020datashed.com/help/Topics/DataProviders.html The database cannot handle more than 255 concurrent connections. This topic is very complex and many programmers will argue that this number is misleading. Under the right conditions, if lock-type is managed carefully and each of the concurrent users are connected to different resources/tables in the database, and the users' connectivity is properly managed via OLE, then 255 distinct users can be connected simultaneously to the MS Access database. (As discussed in MS Knowledge Base article: 176670.) However the number of available concurrent connections drops significantly when multiple tables are in use by a single connection and if the data is not sufficiently locked while communicating with the data. This number of course does not represent "people"...it represents "users" which is often a different concept altogether. In a web-based application each connection to the database can be opened, queried, and closed within a few milliseconds, the number of "people" which can browse the web site simultaneously is not limited to 255. In conclusion: this particular limitation is a concern but shouldn't worry you unless your web site consistently receives a significant amount of traffic. Perhaps more than a few thousand visitors per day. Sean Nicholson of www.informit.com (Article) has this to say: "Microsoft lists 255 as the maximum number of concurrent users to an Access database. This means that only 255 users can actively interact with the database at the same time. This might be theoretically true in Microsoft's labs under the ideal circumstances, but the reality of working with an Access database is that performance falls off sharply when more than 25 or 30 concurrent requests are made. This means that although Access remains suitable for small Web applications, those that experience growth where they are experiencing more than 25 concurrent connections should consider upgrading to a more robust database." -- Stuart From hollisvj at pgdp.usec.com Fri Feb 2 09:18:10 2007 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Fri, 02 Feb 2007 09:18:10 -0600 Subject: [AccessD] Fields with Null Message-ID: <703BDA18A87DFA4CB265A86F42E4178D01E75FBD@c2k3exchange.pgdp.corp.usec.com> TaaDaaaa that did it. Thanks guys. Virginia ******************* Hi Virginia Oops, missed a paranthesis or two: Desc: ("COMMENTS: "+[Comments] + (Chr(13) & Chr(10))) & ("REMARKS: "+[Remarks] + (Chr(13) & Chr(10))) & ("INV COMMENTS: "+ [InvComments]) From BarbaraRyan at cox.net Fri Feb 2 09:19:26 2007 From: BarbaraRyan at cox.net (Barbara Ryan) Date: Fri, 2 Feb 2007 10:19:26 -0500 Subject: [AccessD] Database size References: <018a01c746db$f8bd34c0$657aa8c0@m6805> Message-ID: <009b01c746dd$86a58660$0a00a8c0@PCRURI35> What's their number? :-) ----- Original Message ----- From: "JWColby" To: "'Access Developers discussion and problem solving'" Sent: Friday, February 02, 2007 10:08 AM Subject: Re: [AccessD] Database size > Call Ghostbusters... > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Barbara Ryan > Sent: Friday, February 02, 2007 9:59 AM > To: Access List > Subject: [AccessD] Database size > > I just deleted many objects (probably 75 forms, queries, reports) from an > Access 2002 database (using Access 2003). I then compiled and compacted. > However, the database actually increased in size by 4MG!!! (from 26 to > 30MG). > > What happened? :-( > > Thanks, > Barb Ryan > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From stuart at lexacorp.com.pg Fri Feb 2 09:23:25 2007 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 03 Feb 2007 01:23:25 +1000 Subject: [AccessD] Database size In-Reply-To: <009b01c746dd$86a58660$0a00a8c0@PCRURI35> References: <018a01c746db$f8bd34c0$657aa8c0@m6805>, <009b01c746dd$86a58660$0a00a8c0@PCRURI35> Message-ID: <45C3576D.19415.69A1BE8@stuart.lexacorp.com.pg> 44678-2878377 :-) On 2 Feb 2007 at 10:19, Barbara Ryan wrote: > What's their number? :-) > > ----- Original Message ----- > From: "JWColby" > To: "'Access Developers discussion and problem solving'" > > Sent: Friday, February 02, 2007 10:08 AM > Subject: Re: [AccessD] Database size > > > > Call Ghostbusters... > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Barbara Ryan > > Sent: Friday, February 02, 2007 9:59 AM To: Access List Subject: [AccessD] > > Database size > > > > I just deleted many objects (probably 75 forms, queries, reports) from an > > Access 2002 database (using Access 2003). I then compiled and compacted. > > However, the database actually increased in size by 4MG!!! (from 26 to > > 30MG). > > > > What happened? :-( > > > > Thanks, > > Barb Ryan > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- Stuart From Gustav at cactus.dk Fri Feb 2 09:26:17 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 02 Feb 2007 16:26:17 +0100 Subject: [AccessD] Break a float into it's parts Message-ID: Hi John Stuart is right, you should have negative numbers in mind as well. However, what is more important is, that you cannot subtract a Double from an Integer reliably, indeed not to retrieve the digits. Thus, CDec must be used: dblNum = 23.01456 lngInt = Fix(dblNum) dblDec = CDec(dblNum) - lngInt Wrap in Abs() if you wish to strip signs. /gustav >>> Gustav at cactus.dk 02-02-2007 15:57:17 >>> Hi John Use Int() as here: ' Retrieve date (integer) part. dblDate = Int(datTime) ' Retrieve time (decimal) part. dblTime = datTime - dblDate ' Assemble date and time part. datTime = CVDate(dblDate + dblTime) /gustav >>> jwcolby at colbyconsulting.com 02-02-2007 15:37:05 >>> How do I get the integer part and the decimal part of a floating point number 23.456 how do I get the 23 how do I get the .456 Using clng for example "rounds" the number up or down which isn't what I want for the integer portion John W. Colby Colby Consulting www.ColbyConsulting.com From jwcolby at colbyconsulting.com Fri Feb 2 09:28:48 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Fri, 2 Feb 2007 10:28:48 -0500 Subject: [AccessD] Connections and Performance In-Reply-To: <45C355EC.4998.6943F1D@stuart.lexacorp.com.pg> Message-ID: <018d01c746de$d7e0dab0$657aa8c0@m6805> >This means that although Access remains suitable for small Web applications, those that experience growth where they are experiencing more than 25 concurrent connections should consider upgrading to a more robust database." And what lab does he use for his perspective? I tried to go read the article but just got the main page and no further. It would be useful to see real numbers with understandable (to use programmers) test methods. I have never seen any such thing, nor do I have the time right now to build such a test system. I might have to though since my applications are extremely complex and this might be something to watch. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, February 02, 2007 10:17 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance On 2 Feb 2007 at 10:07, Michael R Mattys wrote: > Heh :) It took me a few minutes, but I found this 'explanation' > http://www.crystaltech.com/Newsletters/news2006-08tech.aspx ... > However, Access is not optimized for use with a large number of > concurrent connections and does not scale for large databases. As more > users connect to an Access database, the performance starts to degrade > rapidly. Even moderately-trafficked websites can easily have 5 or more > users at one time which can cause Access to lock the number of connections. Alternatively: http://www.2020datashed.com/help/Topics/DataProviders.html The database cannot handle more than 255 concurrent connections. This topic is very complex and many programmers will argue that this number is misleading. Under the right conditions, if lock-type is managed carefully and each of the concurrent users are connected to different resources/tables in the database, and the users' connectivity is properly managed via OLE, then 255 distinct users can be connected simultaneously to the MS Access database. (As discussed in MS Knowledge Base article: 176670.) However the number of available concurrent connections drops significantly when multiple tables are in use by a single connection and if the data is not sufficiently locked while communicating with the data. This number of course does not represent "people"...it represents "users" which is often a different concept altogether. In a web-based application each connection to the database can be opened, queried, and closed within a few milliseconds, the number of "people" which can browse the web site simultaneously is not limited to 255. In conclusion: this particular limitation is a concern but shouldn't worry you unless your web site consistently receives a significant amount of traffic. Perhaps more than a few thousand visitors per day. Sean Nicholson of www.informit.com (Article) has this to say: "Microsoft lists 255 as the maximum number of concurrent users to an Access database. This means that only 255 users can actively interact with the database at the same time. This might be theoretically true in Microsoft's labs under the ideal circumstances, but the reality of working with an Access database is that performance falls off sharply when more than 25 or 30 concurrent requests are made. This means that although Access remains suitable for small Web applications, those that experience growth where they are experiencing more than 25 concurrent connections should consider upgrading to a more robust database." -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Fri Feb 2 09:26:27 2007 From: DWUTKA at marlow.com (Drew Wutka) Date: Fri, 2 Feb 2007 09:26:27 -0600 Subject: [AccessD] Connections and Performance Message-ID: <17724746D360394AA3BFE5B8D40A9C1B01A03536@marlow_main2.marlow.ii-vi.net> Where are you getting these numbers. Access can have up to 255 connections. Drew -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Friday, February 02, 2007 8:45 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance Access has the potential for 8 simultaneous connections, but 3 of them are reserved for the system's use. That leaves five for users. Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Friday, February 02, 2007 8:02 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance >But, the connection limit for one BE is 5 FE's. What does this mean? I have never heard of any such thing. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 02, 2007 8:58 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Connections and Performance I've read several times that maintaining a connection between a FE and a BE will increase the performance of the FE because it doesn't need to reconnect before transferring data. The connection here would be a bound form connected by a table link to a table in the BE. But, the connection limit for one BE is 5 FE's. So, will maintaining connections on more than 5 FE's reduce performance? Seems logical, but I was wondering if this is correct or is there more to it? Thanks! Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Fri Feb 2 09:38:50 2007 From: john at winhaven.net (John Bartow) Date: Fri, 2 Feb 2007 09:38:50 -0600 Subject: [AccessD] Database size In-Reply-To: <007301c746da$af607ea0$0a00a8c0@PCRURI35> References: <007301c746da$af607ea0$0a00a8c0@PCRURI35> Message-ID: <01ad01c746e0$3cc2da90$39360c0a@AceInTheHole> Hi Barb, Try the /decompile switch Then close it - open it and compact Also - I'm not sure if 2002 DB could not have Unicode or not but 2003 DB will so that could have been the culprit too. Unicode can essentially double the size of the db. Anyone else know for sure whether 2002 forced Unicode? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Barbara Ryan Sent: Friday, February 02, 2007 8:59 AM To: Access List Subject: [AccessD] Database size I just deleted many objects (probably 75 forms, queries, reports) from an Access 2002 database (using Access 2003). I then compiled and compacted. However, the database actually increased in size by 4MG!!! (from 26 to 30MG). What happened? :-( Thanks, Barb Ryan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.17.12/653 - Release Date: 1/26/2007 11:11 AM -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.17.12/653 - Release Date: 1/26/2007 11:11 AM From DWUTKA at marlow.com Fri Feb 2 09:36:38 2007 From: DWUTKA at marlow.com (Drew Wutka) Date: Fri, 2 Feb 2007 09:36:38 -0600 Subject: [AccessD] Connections and Performance Message-ID: <17724746D360394AA3BFE5B8D40A9C1B01A03545@marlow_main2.marlow.ii-vi.net> Actually, a website using an Access backend can handle far more then a thousand users a day. You would need a HUGE upload capability to task an Access .mdb running behind a website. Both our website AND our Intranet are packed with .mdb driven things. In fact, our Intranet main page is completely built from a database. That is everyone's home page here, we have roughly 150 users. Our website gets several hundred unique visitors a day. Drew -----Original Message----- From: Stuart McLachlan [mailto:stuart at lexacorp.com.pg] Sent: Friday, February 02, 2007 9:17 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance On 2 Feb 2007 at 10:07, Michael R Mattys wrote: > Heh :) It took me a few minutes, but I found this 'explanation' > http://www.crystaltech.com/Newsletters/news2006-08tech.aspx ... > However, Access is not optimized for use with a large number of > concurrent connections and does not scale for large databases. As more > users connect to an Access database, the performance starts to degrade > rapidly. Even moderately-trafficked websites can easily have 5 or more > users at one time which can cause Access to lock the number of connections. Alternatively: http://www.2020datashed.com/help/Topics/DataProviders.html The database cannot handle more than 255 concurrent connections. This topic is very complex and many programmers will argue that this number is misleading. Under the right conditions, if lock-type is managed carefully and each of the concurrent users are connected to different resources/tables in the database, and the users' connectivity is properly managed via OLE, then 255 distinct users can be connected simultaneously to the MS Access database. (As discussed in MS Knowledge Base article: 176670.) However the number of available concurrent connections drops significantly when multiple tables are in use by a single connection and if the data is not sufficiently locked while communicating with the data. This number of course does not represent "people"...it represents "users" which is often a different concept altogether. In a web-based application each connection to the database can be opened, queried, and closed within a few milliseconds, the number of "people" which can browse the web site simultaneously is not limited to 255. In conclusion: this particular limitation is a concern but shouldn't worry you unless your web site consistently receives a significant amount of traffic. Perhaps more than a few thousand visitors per day. Sean Nicholson of www.informit.com (Article) has this to say: "Microsoft lists 255 as the maximum number of concurrent users to an Access database. This means that only 255 users can actively interact with the database at the same time. This might be theoretically true in Microsoft's labs under the ideal circumstances, but the reality of working with an Access database is that performance falls off sharply when more than 25 or 30 concurrent requests are made. This means that although Access remains suitable for small Web applications, those that experience growth where they are experiencing more than 25 concurrent connections should consider upgrading to a more robust database." -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BarbaraRyan at cox.net Fri Feb 2 09:42:16 2007 From: BarbaraRyan at cox.net (Barbara Ryan) Date: Fri, 2 Feb 2007 10:42:16 -0500 Subject: [AccessD] Database size References: <018a01c746db$f8bd34c0$657aa8c0@m6805>, <009b01c746dd$86a58660$0a00a8c0@PCRURI35> <45C3576D.19415.69A1BE8@stuart.lexacorp.com.pg> Message-ID: <00cd01c746e0$b72f0880$0a00a8c0@PCRURI35> Stuart... thanks for the number :-) Actually, I found the answer at http://support.microsoft.com/kb/810415 Barb ----- Original Message ----- From: "Stuart McLachlan" To: "Access Developers discussion and problem solving" Sent: Friday, February 02, 2007 10:23 AM Subject: Re: [AccessD] Database size > 44678-2878377 :-) > > On 2 Feb 2007 at 10:19, Barbara Ryan wrote: > >> What's their number? :-) >> >> ----- Original Message ----- >> From: "JWColby" >> To: "'Access Developers discussion and problem solving'" >> >> Sent: Friday, February 02, 2007 10:08 AM >> Subject: Re: [AccessD] Database size >> >> >> > Call Ghostbusters... >> > >> > John W. Colby >> > Colby Consulting >> > www.ColbyConsulting.com >> > >> > -----Original Message----- >> > From: accessd-bounces at databaseadvisors.com >> > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Barbara Ryan >> > Sent: Friday, February 02, 2007 9:59 AM To: Access List Subject: >> > [AccessD] >> > Database size >> > >> > I just deleted many objects (probably 75 forms, queries, reports) from >> > an >> > Access 2002 database (using Access 2003). I then compiled and >> > compacted. >> > However, the database actually increased in size by 4MG!!! (from 26 to >> > 30MG). >> > >> > What happened? :-( >> > >> > Thanks, >> > Barb Ryan >> > -- >> > AccessD mailing list >> > AccessD at databaseadvisors.com >> > http://databaseadvisors.com/mailman/listinfo/accessd >> > Website: http://www.databaseadvisors.com >> > >> > -- >> > AccessD mailing list >> > AccessD at databaseadvisors.com >> > http://databaseadvisors.com/mailman/listinfo/accessd >> > Website: http://www.databaseadvisors.com >> > >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > -- > Stuart > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Fri Feb 2 09:39:31 2007 From: DWUTKA at marlow.com (Drew Wutka) Date: Fri, 2 Feb 2007 09:39:31 -0600 Subject: [AccessD] Connections and Performance Message-ID: <17724746D360394AA3BFE5B8D40A9C1B01A03549@marlow_main2.marlow.ii-vi.net> As soon as I see an article saying Access is bad behind a webserver, I just roll my eyes. In essence, an .mdb placed physically on a webserver is going to crush a SQL server running on another machine, because the data is being read locally, in essentially the same way a SQL server is going to read it's own local data, so you completely drop the time it takes to send and receive the data across a NIC. (On top of no time loss for transaction logs, etc.) Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Friday, February 02, 2007 9:29 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance >This means that although Access remains suitable for small Web applications, those that experience growth where they are experiencing more than 25 concurrent connections should consider upgrading to a more robust database." And what lab does he use for his perspective? I tried to go read the article but just got the main page and no further. It would be useful to see real numbers with understandable (to use programmers) test methods. I have never seen any such thing, nor do I have the time right now to build such a test system. I might have to though since my applications are extremely complex and this might be something to watch. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, February 02, 2007 10:17 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance On 2 Feb 2007 at 10:07, Michael R Mattys wrote: > Heh :) It took me a few minutes, but I found this 'explanation' > http://www.crystaltech.com/Newsletters/news2006-08tech.aspx ... > However, Access is not optimized for use with a large number of > concurrent connections and does not scale for large databases. As more > users connect to an Access database, the performance starts to degrade > rapidly. Even moderately-trafficked websites can easily have 5 or more > users at one time which can cause Access to lock the number of connections. Alternatively: http://www.2020datashed.com/help/Topics/DataProviders.html The database cannot handle more than 255 concurrent connections. This topic is very complex and many programmers will argue that this number is misleading. Under the right conditions, if lock-type is managed carefully and each of the concurrent users are connected to different resources/tables in the database, and the users' connectivity is properly managed via OLE, then 255 distinct users can be connected simultaneously to the MS Access database. (As discussed in MS Knowledge Base article: 176670.) However the number of available concurrent connections drops significantly when multiple tables are in use by a single connection and if the data is not sufficiently locked while communicating with the data. This number of course does not represent "people"...it represents "users" which is often a different concept altogether. In a web-based application each connection to the database can be opened, queried, and closed within a few milliseconds, the number of "people" which can browse the web site simultaneously is not limited to 255. In conclusion: this particular limitation is a concern but shouldn't worry you unless your web site consistently receives a significant amount of traffic. Perhaps more than a few thousand visitors per day. Sean Nicholson of www.informit.com (Article) has this to say: "Microsoft lists 255 as the maximum number of concurrent users to an Access database. This means that only 255 users can actively interact with the database at the same time. This might be theoretically true in Microsoft's labs under the ideal circumstances, but the reality of working with an Access database is that performance falls off sharply when more than 25 or 30 concurrent requests are made. This means that although Access remains suitable for small Web applications, those that experience growth where they are experiencing more than 25 concurrent connections should consider upgrading to a more robust database." -- 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 cfoust at infostatsystems.com Fri Feb 2 10:19:32 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 2 Feb 2007 08:19:32 -0800 Subject: [AccessD] Connections and Performance In-Reply-To: <005b01c746d2$2c59d630$0200a8c0@danwaters> References: <005b01c746d2$2c59d630$0200a8c0@danwaters> Message-ID: I've certainly had more than 5 FEs connected to a single BE. The back end doesn't keep track of connections in Access. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 02, 2007 5:58 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Connections and Performance I've read several times that maintaining a connection between a FE and a BE will increase the performance of the FE because it doesn't need to reconnect before transferring data. The connection here would be a bound form connected by a table link to a table in the BE. But, the connection limit for one BE is 5 FE's. So, will maintaining connections on more than 5 FE's reduce performance? Seems logical, but I was wondering if this is correct or is there more to it? Thanks! Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri Feb 2 10:27:23 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 2 Feb 2007 08:27:23 -0800 Subject: [AccessD] Connections and Performance In-Reply-To: <17724746D360394AA3BFE5B8D40A9C1B01A03549@marlow_main2.marlow.ii-vi.net> References: <17724746D360394AA3BFE5B8D40A9C1B01A03549@marlow_main2.marlow.ii-vi.net> Message-ID: Interesting, Drew. Have you written an article on that? It sounds like useful knowledge. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, February 02, 2007 7:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance As soon as I see an article saying Access is bad behind a webserver, I just roll my eyes. In essence, an .mdb placed physically on a webserver is going to crush a SQL server running on another machine, because the data is being read locally, in essentially the same way a SQL server is going to read it's own local data, so you completely drop the time it takes to send and receive the data across a NIC. (On top of no time loss for transaction logs, etc.) Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Friday, February 02, 2007 9:29 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance >This means that although Access remains suitable for small Web applications, those that experience growth where they are experiencing more than 25 concurrent connections should consider upgrading to a more robust database." And what lab does he use for his perspective? I tried to go read the article but just got the main page and no further. It would be useful to see real numbers with understandable (to use programmers) test methods. I have never seen any such thing, nor do I have the time right now to build such a test system. I might have to though since my applications are extremely complex and this might be something to watch. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, February 02, 2007 10:17 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance On 2 Feb 2007 at 10:07, Michael R Mattys wrote: > Heh :) It took me a few minutes, but I found this 'explanation' > http://www.crystaltech.com/Newsletters/news2006-08tech.aspx ... > However, Access is not optimized for use with a large number of > concurrent connections and does not scale for large databases. As more > users connect to an Access database, the performance starts to degrade > rapidly. Even moderately-trafficked websites can easily have 5 or more > users at one time which can cause Access to lock the number of connections. Alternatively: http://www.2020datashed.com/help/Topics/DataProviders.html The database cannot handle more than 255 concurrent connections. This topic is very complex and many programmers will argue that this number is misleading. Under the right conditions, if lock-type is managed carefully and each of the concurrent users are connected to different resources/tables in the database, and the users' connectivity is properly managed via OLE, then 255 distinct users can be connected simultaneously to the MS Access database. (As discussed in MS Knowledge Base article: 176670.) However the number of available concurrent connections drops significantly when multiple tables are in use by a single connection and if the data is not sufficiently locked while communicating with the data. This number of course does not represent "people"...it represents "users" which is often a different concept altogether. In a web-based application each connection to the database can be opened, queried, and closed within a few milliseconds, the number of "people" which can browse the web site simultaneously is not limited to 255. In conclusion: this particular limitation is a concern but shouldn't worry you unless your web site consistently receives a significant amount of traffic. Perhaps more than a few thousand visitors per day. Sean Nicholson of www.informit.com (Article) has this to say: "Microsoft lists 255 as the maximum number of concurrent users to an Access database. This means that only 255 users can actively interact with the database at the same time. This might be theoretically true in Microsoft's labs under the ideal circumstances, but the reality of working with an Access database is that performance falls off sharply when more than 25 or 30 concurrent requests are made. This means that although Access remains suitable for small Web applications, those that experience growth where they are experiencing more than 25 concurrent connections should consider upgrading to a more robust database." -- 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Feb 2 10:31:06 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Fri, 2 Feb 2007 11:31:06 -0500 Subject: [AccessD] Connections and Performance In-Reply-To: Message-ID: <019d01c746e7$8a42c5d0$657aa8c0@m6805> No, but the lock file does (LDB). I have never really figured out how. If you open it in a text editor it is mostly empty. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, February 02, 2007 11:20 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance I've certainly had more than 5 FEs connected to a single BE. The back end doesn't keep track of connections in Access. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 02, 2007 5:58 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Connections and Performance I've read several times that maintaining a connection between a FE and a BE will increase the performance of the FE because it doesn't need to reconnect before transferring data. The connection here would be a bound form connected by a table link to a table in the BE. But, the connection limit for one BE is 5 FE's. So, will maintaining connections on more than 5 FE's reduce performance? Seems logical, but I was wondering if this is correct or is there more to it? Thanks! Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From askolits at ot.com Fri Feb 2 11:07:51 2007 From: askolits at ot.com (John Skolits) Date: Fri, 2 Feb 2007 12:07:51 -0500 Subject: [AccessD] Quickly - Getting FileSize and date. In-Reply-To: <019d01c746e7$8a42c5d0$657aa8c0@m6805> Message-ID: <008f01c746ec$afa65c10$660a0a0a@LaptopXP> What do I use to get a file's date time and size? Is it the FileSystemObject? John From jimdettman at verizon.net Fri Feb 2 11:15:30 2007 From: jimdettman at verizon.net (Jim Dettman) Date: Fri, 02 Feb 2007 12:15:30 -0500 Subject: [AccessD] Connections and Performance In-Reply-To: <018001c746d2$a90e4670$657aa8c0@m6805> Message-ID: <014501c746ed$be3a8c50$8abea8c0@XPS> John (and all), I think where some of the confusion might be coming in is when talking about a JET backend vs. a MSDE one, the latter of which was throttled to five users. More connections could be made, but it slowed down quite a bit. A JET based BE can of course support up to 255 connections and I've seen 200+ (reporting only app). For a typical read/write app, 30 to 40 is about the most you would want to go, but it is still capable of going right up to 255. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Friday, February 02, 2007 9:02 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance >But, the connection limit for one BE is 5 FE's. What does this mean? I have never heard of any such thing. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 02, 2007 8:58 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Connections and Performance I've read several times that maintaining a connection between a FE and a BE will increase the performance of the FE because it doesn't need to reconnect before transferring data. The connection here would be a bound form connected by a table link to a table in the BE. But, the connection limit for one BE is 5 FE's. So, will maintaining connections on more than 5 FE's reduce performance? Seems logical, but I was wondering if this is correct or is there more to it? Thanks! Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Fri Feb 2 11:24:34 2007 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Fri, 2 Feb 2007 12:24:34 -0500 Subject: [AccessD] Quickly - Getting FileSize and date. Message-ID: <34C8A2AB1EF3564CB0D64DB6AFFDD5C201200FB1@xlivmbx35.aig.com> You can get the file size in plain vanilla VBA: FileLen("Some Path to some file"), and the date is retrieved with FileDateTime("some path"). This is in Access XP (2002), and possibly in Access 2000. 97 has FileLen, but I don't recall if it also had FileDateTime. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Friday, February 02, 2007 12:08 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Quickly - Getting FileSize and date. What do I use to get a file's date time and size? Is it the FileSystemObject? John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at verizon.net Fri Feb 2 11:23:44 2007 From: jimdettman at verizon.net (Jim Dettman) Date: Fri, 02 Feb 2007 12:23:44 -0500 Subject: [AccessD] Database size In-Reply-To: <007301c746da$af607ea0$0a00a8c0@PCRURI35> Message-ID: <014601c746ee$e539a6f0$8abea8c0@XPS> Barb, Use /decompile. You've got some dead code in there. I'm not sure if that will clean it out or not though. Part of the explanation is that when using different versions, Access actually makes a copy of code, then converts the copy leaving the original intact. This happened most notably with A95. You could delete MSysModules without problem (MSysModules2 was the live version). The other part is that often the connection between objects and the VBA project breaks leaving orphaned code in the database and nothing gets cleaned up in the compact like it should. At worst, you may have to import everything into a fresh MDB container. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Barbara Ryan Sent: Friday, February 02, 2007 9:59 AM To: Access List Subject: [AccessD] Database size I just deleted many objects (probably 75 forms, queries, reports) from an Access 2002 database (using Access 2003). I then compiled and compacted. However, the database actually increased in size by 4MG!!! (from 26 to 30MG). What happened? :-( Thanks, Barb Ryan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jim.Hale at FleetPride.com Fri Feb 2 11:24:32 2007 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Fri, 2 Feb 2007 11:24:32 -0600 Subject: [AccessD] Let Excel object live? Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DE27D@corp-es01.fleetpride.com> How about if you put your code in a module and call it from a form. Jim Hale -----Original Message----- From: Sad Der [mailto:accessd666 at yahoo.com] Sent: Friday, February 02, 2007 4:36 AM To: Acces User Group Subject: [AccessD] Let Excel object live? Hi group, I've got a form that opens an Excel template and fills it with data. I've got the following line: Private objXL As cExcel this is a 'form level variabel'. When the user presses the 'export button' this line is called (on click event): Set objXL = New cExcel In the initiate of this Class I call a function that checks if there is an Excel instance: If objExcel Is Nothing Then Set ExcelObject = CreateObject("Excel.Application") Else 'do nothing, object already alive End If So at this point I have a form. In the properties of the form there is an objXL. When I close the form: DoCmd.Close acForm, Me.Name, acSaveNo The Excel object (objXL) is destroyed and thus the terminate event is triggered. This event closes/kills the object and Excel itself is closed. How can I keep this object alive and still close the form? Maybe not closing the form but hiding it? But how do I hide the form and when opening the form first check if it's open? Regards, Sander ____________________________________________________________________________ ________ Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.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 DWUTKA at marlow.com Fri Feb 2 11:24:17 2007 From: DWUTKA at marlow.com (Drew Wutka) Date: Fri, 2 Feb 2007 11:24:17 -0600 Subject: [AccessD] Connections and Performance Message-ID: <17724746D360394AA3BFE5B8D40A9C1B01A035BB@marlow_main2.marlow.ii-vi.net> Never bothered to test it, to have empirical data. It is just obvious. For example, our new website (which isn't up yet), has a navigation process that puts a nav bar at the top of every page. On our current site, that bar is built strictly from a hack into FrontPages navigation structure files. (We use Frontpage to edit the site...well, some people do, I do most stuff in just plain ol HTML.) It's essentially a csv file. The new site has a mix, it gets most stuff from the FrontPage source, but then it also adds in all the products. There are three product pages, a page that shows all the product types, a page that shows all the products of that type, and a page that shows info on just a single product. So, to FrontPage, the Navigation is three pages, but to the user, there are lots of pages based on the content that is stored within the database. So the new site now builds the navigation bars from a mix of the FP navigation, and the product database (which handles everything from the products on the web, the glossary, shopping cart, etc.). It is doing this for every page you load, and it loads as fast as your browser can handle it. The product database is local to the webserver (though not visible on the web itself), so everything that occurs to the db is being done locally by the webserver itself. If you had a SQL Server running on Machine X, and then had an identical machine 'Y' (same processor, hard drives, memory, etc). Which would be faster? Running a query on Machine Y, that is getting data from a SQL Server on Machine X, or running a query (against identical data tables) on Machine Y that is getting data from an Access MDB on Machine Y? There is nothing special about a server side DB that makes it more powerful then Jet at doing the same thing. The only true difference is that with a server side system you have a dedicated system retrieving data. But the way that machine is retrieving data is essentially the same way Jet does. It has to read it's indexes, find the data, put it together, and send it out. Jet does the same thing (though maybe not exactly the same way). Over a network, Jet is pulling chunks of a file across the network, which does take longer then letting a server side system just send the resulting data back. Since most mid to large apps in Access are used in a network environment, we, as Access developers, get hammered by this shortcoming of a end user db system. Putting the .mdb on a webserver, with a web interface, however, is functionally identical to putting the data into a server side db, with the exception of roleback/transaction capabilities. Drew -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Friday, February 02, 2007 10:27 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance Interesting, Drew. Have you written an article on that? It sounds like useful knowledge. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, February 02, 2007 7:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance As soon as I see an article saying Access is bad behind a webserver, I just roll my eyes. In essence, an .mdb placed physically on a webserver is going to crush a SQL server running on another machine, because the data is being read locally, in essentially the same way a SQL server is going to read it's own local data, so you completely drop the time it takes to send and receive the data across a NIC. (On top of no time loss for transaction logs, etc.) Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Friday, February 02, 2007 9:29 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance >This means that although Access remains suitable for small Web applications, those that experience growth where they are experiencing more than 25 concurrent connections should consider upgrading to a more robust database." And what lab does he use for his perspective? I tried to go read the article but just got the main page and no further. It would be useful to see real numbers with understandable (to use programmers) test methods. I have never seen any such thing, nor do I have the time right now to build such a test system. I might have to though since my applications are extremely complex and this might be something to watch. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, February 02, 2007 10:17 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance On 2 Feb 2007 at 10:07, Michael R Mattys wrote: > Heh :) It took me a few minutes, but I found this 'explanation' > http://www.crystaltech.com/Newsletters/news2006-08tech.aspx ... > However, Access is not optimized for use with a large number of > concurrent connections and does not scale for large databases. As more > users connect to an Access database, the performance starts to degrade > rapidly. Even moderately-trafficked websites can easily have 5 or more > users at one time which can cause Access to lock the number of connections. Alternatively: http://www.2020datashed.com/help/Topics/DataProviders.html The database cannot handle more than 255 concurrent connections. This topic is very complex and many programmers will argue that this number is misleading. Under the right conditions, if lock-type is managed carefully and each of the concurrent users are connected to different resources/tables in the database, and the users' connectivity is properly managed via OLE, then 255 distinct users can be connected simultaneously to the MS Access database. (As discussed in MS Knowledge Base article: 176670.) However the number of available concurrent connections drops significantly when multiple tables are in use by a single connection and if the data is not sufficiently locked while communicating with the data. This number of course does not represent "people"...it represents "users" which is often a different concept altogether. In a web-based application each connection to the database can be opened, queried, and closed within a few milliseconds, the number of "people" which can browse the web site simultaneously is not limited to 255. In conclusion: this particular limitation is a concern but shouldn't worry you unless your web site consistently receives a significant amount of traffic. Perhaps more than a few thousand visitors per day. Sean Nicholson of www.informit.com (Article) has this to say: "Microsoft lists 255 as the maximum number of concurrent users to an Access database. This means that only 255 users can actively interact with the database at the same time. This might be theoretically true in Microsoft's labs under the ideal circumstances, but the reality of working with an Access database is that performance falls off sharply when more than 25 or 30 concurrent requests are made. This means that although Access remains suitable for small Web applications, those that experience growth where they are experiencing more than 25 concurrent connections should consider upgrading to a more robust database." -- 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Fri Feb 2 11:32:20 2007 From: DWUTKA at marlow.com (Drew Wutka) Date: Fri, 2 Feb 2007 11:32:20 -0600 Subject: [AccessD] Connections and Performance Message-ID: <17724746D360394AA3BFE5B8D40A9C1B01A035C7@marlow_main2.marlow.ii-vi.net> The Jet LDB white paper explains it. Essentially the .ldb is going to be 64 bytes per user. Each chunk is 32 bytes for the machine name, 32 bytes for the Access User name. Then there is a chunk of bytes in the .mdb itself, 2 or 4(not sure about Jet 4.0, I haven't seen a white paper on it) byte chunks, and there are 255 of them. (The max number of users). The first chunk (in the .mdb) relates to the first 64 byte chunk in the .ldb. The smaller chunks in the .mdb are changed based on the users activity. Actual record locks on the database are stored in the .ldb too, but in a very odd way. When I first read about it, I thought it was the oddest thing. Basically, the max size of an .ldb is going to be 16k. (255*64). However, there is a 'virtual' size of the .ldb. If Jet needs to lock something in the 25th megabyte of an .mdb, it creates a lock on that position in the 'virtual .ldb', even though the .ldb isn't that big, file read/write code can lock bits outside a file's actual space. This prevents any read/write locks on the actual .mdb. Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Friday, February 02, 2007 10:31 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance No, but the lock file does (LDB). I have never really figured out how. If you open it in a text editor it is mostly empty. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, February 02, 2007 11:20 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance I've certainly had more than 5 FEs connected to a single BE. The back end doesn't keep track of connections in Access. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 02, 2007 5:58 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Connections and Performance I've read several times that maintaining a connection between a FE and a BE will increase the performance of the FE because it doesn't need to reconnect before transferring data. The connection here would be a bound form connected by a table link to a table in the BE. But, the connection limit for one BE is 5 FE's. So, will maintaining connections on more than 5 FE's reduce performance? Seems logical, but I was wondering if this is correct or is there more to it? Thanks! Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Fri Feb 2 11:47:08 2007 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Fri, 2 Feb 2007 11:47:08 -0600 Subject: [AccessD] Let Excel object live? Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DE27E@corp-es01.fleetpride.com> Even making it visible often won't kill it (you click close but it remains in the task manager). You have to be careful about destroying ALL object variables or Excel will probably stick around. Jim Hale -----Original Message----- From: sgoodhall at comcast.net [mailto:sgoodhall at comcast.net] Sent: Friday, February 02, 2007 7:39 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Let Excel object live? As much as I hate globals, I think this might be a valid use. You could make the Excel Application a global in another module, and it would stay open until you destroy it. You will need to ensure that it gets destroyed before the application terminates, or you may end up with a zombie task. If your user kills the application with the Windows control box, you may not be able to intercept it. Unless you make it visible, it will be hard to get rid of. Regards, Steve Goodhall -------------- Original message ---------------------- From: Sad Der > Hi group, > > I've got a form that opens an Excel template and fills > it with data. > > I've got the following line: > Private objXL As cExcel > > this is a 'form level variabel'. > When the user presses the 'export button' this line is > called (on click event): > Set objXL = New cExcel > In the initiate of this Class I call a function that > checks if there is an Excel instance: > If objExcel Is Nothing Then > Set ExcelObject = > CreateObject("Excel.Application") > Else > 'do nothing, object already alive > End If > > So at this point I have a form. In the properties of > the form there is an objXL. > When I close the form: > DoCmd.Close acForm, Me.Name, acSaveNo > > The Excel object (objXL) is destroyed and thus the > terminate event is triggered. This event closes/kills > the object and Excel itself is closed. > How can I keep this object alive and still close the > form? > > Maybe not closing the form but hiding it? But how do I > hide the form and when opening the form first check if > it's open? > Regards, > > Sander > > > > ____________________________________________________________________________ ____ > ____ > Do you Yahoo!? > Everyone is raving about the all-new Yahoo! Mail beta. > http://new.mail.yahoo.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 jwcolby at colbyconsulting.com Fri Feb 2 11:56:07 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Fri, 2 Feb 2007 12:56:07 -0500 Subject: [AccessD] Connections and Performance In-Reply-To: <17724746D360394AA3BFE5B8D40A9C1B01A035C7@marlow_main2.marlow.ii-vi.net> Message-ID: <01b001c746f3$6bbca1b0$657aa8c0@m6805> >Actual record locks on the database are stored in the .ldb too, but in a very odd way. When I first read about it, I thought it was the oddest thing. Basically, the max size of an .ldb is going to be 16k. (255*64). However, there is a 'virtual' size of the .ldb. If Jet needs to lock something in the 25th megabyte of an .mdb, it creates a lock on that position in the 'virtual .ldb', even though the .ldb isn't that big, file read/write code can lock bits outside a file's actual space. This prevents any read/write locks on the actual .mdb. Well you lost me down around the "virtual" part. If the "virtual" part is in the LDB file then it has to be inside of the physical LDB file. The OS will not allow writes to physical disk space that is not assigned to that file. If it did allow that then you would get the possibility of overwriting data in areas of the disk that the file doesn't own. The FAT system (and the others as well) specifically assigns sectors to files using a chaining mechanism. While it is possible to work around that fat system using low level calls to the bios, I doubt seriously that Access is doing that. Are you saying that it grows and shrinks the LDB file, placing data out past the first 16 KB, and that area holds the lock info?? I always just assumed that the lock file said "this user is ACTIVELY accessing the MDB RIGHT NOW", and the actual locking info was stored inside of the MDB somewhere. It isn't apparent why an LDB file is even required. The info stored in the LDB could just as easily be stored inside the MDB as well. The only reason I can see is to allow external applications to see who is in the database without having to poke around in the MDB file itself. Your explanation was uhhh... Virtual I suppose. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, February 02, 2007 12:32 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance The Jet LDB white paper explains it. Essentially the .ldb is going to be 64 bytes per user. Each chunk is 32 bytes for the machine name, 32 bytes for the Access User name. Then there is a chunk of bytes in the .mdb itself, 2 or 4(not sure about Jet 4.0, I haven't seen a white paper on it) byte chunks, and there are 255 of them. (The max number of users). The first chunk (in the .mdb) relates to the first 64 byte chunk in the .ldb. The smaller chunks in the .mdb are changed based on the users activity. Actual record locks on the database are stored in the .ldb too, but in a very odd way. When I first read about it, I thought it was the oddest thing. Basically, the max size of an .ldb is going to be 16k. (255*64). However, there is a 'virtual' size of the .ldb. If Jet needs to lock something in the 25th megabyte of an .mdb, it creates a lock on that position in the 'virtual .ldb', even though the .ldb isn't that big, file read/write code can lock bits outside a file's actual space. This prevents any read/write locks on the actual .mdb. Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Friday, February 02, 2007 10:31 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance No, but the lock file does (LDB). I have never really figured out how. If you open it in a text editor it is mostly empty. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, February 02, 2007 11:20 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance I've certainly had more than 5 FEs connected to a single BE. The back end doesn't keep track of connections in Access. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 02, 2007 5:58 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Connections and Performance I've read several times that maintaining a connection between a FE and a BE will increase the performance of the FE because it doesn't need to reconnect before transferring data. The connection here would be a bound form connected by a table link to a table in the BE. But, the connection limit for one BE is 5 FE's. So, will maintaining connections on more than 5 FE's reduce performance? Seems logical, but I was wondering if this is correct or is there more to it? Thanks! Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Fri Feb 2 12:07:54 2007 From: DWUTKA at marlow.com (Drew Wutka) Date: Fri, 2 Feb 2007 12:07:54 -0600 Subject: [AccessD] Connections and Performance Message-ID: <17724746D360394AA3BFE5B8D40A9C1B01A035DE@marlow_main2.marlow.ii-vi.net> A portion of the Jet whitepaper (for 3.51 and earlier, which they would kick one out for 4.0. A lot is the same, but there are some changes (like the inability to see who actually is suspect in the db.)). " Extended byte range locks are locks placed outside the physical boundaries of a file - no data is ever physically locked. An example of this is placing a lock at 10 million hex for a file that has a physical size of only 64 bytes. In other words, a lock is virtually placed at a location that does not exist on the hard disk. This type of locking is used because extended byte range locks are not limited by the size of the physical file, allowing for locking algorithms that would not otherwise be possible. Also, placing locks inside a data file would prevent other users from reading that data. In the early dBASE days, a user could place a lock on a record located in the data file that prevented everyone from reading that data - when printing a report, for example." So, even though the .ldb will never get larger then 16k, it is having locks placed on bytes that don't exist on it. Lots of locks. So when jet goes to read block X from an .mdb, it can read it whether there is a write lock on it or not. Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Friday, February 02, 2007 11:56 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance >Actual record locks on the database are stored in the .ldb too, but in a very odd way. When I first read about it, I thought it was the oddest thing. Basically, the max size of an .ldb is going to be 16k. (255*64). However, there is a 'virtual' size of the .ldb. If Jet needs to lock something in the 25th megabyte of an .mdb, it creates a lock on that position in the 'virtual .ldb', even though the .ldb isn't that big, file read/write code can lock bits outside a file's actual space. This prevents any read/write locks on the actual .mdb. Well you lost me down around the "virtual" part. If the "virtual" part is in the LDB file then it has to be inside of the physical LDB file. The OS will not allow writes to physical disk space that is not assigned to that file. If it did allow that then you would get the possibility of overwriting data in areas of the disk that the file doesn't own. The FAT system (and the others as well) specifically assigns sectors to files using a chaining mechanism. While it is possible to work around that fat system using low level calls to the bios, I doubt seriously that Access is doing that. Are you saying that it grows and shrinks the LDB file, placing data out past the first 16 KB, and that area holds the lock info?? I always just assumed that the lock file said "this user is ACTIVELY accessing the MDB RIGHT NOW", and the actual locking info was stored inside of the MDB somewhere. It isn't apparent why an LDB file is even required. The info stored in the LDB could just as easily be stored inside the MDB as well. The only reason I can see is to allow external applications to see who is in the database without having to poke around in the MDB file itself. Your explanation was uhhh... Virtual I suppose. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, February 02, 2007 12:32 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance The Jet LDB white paper explains it. Essentially the .ldb is going to be 64 bytes per user. Each chunk is 32 bytes for the machine name, 32 bytes for the Access User name. Then there is a chunk of bytes in the .mdb itself, 2 or 4(not sure about Jet 4.0, I haven't seen a white paper on it) byte chunks, and there are 255 of them. (The max number of users). The first chunk (in the .mdb) relates to the first 64 byte chunk in the .ldb. The smaller chunks in the .mdb are changed based on the users activity. Actual record locks on the database are stored in the .ldb too, but in a very odd way. When I first read about it, I thought it was the oddest thing. Basically, the max size of an .ldb is going to be 16k. (255*64). However, there is a 'virtual' size of the .ldb. If Jet needs to lock something in the 25th megabyte of an .mdb, it creates a lock on that position in the 'virtual .ldb', even though the .ldb isn't that big, file read/write code can lock bits outside a file's actual space. This prevents any read/write locks on the actual .mdb. Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Friday, February 02, 2007 10:31 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance No, but the lock file does (LDB). I have never really figured out how. If you open it in a text editor it is mostly empty. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, February 02, 2007 11:20 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance I've certainly had more than 5 FEs connected to a single BE. The back end doesn't keep track of connections in Access. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 02, 2007 5:58 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Connections and Performance I've read several times that maintaining a connection between a FE and a BE will increase the performance of the FE because it doesn't need to reconnect before transferring data. The connection here would be a bound form connected by a table link to a table in the BE. But, the connection limit for one BE is 5 FE's. So, will maintaining connections on more than 5 FE's reduce performance? Seems logical, but I was wondering if this is correct or is there more to it? Thanks! Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 verizon.net Fri Feb 2 12:11:45 2007 From: jimdettman at verizon.net (Jim Dettman) Date: Fri, 02 Feb 2007 13:11:45 -0500 Subject: [AccessD] Connections and Performance In-Reply-To: <01b001c746f3$6bbca1b0$657aa8c0@m6805> Message-ID: <016101c746f5$9a01a780$8abea8c0@XPS> John, Locks are never written to disk. They only exist in the OS/NOS where the file resides. <> Basically, the .LDB file is a place holder for the placing of locks. Yes, it does physically store the user name and machine name and it will never grow physically bigger then 16K, but that info could have been easily placed in the MDB file in the database header page. It's real purpose is to simply exist allowing JET to place locks on it. The locks placed are place on byte ranges that extended beyond the physical limits of the file. Ie. The file will never be bigger then 16K, but nothing stops me from taking a lock out on byte 1,000,000,000. By placing locks on the LDB file and not the MDB, there is never any interference from another process when a process wants to read/write to the database file. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Friday, February 02, 2007 12:56 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance >Actual record locks on the database are stored in the .ldb too, but in a very odd way. When I first read about it, I thought it was the oddest thing. Basically, the max size of an .ldb is going to be 16k. (255*64). However, there is a 'virtual' size of the .ldb. If Jet needs to lock something in the 25th megabyte of an .mdb, it creates a lock on that position in the 'virtual .ldb', even though the .ldb isn't that big, file read/write code can lock bits outside a file's actual space. This prevents any read/write locks on the actual .mdb. Well you lost me down around the "virtual" part. If the "virtual" part is in the LDB file then it has to be inside of the physical LDB file. The OS will not allow writes to physical disk space that is not assigned to that file. If it did allow that then you would get the possibility of overwriting data in areas of the disk that the file doesn't own. The FAT system (and the others as well) specifically assigns sectors to files using a chaining mechanism. While it is possible to work around that fat system using low level calls to the bios, I doubt seriously that Access is doing that. Are you saying that it grows and shrinks the LDB file, placing data out past the first 16 KB, and that area holds the lock info?? I always just assumed that the lock file said "this user is ACTIVELY accessing the MDB RIGHT NOW", and the actual locking info was stored inside of the MDB somewhere. It isn't apparent why an LDB file is even required. The info stored in the LDB could just as easily be stored inside the MDB as well. The only reason I can see is to allow external applications to see who is in the database without having to poke around in the MDB file itself. Your explanation was uhhh... Virtual I suppose. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, February 02, 2007 12:32 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance The Jet LDB white paper explains it. Essentially the .ldb is going to be 64 bytes per user. Each chunk is 32 bytes for the machine name, 32 bytes for the Access User name. Then there is a chunk of bytes in the .mdb itself, 2 or 4(not sure about Jet 4.0, I haven't seen a white paper on it) byte chunks, and there are 255 of them. (The max number of users). The first chunk (in the .mdb) relates to the first 64 byte chunk in the .ldb. The smaller chunks in the .mdb are changed based on the users activity. Actual record locks on the database are stored in the .ldb too, but in a very odd way. When I first read about it, I thought it was the oddest thing. Basically, the max size of an .ldb is going to be 16k. (255*64). However, there is a 'virtual' size of the .ldb. If Jet needs to lock something in the 25th megabyte of an .mdb, it creates a lock on that position in the 'virtual .ldb', even though the .ldb isn't that big, file read/write code can lock bits outside a file's actual space. This prevents any read/write locks on the actual .mdb. Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Friday, February 02, 2007 10:31 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance No, but the lock file does (LDB). I have never really figured out how. If you open it in a text editor it is mostly empty. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, February 02, 2007 11:20 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance I've certainly had more than 5 FEs connected to a single BE. The back end doesn't keep track of connections in Access. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 02, 2007 5:58 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Connections and Performance I've read several times that maintaining a connection between a FE and a BE will increase the performance of the FE because it doesn't need to reconnect before transferring data. The connection here would be a bound form connected by a table link to a table in the BE. But, the connection limit for one BE is 5 FE's. So, will maintaining connections on more than 5 FE's reduce performance? Seems logical, but I was wondering if this is correct or is there more to it? Thanks! Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From prodevmg at yahoo.com Fri Feb 2 12:14:21 2007 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Fri, 2 Feb 2007 10:14:21 -0800 (PST) Subject: [AccessD] Access=>Termial Server=>SQL Server Message-ID: <857533.98557.qm@web33105.mail.mud.yahoo.com> I have an access app that runs on a terminal server and uses SQL Server as a back end. It runs slow alot. I was wondering if there were any tips on performance? May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us ____________________________________________________________________________________ Never miss an email again! Yahoo! Toolbar alerts you the instant new Mail arrives. http://tools.search.yahoo.com/toolbar/features/mail/ From martyconnelly at shaw.ca Fri Feb 2 12:03:13 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 02 Feb 2007 10:03:13 -0800 Subject: [AccessD] Connections and Performance In-Reply-To: References: <005b01c746d2$2c59d630$0200a8c0@danwaters> Message-ID: <45C37CE1.8080008@shaw.ca> I think someone is mixing up SQL 2000 MSDE backends and Access. This MSDE 2000 speed governor restriction to 5 users before degradation is removed in SQL Express. See below, you may have to mouseover and click to see hidden yellow lettering http://betav.com/files/content/whitepapers/msde_files/msde.htm The SQL Server team came up with new technology to limit the performance of their ?free? versions of SQL Server so developers would not be tempted to use MSDE in place of the unbridled versions. They named this technology ?Target Benchmark Users? or TBU for short. TBU keeps all MSDE versions in check. Of course, the Standard and Enterprise editions do not activate TBU governing. Unlike the SQL Server 6.5 thread-based governing used in the past, TBU is not prone to the blocking or other operational artifacts that troubled earlier versions. TBU is ?delay-based?. That is, if the number of concurrent threads is greater than the TBU setting, a variable delay is induced to cap performance. The length of time (in milliseconds) to delay the current operation is calculated based on the number of concurrent worker threads. As more operations (threads) are started, more delay occurs. MSDE?s TBU limit is 8. That means that after 8 (plus 6 to account for system threads) active threads are started, a delay is added to each operation?and this delay gets increasingly longer for each additional thread that?s started. TBU imposes a deterministic, gradual throttle on performance. This provides a more natural, less intrusive way to limit performance without unwanted side effects. TBU does not limit the number of user connections. That is, (almost) any number of connections can be established to MSDE?limited only by your license and system (RAM) resources. However, each of these connections can execute an operation and enable threads?but only when they are ?active?. In other words, if a connection is dormant (the operator is at lunch or simply not doing anything), it?s not running a thread on the server and TBU governing is not impacted. You can also execute multiple operations from a single ?user?. For example, a single application can establish multiple connections?each creating its own thread. This means a single user can consume all of the TBU threads all by itself. The Visual Basic IDE also makes connections on its own. For example, the Data View window or the Data Environment Designer both create one or more connections at design time. When you use a data source control such as the ADODC or one generated by the Data Object Wizard, additional connections (perhaps several) can be opened and threads started. Clearly, a single application can exhaust the limited number of threads made available by MSDE. If you suspect a performance problem when using MSDE, you can use a number of techniques to determine if the TBU governor is causing the delay. The simplest way is to count the number of concurrent users?SELECT COUNT (*) FROM SYSPROCESSES WHERE STATUS <> ?sleeping? will do the trick. If this returns a value less than 14 (8 + 6), then the delay is likely caused by other factors?not the governor. I have used the DBCC method to do this Charlotte Foust wrote: >I've certainly had more than 5 FEs connected to a single BE. The back >end doesn't keep track of connections in Access. > >Charlotte Foust > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >Sent: Friday, February 02, 2007 5:58 AM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] Connections and Performance > >I've read several times that maintaining a connection between a FE and a >BE will increase the performance of the FE because it doesn't need to >reconnect before transferring data. The connection here would be a >bound form connected by a table link to a table in the BE. > >But, the connection limit for one BE is 5 FE's. So, will maintaining >connections on more than 5 FE's reduce performance? Seems logical, but >I was wondering if this is correct or is there more to it? > >Thanks! > >Dan Waters > >-- >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 jwcolby at colbyconsulting.com Fri Feb 2 12:36:24 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Fri, 2 Feb 2007 13:36:24 -0500 Subject: [AccessD] Connections and Performance In-Reply-To: <17724746D360394AA3BFE5B8D40A9C1B01A035DE@marlow_main2.marlow.ii-vi.net> Message-ID: <01ba01c746f9$0c3b6a90$657aa8c0@m6805> OK, I understand now. The lock is not physical data in the file, but rather using the OS' locking mechanisms. Getting a "lock" is literally asking the OS for a lock and getting a lock object from the OS. Is the lock in question a lock on the MDB or a lock on the LDB? So the lock Is placed on the LDB but is interpreted by jet as being on the equivalent byte range in the MDB? John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, February 02, 2007 1:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance A portion of the Jet whitepaper (for 3.51 and earlier, which they would kick one out for 4.0. A lot is the same, but there are some changes (like the inability to see who actually is suspect in the db.)). " Extended byte range locks are locks placed outside the physical boundaries of a file - no data is ever physically locked. An example of this is placing a lock at 10 million hex for a file that has a physical size of only 64 bytes. In other words, a lock is virtually placed at a location that does not exist on the hard disk. This type of locking is used because extended byte range locks are not limited by the size of the physical file, allowing for locking algorithms that would not otherwise be possible. Also, placing locks inside a data file would prevent other users from reading that data. In the early dBASE days, a user could place a lock on a record located in the data file that prevented everyone from reading that data - when printing a report, for example." So, even though the .ldb will never get larger then 16k, it is having locks placed on bytes that don't exist on it. Lots of locks. So when jet goes to read block X from an .mdb, it can read it whether there is a write lock on it or not. Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Friday, February 02, 2007 11:56 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance >Actual record locks on the database are stored in the .ldb too, but in >a very odd way. When I first read about it, I thought it was the oddest thing. Basically, the max size of an .ldb is going to be 16k. (255*64). However, there is a 'virtual' size of the .ldb. If Jet needs to lock something in the 25th megabyte of an .mdb, it creates a lock on that position in the 'virtual .ldb', even though the .ldb isn't that big, file read/write code can lock bits outside a file's actual space. This prevents any read/write locks on the actual .mdb. Well you lost me down around the "virtual" part. If the "virtual" part is in the LDB file then it has to be inside of the physical LDB file. The OS will not allow writes to physical disk space that is not assigned to that file. If it did allow that then you would get the possibility of overwriting data in areas of the disk that the file doesn't own. The FAT system (and the others as well) specifically assigns sectors to files using a chaining mechanism. While it is possible to work around that fat system using low level calls to the bios, I doubt seriously that Access is doing that. Are you saying that it grows and shrinks the LDB file, placing data out past the first 16 KB, and that area holds the lock info?? I always just assumed that the lock file said "this user is ACTIVELY accessing the MDB RIGHT NOW", and the actual locking info was stored inside of the MDB somewhere. It isn't apparent why an LDB file is even required. The info stored in the LDB could just as easily be stored inside the MDB as well. The only reason I can see is to allow external applications to see who is in the database without having to poke around in the MDB file itself. Your explanation was uhhh... Virtual I suppose. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, February 02, 2007 12:32 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance The Jet LDB white paper explains it. Essentially the .ldb is going to be 64 bytes per user. Each chunk is 32 bytes for the machine name, 32 bytes for the Access User name. Then there is a chunk of bytes in the .mdb itself, 2 or 4(not sure about Jet 4.0, I haven't seen a white paper on it) byte chunks, and there are 255 of them. (The max number of users). The first chunk (in the .mdb) relates to the first 64 byte chunk in the .ldb. The smaller chunks in the .mdb are changed based on the users activity. Actual record locks on the database are stored in the .ldb too, but in a very odd way. When I first read about it, I thought it was the oddest thing. Basically, the max size of an .ldb is going to be 16k. (255*64). However, there is a 'virtual' size of the .ldb. If Jet needs to lock something in the 25th megabyte of an .mdb, it creates a lock on that position in the 'virtual .ldb', even though the .ldb isn't that big, file read/write code can lock bits outside a file's actual space. This prevents any read/write locks on the actual .mdb. Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Friday, February 02, 2007 10:31 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance No, but the lock file does (LDB). I have never really figured out how. If you open it in a text editor it is mostly empty. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, February 02, 2007 11:20 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance I've certainly had more than 5 FEs connected to a single BE. The back end doesn't keep track of connections in Access. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 02, 2007 5:58 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Connections and Performance I've read several times that maintaining a connection between a FE and a BE will increase the performance of the FE because it doesn't need to reconnect before transferring data. The connection here would be a bound form connected by a table link to a table in the BE. But, the connection limit for one BE is 5 FE's. So, will maintaining connections on more than 5 FE's reduce performance? Seems logical, but I was wondering if this is correct or is there more to it? Thanks! Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Fri Feb 2 12:42:48 2007 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Fri, 2 Feb 2007 13:42:48 -0500 Subject: [AccessD] Let Excel object live? Message-ID: <34C8A2AB1EF3564CB0D64DB6AFFDD5C201200FBB@xlivmbx35.aig.com> Can I ask *why* you want to keep the Excel object live? What are you going to do to it after the form closes? Whatever you want to do, I doubt that it would be at all difficult to simply reopen the Excel file after you form closes, and (quite correctly) destroys the Excel object. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Friday, February 02, 2007 12:25 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Let Excel object live? How about if you put your code in a module and call it from a form. Jim Hale -----Original Message----- From: Sad Der [mailto:accessd666 at yahoo.com] Sent: Friday, February 02, 2007 4:36 AM To: Acces User Group Subject: [AccessD] Let Excel object live? Hi group, I've got a form that opens an Excel template and fills it with data. I've got the following line: Private objXL As cExcel this is a 'form level variabel'. When the user presses the 'export button' this line is called (on click event): Set objXL = New cExcel In the initiate of this Class I call a function that checks if there is an Excel instance: If objExcel Is Nothing Then Set ExcelObject = CreateObject("Excel.Application") Else 'do nothing, object already alive End If So at this point I have a form. In the properties of the form there is an objXL. When I close the form: DoCmd.Close acForm, Me.Name, acSaveNo The Excel object (objXL) is destroyed and thus the terminate event is triggered. This event closes/kills the object and Excel itself is closed. How can I keep this object alive and still close the form? Maybe not closing the form but hiding it? But how do I hide the form and when opening the form first check if it's open? Regards, Sander ____________________________________________________________________________ ________ Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.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 From DWUTKA at marlow.com Fri Feb 2 12:49:34 2007 From: DWUTKA at marlow.com (Drew Wutka) Date: Fri, 2 Feb 2007 12:49:34 -0600 Subject: [AccessD] Connections and Performance Message-ID: <17724746D360394AA3BFE5B8D40A9C1B01A035F9@marlow_main2.marlow.ii-vi.net> The lock is on the .ldb, and yes, the lock is on the .ldb so Jet can see it, but not be prevented from reading that part of the .mdb. Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Friday, February 02, 2007 12:36 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance OK, I understand now. The lock is not physical data in the file, but rather using the OS' locking mechanisms. Getting a "lock" is literally asking the OS for a lock and getting a lock object from the OS. Is the lock in question a lock on the MDB or a lock on the LDB? So the lock Is placed on the LDB but is interpreted by jet as being on the equivalent byte range in the MDB? John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, February 02, 2007 1:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance A portion of the Jet whitepaper (for 3.51 and earlier, which they would kick one out for 4.0. A lot is the same, but there are some changes (like the inability to see who actually is suspect in the db.)). " Extended byte range locks are locks placed outside the physical boundaries of a file - no data is ever physically locked. An example of this is placing a lock at 10 million hex for a file that has a physical size of only 64 bytes. In other words, a lock is virtually placed at a location that does not exist on the hard disk. This type of locking is used because extended byte range locks are not limited by the size of the physical file, allowing for locking algorithms that would not otherwise be possible. Also, placing locks inside a data file would prevent other users from reading that data. In the early dBASE days, a user could place a lock on a record located in the data file that prevented everyone from reading that data - when printing a report, for example." So, even though the .ldb will never get larger then 16k, it is having locks placed on bytes that don't exist on it. Lots of locks. So when jet goes to read block X from an .mdb, it can read it whether there is a write lock on it or not. Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Friday, February 02, 2007 11:56 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance >Actual record locks on the database are stored in the .ldb too, but in >a very odd way. When I first read about it, I thought it was the oddest thing. Basically, the max size of an .ldb is going to be 16k. (255*64). However, there is a 'virtual' size of the .ldb. If Jet needs to lock something in the 25th megabyte of an .mdb, it creates a lock on that position in the 'virtual .ldb', even though the .ldb isn't that big, file read/write code can lock bits outside a file's actual space. This prevents any read/write locks on the actual .mdb. Well you lost me down around the "virtual" part. If the "virtual" part is in the LDB file then it has to be inside of the physical LDB file. The OS will not allow writes to physical disk space that is not assigned to that file. If it did allow that then you would get the possibility of overwriting data in areas of the disk that the file doesn't own. The FAT system (and the others as well) specifically assigns sectors to files using a chaining mechanism. While it is possible to work around that fat system using low level calls to the bios, I doubt seriously that Access is doing that. Are you saying that it grows and shrinks the LDB file, placing data out past the first 16 KB, and that area holds the lock info?? I always just assumed that the lock file said "this user is ACTIVELY accessing the MDB RIGHT NOW", and the actual locking info was stored inside of the MDB somewhere. It isn't apparent why an LDB file is even required. The info stored in the LDB could just as easily be stored inside the MDB as well. The only reason I can see is to allow external applications to see who is in the database without having to poke around in the MDB file itself. Your explanation was uhhh... Virtual I suppose. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, February 02, 2007 12:32 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance The Jet LDB white paper explains it. Essentially the .ldb is going to be 64 bytes per user. Each chunk is 32 bytes for the machine name, 32 bytes for the Access User name. Then there is a chunk of bytes in the .mdb itself, 2 or 4(not sure about Jet 4.0, I haven't seen a white paper on it) byte chunks, and there are 255 of them. (The max number of users). The first chunk (in the .mdb) relates to the first 64 byte chunk in the .ldb. The smaller chunks in the .mdb are changed based on the users activity. Actual record locks on the database are stored in the .ldb too, but in a very odd way. When I first read about it, I thought it was the oddest thing. Basically, the max size of an .ldb is going to be 16k. (255*64). However, there is a 'virtual' size of the .ldb. If Jet needs to lock something in the 25th megabyte of an .mdb, it creates a lock on that position in the 'virtual .ldb', even though the .ldb isn't that big, file read/write code can lock bits outside a file's actual space. This prevents any read/write locks on the actual .mdb. Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Friday, February 02, 2007 10:31 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance No, but the lock file does (LDB). I have never really figured out how. If you open it in a text editor it is mostly empty. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, February 02, 2007 11:20 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance I've certainly had more than 5 FEs connected to a single BE. The back end doesn't keep track of connections in Access. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 02, 2007 5:58 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Connections and Performance I've read several times that maintaining a connection between a FE and a BE will increase the performance of the FE because it doesn't need to reconnect before transferring data. The connection here would be a bound form connected by a table link to a table in the BE. But, the connection limit for one BE is 5 FE's. So, will maintaining connections on more than 5 FE's reduce performance? Seems logical, but I was wondering if this is correct or is there more to it? Thanks! Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Fri Feb 2 13:05:31 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 02 Feb 2007 11:05:31 -0800 Subject: [AccessD] OT Friday homour In-Reply-To: <34C8A2AB1EF3564CB0D64DB6AFFDD5C201200FBB@xlivmbx35.aig.com> Message-ID: <0JCU00F1FNLSCR10@l-daemon> Hi All: So you think English is easy: 1) The bandage was wound around the wound. 2) The farm was used to produce produce. 3) The dump was so full that it had to refuse more refuse. 4) We must polish the Polish furniture. 5) He could lead if he would get the lead out. 6) The soldier decided to desert his dessert in the desert. 7) Since there is no time like the present, he thought it was time to present the present 8) A bass was painted on the head of the bass drum. 9) When shot at, the dove dove into the bushes. 10) I did not object to the object. 11) The insurance was invalid for the invalid. 12) There was a row among the oarsmen about how to row 13) They were too close to the door to close it. 14) The buck does funny things when the does are present. 15) A seamstress and a sewer fell down into a sewer line. 16) To help with planting, the farmer taught his sow to sow. 17) The wind was too strong to wind the sail 18) Upon seeing the tear in the painting I shed a tear. 19) I had to subject the subject to a series of tests. 20) How can I intimate this to my most intimate friend? ...and another... A Mountie pulled a car over on the Trans Canada about 2 miles West of Winnipeg. When the Mountie asked the driver why he was speeding, the driver answered that he was a magician and a juggler and he was on his way to Brandon to do a show that night at the Shrine Circus and didn't want to be late. The Mountie told the driver he was fascinated by juggling, and if the driver would do a little juggling for him then he wouldn't give him a ticket. The driver told the Mountie that he had sent all of his equipment on ahead and didn't have anything to juggle. The Mountie told him that he had some flares in the trunk of his patrol car and asked if he could juggle them. The juggler stated that he could, so the Mountie got three flares, lit them and handed them to the juggler. While the man was doing his juggling act, a car pulled in behind the patrol car. A drunk, good old boy, driving through from Alberta got out and watched the performance briefly. He then went over to the patrol car, opened the rear door and got in. The Mountie observed him doing this and went over to the patrol car, opened the door and asked the drunk what he thought he was doing. The drunk replied, "You might as well take me to jail, cause there's no friggin` way I can pass that test." Have a good weekend Jim From accessd at shaw.ca Fri Feb 2 13:23:16 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 02 Feb 2007 11:23:16 -0800 Subject: [AccessD] Fields with Null In-Reply-To: <703BDA18A87DFA4CB265A86F42E4178D01E75FBC@c2k3exchange.pgdp.corp.usec.com> Message-ID: <0JCU00LO5OFEOE20@l-daemon> Comment... -1 is TRUE in Access. In MS SQL, TRUE = 1 (Strange?) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis, Virginia Sent: Friday, February 02, 2007 7:15 AM To: accessd at databaseadvisors.com Subject: [AccessD] Fields with Null I get -1 **************** Mmm, doesn't do that for me. Are you sure the Comments field is null? Could it have blank spaces in it somehow? Add this to your query: TestNull: IsNull([Comments]) Do the "empty" Comments records return -1 (ie True)? -- 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 accessd at shaw.ca Fri Feb 2 13:13:08 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 02 Feb 2007 11:13:08 -0800 Subject: [AccessD] Break a float into it's parts In-Reply-To: <018101c746d7$9f3d82f0$657aa8c0@m6805> Message-ID: <0JCU00H4HNYHW270@l-daemon> Hi John: intNumber = int(23.456) lngNumber = 23.456 - intNumber intNumber = 23 lngNumber = .456 Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Friday, February 02, 2007 6:37 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Break a float into it's parts How do I get the integer part and the decimal part of a floating point number 23.456 how do I get the 23 how do I get the .456 Using clng for example "rounds" the number up or down which isn't what I want for the integer portion John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Fri Feb 2 13:48:35 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 02 Feb 2007 11:48:35 -0800 Subject: [AccessD] Arthurs new EBook In-Reply-To: <17724746D360394AA3BFE5B8D40A9C1B01A03545@marlow_main2.marlow.ii-vi.net> Message-ID: <0JCU001DQPLKWL60@l-daemon> Hi All: Arthur's prose on MS Access, the link to his new EBook and Drew's further elaboration has been added to the DBA web site as a new Gazette Article. To view: http://www.databaseadvisors.com/gazette/gazette20070201.asp Jim From jwcolby at colbyconsulting.com Fri Feb 2 13:54:08 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Fri, 2 Feb 2007 14:54:08 -0500 Subject: [AccessD] Arthurs new EBook In-Reply-To: <0JCU001DQPLKWL60@l-daemon> Message-ID: <01ce01c74703$e7dddf60$657aa8c0@m6805> Well done Arthur! John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Friday, February 02, 2007 2:49 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Arthurs new EBook Hi All: Arthur's prose on MS Access, the link to his new EBook and Drew's further elaboration has been added to the DBA web site as a new Gazette Article. To view: http://www.databaseadvisors.com/gazette/gazette20070201.asp Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Fri Feb 2 16:10:10 2007 From: wdhindman at dejpolsystems.com (William Hindman) Date: Fri, 2 Feb 2007 17:10:10 -0500 Subject: [AccessD] Access=>Termial Server=>SQL Server References: <857533.98557.qm@web33105.mail.mud.yahoo.com> Message-ID: <000a01c74716$e88fa890$8d4beb44@50NM721> Lonnie ...first question is your configuration ...do you have a single Access fe with all ts users hitting it or a separate copy installed in each user's ts directory with only that user using that fe copy ...the single Access fe will definitely slow as the number of users increase. William Hindman ----- Original Message ----- From: "Lonnie Johnson" To: "AccessD solving'" Sent: Friday, February 02, 2007 1:14 PM Subject: [AccessD] Access=>Termial Server=>SQL Server >I have an access app that runs on a terminal server and uses SQL Server as >a back end. It runs slow alot. > > I was wondering if there were any tips on performance? > > > > > > > > > > May God bless you beyond your imagination! > Lonnie Johnson > ProDev, Professional Development of MS Access Databases > Visit me at ==> http://www.prodev.us > > > > ____________________________________________________________________________________ > Never miss an email again! > Yahoo! Toolbar alerts you the instant new Mail arrives. > http://tools.search.yahoo.com/toolbar/features/mail/ > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From accessd at shaw.ca Fri Feb 2 16:16:15 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 02 Feb 2007 14:16:15 -0800 Subject: [AccessD] Connections and Performance In-Reply-To: <17724746D360394AA3BFE5B8D40A9C1B01A035BB@marlow_main2.marlow.ii-vi.net> Message-ID: <0JCU00ICAWFOBX70@l-daemon> Hi Drew: I have created and used both Access MDB and MS SQL BE servers in a variety of situations. They both do an excellent job but when it comes to heavy loads or data manipulation MS SQL pulls away very quickly. If you use Store Procedures, in MS SQL, they are highly optimized and compiled and can return a 100,000 records in seconds even when the SP query is 250 lines of code. In web environments MS SQL can scale up to half a million hits an hour. This is not meant to take away from MS Accesses capabilities. MS Access can run a small site without a problem. Just to set the record straight Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, February 02, 2007 9:24 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance Never bothered to test it, to have empirical data. It is just obvious. For example, our new website (which isn't up yet), has a navigation process that puts a nav bar at the top of every page. On our current site, that bar is built strictly from a hack into FrontPages navigation structure files. (We use Frontpage to edit the site...well, some people do, I do most stuff in just plain ol HTML.) It's essentially a csv file. The new site has a mix, it gets most stuff from the FrontPage source, but then it also adds in all the products. There are three product pages, a page that shows all the product types, a page that shows all the products of that type, and a page that shows info on just a single product. So, to FrontPage, the Navigation is three pages, but to the user, there are lots of pages based on the content that is stored within the database. So the new site now builds the navigation bars from a mix of the FP navigation, and the product database (which handles everything from the products on the web, the glossary, shopping cart, etc.). It is doing this for every page you load, and it loads as fast as your browser can handle it. The product database is local to the webserver (though not visible on the web itself), so everything that occurs to the db is being done locally by the webserver itself. If you had a SQL Server running on Machine X, and then had an identical machine 'Y' (same processor, hard drives, memory, etc). Which would be faster? Running a query on Machine Y, that is getting data from a SQL Server on Machine X, or running a query (against identical data tables) on Machine Y that is getting data from an Access MDB on Machine Y? There is nothing special about a server side DB that makes it more powerful then Jet at doing the same thing. The only true difference is that with a server side system you have a dedicated system retrieving data. But the way that machine is retrieving data is essentially the same way Jet does. It has to read it's indexes, find the data, put it together, and send it out. Jet does the same thing (though maybe not exactly the same way). Over a network, Jet is pulling chunks of a file across the network, which does take longer then letting a server side system just send the resulting data back. Since most mid to large apps in Access are used in a network environment, we, as Access developers, get hammered by this shortcoming of a end user db system. Putting the .mdb on a webserver, with a web interface, however, is functionally identical to putting the data into a server side db, with the exception of roleback/transaction capabilities. Drew -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Friday, February 02, 2007 10:27 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance Interesting, Drew. Have you written an article on that? It sounds like useful knowledge. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, February 02, 2007 7:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance As soon as I see an article saying Access is bad behind a webserver, I just roll my eyes. In essence, an .mdb placed physically on a webserver is going to crush a SQL server running on another machine, because the data is being read locally, in essentially the same way a SQL server is going to read it's own local data, so you completely drop the time it takes to send and receive the data across a NIC. (On top of no time loss for transaction logs, etc.) Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Friday, February 02, 2007 9:29 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance >This means that although Access remains suitable for small Web applications, those that experience growth where they are experiencing more than 25 concurrent connections should consider upgrading to a more robust database." And what lab does he use for his perspective? I tried to go read the article but just got the main page and no further. It would be useful to see real numbers with understandable (to use programmers) test methods. I have never seen any such thing, nor do I have the time right now to build such a test system. I might have to though since my applications are extremely complex and this might be something to watch. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, February 02, 2007 10:17 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance On 2 Feb 2007 at 10:07, Michael R Mattys wrote: > Heh :) It took me a few minutes, but I found this 'explanation' > http://www.crystaltech.com/Newsletters/news2006-08tech.aspx ... > However, Access is not optimized for use with a large number of > concurrent connections and does not scale for large databases. As more > users connect to an Access database, the performance starts to degrade > rapidly. Even moderately-trafficked websites can easily have 5 or more > users at one time which can cause Access to lock the number of connections. Alternatively: http://www.2020datashed.com/help/Topics/DataProviders.html The database cannot handle more than 255 concurrent connections. This topic is very complex and many programmers will argue that this number is misleading. Under the right conditions, if lock-type is managed carefully and each of the concurrent users are connected to different resources/tables in the database, and the users' connectivity is properly managed via OLE, then 255 distinct users can be connected simultaneously to the MS Access database. (As discussed in MS Knowledge Base article: 176670.) However the number of available concurrent connections drops significantly when multiple tables are in use by a single connection and if the data is not sufficiently locked while communicating with the data. This number of course does not represent "people"...it represents "users" which is often a different concept altogether. In a web-based application each connection to the database can be opened, queried, and closed within a few milliseconds, the number of "people" which can browse the web site simultaneously is not limited to 255. In conclusion: this particular limitation is a concern but shouldn't worry you unless your web site consistently receives a significant amount of traffic. Perhaps more than a few thousand visitors per day. Sean Nicholson of www.informit.com (Article) has this to say: "Microsoft lists 255 as the maximum number of concurrent users to an Access database. This means that only 255 users can actively interact with the database at the same time. This might be theoretically true in Microsoft's labs under the ideal circumstances, but the reality of working with an Access database is that performance falls off sharply when more than 25 or 30 concurrent requests are made. This means that although Access remains suitable for small Web applications, those that experience growth where they are experiencing more than 25 concurrent connections should consider upgrading to a more robust database." -- 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Feb 2 16:26:43 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 2 Feb 2007 14:26:43 -0800 Subject: [AccessD] OT Friday homour In-Reply-To: <0JCU00F1FNLSCR10@l-daemon> References: <34C8A2AB1EF3564CB0D64DB6AFFDD5C201200FBB@xlivmbx35.aig.com> <0JCU00F1FNLSCR10@l-daemon> Message-ID: Not to mention ... 21) The actor effected an affecting performance. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Friday, February 02, 2007 11:06 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT Friday homour Hi All: So you think English is easy: 1) The bandage was wound around the wound. 2) The farm was used to produce produce. 3) The dump was so full that it had to refuse more refuse. 4) We must polish the Polish furniture. 5) He could lead if he would get the lead out. 6) The soldier decided to desert his dessert in the desert. 7) Since there is no time like the present, he thought it was time to present the present 8) A bass was painted on the head of the bass drum. 9) When shot at, the dove dove into the bushes. 10) I did not object to the object. 11) The insurance was invalid for the invalid. 12) There was a row among the oarsmen about how to row 13) They were too close to the door to close it. 14) The buck does funny things when the does are present. 15) A seamstress and a sewer fell down into a sewer line. 16) To help with planting, the farmer taught his sow to sow. 17) The wind was too strong to wind the sail 18) Upon seeing the tear in the painting I shed a tear. 19) I had to subject the subject to a series of tests. 20) How can I intimate this to my most intimate friend? ...and another... A Mountie pulled a car over on the Trans Canada about 2 miles West of Winnipeg. When the Mountie asked the driver why he was speeding, the driver answered that he was a magician and a juggler and he was on his way to Brandon to do a show that night at the Shrine Circus and didn't want to be late. The Mountie told the driver he was fascinated by juggling, and if the driver would do a little juggling for him then he wouldn't give him a ticket. The driver told the Mountie that he had sent all of his equipment on ahead and didn't have anything to juggle. The Mountie told him that he had some flares in the trunk of his patrol car and asked if he could juggle them. The juggler stated that he could, so the Mountie got three flares, lit them and handed them to the juggler. While the man was doing his juggling act, a car pulled in behind the patrol car. A drunk, good old boy, driving through from Alberta got out and watched the performance briefly. He then went over to the patrol car, opened the rear door and got in. The Mountie observed him doing this and went over to the patrol car, opened the door and asked the drunk what he thought he was doing. The drunk replied, "You might as well take me to jail, cause there's no friggin` way I can pass that test." Have a good weekend Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Fri Feb 2 16:40:49 2007 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 03 Feb 2007 08:40:49 +1000 Subject: [AccessD] OT Friday homour In-Reply-To: References: <34C8A2AB1EF3564CB0D64DB6AFFDD5C201200FBB@xlivmbx35.aig.com>, <0JCU00F1FNLSCR10@l-daemon>, Message-ID: <45C3BDF1.22927.82A9063@stuart.lexacorp.com.pg> "Not to mention ..." - You shouldn't have! :-) The original list is a mixture of homonyms and heteronyms - mainly the latter. You're addition is only a homophone. On 2 Feb 2007 at 14:26, Charlotte Foust wrote: > Not to mention ... > > 21) The actor effected an affecting performance. > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence > Sent: Friday, February 02, 2007 11:06 AM To: 'Access Developers discussion > and problem solving' Subject: [AccessD] OT Friday homour > > Hi All: > > So you think English is easy: > > 1) The bandage was wound around the wound. > > 2) The farm was used to produce produce. > > 3) The dump was so full that it had to refuse more refuse. > > 4) We must polish the Polish furniture. > > 5) He could lead if he would get the lead out. > > 6) The soldier decided to desert his dessert in the desert. > > 7) Since there is no time like the present, he thought it was time to > present the present > > 8) A bass was painted on the head of the bass drum. > > 9) When shot at, the dove dove into the bushes. > > 10) I did not object to the object. > > 11) The insurance was invalid for the invalid. > > 12) There was a row among the oarsmen about how to row > > 13) They were too close to the door to close it. > > 14) The buck does funny things when the does are present. > > 15) A seamstress and a sewer fell down into a sewer line. > > 16) To help with planting, the farmer taught his sow to sow. > > 17) The wind was too strong to wind the sail > > 18) Upon seeing the tear in the painting I shed a tear. > > 19) I had to subject the subject to a series of tests. > > 20) How can I intimate this to my most intimate friend? -- Stuart From DWUTKA at marlow.com Fri Feb 2 16:45:26 2007 From: DWUTKA at marlow.com (Drew Wutka) Date: Fri, 2 Feb 2007 16:45:26 -0600 Subject: [AccessD] Connections and Performance Message-ID: <17724746D360394AA3BFE5B8D40A9C1B01A03668@marlow_main2.marlow.ii-vi.net> My point is, if you have a webserver that can handle half a million hits in an hour, it should be able to do it just fine against an access .mdb. As far as large scale data stores...ok, if we are talking a few million records, yes, JET is going to be slower, but I have systems with hundreds of thousands of records where Jet does fine, couldn't tell if it got any faster. Drew -----Original Message----- From: Jim Lawrence [mailto:accessd at shaw.ca] Sent: Friday, February 02, 2007 4:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance Hi Drew: I have created and used both Access MDB and MS SQL BE servers in a variety of situations. They both do an excellent job but when it comes to heavy loads or data manipulation MS SQL pulls away very quickly. If you use Store Procedures, in MS SQL, they are highly optimized and compiled and can return a 100,000 records in seconds even when the SP query is 250 lines of code. In web environments MS SQL can scale up to half a million hits an hour. This is not meant to take away from MS Accesses capabilities. MS Access can run a small site without a problem. Just to set the record straight Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, February 02, 2007 9:24 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance Never bothered to test it, to have empirical data. It is just obvious. For example, our new website (which isn't up yet), has a navigation process that puts a nav bar at the top of every page. On our current site, that bar is built strictly from a hack into FrontPages navigation structure files. (We use Frontpage to edit the site...well, some people do, I do most stuff in just plain ol HTML.) It's essentially a csv file. The new site has a mix, it gets most stuff from the FrontPage source, but then it also adds in all the products. There are three product pages, a page that shows all the product types, a page that shows all the products of that type, and a page that shows info on just a single product. So, to FrontPage, the Navigation is three pages, but to the user, there are lots of pages based on the content that is stored within the database. So the new site now builds the navigation bars from a mix of the FP navigation, and the product database (which handles everything from the products on the web, the glossary, shopping cart, etc.). It is doing this for every page you load, and it loads as fast as your browser can handle it. The product database is local to the webserver (though not visible on the web itself), so everything that occurs to the db is being done locally by the webserver itself. If you had a SQL Server running on Machine X, and then had an identical machine 'Y' (same processor, hard drives, memory, etc). Which would be faster? Running a query on Machine Y, that is getting data from a SQL Server on Machine X, or running a query (against identical data tables) on Machine Y that is getting data from an Access MDB on Machine Y? There is nothing special about a server side DB that makes it more powerful then Jet at doing the same thing. The only true difference is that with a server side system you have a dedicated system retrieving data. But the way that machine is retrieving data is essentially the same way Jet does. It has to read it's indexes, find the data, put it together, and send it out. Jet does the same thing (though maybe not exactly the same way). Over a network, Jet is pulling chunks of a file across the network, which does take longer then letting a server side system just send the resulting data back. Since most mid to large apps in Access are used in a network environment, we, as Access developers, get hammered by this shortcoming of a end user db system. Putting the .mdb on a webserver, with a web interface, however, is functionally identical to putting the data into a server side db, with the exception of roleback/transaction capabilities. Drew -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Friday, February 02, 2007 10:27 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance Interesting, Drew. Have you written an article on that? It sounds like useful knowledge. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, February 02, 2007 7:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance As soon as I see an article saying Access is bad behind a webserver, I just roll my eyes. In essence, an .mdb placed physically on a webserver is going to crush a SQL server running on another machine, because the data is being read locally, in essentially the same way a SQL server is going to read it's own local data, so you completely drop the time it takes to send and receive the data across a NIC. (On top of no time loss for transaction logs, etc.) Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Friday, February 02, 2007 9:29 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance >This means that although Access remains suitable for small Web applications, those that experience growth where they are experiencing more than 25 concurrent connections should consider upgrading to a more robust database." And what lab does he use for his perspective? I tried to go read the article but just got the main page and no further. It would be useful to see real numbers with understandable (to use programmers) test methods. I have never seen any such thing, nor do I have the time right now to build such a test system. I might have to though since my applications are extremely complex and this might be something to watch. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, February 02, 2007 10:17 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance On 2 Feb 2007 at 10:07, Michael R Mattys wrote: > Heh :) It took me a few minutes, but I found this 'explanation' > http://www.crystaltech.com/Newsletters/news2006-08tech.aspx ... > However, Access is not optimized for use with a large number of > concurrent connections and does not scale for large databases. As more > users connect to an Access database, the performance starts to degrade > rapidly. Even moderately-trafficked websites can easily have 5 or more > users at one time which can cause Access to lock the number of connections. Alternatively: http://www.2020datashed.com/help/Topics/DataProviders.html The database cannot handle more than 255 concurrent connections. This topic is very complex and many programmers will argue that this number is misleading. Under the right conditions, if lock-type is managed carefully and each of the concurrent users are connected to different resources/tables in the database, and the users' connectivity is properly managed via OLE, then 255 distinct users can be connected simultaneously to the MS Access database. (As discussed in MS Knowledge Base article: 176670.) However the number of available concurrent connections drops significantly when multiple tables are in use by a single connection and if the data is not sufficiently locked while communicating with the data. This number of course does not represent "people"...it represents "users" which is often a different concept altogether. In a web-based application each connection to the database can be opened, queried, and closed within a few milliseconds, the number of "people" which can browse the web site simultaneously is not limited to 255. In conclusion: this particular limitation is a concern but shouldn't worry you unless your web site consistently receives a significant amount of traffic. Perhaps more than a few thousand visitors per day. Sean Nicholson of www.informit.com (Article) has this to say: "Microsoft lists 255 as the maximum number of concurrent users to an Access database. This means that only 255 users can actively interact with the database at the same time. This might be theoretically true in Microsoft's labs under the ideal circumstances, but the reality of working with an Access database is that performance falls off sharply when more than 25 or 30 concurrent requests are made. This means that although Access remains suitable for small Web applications, those that experience growth where they are experiencing more than 25 concurrent connections should consider upgrading to a more robust database." -- 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Fri Feb 2 17:14:18 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 02 Feb 2007 15:14:18 -0800 Subject: [AccessD] OT Friday homour In-Reply-To: <45C3BDF1.22927.82A9063@stuart.lexacorp.com.pg> Message-ID: <0JCU00C7FZ4FBOB0@l-daemon> ...and then adding. 22) He will record the record for the record. 23) He would not have been had had he had a choice. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, February 02, 2007 2:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT Friday homour "Not to mention ..." - You shouldn't have! :-) The original list is a mixture of homonyms and heteronyms - mainly the latter. You're addition is only a homophone. On 2 Feb 2007 at 14:26, Charlotte Foust wrote: > Not to mention ... > > 21) The actor effected an affecting performance. > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence > Sent: Friday, February 02, 2007 11:06 AM To: 'Access Developers discussion > and problem solving' Subject: [AccessD] OT Friday homour > > Hi All: > > So you think English is easy: > > 1) The bandage was wound around the wound. > > 2) The farm was used to produce produce. > > 3) The dump was so full that it had to refuse more refuse. > > 4) We must polish the Polish furniture. > > 5) He could lead if he would get the lead out. > > 6) The soldier decided to desert his dessert in the desert. > > 7) Since there is no time like the present, he thought it was time to > present the present > > 8) A bass was painted on the head of the bass drum. > > 9) When shot at, the dove dove into the bushes. > > 10) I did not object to the object. > > 11) The insurance was invalid for the invalid. > > 12) There was a row among the oarsmen about how to row > > 13) They were too close to the door to close it. > > 14) The buck does funny things when the does are present. > > 15) A seamstress and a sewer fell down into a sewer line. > > 16) To help with planting, the farmer taught his sow to sow. > > 17) The wind was too strong to wind the sail > > 18) Upon seeing the tear in the painting I shed a tear. > > 19) I had to subject the subject to a series of tests. > > 20) How can I intimate this to my most intimate friend? -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri Feb 2 18:02:09 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 2 Feb 2007 16:02:09 -0800 Subject: [AccessD] OT Friday homour In-Reply-To: <45C3BDF1.22927.82A9063@stuart.lexacorp.com.pg> References: <34C8A2AB1EF3564CB0D64DB6AFFDD5C201200FBB@xlivmbx35.aig.com>, <0JCU00F1FNLSCR10@l-daemon>, <45C3BDF1.22927.82A9063@stuart.lexacorp.com.pg> Message-ID: Picky!! Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, February 02, 2007 2:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT Friday homour "Not to mention ..." - You shouldn't have! :-) The original list is a mixture of homonyms and heteronyms - mainly the latter. You're addition is only a homophone. On 2 Feb 2007 at 14:26, Charlotte Foust wrote: > Not to mention ... > > 21) The actor effected an affecting performance. > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim > Lawrence > Sent: Friday, February 02, 2007 11:06 AM To: 'Access Developers > discussion and problem solving' Subject: [AccessD] OT Friday homour > > Hi All: > > So you think English is easy: > > 1) The bandage was wound around the wound. > > 2) The farm was used to produce produce. > > 3) The dump was so full that it had to refuse more refuse. > > 4) We must polish the Polish furniture. > > 5) He could lead if he would get the lead out. > > 6) The soldier decided to desert his dessert in the desert. > > 7) Since there is no time like the present, he thought it was time to > present the present > > 8) A bass was painted on the head of the bass drum. > > 9) When shot at, the dove dove into the bushes. > > 10) I did not object to the object. > > 11) The insurance was invalid for the invalid. > > 12) There was a row among the oarsmen about how to row > > 13) They were too close to the door to close it. > > 14) The buck does funny things when the does are present. > > 15) A seamstress and a sewer fell down into a sewer line. > > 16) To help with planting, the farmer taught his sow to sow. > > 17) The wind was too strong to wind the sail > > 18) Upon seeing the tear in the painting I shed a tear. > > 19) I had to subject the subject to a series of tests. > > 20) How can I intimate this to my most intimate friend? -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From prodevmg at yahoo.com Fri Feb 2 18:35:51 2007 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Fri, 2 Feb 2007 16:35:51 -0800 (PST) Subject: [AccessD] Access=>Termial Server=>SQL Server Message-ID: <511507.56976.qm@web33107.mail.mud.yahoo.com> Thanks William, I know the possibilities are enormous because we have three different areas and the network that transmits them. This is an Access front end with linked SQL Server tables that are bound to forms. Each user has their own copy of the app in their network version of MyDocuments. We have a dual terminal server that tries to balance the load of users. I am just shooting in the dark here hoping someone has had simular problems. Thanks again. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us ----- Original Message ---- From: William Hindman To: Access Developers discussion and problem solving Sent: Friday, February 2, 2007 4:10:10 PM Subject: Re: [AccessD] Access=>Termial Server=>SQL Server Lonnie ...first question is your configuration ...do you have a single Access fe with all ts users hitting it or a separate copy installed in each user's ts directory with only that user using that fe copy ...the single Access fe will definitely slow as the number of users increase. William Hindman ----- Original Message ----- From: "Lonnie Johnson" To: "AccessD solving'" Sent: Friday, February 02, 2007 1:14 PM Subject: [AccessD] Access=>Termial Server=>SQL Server >I have an access app that runs on a terminal server and uses SQL Server as >a back end. It runs slow alot. > > I was wondering if there were any tips on performance? > > > > > > > > > > May God bless you beyond your imagination! > Lonnie Johnson > ProDev, Professional Development of MS Access Databases > Visit me at ==> http://www.prodev.us > > > > ____________________________________________________________________________________ > Never miss an email again! > Yahoo! Toolbar alerts you the instant new Mail arrives. > http://tools.search.yahoo.com/toolbar/features/mail/ > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ____________________________________________________________________________________ It's here! Your new message! Get new email alerts with the free Yahoo! Toolbar. http://tools.search.yahoo.com/toolbar/features/mail/ From martyconnelly at shaw.ca Fri Feb 2 20:13:19 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 02 Feb 2007 18:13:19 -0800 Subject: [AccessD] Access=>Termial Server=>SQL Server In-Reply-To: <511507.56976.qm@web33107.mail.mud.yahoo.com> References: <511507.56976.qm@web33107.mail.mud.yahoo.com> Message-ID: <45C3EFBF.5020105@shaw.ca> Maybe some hints here http://www.granite.ab.ca/access/terminalserver.htm Are you running full licensed SQL Server 2000 Lonnie Johnson wrote: >Thanks William, > >I know the possibilities are enormous because we have three different areas and the network that transmits them. > >This is an Access front end with linked SQL Server tables that are bound to forms. Each user has their own copy of the app in their network version of MyDocuments. We have a dual terminal server that tries to balance the load of users. > >I am just shooting in the dark here hoping someone has had simular problems. > >Thanks again. > > > > > > > > > >May God bless you beyond your imagination! >Lonnie Johnson >ProDev, Professional Development of MS Access Databases >Visit me at ==> http://www.prodev.us > > > > > > > > > > >----- Original Message ---- >From: William Hindman >To: Access Developers discussion and problem solving >Sent: Friday, February 2, 2007 4:10:10 PM >Subject: Re: [AccessD] Access=>Termial Server=>SQL Server > > >Lonnie > >...first question is your configuration ...do you have a single Access fe >with all ts users hitting it or a separate copy installed in each user's ts >directory with only that user using that fe copy ...the single Access fe >will definitely slow as the number of users increase. > >William Hindman > >----- Original Message ----- >From: "Lonnie Johnson" >To: "AccessD solving'" >Sent: Friday, February 02, 2007 1:14 PM >Subject: [AccessD] Access=>Termial Server=>SQL Server > > > > >>I have an access app that runs on a terminal server and uses SQL Server as >>a back end. It runs slow alot. >> >>I was wondering if there were any tips on performance? >> >> >> >> >> >> >> >> >> >>May God bless you beyond your imagination! >>Lonnie Johnson >>ProDev, Professional Development of MS Access Databases >>Visit me at ==> http://www.prodev.us >> >> >> >>____________________________________________________________________________________ >>Never miss an email again! >>Yahoo! Toolbar alerts you the instant new Mail arrives. >>http://tools.search.yahoo.com/toolbar/features/mail/ >>-- >>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 dwaters at usinternet.com Fri Feb 2 22:12:53 2007 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 2 Feb 2007 22:12:53 -0600 Subject: [AccessD] Connections and Performance In-Reply-To: <21447087.1170430574567.JavaMail.root@sniper23> References: <21447087.1170430574567.JavaMail.root@sniper23> Message-ID: <006c01c74749$94855820$0200a8c0@danwaters> Drew, I read this somewhere - either in MS documentation or in a book where I believe the author. Here's the reason I was asking: At a certain customer site, they experienced a dramatic performance slowdown at a time when about 10 people were logged on concurrently. Each client PC has it's own FE. I know that they open the system and leave the process screens open, all of which are bound. I want to suggest that they remember to close the process screens so that just the main screen is open, which is not bound. This way a fewer number of connections are being used at any one time and performance would probably be acceptable. This particular customer, I believe, does not have a very good network, so that is part of the problem. But that's unlikely to get improved, so I wanted to provide at least a partial solution, hence my question. I've also heard that a connection is made not based on whether a form is open and bound, but on whether or not there is data traffic between to and from a table, which only takes a small part of a second. So what causes the performance slowdown when only 10 client PC's are logged on, and what could be done to improve this? Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, February 02, 2007 9:26 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance Where are you getting these numbers. Access can have up to 255 connections. Drew -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Friday, February 02, 2007 8:45 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance Access has the potential for 8 simultaneous connections, but 3 of them are reserved for the system's use. That leaves five for users. Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Friday, February 02, 2007 8:02 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance >But, the connection limit for one BE is 5 FE's. What does this mean? I have never heard of any such thing. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 02, 2007 8:58 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Connections and Performance I've read several times that maintaining a connection between a FE and a BE will increase the performance of the FE because it doesn't need to reconnect before transferring data. The connection here would be a bound form connected by a table link to a table in the BE. But, the connection limit for one BE is 5 FE's. So, will maintaining connections on more than 5 FE's reduce performance? Seems logical, but I was wondering if this is correct or is there more to it? Thanks! Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Fri Feb 2 22:13:22 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 02 Feb 2007 20:13:22 -0800 Subject: [AccessD] A busy week In-Reply-To: <45C3EFBF.5020105@shaw.ca> Message-ID: <0JCV001XQCYTJ300@l-daemon> Hi All: Is this a list or is this a LIST... :-) It has been a busy week for members on the DBA list writing articles and finishing books. Read all about it on the DBA site at http://www.databaseadvisors.com/index.asp Best Regards and Congratulations to all... Jim From dwaters at usinternet.com Fri Feb 2 22:22:18 2007 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 2 Feb 2007 22:22:18 -0600 Subject: [AccessD] Database size In-Reply-To: <26506360.1170428760225.JavaMail.root@sniper63> References: <26506360.1170428760225.JavaMail.root@sniper63> Message-ID: <008201c7474a$e4c4e750$0200a8c0@danwaters> Barb, if you can change the database format to Access 2000. Then try decompile/compile. Then compact. There was an issue in 2002 which, I think, prevented decompiling if the database was in 2002 format, but worked fine in 2000 format. Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Barbara Ryan Sent: Friday, February 02, 2007 8:59 AM To: Access List Subject: [AccessD] Database size I just deleted many objects (probably 75 forms, queries, reports) from an Access 2002 database (using Access 2003). I then compiled and compacted. However, the database actually increased in size by 4MG!!! (from 26 to 30MG). What happened? :-( Thanks, Barb Ryan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at hotmail.com Fri Feb 2 22:28:47 2007 From: adtp at hotmail.com (A.D.TEJPAL) Date: Sat, 3 Feb 2007 09:58:47 +0530 Subject: [AccessD] Arthurs new EBook References: <0JCU001DQPLKWL60@l-daemon> Message-ID: My best compliments to Arthur & Drew! A.D.Tejpal --------------- ----- Original Message ----- From: Jim Lawrence To: 'Access Developers discussion and problem solving' Sent: Saturday, February 03, 2007 01:18 Subject: [AccessD] Arthurs new EBook Hi All: Arthur's prose on MS Access, the link to his new EBook and Drew's further elaboration has been added to the DBA web site as a new Gazette Article. To view: http://www.databaseadvisors.com/gazette/gazette20070201.asp Jim From dwaters at usinternet.com Fri Feb 2 22:37:44 2007 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 2 Feb 2007 22:37:44 -0600 Subject: [AccessD] Actual Good News! Message-ID: <000001c7474d$0d3d8d20$0200a8c0@danwaters> http://blogs.msdn.com/access/archive/2007/02/02/access-2007-runtime-and-deve loper-extension-will-be-free.aspx Dan Waters From jwcolby at colbyconsulting.com Fri Feb 2 22:55:31 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Fri, 2 Feb 2007 23:55:31 -0500 Subject: [AccessD] Actual Good News! In-Reply-To: <000001c7474d$0d3d8d20$0200a8c0@danwaters> Message-ID: <01e601c7474f$88c4b610$657aa8c0@m6805> Hmmm... I smell a "let's get developers to move to this" kinda thing going here. And it just might work. ;-) John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 02, 2007 11:38 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Actual Good News! http://blogs.msdn.com/access/archive/2007/02/02/access-2007-runtime-and-deve loper-extension-will-be-free.aspx Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Sat Feb 3 00:48:39 2007 From: wdhindman at dejpolsystems.com (William Hindman) Date: Sat, 3 Feb 2007 01:48:39 -0500 Subject: [AccessD] Actual Good News! References: <01e601c7474f$88c4b610$657aa8c0@m6805> Message-ID: <000c01c7475f$57144580$8d4beb44@50NM721> ...strange marketing move though ...buy one copy of Access and run your whole company without having to buy another one ...it would also appear to kick the Office Pro package in the teeth to the same extent ...not that I mind of course but the end result in MS terms would appear to be more Access dbs with fewer sales ...I'm missing something in the logic behind this. William Hindman ----- Original Message ----- From: "JWColby" To: "'Access Developers discussion and problem solving'" Sent: Friday, February 02, 2007 11:55 PM Subject: Re: [AccessD] Actual Good News! > Hmmm... I smell a "let's get developers to move to this" kinda thing going > here. > > And it just might work. ;-) > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Friday, February 02, 2007 11:38 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Actual Good News! > > http://blogs.msdn.com/access/archive/2007/02/02/access-2007-runtime-and-deve > loper-extension-will-be-free.aspx > > > Dan Waters > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From andy at minstersystems.co.uk Sat Feb 3 03:06:04 2007 From: andy at minstersystems.co.uk (Andy Lacey) Date: Sat, 3 Feb 2007 09:06:04 -0000 Subject: [AccessD] A busy week In-Reply-To: <0JCV001XQCYTJ300@l-daemon> Message-ID: <039901c74772$8bbafdc0$453b0c54@minster33c3r25> Good work Jim -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Jim Lawrence > Sent: 03 February 2007 04:13 > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] A busy week > > > Hi All: > > Is this a list or is this a LIST... :-) > > It has been a busy week for members on the DBA list writing > articles and finishing books. Read all about it on the DBA > site at http://www.databaseadvisors.com/index.asp > > Best Regards and Congratulations to all... > > Jim > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From prodevmg at yahoo.com Sat Feb 3 08:04:50 2007 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Sat, 3 Feb 2007 06:04:50 -0800 (PST) Subject: [AccessD] Access=>Termial Server=>SQL Server Message-ID: <490819.51795.qm@web33111.mail.mud.yahoo.com> Thanks Marty, Some of the links did not exist any more but there was some other interesting information that was sort of unrelated that was helpful. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us ----- Original Message ---- From: MartyConnelly To: Access Developers discussion and problem solving Sent: Friday, February 2, 2007 8:13:19 PM Subject: Re: [AccessD] Access=>Termial Server=>SQL Server Maybe some hints here http://www.granite.ab.ca/access/terminalserver.htm Are you running full licensed SQL Server 2000 Lonnie Johnson wrote: >Thanks William, > >I know the possibilities are enormous because we have three different areas and the network that transmits them. > >This is an Access front end with linked SQL Server tables that are bound to forms. Each user has their own copy of the app in their network version of MyDocuments. We have a dual terminal server that tries to balance the load of users. > >I am just shooting in the dark here hoping someone has had simular problems. > >Thanks again. > > > > > > > > > >May God bless you beyond your imagination! >Lonnie Johnson >ProDev, Professional Development of MS Access Databases >Visit me at ==> http://www.prodev.us > > > > > > > > > > >----- Original Message ---- >From: William Hindman >To: Access Developers discussion and problem solving >Sent: Friday, February 2, 2007 4:10:10 PM >Subject: Re: [AccessD] Access=>Termial Server=>SQL Server > > >Lonnie > >...first question is your configuration ...do you have a single Access fe >with all ts users hitting it or a separate copy installed in each user's ts >directory with only that user using that fe copy ...the single Access fe >will definitely slow as the number of users increase. > >William Hindman > >----- Original Message ----- >From: "Lonnie Johnson" >To: "AccessD solving'" >Sent: Friday, February 02, 2007 1:14 PM >Subject: [AccessD] Access=>Termial Server=>SQL Server > > > > >>I have an access app that runs on a terminal server and uses SQL Server as >>a back end. It runs slow alot. >> >>I was wondering if there were any tips on performance? >> >> >> >> >> >> >> >> >> >>May God bless you beyond your imagination! >>Lonnie Johnson >>ProDev, Professional Development of MS Access Databases >>Visit me at ==> http://www.prodev.us >> >> >> >>____________________________________________________________________________________ >>Never miss an email again! >>Yahoo! Toolbar alerts you the instant new Mail arrives. >>http://tools.search.yahoo.com/toolbar/features/mail/ >>-- >>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 ____________________________________________________________________________________ Want to start your own business? Learn how on Yahoo! Small Business. http://smallbusiness.yahoo.com/r-index From bheid at sc.rr.com Sat Feb 3 08:09:48 2007 From: bheid at sc.rr.com (Bobby Heid) Date: Sat, 3 Feb 2007 09:09:48 -0500 Subject: [AccessD] Connections and Performance In-Reply-To: <006c01c74749$94855820$0200a8c0@danwaters> References: <21447087.1170430574567.JavaMail.root@sniper23> <006c01c74749$94855820$0200a8c0@danwaters> Message-ID: <004201c7479c$fa915fd0$2d01a8c0@bhxp> Could it possibly be network congestion or some other issue with the network? Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 02, 2007 11:13 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance Drew, I read this somewhere - either in MS documentation or in a book where I believe the author. Here's the reason I was asking: At a certain customer site, they experienced a dramatic performance slowdown at a time when about 10 people were logged on concurrently. Each client PC has it's own FE. I know that they open the system and leave the process screens open, all of which are bound. I want to suggest that they remember to close the process screens so that just the main screen is open, which is not bound. This way a fewer number of connections are being used at any one time and performance would probably be acceptable. This particular customer, I believe, does not have a very good network, so that is part of the problem. But that's unlikely to get improved, so I wanted to provide at least a partial solution, hence my question. I've also heard that a connection is made not based on whether a form is open and bound, but on whether or not there is data traffic between to and from a table, which only takes a small part of a second. So what causes the performance slowdown when only 10 client PC's are logged on, and what could be done to improve this? Dan Waters From jwcolby at colbyconsulting.com Sat Feb 3 08:28:16 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Sat, 3 Feb 2007 09:28:16 -0500 Subject: [AccessD] Actual Good News! In-Reply-To: <000c01c7475f$57144580$8d4beb44@50NM721> Message-ID: <01ed01c7479f$8bc64ef0$657aa8c0@m6805> Well, that assumes that you do not use automation of course. If you automate word or excel or any other office app, then a copy of that has to be on the workstation. It really means that they can buy the cheaper version of office without Access. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Saturday, February 03, 2007 1:49 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Actual Good News! ...strange marketing move though ...buy one copy of Access and run your whole company without having to buy another one ...it would also appear to kick the Office Pro package in the teeth to the same extent ...not that I mind of course but the end result in MS terms would appear to be more Access dbs with fewer sales ...I'm missing something in the logic behind this. William Hindman ----- Original Message ----- From: "JWColby" To: "'Access Developers discussion and problem solving'" Sent: Friday, February 02, 2007 11:55 PM Subject: Re: [AccessD] Actual Good News! > Hmmm... I smell a "let's get developers to move to this" kinda thing going > here. > > And it just might work. ;-) > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Friday, February 02, 2007 11:38 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Actual Good News! > > http://blogs.msdn.com/access/archive/2007/02/02/access-2007-runtime-and-deve > loper-extension-will-be-free.aspx > > > Dan Waters > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Sat Feb 3 09:38:48 2007 From: dwaters at usinternet.com (Dan Waters) Date: Sat, 3 Feb 2007 09:38:48 -0600 Subject: [AccessD] Connections and Performance In-Reply-To: <993701.1170511968284.JavaMail.root@sniper53> References: <21447087.1170430574567.JavaMail.root@sniper23><006c01c74749$94855820$0200a8c0@danwaters> <993701.1170511968284.JavaMail.root@sniper53> Message-ID: <008b01c747a9$66d3a520$0200a8c0@danwaters> That's at least part of it! Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Saturday, February 03, 2007 8:10 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance Could it possibly be network congestion or some other issue with the network? Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 02, 2007 11:13 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance Drew, I read this somewhere - either in MS documentation or in a book where I believe the author. Here's the reason I was asking: At a certain customer site, they experienced a dramatic performance slowdown at a time when about 10 people were logged on concurrently. Each client PC has it's own FE. I know that they open the system and leave the process screens open, all of which are bound. I want to suggest that they remember to close the process screens so that just the main screen is open, which is not bound. This way a fewer number of connections are being used at any one time and performance would probably be acceptable. This particular customer, I believe, does not have a very good network, so that is part of the problem. But that's unlikely to get improved, so I wanted to provide at least a partial solution, hence my question. I've also heard that a connection is made not based on whether a form is open and bound, but on whether or not there is data traffic between to and from a table, which only takes a small part of a second. So what causes the performance slowdown when only 10 client PC's are logged on, and what could be done to improve this? Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Sat Feb 3 10:43:55 2007 From: wdhindman at dejpolsystems.com (William Hindman) Date: Sat, 3 Feb 2007 11:43:55 -0500 Subject: [AccessD] Actual Good News! References: <01ed01c7479f$8bc64ef0$657aa8c0@m6805> Message-ID: <000801c747b2$7f6a6b60$8d4beb44@50NM721> ...exactly, more Office Standard vs Office Pro ...don't see any MS revenues in that move ...still makes no sense, thus I await the other shoe dropping. ...maybe the SQL Server group has its own fe .net rad in the wings ...that might explain the Access dev move ...we can always hope. William Hindman ----- Original Message ----- From: "JWColby" To: "'Access Developers discussion and problem solving'" Sent: Saturday, February 03, 2007 9:28 AM Subject: Re: [AccessD] Actual Good News! > Well, that assumes that you do not use automation of course. If you > automate word or excel or any other office app, then a copy of that has to > be on the workstation. It really means that they can buy the cheaper > version of office without Access. > > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman > Sent: Saturday, February 03, 2007 1:49 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Actual Good News! > > ...strange marketing move though ...buy one copy of Access and run your > whole company without having to buy another one ...it would also appear to > kick the Office Pro package in the teeth to the same extent ...not that I > mind of course but the end result in MS terms would appear to be more > Access > dbs with fewer sales ...I'm missing something in the logic behind this. > > William Hindman > > ----- Original Message ----- > From: "JWColby" > To: "'Access Developers discussion and problem solving'" > > Sent: Friday, February 02, 2007 11:55 PM > Subject: Re: [AccessD] Actual Good News! > > >> Hmmm... I smell a "let's get developers to move to this" kinda thing >> going >> here. >> >> And it just might work. ;-) >> >> John W. Colby >> Colby Consulting >> www.ColbyConsulting.com >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >> Sent: Friday, February 02, 2007 11:38 PM >> To: 'Access Developers discussion and problem solving' >> Subject: [AccessD] Actual Good News! >> >> > http://blogs.msdn.com/access/archive/2007/02/02/access-2007-runtime-and-deve >> loper-extension-will-be-free.aspx >> >> >> Dan Waters >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From mwp.reid at qub.ac.uk Sat Feb 3 12:45:53 2007 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Sat, 3 Feb 2007 18:45:53 -0000 Subject: [AccessD] Actual Good News! References: <01ed01c7479f$8bc64ef0$657aa8c0@m6805> <000801c747b2$7f6a6b60$8d4beb44@50NM721> Message-ID: I do know they where hoping the use of templates would take of. They are providing a tool that will shred databases up into templates which can then appear in the interface just like an MS one. I was told this was a distinct tool which they would make available but now its part of the dev tools. Still seems odd though. Not liek them to give you something for nothing. Maritn Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of William Hindman Sent: Sat 03/02/2007 16:43 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Actual Good News! ...exactly, more Office Standard vs Office Pro ...don't see any MS revenues in that move ...still makes no sense, thus I await the other shoe dropping. ...maybe the SQL Server group has its own fe .net rad in the wings ...that might explain the Access dev move ...we can always hope. William Hindman ----- Original Message ----- From: "JWColby" To: "'Access Developers discussion and problem solving'" Sent: Saturday, February 03, 2007 9:28 AM Subject: Re: [AccessD] Actual Good News! > Well, that assumes that you do not use automation of course. If you > automate word or excel or any other office app, then a copy of that has to > be on the workstation. It really means that they can buy the cheaper > version of office without Access. > > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman > Sent: Saturday, February 03, 2007 1:49 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Actual Good News! > > ...strange marketing move though ...buy one copy of Access and run your > whole company without having to buy another one ...it would also appear to > kick the Office Pro package in the teeth to the same extent ...not that I > mind of course but the end result in MS terms would appear to be more > Access > dbs with fewer sales ...I'm missing something in the logic behind this. > > William Hindman > > ----- Original Message ----- > From: "JWColby" > To: "'Access Developers discussion and problem solving'" > > Sent: Friday, February 02, 2007 11:55 PM > Subject: Re: [AccessD] Actual Good News! > > >> Hmmm... I smell a "let's get developers to move to this" kinda thing >> going >> here. >> >> And it just might work. ;-) >> >> John W. Colby >> Colby Consulting >> www.ColbyConsulting.com >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >> Sent: Friday, February 02, 2007 11:38 PM >> To: 'Access Developers discussion and problem solving' >> Subject: [AccessD] Actual Good News! >> >> > http://blogs.msdn.com/access/archive/2007/02/02/access-2007-runtime-and-deve >> loper-extension-will-be-free.aspx >> >> >> Dan Waters >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 setel.com Sun Feb 4 08:54:25 2007 From: ssharkins at setel.com (Susan Harkins) Date: Sun, 4 Feb 2007 09:54:25 -0500 Subject: [AccessD] acwzmain Message-ID: <002301c7486c$5da2b2c0$b234fad1@SUSANONE> After reinstalling Office 2003, I have acwzmain back in my Project Explorer. Now, I thought this was an 2000 or XP thing - I promise, it has not been showing in my 2003 VBE. Is it supposed to be in 2003? If not, how can I get rid of it? Can I at least hide it in the PE? Susan H. From dwaters at usinternet.com Sun Feb 4 10:40:27 2007 From: dwaters at usinternet.com (Dan Waters) Date: Sun, 4 Feb 2007 10:40:27 -0600 Subject: [AccessD] Why is Runtime Free? Message-ID: <00ce01c7487b$2db01440$0200a8c0@danwaters> I've been reading through Microsoft's site on Access 2007, and found a couple of things: 1) The user level security model now in Access 2003 and previous is removed in Access 2007. However, you will be able to upgrade an Access 2003 database and continue to use the current user level security model. 2) You can develop Access Projects (.adp) in Access 2007. Without a security model, developers can't develop useful multi-user databases. By removing security from Access 2007, and making the runtime version free, developers are encouraged to use Access, but forced to use a different BE database. This forcing/encouraging will (MS hopes) lead to more usage of SQL Server 2005 where it's security model can be used to protect the data. The full versions of SQL Server are profitable for MS, as well as competitive with Oracle in some situations (I think). Well - that's my guess! Dan Waters From jengross at gte.net Sun Feb 4 16:05:27 2007 From: jengross at gte.net (Jennifer Gross) Date: Sun, 04 Feb 2007 14:05:27 -0800 Subject: [AccessD] ADO code stopped working Message-ID: <009f01c748a8$9496b9c0$6401a8c0@jefferson> Hi Everyone, W2K SP4 / A2K SP3 / terminal server I have a database that has some DAO and some ADO code. Recently all ADO stopped working. DAO is still working fine. Anytime code utilizing ADO runs it shuts down the database abruptly, leaving the LDB file. We were also having problems with the Windows Management databases locking up and a reinstall of the latest MDAC took care of that problem, but did not solve the ADO problem. ADO was working fine for end of year reporting. There are no missing references. After the MDAC reinstall I unchecked references, closed down, opened up and rechecked references. Any help would be greatly appreciated. Thank you, Jennifer Gross databasics 2839 Shirley Drive Newbury Park, CA 91320-3068 office: (805) 480-1921 fax: (805) 499-0467 From darrend at nimble.com.au Sun Feb 4 16:26:33 2007 From: darrend at nimble.com.au (Darren DICK) Date: Mon, 5 Feb 2007 09:26:33 +1100 Subject: [AccessD] A2003:Determining Background colour of the desktop In-Reply-To: <45C266AE.27258.2EDB385@stuart.lexacorp.com.pg> Message-ID: <200702042226.l14MQdO04505@databaseadvisors.com> Stuart Work of genius - well done and thanks Darren ------------------ -----Original Message----- From: Stuart McLachlan [mailto:stuart at lexacorp.com.pg] Sent: Friday, 2 February 2007 9:16 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2003:Determining Background colour of the desktop On 2 Feb 2007 at 8:47, Darren DICK wrote: > Does anyone know how to determine the background colour of the desktop? > > I have a form I want to set its background colour to match Look up "System Color Constants" in VBA Help (remember to omit the "u" ) Specifically "vbDesktop 0x80000001 Desktop color " So set the Detail Backcolor property to &H80000001 or to -2147483647 -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Sun Feb 4 18:54:36 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Sun, 4 Feb 2007 16:54:36 -0800 Subject: [AccessD] ADO code stopped working In-Reply-To: <009f01c748a8$9496b9c0$6401a8c0@jefferson> Message-ID: <007e01c748c0$354985c0$0201a8c0@HAL9005> I would whip up a small app with some ado code to see if the problem is inside your app or outside of it. Does your app compile? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Sunday, February 04, 2007 2:05 PM To: AccessD List Subject: [AccessD] ADO code stopped working Hi Everyone, W2K SP4 / A2K SP3 / terminal server I have a database that has some DAO and some ADO code. Recently all ADO stopped working. DAO is still working fine. Anytime code utilizing ADO runs it shuts down the database abruptly, leaving the LDB file. We were also having problems with the Windows Management databases locking up and a reinstall of the latest MDAC took care of that problem, but did not solve the ADO problem. ADO was working fine for end of year reporting. There are no missing references. After the MDAC reinstall I unchecked references, closed down, opened up and rechecked references. Any help would be greatly appreciated. Thank you, Jennifer Gross databasics 2839 Shirley Drive Newbury Park, CA 91320-3068 office: (805) 480-1921 fax: (805) 499-0467 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.17.24/668 - Release Date: 2/4/2007 1:30 AM From martyconnelly at shaw.ca Sun Feb 4 19:36:33 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sun, 04 Feb 2007 17:36:33 -0800 Subject: [AccessD] ADO code stopped working In-Reply-To: <009f01c748a8$9496b9c0$6401a8c0@jefferson> References: <009f01c748a8$9496b9c0$6401a8c0@jefferson> Message-ID: <45C68A21.2020108@shaw.ca> If you look at the references you will see Microsoft ActiveX Data Object 2.0 Library Microsoft ActiveX Data Object 2.1 Library Microsoft ActiveX Data Object 2.5 Library Microsoft ActiveX Data Object 2.8 Library However, they refer to the following files (respectively): see path name msado20.tlb msado21.tlb msado25.tlb msado15.tlb Point at which ever is msado15.tlb that is default current one active This applies through all the mdacs http://support.microsoft.com/kb/q201576/ Jennifer Gross wrote: >Hi Everyone, > >W2K SP4 / A2K SP3 / terminal server > >I have a database that has some DAO and some ADO code. Recently all ADO >stopped working. DAO is still working fine. Anytime code utilizing ADO >runs it shuts down the database abruptly, leaving the LDB file. We were >also having problems with the Windows Management databases locking up >and a reinstall of the latest MDAC took care of that problem, but did >not solve the ADO problem. ADO was working fine for end of year >reporting. There are no missing references. After the MDAC reinstall I >unchecked references, closed down, opened up and rechecked references. > >Any help would be greatly appreciated. > >Thank you, > >Jennifer Gross >databasics >2839 Shirley Drive >Newbury Park, CA 91320-3068 >office: (805) 480-1921 >fax: (805) 499-0467 > > > > -- Marty Connelly Victoria, B.C. Canada From wdhindman at dejpolsystems.com Sun Feb 4 21:40:12 2007 From: wdhindman at dejpolsystems.com (William Hindman) Date: Sun, 4 Feb 2007 22:40:12 -0500 Subject: [AccessD] ADO code stopped working References: <009f01c748a8$9496b9c0$6401a8c0@jefferson> <45C68A21.2020108@shaw.ca> Message-ID: <002901c748d7$5844f070$8d4beb44@50NM721> ...another gem for the archive. William Hindman ----- Original Message ----- From: "MartyConnelly" To: "Access Developers discussion and problem solving" Sent: Sunday, February 04, 2007 8:36 PM Subject: Re: [AccessD] ADO code stopped working > If you look at the references you will see > > Microsoft ActiveX Data Object 2.0 Library > Microsoft ActiveX Data Object 2.1 Library > Microsoft ActiveX Data Object 2.5 Library > Microsoft ActiveX Data Object 2.8 Library > > However, they refer to the following files (respectively): see path name > > msado20.tlb > msado21.tlb > msado25.tlb > msado15.tlb > > Point at which ever is msado15.tlb > that is default current one active > > > This applies through all the mdacs > http://support.microsoft.com/kb/q201576/ > > Jennifer Gross wrote: > >>Hi Everyone, >> >>W2K SP4 / A2K SP3 / terminal server >> >>I have a database that has some DAO and some ADO code. Recently all ADO >>stopped working. DAO is still working fine. Anytime code utilizing ADO >>runs it shuts down the database abruptly, leaving the LDB file. We were >>also having problems with the Windows Management databases locking up >>and a reinstall of the latest MDAC took care of that problem, but did >>not solve the ADO problem. ADO was working fine for end of year >>reporting. There are no missing references. After the MDAC reinstall I >>unchecked references, closed down, opened up and rechecked references. >> >>Any help would be greatly appreciated. >> >>Thank you, >> >>Jennifer Gross >>databasics >>2839 Shirley Drive >>Newbury Park, CA 91320-3068 >>office: (805) 480-1921 >>fax: (805) 499-0467 >> >> >> >> > > -- > 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 Sun Feb 4 21:55:15 2007 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 05 Feb 2007 13:55:15 +1000 Subject: [AccessD] ADO code stopped working In-Reply-To: <45C68A21.2020108@shaw.ca> References: <009f01c748a8$9496b9c0$6401a8c0@jefferson>, <45C68A21.2020108@shaw.ca> Message-ID: <45C73743.30829.6CA2FDE4@stuart.lexacorp.com.pg> I think you'll find that it is msado15.dll that you need to point to. The active one is a Dynaic Link Library (.dll), all the other ones will be Type Libraries(.tlb) -- Stuart On 4 Feb 2007 at 17:36, MartyConnelly wrote: > If you look at the references you will see > > Microsoft ActiveX Data Object 2.0 Library > Microsoft ActiveX Data Object 2.1 Library > Microsoft ActiveX Data Object 2.5 Library > Microsoft ActiveX Data Object 2.8 Library > > However, they refer to the following files (respectively): see path name > > msado20.tlb > msado21.tlb > msado25.tlb > msado15.tlb > > Point at which ever is msado15.tlb > that is default current one active > > > This applies through all the mdacs > http://support.microsoft.com/kb/q201576/ > > Jennifer Gross wrote: > > >Hi Everyone, > > > >W2K SP4 / A2K SP3 / terminal server > > > >I have a database that has some DAO and some ADO code. Recently all ADO > >stopped working. DAO is still working fine. Anytime code utilizing ADO > >runs it shuts down the database abruptly, leaving the LDB file. We were > >also having problems with the Windows Management databases locking up > >and a reinstall of the latest MDAC took care of that problem, but did > >not solve the ADO problem. ADO was working fine for end of year > >reporting. There are no missing references. After the MDAC reinstall I > >unchecked references, closed down, opened up and rechecked references. > > > >Any help would be greatly appreciated. > > > >Thank you, > > > >Jennifer Gross > >databasics > >2839 Shirley Drive > >Newbury Park, CA 91320-3068 > >office: (805) 480-1921 > >fax: (805) 499-0467 > > > > > > > > > > -- > 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 jengross at gte.net Sun Feb 4 22:00:43 2007 From: jengross at gte.net (Jennifer Gross) Date: Sun, 04 Feb 2007 20:00:43 -0800 Subject: [AccessD] ADO code stopped working In-Reply-To: <007e01c748c0$354985c0$0201a8c0@HAL9005> Message-ID: <001d01c748da$3984e6b0$6401a8c0@jefferson> Thanks for the suggestions. I set the references like Marty suggested and am still getting the problem. I am using the Getz Developers Handbook code for looping through parameters in a select query: Dim cmd As ADODB.Command Dim rst As ADODB.Recordset Dim prm As ADODB.Parameter Dim cat As ADOX.Catalog Dim prc As ADOX.Procedure Set cat = New ADOX.Catalog * cat.ActiveConnection = CurrentProject.Connection * Set prc = cat.Procedures("TheQuery") Set cmd = prc.Command For Each prm In cmd.Parameters prm.Value = Eval(prm.Name) Next prm Set rst = cmd.Execute If I don't use the query with parameters, but instead base the recordset on the table, then it works fine: Set rst = New ADODB.Recordset Set rst.ActiveConnection = CurrentProject.Connection rst.CursorType = adOpenForwardOnly rst.LockType = adLockReadOnly rst.Open "TheTable" I am getting the same results whether the code is in the existing FE or if I create a new db with the ADO code as Rocky suggested. Any thoughts? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Sunday, February 04, 2007 4:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] ADO code stopped working I would whip up a small app with some ado code to see if the problem is inside your app or outside of it. Does your app compile? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Sunday, February 04, 2007 2:05 PM To: AccessD List Subject: [AccessD] ADO code stopped working Hi Everyone, W2K SP4 / A2K SP3 / terminal server I have a database that has some DAO and some ADO code. Recently all ADO stopped working. DAO is still working fine. Anytime code utilizing ADO runs it shuts down the database abruptly, leaving the LDB file. We were also having problems with the Windows Management databases locking up and a reinstall of the latest MDAC took care of that problem, but did not solve the ADO problem. ADO was working fine for end of year reporting. There are no missing references. After the MDAC reinstall I unchecked references, closed down, opened up and rechecked references. Any help would be greatly appreciated. Thank you, Jennifer Gross databasics 2839 Shirley Drive Newbury Park, CA 91320-3068 office: (805) 480-1921 fax: (805) 499-0467 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.17.24/668 - Release Date: 2/4/2007 1:30 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Sun Feb 4 22:01:26 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sun, 04 Feb 2007 20:01:26 -0800 Subject: [AccessD] ADO code stopped working In-Reply-To: <002901c748d7$5844f070$8d4beb44@50NM721> References: <009f01c748a8$9496b9c0$6401a8c0@jefferson> <45C68A21.2020108@shaw.ca> <002901c748d7$5844f070$8d4beb44@50NM721> Message-ID: <45C6AC16.40006@shaw.ca> Well assuming you have installed MDAC 2.8 The Access reference Microsoft ActiveX Data Object 2.8 Library should point at C:\Program Files\Common Files\System\ado\msado15.dll Depending on the upgrade path you may find the default ADO Access reference pointing at C:\Program Files\Common Files\System\ado\msado21.tlb which is quite antique, circa 1999, so switch it The older tlb versions give MDAC backward compatibility William Hindman wrote: >...another gem for the archive. > >William Hindman > >----- Original Message ----- >From: "MartyConnelly" >To: "Access Developers discussion and problem solving" > >Sent: Sunday, February 04, 2007 8:36 PM >Subject: Re: [AccessD] ADO code stopped working > > > > >>If you look at the references you will see >> >>Microsoft ActiveX Data Object 2.0 Library >>Microsoft ActiveX Data Object 2.1 Library >>Microsoft ActiveX Data Object 2.5 Library >>Microsoft ActiveX Data Object 2.8 Library >> >>However, they refer to the following files (respectively): see path name >> >>msado20.tlb >>msado21.tlb >>msado25.tlb >>msado15.tlb >> >>Point at which ever is msado15.tlb >>that is default current one active >> >> >>This applies through all the mdacs >>http://support.microsoft.com/kb/q201576/ >> >>Jennifer Gross wrote: >> >> >> >>>Hi Everyone, >>> >>>W2K SP4 / A2K SP3 / terminal server >>> >>>I have a database that has some DAO and some ADO code. Recently all ADO >>>stopped working. DAO is still working fine. Anytime code utilizing ADO >>>runs it shuts down the database abruptly, leaving the LDB file. We were >>>also having problems with the Windows Management databases locking up >>>and a reinstall of the latest MDAC took care of that problem, but did >>>not solve the ADO problem. ADO was working fine for end of year >>>reporting. There are no missing references. After the MDAC reinstall I >>>unchecked references, closed down, opened up and rechecked references. >>> >>>Any help would be greatly appreciated. >>> >>>Thank you, >>> >>>Jennifer Gross >>>databasics >>>2839 Shirley Drive >>>Newbury Park, CA 91320-3068 >>>office: (805) 480-1921 >>>fax: (805) 499-0467 >>> >>> >>> >>> >>> >>> >>-- >>Marty Connelly >>Victoria, B.C. >>Canada >> >>-- >>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 jengross at gte.net Sun Feb 4 22:07:38 2007 From: jengross at gte.net (Jennifer Gross) Date: Sun, 04 Feb 2007 20:07:38 -0800 Subject: [AccessD] ADO code stopped working In-Reply-To: <001d01c748da$3984e6b0$6401a8c0@jefferson> Message-ID: <001e01c748db$2fc2c600$6401a8c0@jefferson> Oops, forgot to mention, the code is failing on the starred lines. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Sunday, February 04, 2007 8:01 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] ADO code stopped working Thanks for the suggestions. I set the references like Marty suggested and am still getting the problem. I am using the Getz Developers Handbook code for looping through parameters in a select query: Dim cmd As ADODB.Command Dim rst As ADODB.Recordset Dim prm As ADODB.Parameter Dim cat As ADOX.Catalog Dim prc As ADOX.Procedure Set cat = New ADOX.Catalog * cat.ActiveConnection = CurrentProject.Connection * Set prc = cat.Procedures("TheQuery") Set cmd = prc.Command For Each prm In cmd.Parameters prm.Value = Eval(prm.Name) Next prm Set rst = cmd.Execute If I don't use the query with parameters, but instead base the recordset on the table, then it works fine: Set rst = New ADODB.Recordset Set rst.ActiveConnection = CurrentProject.Connection rst.CursorType = adOpenForwardOnly rst.LockType = adLockReadOnly rst.Open "TheTable" I am getting the same results whether the code is in the existing FE or if I create a new db with the ADO code as Rocky suggested. Any thoughts? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Sunday, February 04, 2007 4:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] ADO code stopped working I would whip up a small app with some ado code to see if the problem is inside your app or outside of it. Does your app compile? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Sunday, February 04, 2007 2:05 PM To: AccessD List Subject: [AccessD] ADO code stopped working Hi Everyone, W2K SP4 / A2K SP3 / terminal server I have a database that has some DAO and some ADO code. Recently all ADO stopped working. DAO is still working fine. Anytime code utilizing ADO runs it shuts down the database abruptly, leaving the LDB file. We were also having problems with the Windows Management databases locking up and a reinstall of the latest MDAC took care of that problem, but did not solve the ADO problem. ADO was working fine for end of year reporting. There are no missing references. After the MDAC reinstall I unchecked references, closed down, opened up and rechecked references. Any help would be greatly appreciated. Thank you, Jennifer Gross databasics 2839 Shirley Drive Newbury Park, CA 91320-3068 office: (805) 480-1921 fax: (805) 499-0467 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.17.24/668 - Release Date: 2/4/2007 1:30 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sun Feb 4 22:16:24 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sun, 04 Feb 2007 20:16:24 -0800 Subject: [AccessD] ADO code stopped working In-Reply-To: <001d01c748da$3984e6b0$6401a8c0@jefferson> References: <001d01c748da$3984e6b0$6401a8c0@jefferson> Message-ID: <45C6AF98.2090203@shaw.ca> tlb/dll My eyeballs get fuzzy watching Superbowl commercials However you are using ADOX, so you need one more additional reference if it is 2.8 MDAC you need a reference to The Access reference Microsoft ActiveX Data Object 2.7 Recordsets Library should point at C:\Program Files\Common Files\System\ado\msador15.dll Jennifer Gross wrote: >Thanks for the suggestions. I set the references like Marty suggested >and am still getting the problem. I am using the Getz Developers >Handbook code for looping through parameters in a select query: > > Dim cmd As ADODB.Command > Dim rst As ADODB.Recordset > Dim prm As ADODB.Parameter > Dim cat As ADOX.Catalog > Dim prc As ADOX.Procedure > > Set cat = New ADOX.Catalog >* cat.ActiveConnection = CurrentProject.Connection >* Set prc = cat.Procedures("TheQuery") > Set cmd = prc.Command > For Each prm In cmd.Parameters > prm.Value = Eval(prm.Name) > Next prm > Set rst = cmd.Execute > >If I don't use the query with parameters, but instead base the recordset >on the table, then it works fine: > > Set rst = New ADODB.Recordset > Set rst.ActiveConnection = CurrentProject.Connection > rst.CursorType = adOpenForwardOnly > rst.LockType = adLockReadOnly > rst.Open "TheTable" > >I am getting the same results whether the code is in the existing FE or >if I create a new db with the ADO code as Rocky suggested. > >Any thoughts? > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin >at Beach Access Software >Sent: Sunday, February 04, 2007 4:55 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] ADO code stopped working > > >I would whip up a small app with some ado code to see if the problem is >inside your app or outside of it. Does your app compile? > >Rocky > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer >Gross >Sent: Sunday, February 04, 2007 2:05 PM >To: AccessD List >Subject: [AccessD] ADO code stopped working > >Hi Everyone, > >W2K SP4 / A2K SP3 / terminal server > >I have a database that has some DAO and some ADO code. Recently all ADO >stopped working. DAO is still working fine. Anytime code utilizing ADO >runs it shuts down the database abruptly, leaving the LDB file. We were >also having problems with the Windows Management databases locking up >and a reinstall of the latest MDAC took care of that problem, but did >not solve the ADO problem. ADO was working fine for end of year >reporting. There are no missing references. After the MDAC reinstall I >unchecked references, closed down, opened up and rechecked references. > >Any help would be greatly appreciated. > >Thank you, > >Jennifer Gross >databasics >2839 Shirley Drive >Newbury Park, CA 91320-3068 >office: (805) 480-1921 >fax: (805) 499-0467 > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >No virus found in this incoming message. >Checked by AVG Free Edition. >Version: 7.5.432 / Virus Database: 268.17.24/668 - Release Date: >2/4/2007 1:30 AM > > > > -- Marty Connelly Victoria, B.C. Canada From jengross at gte.net Sun Feb 4 22:59:40 2007 From: jengross at gte.net (Jennifer Gross) Date: Sun, 04 Feb 2007 20:59:40 -0800 Subject: [AccessD] ADO code stopped working In-Reply-To: <45C6AF98.2090203@shaw.ca> Message-ID: <002501c748e2$74b869c0$6401a8c0@jefferson> Thanks Marty. I have the reference to msado15.dll, it is the latest ActiveX Data Object 2.8 Recordset Library. The code is compiling, but failing. It was running properly in January for end of year reporting and I have made no changes to the code since it ran properly. The DAO code is all still running properly. After 6+ years I finally decided to dip my toe in ADO and it worked well before - I just can't figure out why it is failing now. We have re-installed MDAC. I've unchecked and rechecked the references. I am at a loss. I await the ADO gurus' various ah-ha's. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Sunday, February 04, 2007 8:16 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] ADO code stopped working tlb/dll My eyeballs get fuzzy watching Superbowl commercials However you are using ADOX, so you need one more additional reference if it is 2.8 MDAC you need a reference to The Access reference Microsoft ActiveX Data Object 2.7 Recordsets Library should point at C:\Program Files\Common Files\System\ado\msador15.dll Jennifer Gross wrote: >Thanks for the suggestions. I set the references like Marty suggested >and am still getting the problem. I am using the Getz Developers >Handbook code for looping through parameters in a select query: > > Dim cmd As ADODB.Command > Dim rst As ADODB.Recordset > Dim prm As ADODB.Parameter > Dim cat As ADOX.Catalog > Dim prc As ADOX.Procedure > > Set cat = New ADOX.Catalog >* cat.ActiveConnection = CurrentProject.Connection >* Set prc = cat.Procedures("TheQuery") > Set cmd = prc.Command > For Each prm In cmd.Parameters > prm.Value = Eval(prm.Name) > Next prm > Set rst = cmd.Execute > >If I don't use the query with parameters, but instead base the >recordset on the table, then it works fine: > > Set rst = New ADODB.Recordset > Set rst.ActiveConnection = CurrentProject.Connection > rst.CursorType = adOpenForwardOnly > rst.LockType = adLockReadOnly > rst.Open "TheTable" > >I am getting the same results whether the code is in the existing FE or >if I create a new db with the ADO code as Rocky suggested. > >Any thoughts? > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin >at Beach Access Software >Sent: Sunday, February 04, 2007 4:55 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] ADO code stopped working > > >I would whip up a small app with some ado code to see if the problem is >inside your app or outside of it. Does your app compile? > >Rocky > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer >Gross >Sent: Sunday, February 04, 2007 2:05 PM >To: AccessD List >Subject: [AccessD] ADO code stopped working > >Hi Everyone, > >W2K SP4 / A2K SP3 / terminal server > >I have a database that has some DAO and some ADO code. Recently all >ADO stopped working. DAO is still working fine. Anytime code >utilizing ADO runs it shuts down the database abruptly, leaving the LDB >file. We were also having problems with the Windows Management >databases locking up and a reinstall of the latest MDAC took care of >that problem, but did not solve the ADO problem. ADO was working fine >for end of year reporting. There are no missing references. After the >MDAC reinstall I unchecked references, closed down, opened up and >rechecked references. > >Any help would be greatly appreciated. > >Thank you, > >Jennifer Gross >databasics >2839 Shirley Drive >Newbury Park, CA 91320-3068 >office: (805) 480-1921 >fax: (805) 499-0467 > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >No virus found in this incoming message. >Checked by AVG Free Edition. >Version: 7.5.432 / Virus Database: 268.17.24/668 - Release Date: >2/4/2007 1:30 AM > > > > -- 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 ebarro at verizon.net Sun Feb 4 23:13:44 2007 From: ebarro at verizon.net (Eric Barro) Date: Sun, 04 Feb 2007 21:13:44 -0800 Subject: [AccessD] ADO code stopped working In-Reply-To: <002501c748e2$74b869c0$6401a8c0@jefferson> Message-ID: <0JCZ008OE56O4LYJ@vms042.mailsrvcs.net> Have you tried this? Set cat.ActiveConnection = CurrentProject.Connection --Eric -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Sunday, February 04, 2007 9:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] ADO code stopped working Thanks Marty. I have the reference to msado15.dll, it is the latest ActiveX Data Object 2.8 Recordset Library. The code is compiling, but failing. It was running properly in January for end of year reporting and I have made no changes to the code since it ran properly. The DAO code is all still running properly. After 6+ years I finally decided to dip my toe in ADO and it worked well before - I just can't figure out why it is failing now. We have re-installed MDAC. I've unchecked and rechecked the references. I am at a loss. I await the ADO gurus' various ah-ha's. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Sunday, February 04, 2007 8:16 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] ADO code stopped working tlb/dll My eyeballs get fuzzy watching Superbowl commercials However you are using ADOX, so you need one more additional reference if it is 2.8 MDAC you need a reference to The Access reference Microsoft ActiveX Data Object 2.7 Recordsets Library should point at C:\Program Files\Common Files\System\ado\msador15.dll Jennifer Gross wrote: >Thanks for the suggestions. I set the references like Marty suggested >and am still getting the problem. I am using the Getz Developers >Handbook code for looping through parameters in a select query: > > Dim cmd As ADODB.Command > Dim rst As ADODB.Recordset > Dim prm As ADODB.Parameter > Dim cat As ADOX.Catalog > Dim prc As ADOX.Procedure > > Set cat = New ADOX.Catalog >* cat.ActiveConnection = CurrentProject.Connection >* Set prc = cat.Procedures("TheQuery") > Set cmd = prc.Command > For Each prm In cmd.Parameters > prm.Value = Eval(prm.Name) > Next prm > Set rst = cmd.Execute > >If I don't use the query with parameters, but instead base the >recordset on the table, then it works fine: > > Set rst = New ADODB.Recordset > Set rst.ActiveConnection = CurrentProject.Connection > rst.CursorType = adOpenForwardOnly > rst.LockType = adLockReadOnly > rst.Open "TheTable" > >I am getting the same results whether the code is in the existing FE or >if I create a new db with the ADO code as Rocky suggested. > >Any thoughts? > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin >at Beach Access Software >Sent: Sunday, February 04, 2007 4:55 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] ADO code stopped working > > >I would whip up a small app with some ado code to see if the problem is >inside your app or outside of it. Does your app compile? > >Rocky > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer >Gross >Sent: Sunday, February 04, 2007 2:05 PM >To: AccessD List >Subject: [AccessD] ADO code stopped working > >Hi Everyone, > >W2K SP4 / A2K SP3 / terminal server > >I have a database that has some DAO and some ADO code. Recently all >ADO stopped working. DAO is still working fine. Anytime code >utilizing ADO runs it shuts down the database abruptly, leaving the LDB >file. We were also having problems with the Windows Management >databases locking up and a reinstall of the latest MDAC took care of >that problem, but did not solve the ADO problem. ADO was working fine >for end of year reporting. There are no missing references. After the >MDAC reinstall I unchecked references, closed down, opened up and >rechecked references. > >Any help would be greatly appreciated. > >Thank you, > >Jennifer Gross >databasics >2839 Shirley Drive >Newbury Park, CA 91320-3068 >office: (805) 480-1921 >fax: (805) 499-0467 > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >No virus found in this incoming message. >Checked by AVG Free Edition. >Version: 7.5.432 / Virus Database: 268.17.24/668 - Release Date: >2/4/2007 1:30 AM > > > > -- 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 -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.411 / Virus Database: 268.17.24/668 - Release Date: 2/4/2007 From martyconnelly at shaw.ca Sun Feb 4 23:15:50 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sun, 04 Feb 2007 21:15:50 -0800 Subject: [AccessD] ADO code stopped working In-Reply-To: <002501c748e2$74b869c0$6401a8c0@jefferson> References: <002501c748e2$74b869c0$6401a8c0@jefferson> Message-ID: <45C6BD86.1080300@shaw.ca> You need two references set Microsoft ActiveX Data Object 2.7 Recordsets Library msador15.dll for ADOX and Microsoft ActiveX Data Object 2.8 Library msado15.dll for ADODB Jennifer Gross wrote: >Thanks Marty. I have the reference to msado15.dll, it is the latest >ActiveX Data Object 2.8 Recordset Library. The code is compiling, but >failing. It was running properly in January for end of year reporting >and I have made no changes to the code since it ran properly. The DAO >code is all still running properly. After 6+ years I finally decided to >dip my toe in ADO and it worked well before - I just can't figure out >why it is failing now. We have re-installed MDAC. I've unchecked and >rechecked the references. I am at a loss. I await the ADO gurus' >various ah-ha's. > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly >Sent: Sunday, February 04, 2007 8:16 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] ADO code stopped working > > >tlb/dll My eyeballs get fuzzy watching Superbowl commercials > >However you are using ADOX, so you need one more additional reference if >it is 2.8 MDAC you need a reference to > >The Access reference >Microsoft ActiveX Data Object 2.7 Recordsets Library >should point at >C:\Program Files\Common Files\System\ado\msador15.dll > >Jennifer Gross wrote: > > > >>Thanks for the suggestions. I set the references like Marty suggested >>and am still getting the problem. I am using the Getz Developers >>Handbook code for looping through parameters in a select query: >> >> Dim cmd As ADODB.Command >> Dim rst As ADODB.Recordset >> Dim prm As ADODB.Parameter >> Dim cat As ADOX.Catalog >> Dim prc As ADOX.Procedure >> >> Set cat = New ADOX.Catalog >>* cat.ActiveConnection = CurrentProject.Connection >>* Set prc = cat.Procedures("TheQuery") >> Set cmd = prc.Command >> For Each prm In cmd.Parameters >> prm.Value = Eval(prm.Name) >> Next prm >> Set rst = cmd.Execute >> >>If I don't use the query with parameters, but instead base the >>recordset on the table, then it works fine: >> >> Set rst = New ADODB.Recordset >> Set rst.ActiveConnection = CurrentProject.Connection >> rst.CursorType = adOpenForwardOnly >> rst.LockType = adLockReadOnly >> rst.Open "TheTable" >> >>I am getting the same results whether the code is in the existing FE or >> >> > > > >>if I create a new db with the ADO code as Rocky suggested. >> >>Any thoughts? >> >>Jennifer >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin >> >> > > > >>at Beach Access Software >>Sent: Sunday, February 04, 2007 4:55 PM >>To: 'Access Developers discussion and problem solving' >>Subject: Re: [AccessD] ADO code stopped working >> >> >>I would whip up a small app with some ado code to see if the problem is >> >> > > > >>inside your app or outside of it. Does your app compile? >> >>Rocky >> >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer >>Gross >>Sent: Sunday, February 04, 2007 2:05 PM >>To: AccessD List >>Subject: [AccessD] ADO code stopped working >> >>Hi Everyone, >> >>W2K SP4 / A2K SP3 / terminal server >> >>I have a database that has some DAO and some ADO code. Recently all >>ADO stopped working. DAO is still working fine. Anytime code >>utilizing ADO runs it shuts down the database abruptly, leaving the LDB >> >> > > > >>file. We were also having problems with the Windows Management >>databases locking up and a reinstall of the latest MDAC took care of >>that problem, but did not solve the ADO problem. ADO was working fine >>for end of year reporting. There are no missing references. After the >> >> > > > >>MDAC reinstall I unchecked references, closed down, opened up and >>rechecked references. >> >>Any help would be greatly appreciated. >> >>Thank you, >> >>Jennifer Gross >>databasics >>2839 Shirley Drive >>Newbury Park, CA 91320-3068 >>office: (805) 480-1921 >>fax: (805) 499-0467 >> >> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >>-- >>No virus found in this incoming message. >>Checked by AVG Free Edition. >>Version: 7.5.432 / Virus Database: 268.17.24/668 - Release Date: >>2/4/2007 1:30 AM >> >> >> >> >> >> > > > -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Sun Feb 4 23:39:10 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sun, 04 Feb 2007 21:39:10 -0800 Subject: [AccessD] ADO code stopped working In-Reply-To: <45C6BD86.1080300@shaw.ca> References: <002501c748e2$74b869c0$6401a8c0@jefferson> <45C6BD86.1080300@shaw.ca> Message-ID: <45C6C2FE.50407@shaw.ca> OOps try resetting this reference Microsoft ADO Ext for 2.8 for DDL and Secuirity C:\Program Files\Common Files\System\ado\msadox.dll MartyConnelly wrote: >You need two references set > >Microsoft ActiveX Data Object 2.7 Recordsets Library > >msador15.dll for ADOX >and > >Microsoft ActiveX Data Object 2.8 Library > >msado15.dll for ADODB > > > >Jennifer Gross wrote: > > > >>Thanks Marty. I have the reference to msado15.dll, it is the latest >>ActiveX Data Object 2.8 Recordset Library. The code is compiling, but >>failing. It was running properly in January for end of year reporting >>and I have made no changes to the code since it ran properly. The DAO >>code is all still running properly. After 6+ years I finally decided to >>dip my toe in ADO and it worked well before - I just can't figure out >>why it is failing now. We have re-installed MDAC. I've unchecked and >>rechecked the references. I am at a loss. I await the ADO gurus' >>various ah-ha's. >> >>Jennifer >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly >>Sent: Sunday, February 04, 2007 8:16 PM >>To: Access Developers discussion and problem solving >>Subject: Re: [AccessD] ADO code stopped working >> >> >>tlb/dll My eyeballs get fuzzy watching Superbowl commercials >> >>However you are using ADOX, so you need one more additional reference if >>it is 2.8 MDAC you need a reference to >> >>The Access reference >>Microsoft ActiveX Data Object 2.7 Recordsets Library >>should point at >>C:\Program Files\Common Files\System\ado\msador15.dll >> >>Jennifer Gross wrote: >> >> >> >> >> >>>Thanks for the suggestions. I set the references like Marty suggested >>>and am still getting the problem. I am using the Getz Developers >>>Handbook code for looping through parameters in a select query: >>> >>> Dim cmd As ADODB.Command >>> Dim rst As ADODB.Recordset >>> Dim prm As ADODB.Parameter >>> Dim cat As ADOX.Catalog >>> Dim prc As ADOX.Procedure >>> >>> Set cat = New ADOX.Catalog >>>* cat.ActiveConnection = CurrentProject.Connection >>>* Set prc = cat.Procedures("TheQuery") >>> Set cmd = prc.Command >>> For Each prm In cmd.Parameters >>> prm.Value = Eval(prm.Name) >>> Next prm >>> Set rst = cmd.Execute >>> >>>If I don't use the query with parameters, but instead base the >>>recordset on the table, then it works fine: >>> >>> Set rst = New ADODB.Recordset >>> Set rst.ActiveConnection = CurrentProject.Connection >>> rst.CursorType = adOpenForwardOnly >>> rst.LockType = adLockReadOnly >>> rst.Open "TheTable" >>> >>>I am getting the same results whether the code is in the existing FE or >>> >>> >>> >>> >> >> >> >> >>>if I create a new db with the ADO code as Rocky suggested. >>> >>>Any thoughts? >>> >>>Jennifer >>> >>>-----Original Message----- >>>From: accessd-bounces at databaseadvisors.com >>>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin >>> >>> >>> >>> >> >> >> >> >>>at Beach Access Software >>>Sent: Sunday, February 04, 2007 4:55 PM >>>To: 'Access Developers discussion and problem solving' >>>Subject: Re: [AccessD] ADO code stopped working >>> >>> >>>I would whip up a small app with some ado code to see if the problem is >>> >>> >>> >>> >> >> >> >> >>>inside your app or outside of it. Does your app compile? >>> >>>Rocky >>> >>> >>>-----Original Message----- >>>From: accessd-bounces at databaseadvisors.com >>>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer >>>Gross >>>Sent: Sunday, February 04, 2007 2:05 PM >>>To: AccessD List >>>Subject: [AccessD] ADO code stopped working >>> >>>Hi Everyone, >>> >>>W2K SP4 / A2K SP3 / terminal server >>> >>>I have a database that has some DAO and some ADO code. Recently all >>>ADO stopped working. DAO is still working fine. Anytime code >>>utilizing ADO runs it shuts down the database abruptly, leaving the LDB >>> >>> >>> >>> >> >> >> >> >>>file. We were also having problems with the Windows Management >>>databases locking up and a reinstall of the latest MDAC took care of >>>that problem, but did not solve the ADO problem. ADO was working fine >>>for end of year reporting. There are no missing references. After the >>> >>> >>> >>> >> >> >> >> >>>MDAC reinstall I unchecked references, closed down, opened up and >>>rechecked references. >>> >>>Any help would be greatly appreciated. >>> >>>Thank you, >>> >>>Jennifer Gross >>>databasics >>>2839 Shirley Drive >>>Newbury Park, CA 91320-3068 >>>office: (805) 480-1921 >>>fax: (805) 499-0467 >>> >>> >>>-- >>>AccessD mailing list >>>AccessD at databaseadvisors.com >>>http://databaseadvisors.com/mailman/listinfo/accessd >>>Website: http://www.databaseadvisors.com >>> >>>-- >>>No virus found in this incoming message. >>>Checked by AVG Free Edition. >>>Version: 7.5.432 / Virus Database: 268.17.24/668 - Release Date: >>>2/4/2007 1:30 AM >>> >>> >>> >>> >>> >>> >>> >>> >> >> >> >> > > > -- Marty Connelly Victoria, B.C. Canada From viner at EUnet.yu Mon Feb 5 02:31:44 2007 From: viner at EUnet.yu (Ervin Brindza) Date: Mon, 5 Feb 2007 09:31:44 +0100 Subject: [AccessD] Connections and Performance References: <21447087.1170430574567.JavaMail.root@sniper23> <006c01c74749$94855820$0200a8c0@danwaters> Message-ID: <04ba01c74900$2908d1e0$0100a8c0@RazvojErvin> Dan, how about using temporary tables for adding new records and for reporting? Ervin ----- Original Message ----- From: "Dan Waters" To: "'Access Developers discussion and problem solving'" Sent: Saturday, February 03, 2007 5:12 AM Subject: Re: [AccessD] Connections and Performance > Drew, > > I read this somewhere - either in MS documentation or in a book where I > believe the author. > > Here's the reason I was asking: > > At a certain customer site, they experienced a dramatic performance > slowdown > at a time when about 10 people were logged on concurrently. Each client > PC > has it's own FE. I know that they open the system and leave the process > screens open, all of which are bound. I want to suggest that they > remember > to close the process screens so that just the main screen is open, which > is > not bound. This way a fewer number of connections are being used at any > one > time and performance would probably be acceptable. This particular > customer, I believe, does not have a very good network, so that is part of > the problem. But that's unlikely to get improved, so I wanted to provide > at > least a partial solution, hence my question. > > I've also heard that a connection is made not based on whether a form is > open and bound, but on whether or not there is data traffic between to and > from a table, which only takes a small part of a second. > > So what causes the performance slowdown when only 10 client PC's are > logged > on, and what could be done to improve this? > > Dan Waters > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka > Sent: Friday, February 02, 2007 9:26 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Connections and Performance > > Where are you getting these numbers. Access can have up to 255 > connections. > > Drew > > -----Original Message----- > From: Dan Waters [mailto:dwaters at usinternet.com] > Sent: Friday, February 02, 2007 8:45 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Connections and Performance > > Access has the potential for 8 simultaneous connections, but 3 of them are > reserved for the system's use. That leaves five for users. > > Dan Waters > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby > Sent: Friday, February 02, 2007 8:02 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Connections and Performance > >>But, the connection limit for one BE is 5 FE's. > > What does this mean? I have never heard of any such thing. > > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Friday, February 02, 2007 8:58 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Connections and Performance > > I've read several times that maintaining a connection between a FE and a > BE > will increase the performance of the FE because it doesn't need to > reconnect > before transferring data. The connection here would be a bound form > connected by a table link to a table in the BE. > > But, the connection limit for one BE is 5 FE's. So, will maintaining > connections on more than 5 FE's reduce performance? Seems logical, but I > was wondering if this is correct or is there more to it? > > Thanks! > > Dan Waters > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.432 / Virus Database: 268.17.19/663 - Release Date: 2/1/2007 > 2:28 PM > > From Erwin.Craps at ithelps.eu Mon Feb 5 03:25:52 2007 From: Erwin.Craps at ithelps.eu (Erwin Craps - IT Helps) Date: Mon, 5 Feb 2007 10:25:52 +0100 Subject: [AccessD] Connections and Performance References: <21447087.1170430574567.JavaMail.root@sniper23><006c01c74749$94855820$0200a8c0@danwaters> <04ba01c74900$2908d1e0$0100a8c0@RazvojErvin> Message-ID: <430E80531228BA4497C5EB1A7BA786B002414A@stekelbes.ithelps.local> Did you checked that the virusscanner don't scan mdb? Ik had a bizare problem with a McAfee virusscanner that when eacht time saving a record it pauzed for 2 to 10 seconds. When turning the scanner off it was instant. The client now doesnt use a virusscanner temproraraly, until I get there to find the issue. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Ervin Brindza Sent: Monday, February 05, 2007 9:32 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance Dan, how about using temporary tables for adding new records and for reporting? Ervin ----- Original Message ----- From: "Dan Waters" To: "'Access Developers discussion and problem solving'" Sent: Saturday, February 03, 2007 5:12 AM Subject: Re: [AccessD] Connections and Performance > Drew, > > I read this somewhere - either in MS documentation or in a book where I > believe the author. > > Here's the reason I was asking: > > At a certain customer site, they experienced a dramatic performance > slowdown > at a time when about 10 people were logged on concurrently. Each client > PC > has it's own FE. I know that they open the system and leave the process > screens open, all of which are bound. I want to suggest that they > remember > to close the process screens so that just the main screen is open, which > is > not bound. This way a fewer number of connections are being used at any > one > time and performance would probably be acceptable. This particular > customer, I believe, does not have a very good network, so that is part of > the problem. But that's unlikely to get improved, so I wanted to provide > at > least a partial solution, hence my question. > > I've also heard that a connection is made not based on whether a form is > open and bound, but on whether or not there is data traffic between to and > from a table, which only takes a small part of a second. > > So what causes the performance slowdown when only 10 client PC's are > logged > on, and what could be done to improve this? > > Dan Waters > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka > Sent: Friday, February 02, 2007 9:26 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Connections and Performance > > Where are you getting these numbers. Access can have up to 255 > connections. > > Drew > > -----Original Message----- > From: Dan Waters [mailto:dwaters at usinternet.com] > Sent: Friday, February 02, 2007 8:45 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Connections and Performance > > Access has the potential for 8 simultaneous connections, but 3 of them are > reserved for the system's use. That leaves five for users. > > Dan Waters > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby > Sent: Friday, February 02, 2007 8:02 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Connections and Performance > >>But, the connection limit for one BE is 5 FE's. > > What does this mean? I have never heard of any such thing. > > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Friday, February 02, 2007 8:58 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Connections and Performance > > I've read several times that maintaining a connection between a FE and a > BE > will increase the performance of the FE because it doesn't need to > reconnect > before transferring data. The connection here would be a bound form > connected by a table link to a table in the BE. > > But, the connection limit for one BE is 5 FE's. So, will maintaining > connections on more than 5 FE's reduce performance? Seems logical, but I > was wondering if this is correct or is there more to it? > > Thanks! > > Dan Waters > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.432 / Virus Database: 268.17.19/663 - Release Date: 2/1/2007 > 2:28 PM > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Mon Feb 5 03:46:52 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 05 Feb 2007 10:46:52 +0100 Subject: [AccessD] ADO code stopped working Message-ID: Hi Jennifer You could - for and while debugging - try to separate the connection object: Dim cnn As ADODB.Connection Dim cmd As ADODB.Command Dim rst As ADODB.Recordset Dim prm As ADODB.Parameter Dim cat As ADOX.Catalog Dim prc As ADOX.Procedure Set cat = New ADOX.Catalog Set cnn = CurrentProject.Connection cat.ActiveConnection = cnn I guess you have double-checked the reference: Microsoft ADO Ext. 2.8 for DDL and Security points to ..system32\MSADOX.DLL /gustav >>> jengross at gte.net 05-02-2007 05:00 >>> Thanks for the suggestions. I set the references like Marty suggested and am still getting the problem. I am using the Getz Developers Handbook code for looping through parameters in a select query: Dim cmd As ADODB.Command Dim rst As ADODB.Recordset Dim prm As ADODB.Parameter Dim cat As ADOX.Catalog Dim prc As ADOX.Procedure Set cat = New ADOX.Catalog * cat.ActiveConnection = CurrentProject.Connection * Set prc = cat.Procedures("TheQuery") Set cmd = prc.Command For Each prm In cmd.Parameters prm.Value = Eval(prm.Name) Next prm Set rst = cmd.Execute If I don't use the query with parameters, but instead base the recordset on the table, then it works fine: Set rst = New ADODB.Recordset Set rst.ActiveConnection = CurrentProject.Connection rst.CursorType = adOpenForwardOnly rst.LockType = adLockReadOnly rst.Open "TheTable" I am getting the same results whether the code is in the existing FE or if I create a new db with the ADO code as Rocky suggested. Any thoughts? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Sunday, February 04, 2007 4:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] ADO code stopped working I would whip up a small app with some ado code to see if the problem is inside your app or outside of it. Does your app compile? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Sunday, February 04, 2007 2:05 PM To: AccessD List Subject: [AccessD] ADO code stopped working Hi Everyone, W2K SP4 / A2K SP3 / terminal server I have a database that has some DAO and some ADO code. Recently all ADO stopped working. DAO is still working fine. Anytime code utilizing ADO runs it shuts down the database abruptly, leaving the LDB file. We were also having problems with the Windows Management databases locking up and a reinstall of the latest MDAC took care of that problem, but did not solve the ADO problem. ADO was working fine for end of year reporting. There are no missing references. After the MDAC reinstall I unchecked references, closed down, opened up and rechecked references. Any help would be greatly appreciated. Thank you, Jennifer Gross databasics 2839 Shirley Drive Newbury Park, CA 91320-3068 office: (805) 480-1921 fax: (805) 499-0467 From Gustav at cactus.dk Mon Feb 5 04:01:33 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 05 Feb 2007 11:01:33 +0100 Subject: [AccessD] ADO code stopped working Message-ID: Hi Marty Are you absolutely sure? I have a small test which fills a recordset from a saved query like Jennifer, and I have no reference for the Recordsets Library (never heard of that, by the way, until now - wonder what it does). /gustav >>> martyconnelly at shaw.ca 05-02-2007 06:15 >>> You need two references set Microsoft ActiveX Data Object 2.7 Recordsets Library msador15.dll for ADOX and Microsoft ActiveX Data Object 2.8 Library msado15.dll for ADODB Jennifer Gross wrote: >Thanks Marty. I have the reference to msado15.dll, it is the latest >ActiveX Data Object 2.8 Recordset Library. The code is compiling, but >failing. It was running properly in January for end of year reporting >and I have made no changes to the code since it ran properly. The DAO >code is all still running properly. After 6+ years I finally decided to >dip my toe in ADO and it worked well before - I just can't figure out >why it is failing now. We have re-installed MDAC. I've unchecked and >rechecked the references. I am at a loss. I await the ADO gurus' >various ah-ha's. > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly >Sent: Sunday, February 04, 2007 8:16 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] ADO code stopped working > > >tlb/dll My eyeballs get fuzzy watching Superbowl commercials > >However you are using ADOX, so you need one more additional reference if >it is 2.8 MDAC you need a reference to > >The Access reference >Microsoft ActiveX Data Object 2.7 Recordsets Library >should point at >C:\Program Files\Common Files\System\ado\msador15.dll > >Jennifer Gross wrote: > > > >>Thanks for the suggestions. I set the references like Marty suggested >>and am still getting the problem. I am using the Getz Developers >>Handbook code for looping through parameters in a select query: >> >> Dim cmd As ADODB.Command >> Dim rst As ADODB.Recordset >> Dim prm As ADODB.Parameter >> Dim cat As ADOX.Catalog >> Dim prc As ADOX.Procedure >> >> Set cat = New ADOX.Catalog >>* cat.ActiveConnection = CurrentProject.Connection >>* Set prc = cat.Procedures("TheQuery") >> Set cmd = prc.Command >> For Each prm In cmd.Parameters >> prm.Value = Eval(prm.Name) >> Next prm >> Set rst = cmd.Execute >> >>If I don't use the query with parameters, but instead base the >>recordset on the table, then it works fine: >> >> Set rst = New ADODB.Recordset >> Set rst.ActiveConnection = CurrentProject.Connection >> rst.CursorType = adOpenForwardOnly >> rst.LockType = adLockReadOnly >> rst.Open "TheTable" >> >>I am getting the same results whether the code is in the existing FE or >> >> > > > >>if I create a new db with the ADO code as Rocky suggested. >> >>Any thoughts? >> >>Jennifer >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin >> >> > > > >>at Beach Access Software >>Sent: Sunday, February 04, 2007 4:55 PM >>To: 'Access Developers discussion and problem solving' >>Subject: Re: [AccessD] ADO code stopped working >> >> >>I would whip up a small app with some ado code to see if the problem is >> >> > > > >>inside your app or outside of it. Does your app compile? >> >>Rocky >> >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer >>Gross >>Sent: Sunday, February 04, 2007 2:05 PM >>To: AccessD List >>Subject: [AccessD] ADO code stopped working >> >>Hi Everyone, >> >>W2K SP4 / A2K SP3 / terminal server >> >>I have a database that has some DAO and some ADO code. Recently all >>ADO stopped working. DAO is still working fine. Anytime code >>utilizing ADO runs it shuts down the database abruptly, leaving the LDB >> >> > > > >>file. We were also having problems with the Windows Management >>databases locking up and a reinstall of the latest MDAC took care of >>that problem, but did not solve the ADO problem. ADO was working fine >>for end of year reporting. There are no missing references. After the >> >> > > > >>MDAC reinstall I unchecked references, closed down, opened up and >>rechecked references. >> >>Any help would be greatly appreciated. >> >>Thank you, From dwaters at usinternet.com Mon Feb 5 06:46:22 2007 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 5 Feb 2007 06:46:22 -0600 Subject: [AccessD] Connections and Performance In-Reply-To: <4903052.1170668223026.JavaMail.root@sniper10> References: <21447087.1170430574567.JavaMail.root@sniper23><006c01c74749$94855820$0200a8c0@danwaters><04ba01c74900$2908d1e0$0100a8c0@RazvojErvin> <4903052.1170668223026.JavaMail.root@sniper10> Message-ID: <006f01c74923$bd5d9ba0$0200a8c0@danwaters> Hi Erwin, I think they use McAfee as well! Could you post your solution later on? Thanks! Dan Waters -----Original Message----- Subject: Re: [AccessD] Connections and Performance Did you checked that the virusscanner don't scan mdb? Ik had a bizare problem with a McAfee virusscanner that when eacht time saving a record it pauzed for 2 to 10 seconds. When turning the scanner off it was instant. The client now doesnt use a virusscanner temproraraly, until I get there to find the issue. Erwin -----Original Message----- Subject: Re: [AccessD] Connections and Performance Dan, how about using temporary tables for adding new records and for reporting? Ervin ----- Original Message ----- Subject: Re: [AccessD] Connections and Performance > Drew, > > I read this somewhere - either in MS documentation or in a book where I > believe the author. > > Here's the reason I was asking: > > At a certain customer site, they experienced a dramatic performance > slowdown > at a time when about 10 people were logged on concurrently. Each client > PC > has it's own FE. I know that they open the system and leave the process > screens open, all of which are bound. I want to suggest that they > remember > to close the process screens so that just the main screen is open, which > is > not bound. This way a fewer number of connections are being used at any > one > time and performance would probably be acceptable. This particular > customer, I believe, does not have a very good network, so that is part of > the problem. But that's unlikely to get improved, so I wanted to provide > at > least a partial solution, hence my question. > > I've also heard that a connection is made not based on whether a form is > open and bound, but on whether or not there is data traffic between to and > from a table, which only takes a small part of a second. > > So what causes the performance slowdown when only 10 client PC's are > logged > on, and what could be done to improve this? > > Dan Waters > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka > Sent: Friday, February 02, 2007 9:26 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Connections and Performance > > Where are you getting these numbers. Access can have up to 255 > connections. > > Drew > > -----Original Message----- > From: Dan Waters [mailto:dwaters at usinternet.com] > Sent: Friday, February 02, 2007 8:45 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Connections and Performance > > Access has the potential for 8 simultaneous connections, but 3 of them are > reserved for the system's use. That leaves five for users. > > Dan Waters > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby > Sent: Friday, February 02, 2007 8:02 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Connections and Performance > >>But, the connection limit for one BE is 5 FE's. > > What does this mean? I have never heard of any such thing. > > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Friday, February 02, 2007 8:58 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Connections and Performance > > I've read several times that maintaining a connection between a FE and a > BE > will increase the performance of the FE because it doesn't need to > reconnect > before transferring data. The connection here would be a bound form > connected by a table link to a table in the BE. > > But, the connection limit for one BE is 5 FE's. So, will maintaining > connections on more than 5 FE's reduce performance? Seems logical, but I > was wondering if this is correct or is there more to it? > > Thanks! > > Dan Waters > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.432 / Virus Database: 268.17.19/663 - Release Date: 2/1/2007 > 2:28 PM > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Mon Feb 5 06:46:22 2007 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 5 Feb 2007 06:46:22 -0600 Subject: [AccessD] Connections and Performance In-Reply-To: <4043117.1170664752750.JavaMail.root@sniper56> References: <21447087.1170430574567.JavaMail.root@sniper23><006c01c74749$94855820$0200a8c0@danwaters> <4043117.1170664752750.JavaMail.root@sniper56> Message-ID: <007601c74923$bf2e3cf0$0200a8c0@danwaters> Hi Ervin, Yes - I already do use temp tables in the FE. But - how do you use temp tables for adding new records? That's new to me! Dan Waters -----Original Message----- Subject: Re: [AccessD] Connections and Performance Dan, how about using temporary tables for adding new records and for reporting? Ervin ----- Original Message ----- Subject: Re: [AccessD] Connections and Performance > Drew, > > I read this somewhere - either in MS documentation or in a book where I > believe the author. > > Here's the reason I was asking: > > At a certain customer site, they experienced a dramatic performance > slowdown > at a time when about 10 people were logged on concurrently. Each client > PC > has it's own FE. I know that they open the system and leave the process > screens open, all of which are bound. I want to suggest that they > remember > to close the process screens so that just the main screen is open, which > is > not bound. This way a fewer number of connections are being used at any > one > time and performance would probably be acceptable. This particular > customer, I believe, does not have a very good network, so that is part of > the problem. But that's unlikely to get improved, so I wanted to provide > at > least a partial solution, hence my question. > > I've also heard that a connection is made not based on whether a form is > open and bound, but on whether or not there is data traffic between to and > from a table, which only takes a small part of a second. > > So what causes the performance slowdown when only 10 client PC's are > logged > on, and what could be done to improve this? > > Dan Waters > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka > Sent: Friday, February 02, 2007 9:26 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Connections and Performance > > Where are you getting these numbers. Access can have up to 255 > connections. > > Drew > > -----Original Message----- > From: Dan Waters [mailto:dwaters at usinternet.com] > Sent: Friday, February 02, 2007 8:45 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Connections and Performance > > Access has the potential for 8 simultaneous connections, but 3 of them are > reserved for the system's use. That leaves five for users. > > Dan Waters > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby > Sent: Friday, February 02, 2007 8:02 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Connections and Performance > >>But, the connection limit for one BE is 5 FE's. > > What does this mean? I have never heard of any such thing. > > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Friday, February 02, 2007 8:58 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Connections and Performance > > I've read several times that maintaining a connection between a FE and a > BE > will increase the performance of the FE because it doesn't need to > reconnect > before transferring data. The connection here would be a bound form > connected by a table link to a table in the BE. > > But, the connection limit for one BE is 5 FE's. So, will maintaining > connections on more than 5 FE's reduce performance? Seems logical, but I > was wondering if this is correct or is there more to it? > > Thanks! > > Dan Waters > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.432 / Virus Database: 268.17.19/663 - Release Date: 2/1/2007 > 2:28 PM > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Feb 5 06:52:01 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Mon, 5 Feb 2007 07:52:01 -0500 Subject: [AccessD] Connections and Performance In-Reply-To: <006f01c74923$bd5d9ba0$0200a8c0@danwaters> Message-ID: <003701c74924$6ea7f5e0$657aa8c0@m6805> This happens when the virus scanner attempts to scan the mdb itself (the BE) each time a write occurs. You need to put MDB/MDA/MDE/LDB in the Norton AV file exception list on the SERVER. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, February 05, 2007 7:46 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance Hi Erwin, I think they use McAfee as well! Could you post your solution later on? Thanks! Dan Waters -----Original Message----- Subject: Re: [AccessD] Connections and Performance Did you checked that the virusscanner don't scan mdb? Ik had a bizare problem with a McAfee virusscanner that when eacht time saving a record it pauzed for 2 to 10 seconds. When turning the scanner off it was instant. The client now doesnt use a virusscanner temproraraly, until I get there to find the issue. Erwin -----Original Message----- Subject: Re: [AccessD] Connections and Performance Dan, how about using temporary tables for adding new records and for reporting? Ervin ----- Original Message ----- Subject: Re: [AccessD] Connections and Performance > Drew, > > I read this somewhere - either in MS documentation or in a book where I > believe the author. > > Here's the reason I was asking: > > At a certain customer site, they experienced a dramatic performance > slowdown at a time when about 10 people were logged on concurrently. > Each client > PC > has it's own FE. I know that they open the system and leave the process > screens open, all of which are bound. I want to suggest that they > remember to close the process screens so that just the main screen is > open, which > is > not bound. This way a fewer number of connections are being used at any > one > time and performance would probably be acceptable. This particular > customer, I believe, does not have a very good network, so that is part of > the problem. But that's unlikely to get improved, so I wanted to provide > at > least a partial solution, hence my question. > > I've also heard that a connection is made not based on whether a form is > open and bound, but on whether or not there is data traffic between to and > from a table, which only takes a small part of a second. > > So what causes the performance slowdown when only 10 client PC's are > logged on, and what could be done to improve this? > > Dan Waters > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka > Sent: Friday, February 02, 2007 9:26 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Connections and Performance > > Where are you getting these numbers. Access can have up to 255 > connections. > > Drew > > -----Original Message----- > From: Dan Waters [mailto:dwaters at usinternet.com] > Sent: Friday, February 02, 2007 8:45 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Connections and Performance > > Access has the potential for 8 simultaneous connections, but 3 of them are > reserved for the system's use. That leaves five for users. > > Dan Waters > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby > Sent: Friday, February 02, 2007 8:02 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Connections and Performance > >>But, the connection limit for one BE is 5 FE's. > > What does this mean? I have never heard of any such thing. > > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Friday, February 02, 2007 8:58 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Connections and Performance > > I've read several times that maintaining a connection between a FE and a > BE > will increase the performance of the FE because it doesn't need to > reconnect before transferring data. The connection here would be a > bound form connected by a table link to a table in the BE. > > But, the connection limit for one BE is 5 FE's. So, will maintaining > connections on more than 5 FE's reduce performance? Seems logical, but I > was wondering if this is correct or is there more to it? > > Thanks! > > Dan Waters > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.432 / Virus Database: 268.17.19/663 - Release Date: 2/1/2007 > 2:28 PM > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From viner at EUnet.yu Mon Feb 5 07:38:48 2007 From: viner at EUnet.yu (Ervin Brindza) Date: Mon, 5 Feb 2007 14:38:48 +0100 Subject: [AccessD] Connections and Performance References: <21447087.1170430574567.JavaMail.root@sniper23><006c01c74749$94855820$0200a8c0@danwaters><4043117.1170664752750.JavaMail.root@sniper56> <007601c74923$bf2e3cf0$0200a8c0@danwaters> Message-ID: <009901c7492b$1171a3b0$0100a8c0@RazvojErvin> In my recent project the end users had their own temp tables which resides on their PC. They "fill" the new records in that tables, and that records are moved(e.g. at the end of the work day) to the linked BE tables through VBA code. E. ----- Original Message ----- From: "Dan Waters" To: "'Access Developers discussion and problem solving'" Sent: Monday, February 05, 2007 1:46 PM Subject: Re: [AccessD] Connections and Performance > Hi Ervin, > > Yes - I already do use temp tables in the FE. > > But - how do you use temp tables for adding new records? That's new to > me! > > Dan Waters > > -----Original Message----- > Subject: Re: [AccessD] Connections and Performance > > Dan, > how about using temporary tables for adding new records and for reporting? > Ervin > > ----- Original Message ----- > Subject: Re: [AccessD] Connections and Performance > > >> Drew, >> >> I read this somewhere - either in MS documentation or in a book where I >> believe the author. >> >> Here's the reason I was asking: >> >> At a certain customer site, they experienced a dramatic performance >> slowdown >> at a time when about 10 people were logged on concurrently. Each client >> PC >> has it's own FE. I know that they open the system and leave the process >> screens open, all of which are bound. I want to suggest that they >> remember >> to close the process screens so that just the main screen is open, which >> is >> not bound. This way a fewer number of connections are being used at any >> one >> time and performance would probably be acceptable. This particular >> customer, I believe, does not have a very good network, so that is part >> of >> the problem. But that's unlikely to get improved, so I wanted to provide >> at >> least a partial solution, hence my question. >> >> I've also heard that a connection is made not based on whether a form is >> open and bound, but on whether or not there is data traffic between to >> and >> from a table, which only takes a small part of a second. >> >> So what causes the performance slowdown when only 10 client PC's are >> logged >> on, and what could be done to improve this? >> >> Dan Waters >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka >> Sent: Friday, February 02, 2007 9:26 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Connections and Performance >> >> Where are you getting these numbers. Access can have up to 255 >> connections. >> >> Drew >> >> -----Original Message----- >> From: Dan Waters [mailto:dwaters at usinternet.com] >> Sent: Friday, February 02, 2007 8:45 AM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] Connections and Performance >> >> Access has the potential for 8 simultaneous connections, but 3 of them >> are >> reserved for the system's use. That leaves five for users. >> >> Dan Waters >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby >> Sent: Friday, February 02, 2007 8:02 AM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] Connections and Performance >> >>>But, the connection limit for one BE is 5 FE's. >> >> What does this mean? I have never heard of any such thing. >> >> >> John W. Colby >> Colby Consulting >> www.ColbyConsulting.com >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >> Sent: Friday, February 02, 2007 8:58 AM >> To: 'Access Developers discussion and problem solving' >> Subject: [AccessD] Connections and Performance >> >> I've read several times that maintaining a connection between a FE and a >> BE >> will increase the performance of the FE because it doesn't need to >> reconnect >> before transferring data. The connection here would be a bound form >> connected by a table link to a table in the BE. >> >> But, the connection limit for one BE is 5 FE's. So, will maintaining >> connections on more than 5 FE's reduce performance? Seems logical, but I >> was wondering if this is correct or is there more to it? >> >> Thanks! >> >> Dan Waters >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> >> -- >> No virus found in this incoming message. >> Checked by AVG Free Edition. >> Version: 7.5.432 / Virus Database: 268.17.19/663 - Release Date: 2/1/2007 >> 2:28 PM >> >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.432 / Virus Database: 268.17.19/663 - Release Date: 2/1/2007 > 2:28 PM > > From dwaters at usinternet.com Mon Feb 5 09:04:55 2007 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 5 Feb 2007 09:04:55 -0600 Subject: [AccessD] Connections and Performance In-Reply-To: <18543053.1170683124734.JavaMail.root@sniper25> References: <21447087.1170430574567.JavaMail.root@sniper23><006c01c74749$94855820$0200a8c0@danwaters><4043117.1170664752750.JavaMail.root@sniper56><007601c74923$bf2e3cf0$0200a8c0@danwaters> <18543053.1170683124734.JavaMail.root@sniper25> Message-ID: <00b101c74936$ff0f1a70$0200a8c0@danwaters> Thanks Ervin! I'll need to update immediately, but the concept is the same. Dan -----Original Message----- Subject: Re: [AccessD] Connections and Performance In my recent project the end users had their own temp tables which resides on their PC. They "fill" the new records in that tables, and that records are moved(e.g. at the end of the work day) to the linked BE tables through VBA code. E. ----- Original Message ----- Subject: Re: [AccessD] Connections and Performance > Hi Ervin, > > Yes - I already do use temp tables in the FE. > > But - how do you use temp tables for adding new records? That's new to > me! > > Dan Waters > > -----Original Message----- > Subject: Re: [AccessD] Connections and Performance > > Dan, > how about using temporary tables for adding new records and for reporting? > Ervin > > ----- Original Message ----- > Subject: Re: [AccessD] Connections and Performance > > >> Drew, >> >> I read this somewhere - either in MS documentation or in a book where I >> believe the author. >> >> Here's the reason I was asking: >> >> At a certain customer site, they experienced a dramatic performance >> slowdown >> at a time when about 10 people were logged on concurrently. Each client >> PC >> has it's own FE. I know that they open the system and leave the process >> screens open, all of which are bound. I want to suggest that they >> remember >> to close the process screens so that just the main screen is open, which >> is >> not bound. This way a fewer number of connections are being used at any >> one >> time and performance would probably be acceptable. This particular >> customer, I believe, does not have a very good network, so that is part >> of >> the problem. But that's unlikely to get improved, so I wanted to provide >> at >> least a partial solution, hence my question. >> >> I've also heard that a connection is made not based on whether a form is >> open and bound, but on whether or not there is data traffic between to >> and >> from a table, which only takes a small part of a second. >> >> So what causes the performance slowdown when only 10 client PC's are >> logged >> on, and what could be done to improve this? >> >> Dan Waters >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka >> Sent: Friday, February 02, 2007 9:26 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Connections and Performance >> >> Where are you getting these numbers. Access can have up to 255 >> connections. >> >> Drew >> >> -----Original Message----- >> From: Dan Waters [mailto:dwaters at usinternet.com] >> Sent: Friday, February 02, 2007 8:45 AM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] Connections and Performance >> >> Access has the potential for 8 simultaneous connections, but 3 of them >> are >> reserved for the system's use. That leaves five for users. >> >> Dan Waters >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby >> Sent: Friday, February 02, 2007 8:02 AM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] Connections and Performance >> >>>But, the connection limit for one BE is 5 FE's. >> >> What does this mean? I have never heard of any such thing. >> >> >> John W. Colby >> Colby Consulting >> www.ColbyConsulting.com >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >> Sent: Friday, February 02, 2007 8:58 AM >> To: 'Access Developers discussion and problem solving' >> Subject: [AccessD] Connections and Performance >> >> I've read several times that maintaining a connection between a FE and a >> BE >> will increase the performance of the FE because it doesn't need to >> reconnect >> before transferring data. The connection here would be a bound form >> connected by a table link to a table in the BE. >> >> But, the connection limit for one BE is 5 FE's. So, will maintaining >> connections on more than 5 FE's reduce performance? Seems logical, but I >> was wondering if this is correct or is there more to it? >> >> Thanks! >> >> Dan Waters >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> >> -- >> No virus found in this incoming message. >> Checked by AVG Free Edition. >> Version: 7.5.432 / Virus Database: 268.17.19/663 - Release Date: 2/1/2007 >> 2:28 PM >> >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.432 / Virus Database: 268.17.19/663 - Release Date: 2/1/2007 > 2:28 PM > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From hollisvj at pgdp.usec.com Mon Feb 5 11:38:49 2007 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Mon, 05 Feb 2007 11:38:49 -0600 Subject: [AccessD] Option Group on Report Message-ID: <703BDA18A87DFA4CB265A86F42E4178D01E7604F@c2k3exchange.pgdp.corp.usec.com> I have an option group on a form. How do I get the related word from the selected option to show on a report? Choices for Option group 1- Go 2 - No Go 3 - N/A The report needs to show the words "Go", 'No Go" or "N/A" not the number (1, 2, or 3). Virginia From bheid at sc.rr.com Mon Feb 5 11:53:55 2007 From: bheid at sc.rr.com (Bobby Heid) Date: Mon, 5 Feb 2007 12:53:55 -0500 Subject: [AccessD] Option Group on Report In-Reply-To: <703BDA18A87DFA4CB265A86F42E4178D01E7604F@c2k3exchange.pgdp.corp.usec.com> References: <703BDA18A87DFA4CB265A86F42E4178D01E7604F@c2k3exchange.pgdp.corp.usec.com> Message-ID: <009301c7494e$9af03a20$2d01a8c0@bhxp> Set the (I think it's called recordsource or something like that) of the text field on the report to: =iif([somefield]=1,"Go",iif([somefield]=2,"No Go","N/A")) There is the switch statement that might do what you want and there is another statement that I can't remember what it is called right now that may work. I do not have access to my machine with Access on it at the moment. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis, Virginia Sent: Monday, February 05, 2007 12:39 PM To: accessd at databaseadvisors.com Subject: [AccessD] Option Group on Report I have an option group on a form. How do I get the related word from the selected option to show on a report? Choices for Option group 1- Go 2 - No Go 3 - N/A The report needs to show the words "Go", 'No Go" or "N/A" not the number (1, 2, or 3). Virginia From rockysmolin at bchacc.com Mon Feb 5 11:54:43 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Mon, 5 Feb 2007 09:54:43 -0800 Subject: [AccessD] Option Group on Report In-Reply-To: <703BDA18A87DFA4CB265A86F42E4178D01E7604F@c2k3exchange.pgdp.corp.usec.com> Message-ID: <007f01c7494e$b7619190$0201a8c0@HAL9005> One simple way is to put a bit of code in the Format event and do an if...then putting the right word into an unbound textbox on the report. You could also pull the caption off of the label associated with the option button in the calling form. And there's probably a way with an IIf in the query, if you're using a query as the record source for the report, to convert the value into a word. (Are there nested Iifs?) Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis, Virginia Sent: Monday, February 05, 2007 9:39 AM To: accessd at databaseadvisors.com Subject: [AccessD] Option Group on Report I have an option group on a form. How do I get the related word from the selected option to show on a report? Choices for Option group 1- Go 2 - No Go 3 - N/A The report needs to show the words "Go", 'No Go" or "N/A" not the number (1, 2, or 3). Virginia -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.17.25/669 - Release Date: 2/4/2007 9:58 PM From martyconnelly at shaw.ca Mon Feb 5 12:29:09 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 05 Feb 2007 10:29:09 -0800 Subject: [AccessD] ADO code stopped working In-Reply-To: References: Message-ID: <45C77775.605@shaw.ca> I made a mistake I really meant this reference is need for ADOX Microsoft ADO Ext for 2.8 for DDL and Secuirity C:\Program Files\Common Files\System\ado\msadox.dll Actually msador.dll is only needed for backward compatibility, going back to MDAC 2.1 Originally, ADOR was designed to be a standalone component. However, as ADO has evolved in design and use, this is no longer ADOR's purpose. ADOR is now only a sub to the MSADO15.DLL and exists only to maintain backward compatibility. Gustav Brock wrote: >Hi Marty > >Are you absolutely sure? >I have a small test which fills a recordset from a saved query like Jennifer, and I have no reference for the Recordsets Library (never heard of that, by the way, until now - wonder what it does). > >/gustav > > > >>>>martyconnelly at shaw.ca 05-02-2007 06:15 >>> >>>> >>>> >You need two references set > >Microsoft ActiveX Data Object 2.7 Recordsets Library > >msador15.dll for ADOX >and > >Microsoft ActiveX Data Object 2.8 Library > >msado15.dll for ADODB > > > >Jennifer Gross wrote: > > > >>Thanks Marty. I have the reference to msado15.dll, it is the latest >>ActiveX Data Object 2.8 Recordset Library. The code is compiling, but >>failing. It was running properly in January for end of year reporting >>and I have made no changes to the code since it ran properly. The DAO >>code is all still running properly. After 6+ years I finally decided to >>dip my toe in ADO and it worked well before - I just can't figure out >>why it is failing now. We have re-installed MDAC. I've unchecked and >>rechecked the references. I am at a loss. I await the ADO gurus' >>various ah-ha's. >> >>Jennifer >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly >>Sent: Sunday, February 04, 2007 8:16 PM >>To: Access Developers discussion and problem solving >>Subject: Re: [AccessD] ADO code stopped working >> >> >>tlb/dll My eyeballs get fuzzy watching Superbowl commercials >> >>However you are using ADOX, so you need one more additional reference if >>it is 2.8 MDAC you need a reference to >> >>The Access reference >>Microsoft ActiveX Data Object 2.7 Recordsets Library >>should point at >>C:\Program Files\Common Files\System\ado\msador15.dll >> >>Jennifer Gross wrote: >> >> >> >> >> >>>Thanks for the suggestions. I set the references like Marty suggested >>>and am still getting the problem. I am using the Getz Developers >>>Handbook code for looping through parameters in a select query: >>> >>> Dim cmd As ADODB.Command >>> Dim rst As ADODB.Recordset >>> Dim prm As ADODB.Parameter >>> Dim cat As ADOX.Catalog >>> Dim prc As ADOX.Procedure >>> >>> Set cat = New ADOX.Catalog >>>* cat.ActiveConnection = CurrentProject.Connection >>>* Set prc = cat.Procedures("TheQuery") >>> Set cmd = prc.Command >>> For Each prm In cmd.Parameters >>> prm.Value = Eval(prm.Name) >>> Next prm >>> Set rst = cmd.Execute >>> >>>If I don't use the query with parameters, but instead base the >>>recordset on the table, then it works fine: >>> >>> Set rst = New ADODB.Recordset >>> Set rst.ActiveConnection = CurrentProject.Connection >>> rst.CursorType = adOpenForwardOnly >>> rst.LockType = adLockReadOnly >>> rst.Open "TheTable" >>> >>>I am getting the same results whether the code is in the existing FE or >>> >>> >>> >>> >> >> >> >> >>>if I create a new db with the ADO code as Rocky suggested. >>> >>>Any thoughts? >>> >>>Jennifer >>> >>>-----Original Message----- >>>From: accessd-bounces at databaseadvisors.com >>>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin >>> >>> >>> >>> >> >> >> >> >>>at Beach Access Software >>>Sent: Sunday, February 04, 2007 4:55 PM >>>To: 'Access Developers discussion and problem solving' >>>Subject: Re: [AccessD] ADO code stopped working >>> >>> >>>I would whip up a small app with some ado code to see if the problem is >>> >>> >>> >>> >> >> >> >> >>>inside your app or outside of it. Does your app compile? >>> >>>Rocky >>> >>> >>>-----Original Message----- >>>From: accessd-bounces at databaseadvisors.com >>>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer >>>Gross >>>Sent: Sunday, February 04, 2007 2:05 PM >>>To: AccessD List >>>Subject: [AccessD] ADO code stopped working >>> >>>Hi Everyone, >>> >>>W2K SP4 / A2K SP3 / terminal server >>> >>>I have a database that has some DAO and some ADO code. Recently all >>>ADO stopped working. DAO is still working fine. Anytime code >>>utilizing ADO runs it shuts down the database abruptly, leaving the LDB >>> >>> >>> >>> >> >> >> >> >>>file. We were also having problems with the Windows Management >>>databases locking up and a reinstall of the latest MDAC took care of >>>that problem, but did not solve the ADO problem. ADO was working fine >>>for end of year reporting. There are no missing references. After the >>> >>> >>> >>> >> >> >> >> >>>MDAC reinstall I unchecked references, closed down, opened up and >>>rechecked references. >>> >>>Any help would be greatly appreciated. >>> >>>Thank you, >>> >>> -- Marty Connelly Victoria, B.C. Canada From Donald.A.McGillivray at sprint.com Mon Feb 5 13:01:27 2007 From: Donald.A.McGillivray at sprint.com (McGillivray, Don [IT]) Date: Mon, 5 Feb 2007 13:01:27 -0600 Subject: [AccessD] Option Group on Report In-Reply-To: <007f01c7494e$b7619190$0201a8c0@HAL9005> Message-ID: Try - =Choose(OptionGroupValue,"Go","No Go","N/A") as the data source for the control on your report. Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, February 05, 2007 9:55 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Option Group on Report One simple way is to put a bit of code in the Format event and do an if...then putting the right word into an unbound textbox on the report. You could also pull the caption off of the label associated with the option button in the calling form. And there's probably a way with an IIf in the query, if you're using a query as the record source for the report, to convert the value into a word. (Are there nested Iifs?) Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis, Virginia Sent: Monday, February 05, 2007 9:39 AM To: accessd at databaseadvisors.com Subject: [AccessD] Option Group on Report I have an option group on a form. How do I get the related word from the selected option to show on a report? Choices for Option group 1- Go 2 - No Go 3 - N/A The report needs to show the words "Go", 'No Go" or "N/A" not the number (1, 2, or 3). Virginia -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.17.25/669 - Release Date: 2/4/2007 9:58 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jengross at gte.net Mon Feb 5 13:16:05 2007 From: jengross at gte.net (Jennifer Gross) Date: Mon, 05 Feb 2007 11:16:05 -0800 Subject: [AccessD] ADO code stopped working In-Reply-To: Message-ID: <008201c7495a$18b507f0$6401a8c0@jefferson> Hi Gustav, I have checked all references. The code is compiling. I have created a test database with one table and one query. It is failing in the same spot my original database is failing - Set prc = cat.Procedures("TheQuery") - In the test database I am getting the error 3265 - Item cannot be found in the collection corresponding to the requested name or ordinal. The query does exist - no spelling errors. The same ADO code is working fine on my home office system. It worked fine at the client's site in January. Any thoughts? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, February 05, 2007 1:47 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] ADO code stopped working Hi Jennifer You could - for and while debugging - try to separate the connection object: Dim cnn As ADODB.Connection Dim cmd As ADODB.Command Dim rst As ADODB.Recordset Dim prm As ADODB.Parameter Dim cat As ADOX.Catalog Dim prc As ADOX.Procedure Set cat = New ADOX.Catalog Set cnn = CurrentProject.Connection cat.ActiveConnection = cnn I guess you have double-checked the reference: Microsoft ADO Ext. 2.8 for DDL and Security points to ..system32\MSADOX.DLL /gustav >>> jengross at gte.net 05-02-2007 05:00 >>> Thanks for the suggestions. I set the references like Marty suggested and am still getting the problem. I am using the Getz Developers Handbook code for looping through parameters in a select query: Dim cmd As ADODB.Command Dim rst As ADODB.Recordset Dim prm As ADODB.Parameter Dim cat As ADOX.Catalog Dim prc As ADOX.Procedure Set cat = New ADOX.Catalog * cat.ActiveConnection = CurrentProject.Connection * Set prc = cat.Procedures("TheQuery") Set cmd = prc.Command For Each prm In cmd.Parameters prm.Value = Eval(prm.Name) Next prm Set rst = cmd.Execute If I don't use the query with parameters, but instead base the recordset on the table, then it works fine: Set rst = New ADODB.Recordset Set rst.ActiveConnection = CurrentProject.Connection rst.CursorType = adOpenForwardOnly rst.LockType = adLockReadOnly rst.Open "TheTable" I am getting the same results whether the code is in the existing FE or if I create a new db with the ADO code as Rocky suggested. Any thoughts? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Sunday, February 04, 2007 4:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] ADO code stopped working I would whip up a small app with some ado code to see if the problem is inside your app or outside of it. Does your app compile? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Sunday, February 04, 2007 2:05 PM To: AccessD List Subject: [AccessD] ADO code stopped working Hi Everyone, W2K SP4 / A2K SP3 / terminal server I have a database that has some DAO and some ADO code. Recently all ADO stopped working. DAO is still working fine. Anytime code utilizing ADO runs it shuts down the database abruptly, leaving the LDB file. We were also having problems with the Windows Management databases locking up and a reinstall of the latest MDAC took care of that problem, but did not solve the ADO problem. ADO was working fine for end of year reporting. There are no missing references. After the MDAC reinstall I unchecked references, closed down, opened up and rechecked references. Any help would be greatly appreciated. Thank you, Jennifer Gross databasics 2839 Shirley Drive Newbury Park, CA 91320-3068 office: (805) 480-1921 fax: (805) 499-0467 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From hollisvj at pgdp.usec.com Mon Feb 5 13:58:45 2007 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Mon, 05 Feb 2007 13:58:45 -0600 Subject: [AccessD] Date Format for Month Message-ID: <703BDA18A87DFA4CB265A86F42E4178D01E7606B@c2k3exchange.pgdp.corp.usec.com> I know you guys are probably getting tired of hearing from me lately. It has been several years since I have done this & my mind leaks...... On a report I need to show the date of the next inspection in red & bold (got that part). My problem is that they only care about the month & year due, not the day. How do I get it to pick out the month & year from today's date? So if the report is run for February and the next inspection date is 2/10/2007, it would show in bold & red on the report. If the next inspection date is 11/3/2007. It would be regular font. If Format$([DateNextSAI], "mmm yyyy", 0, 0) = Date Then From jengross at gte.net Mon Feb 5 14:07:00 2007 From: jengross at gte.net (Jennifer Gross) Date: Mon, 05 Feb 2007 12:07:00 -0800 Subject: [AccessD] Date Format for Month In-Reply-To: <703BDA18A87DFA4CB265A86F42E4178D01E7606B@c2k3exchange.pgdp.corp.usec.com> Message-ID: <008d01c74961$3543f550$6401a8c0@jefferson> How about If Month(DateNextSAI) = Month(Date) and Year(DateNextSAI) = Year(Date) Then . . . Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis, Virginia Sent: Monday, February 05, 2007 11:59 AM To: accessd at databaseadvisors.com Subject: [AccessD] Date Format for Month I know you guys are probably getting tired of hearing from me lately. It has been several years since I have done this & my mind leaks...... On a report I need to show the date of the next inspection in red & bold (got that part). My problem is that they only care about the month & year due, not the day. How do I get it to pick out the month & year from today's date? So if the report is run for February and the next inspection date is 2/10/2007, it would show in bold & red on the report. If the next inspection date is 11/3/2007. It would be regular font. If Format$([DateNextSAI], "mmm yyyy", 0, 0) = Date Then -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Mon Feb 5 14:09:37 2007 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 5 Feb 2007 14:09:37 -0600 Subject: [AccessD] Connections and Performance In-Reply-To: <11994734.1170679805281.JavaMail.root@sniper77> References: <006f01c74923$bd5d9ba0$0200a8c0@danwaters> <11994734.1170679805281.JavaMail.root@sniper77> Message-ID: <010401c74961$9031b2e0$0200a8c0@danwaters> Thanks John - I'll ask them to do this. Dan Waters -----Original Message----- Subject: Re: [AccessD] Connections and Performance This happens when the virus scanner attempts to scan the mdb itself (the BE) each time a write occurs. You need to put MDB/MDA/MDE/LDB in the Norton AV file exception list on the SERVER. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- Subject: Re: [AccessD] Connections and Performance Hi Erwin, I think they use McAfee as well! Could you post your solution later on? Thanks! Dan Waters -----Original Message----- Subject: Re: [AccessD] Connections and Performance Did you checked that the virusscanner don't scan mdb? Ik had a bizare problem with a McAfee virusscanner that when eacht time saving a record it pauzed for 2 to 10 seconds. When turning the scanner off it was instant. The client now doesnt use a virusscanner temproraraly, until I get there to find the issue. Erwin -----Original Message----- Subject: Re: [AccessD] Connections and Performance Dan, how about using temporary tables for adding new records and for reporting? Ervin ----- Original Message ----- Subject: Re: [AccessD] Connections and Performance > Drew, > > I read this somewhere - either in MS documentation or in a book where I > believe the author. > > Here's the reason I was asking: > > At a certain customer site, they experienced a dramatic performance > slowdown at a time when about 10 people were logged on concurrently. > Each client > PC > has it's own FE. I know that they open the system and leave the process > screens open, all of which are bound. I want to suggest that they > remember to close the process screens so that just the main screen is > open, which > is > not bound. This way a fewer number of connections are being used at any > one > time and performance would probably be acceptable. This particular > customer, I believe, does not have a very good network, so that is part of > the problem. But that's unlikely to get improved, so I wanted to provide > at > least a partial solution, hence my question. > > I've also heard that a connection is made not based on whether a form is > open and bound, but on whether or not there is data traffic between to and > from a table, which only takes a small part of a second. > > So what causes the performance slowdown when only 10 client PC's are > logged on, and what could be done to improve this? > > Dan Waters > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka > Sent: Friday, February 02, 2007 9:26 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Connections and Performance > > Where are you getting these numbers. Access can have up to 255 > connections. > > Drew > > -----Original Message----- > From: Dan Waters [mailto:dwaters at usinternet.com] > Sent: Friday, February 02, 2007 8:45 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Connections and Performance > > Access has the potential for 8 simultaneous connections, but 3 of them are > reserved for the system's use. That leaves five for users. > > Dan Waters > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby > Sent: Friday, February 02, 2007 8:02 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Connections and Performance > >>But, the connection limit for one BE is 5 FE's. > > What does this mean? I have never heard of any such thing. > > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Friday, February 02, 2007 8:58 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Connections and Performance > > I've read several times that maintaining a connection between a FE and a > BE > will increase the performance of the FE because it doesn't need to > reconnect before transferring data. The connection here would be a > bound form connected by a table link to a table in the BE. > > But, the connection limit for one BE is 5 FE's. So, will maintaining > connections on more than 5 FE's reduce performance? Seems logical, but I > was wondering if this is correct or is there more to it? > > Thanks! > > Dan Waters > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.432 / Virus Database: 268.17.19/663 - Release Date: 2/1/2007 > 2:28 PM > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Mon Feb 5 14:15:14 2007 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 5 Feb 2007 14:15:14 -0600 Subject: [AccessD] Date Format for Month In-Reply-To: <9222390.1170705876692.JavaMail.root@sniper50> References: <9222390.1170705876692.JavaMail.root@sniper50> Message-ID: <010501c74962$58e2a6e0$0200a8c0@danwaters> Hello Virginia, If Format("m",dteCurrentDate) = Format("m",dteInspectionDate) _ And Format("y",dteCurrentDate) = Format("y",dteInspectionDate) Then .... End If HTH, Dan Waters -----Original Message----- Subject: [AccessD] Date Format for Month I know you guys are probably getting tired of hearing from me lately. It has been several years since I have done this & my mind leaks...... On a report I need to show the date of the next inspection in red & bold (got that part). My problem is that they only care about the month & year due, not the day. How do I get it to pick out the month & year from today's date? So if the report is run for February and the next inspection date is 2/10/2007, it would show in bold & red on the report. If the next inspection date is 11/3/2007. It would be regular font. If Format$([DateNextSAI], "mmm yyyy", 0, 0) = Date Then -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From hollisvj at pgdp.usec.com Mon Feb 5 14:15:46 2007 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Mon, 05 Feb 2007 14:15:46 -0600 Subject: [AccessD] Date Format for Month Message-ID: <703BDA18A87DFA4CB265A86F42E4178D01E7606E@c2k3exchange.pgdp.corp.usec.com> Error if DateNextSAI is null. Which is possible if the equipment hasn't been inspected yet. Virginia ********************* How about If Month(DateNextSAI) = Month(Date) and Year(DateNextSAI) = Year(Date) Then . . . Jennifer From jengross at gte.net Mon Feb 5 14:20:45 2007 From: jengross at gte.net (Jennifer Gross) Date: Mon, 05 Feb 2007 12:20:45 -0800 Subject: [AccessD] Date Format for Month In-Reply-To: <703BDA18A87DFA4CB265A86F42E4178D01E7606E@c2k3exchange.pgdp.corp.usec.com> Message-ID: <009901c74963$21711ec0$6401a8c0@jefferson> Check for null first If not IsNull(datenextsai) Then If Month(DateNextSAI) = Month(Date) and Year(DateNextSAI) = Year(Date) Then . . . endif endif -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis, Virginia Sent: Monday, February 05, 2007 12:16 PM To: accessd at databaseadvisors.com Subject: [AccessD] Date Format for Month Error if DateNextSAI is null. Which is possible if the equipment hasn't been inspected yet. Virginia ********************* How about If Month(DateNextSAI) = Month(Date) and Year(DateNextSAI) = Year(Date) Then . . . Jennifer -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Mon Feb 5 14:46:05 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 05 Feb 2007 12:46:05 -0800 Subject: [AccessD] ADO code stopped working In-Reply-To: <008201c7495a$18b507f0$6401a8c0@jefferson> References: <008201c7495a$18b507f0$6401a8c0@jefferson> Message-ID: <45C7978D.9040903@shaw.ca> I am just wondering if TheQuery has to be run once to compile it? or this ACC2000: How to Use Parameters with ActiveX Data Objects (ADO) and Jet http://support.microsoft.com/kb/225897/en-us Method 3: Using an Implicit Parameter NOTE: Implicit parameter names have brackets ([ ]) around them, and you must use the brackets (or the parameter's ordinal position) when referring to implicit parameters in the Parameters collection. If you do not use the brackets, you receive the following error message: Run-time error '3265': ADO could not find the object in the collection corresponding to the name or ordinal reference requested by the application. PRB: Error 3265 When You Access Properties Collection http://support.microsoft.com/?kbid=201826 http://support.microsoft.com/default.aspx?scid=kb;en-us;223212 Jennifer Gross wrote: >Hi Gustav, > >I have checked all references. The code is compiling. I have created a >test database with one table and one query. It is failing in the same >spot my original database is failing - Set prc = >cat.Procedures("TheQuery") - In the test database I am getting the error >3265 - Item cannot be found in the collection corresponding to the >requested name or ordinal. The query does exist - no spelling errors. >The same ADO code is working fine on my home office system. It worked >fine at the client's site in January. Any thoughts? > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >Sent: Monday, February 05, 2007 1:47 AM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] ADO code stopped working > > >Hi Jennifer > >You could - for and while debugging - try to separate the connection >object: > > Dim cnn As ADODB.Connection > Dim cmd As ADODB.Command > Dim rst As ADODB.Recordset > Dim prm As ADODB.Parameter > Dim cat As ADOX.Catalog > Dim prc As ADOX.Procedure > > Set cat = New ADOX.Catalog > Set cnn = CurrentProject.Connection > cat.ActiveConnection = cnn > >I guess you have double-checked the reference: > Microsoft ADO Ext. 2.8 for DDL and Security >points to > ..system32\MSADOX.DLL > >/gustav > > > >>>>jengross at gte.net 05-02-2007 05:00 >>> >>>> >>>> >Thanks for the suggestions. I set the references like Marty suggested >and am still getting the problem. I am using the Getz Developers >Handbook code for looping through parameters in a select query: > > Dim cmd As ADODB.Command > Dim rst As ADODB.Recordset > Dim prm As ADODB.Parameter > Dim cat As ADOX.Catalog > Dim prc As ADOX.Procedure > > Set cat = New ADOX.Catalog >* cat.ActiveConnection = CurrentProject.Connection >* Set prc = cat.Procedures("TheQuery") > Set cmd = prc.Command > For Each prm In cmd.Parameters > prm.Value = Eval(prm.Name) > Next prm > Set rst = cmd.Execute > >If I don't use the query with parameters, but instead base the recordset >on the table, then it works fine: > > Set rst = New ADODB.Recordset > Set rst.ActiveConnection = CurrentProject.Connection > rst.CursorType = adOpenForwardOnly > rst.LockType = adLockReadOnly > rst.Open "TheTable" > >I am getting the same results whether the code is in the existing FE or >if I create a new db with the ADO code as Rocky suggested. > >Any thoughts? > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin >at Beach Access Software >Sent: Sunday, February 04, 2007 4:55 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] ADO code stopped working > > >I would whip up a small app with some ado code to see if the problem is >inside your app or outside of it. Does your app compile? > >Rocky > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer >Gross >Sent: Sunday, February 04, 2007 2:05 PM >To: AccessD List >Subject: [AccessD] ADO code stopped working > >Hi Everyone, > >W2K SP4 / A2K SP3 / terminal server > >I have a database that has some DAO and some ADO code. Recently all ADO >stopped working. DAO is still working fine. Anytime code utilizing ADO >runs it shuts down the database abruptly, leaving the LDB file. We were >also having problems with the Windows Management databases locking up >and a reinstall of the latest MDAC took care of that problem, but did >not solve the ADO problem. ADO was working fine for end of year >reporting. There are no missing references. After the MDAC reinstall I >unchecked references, closed down, opened up and rechecked references. > >Any help would be greatly appreciated. > >Thank you, > >Jennifer Gross >databasics >2839 Shirley Drive >Newbury Park, CA 91320-3068 >office: (805) 480-1921 >fax: (805) 499-0467 > > > -- Marty Connelly Victoria, B.C. Canada From jwcolby at colbyconsulting.com Mon Feb 5 14:55:04 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Mon, 5 Feb 2007 15:55:04 -0500 Subject: [AccessD] Monitoring net traffic to the internet Message-ID: <00a301c74967$eac3ad20$657aa8c0@m6805> Can anyone point me to software that allows monitoring traffic to the internet and tracking it back to the workstation? My client has a very limited bandwidth to the internet and it is being used in an unexplained manner, i.e. the bandwidth is not available to me (for example) if I do an upload or download to FTP, response time is slow for remote desktop etc. We have seen this occur when one of the technical types is downloading large service packs etc which we have arranged to have done "off hours", but there are still times when the internet bandwidth is abnormally low. Thus we want to discover if someone is playing FM radio, watching a video etc. just so we can go rap on their door and ask them to stop. I haven't a clue how to discover what workstation is using bandwidth like this. John W. Colby Colby Consulting www.ColbyConsulting.com From DWUTKA at Marlow.com Mon Feb 5 16:06:18 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 5 Feb 2007 16:06:18 -0600 Subject: [AccessD] Connections and Performance Message-ID: Most 'articles' that 'document' Access performance are doing so based upon poorly designed systems. You have to design your system based on system requirements. If you are going to have 1 to 5 users, you can keep everything bound, and be reasonably assured that things will work well. If you are talking 5 to 30 users, now it's time to pick up some of the slack. Timeout forms and reports that are going to tie up db connections. 30 to 100 users, you better start thinking unbound. 100+ users, better start thinking about something other then Access as a front end (I would recommend ASP). The point is that JET, as a db system, can handle a lot, but Access, as a Front End provides more bells and whistles that tax the backend more. Case in point, we have our production database in Oracle, on it's own honking box. Huge server, loads of memory and disk space, but when certain things are run, even that system gets taken to It's knees. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 02, 2007 10:13 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance Drew, I read this somewhere - either in MS documentation or in a book where I believe the author. Here's the reason I was asking: At a certain customer site, they experienced a dramatic performance slowdown at a time when about 10 people were logged on concurrently. Each client PC has it's own FE. I know that they open the system and leave the process screens open, all of which are bound. I want to suggest that they remember to close the process screens so that just the main screen is open, which is not bound. This way a fewer number of connections are being used at any one time and performance would probably be acceptable. This particular customer, I believe, does not have a very good network, so that is part of the problem. But that's unlikely to get improved, so I wanted to provide at least a partial solution, hence my question. I've also heard that a connection is made not based on whether a form is open and bound, but on whether or not there is data traffic between to and from a table, which only takes a small part of a second. So what causes the performance slowdown when only 10 client PC's are logged on, and what could be done to improve this? Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, February 02, 2007 9:26 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance Where are you getting these numbers. Access can have up to 255 connections. Drew -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Friday, February 02, 2007 8:45 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance Access has the potential for 8 simultaneous connections, but 3 of them are reserved for the system's use. That leaves five for users. Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Friday, February 02, 2007 8:02 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance >But, the connection limit for one BE is 5 FE's. What does this mean? I have never heard of any such thing. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 02, 2007 8:58 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Connections and Performance I've read several times that maintaining a connection between a FE and a BE will increase the performance of the FE because it doesn't need to reconnect before transferring data. The connection here would be a bound form connected by a table link to a table in the BE. But, the connection limit for one BE is 5 FE's. So, will maintaining connections on more than 5 FE's reduce performance? Seems logical, but I was wondering if this is correct or is there more to it? Thanks! Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Mon Feb 5 16:08:23 2007 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Mon, 5 Feb 2007 16:08:23 -0600 Subject: [AccessD] Monitoring net traffic to the internet Message-ID: <34C8A2AB1EF3564CB0D64DB6AFFDD5C201200FDA@xlivmbx35.aig.com> These two tools might be useful... http://www.microsoft.com/technet/sysinternals/Networking/TcpView.mspx http://www.sysinternals.com/Utilities/TdiMon.html Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Monday, February 05, 2007 3:55 PM To: dba-sqlserver at databaseadvisors.com; 'Access Developers discussion and problem solving'; 'Discussion of Hardware and Software issues' Subject: [AccessD] Monitoring net traffic to the internet Can anyone point me to software that allows monitoring traffic to the internet and tracking it back to the workstation? My client has a very limited bandwidth to the internet and it is being used in an unexplained manner, i.e. the bandwidth is not available to me (for example) if I do an upload or download to FTP, response time is slow for remote desktop etc. We have seen this occur when one of the technical types is downloading large service packs etc which we have arranged to have done "off hours", but there are still times when the internet bandwidth is abnormally low. Thus we want to discover if someone is playing FM radio, watching a video etc. just so we can go rap on their door and ask them to stop. I haven't a clue how to discover what workstation is using bandwidth like this. John W. Colby Colby Consulting www.ColbyConsulting.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 Feb 5 16:15:17 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 05 Feb 2007 14:15:17 -0800 Subject: [AccessD] Monitoring net traffic to the internet In-Reply-To: <00a301c74967$eac3ad20$657aa8c0@m6805> Message-ID: <0JD0009I6GE4YNE0@l-daemon> Hi John: Assuming your client does not have an IIS server on their main internet server (Logging of any connections through IIS are automatically kept), then they can go the route of a piece of monitoring software. There are a number of packages out there, some free (http://www.softplatz.com/freeware/bandwidth/) and a number of good commercial packages, some with trial use periods. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Monday, February 05, 2007 12:55 PM To: dba-sqlserver at databaseadvisors.com; 'Access Developers discussion and problem solving'; 'Discussion of Hardware and Software issues' Subject: [AccessD] Monitoring net traffic to the internet Can anyone point me to software that allows monitoring traffic to the internet and tracking it back to the workstation? My client has a very limited bandwidth to the internet and it is being used in an unexplained manner, i.e. the bandwidth is not available to me (for example) if I do an upload or download to FTP, response time is slow for remote desktop etc. We have seen this occur when one of the technical types is downloading large service packs etc which we have arranged to have done "off hours", but there are still times when the internet bandwidth is abnormally low. Thus we want to discover if someone is playing FM radio, watching a video etc. just so we can go rap on their door and ask them to stop. I haven't a clue how to discover what workstation is using bandwidth like this. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jengross at gte.net Mon Feb 5 16:20:04 2007 From: jengross at gte.net (Jennifer Gross) Date: Mon, 05 Feb 2007 14:20:04 -0800 Subject: [AccessD] ADO code stopped working In-Reply-To: <45C7978D.9040903@shaw.ca> Message-ID: <00ba01c74973$cdc6e820$6401a8c0@jefferson> The code ran fine in the past and is running fine on my home office system. I just tried it again at home, it works, and then ported it to the client and it fails. It has to be something with their setup that has changed or become corrupted. We have reinstalled MDAC, and I am on the same version of MDAC as the client - 2.8. The failure though is not in the connection, it is in accessing the query. I am using the Command object to avoid explicitly defining the parameters. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Monday, February 05, 2007 12:46 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] ADO code stopped working I am just wondering if TheQuery has to be run once to compile it? or this ACC2000: How to Use Parameters with ActiveX Data Objects (ADO) and Jet http://support.microsoft.com/kb/225897/en-us Method 3: Using an Implicit Parameter NOTE: Implicit parameter names have brackets ([ ]) around them, and you must use the brackets (or the parameter's ordinal position) when referring to implicit parameters in the Parameters collection. If you do not use the brackets, you receive the following error message: Run-time error '3265': ADO could not find the object in the collection corresponding to the name or ordinal reference requested by the application. PRB: Error 3265 When You Access Properties Collection http://support.microsoft.com/?kbid=201826 http://support.microsoft.com/default.aspx?scid=kb;en-us;223212 Jennifer Gross wrote: >Hi Gustav, > >I have checked all references. The code is compiling. I have created >a test database with one table and one query. It is failing in the >same spot my original database is failing - Set prc = >cat.Procedures("TheQuery") - In the test database I am getting the >error 3265 - Item cannot be found in the collection corresponding to >the requested name or ordinal. The query does exist - no spelling >errors. The same ADO code is working fine on my home office system. It >worked fine at the client's site in January. Any thoughts? > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >Sent: Monday, February 05, 2007 1:47 AM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] ADO code stopped working > > >Hi Jennifer > >You could - for and while debugging - try to separate the connection >object: > > Dim cnn As ADODB.Connection > Dim cmd As ADODB.Command > Dim rst As ADODB.Recordset > Dim prm As ADODB.Parameter > Dim cat As ADOX.Catalog > Dim prc As ADOX.Procedure > > Set cat = New ADOX.Catalog > Set cnn = CurrentProject.Connection > cat.ActiveConnection = cnn > >I guess you have double-checked the reference: > Microsoft ADO Ext. 2.8 for DDL and Security >points to > ..system32\MSADOX.DLL > >/gustav > > > >>>>jengross at gte.net 05-02-2007 05:00 >>> >>>> >>>> >Thanks for the suggestions. I set the references like Marty suggested >and am still getting the problem. I am using the Getz Developers >Handbook code for looping through parameters in a select query: > > Dim cmd As ADODB.Command > Dim rst As ADODB.Recordset > Dim prm As ADODB.Parameter > Dim cat As ADOX.Catalog > Dim prc As ADOX.Procedure > > Set cat = New ADOX.Catalog >* cat.ActiveConnection = CurrentProject.Connection >* Set prc = cat.Procedures("TheQuery") > Set cmd = prc.Command > For Each prm In cmd.Parameters > prm.Value = Eval(prm.Name) > Next prm > Set rst = cmd.Execute > >If I don't use the query with parameters, but instead base the >recordset on the table, then it works fine: > > Set rst = New ADODB.Recordset > Set rst.ActiveConnection = CurrentProject.Connection > rst.CursorType = adOpenForwardOnly > rst.LockType = adLockReadOnly > rst.Open "TheTable" > >I am getting the same results whether the code is in the existing FE or >if I create a new db with the ADO code as Rocky suggested. > >Any thoughts? > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin >at Beach Access Software >Sent: Sunday, February 04, 2007 4:55 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] ADO code stopped working > > >I would whip up a small app with some ado code to see if the problem is >inside your app or outside of it. Does your app compile? > >Rocky > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer >Gross >Sent: Sunday, February 04, 2007 2:05 PM >To: AccessD List >Subject: [AccessD] ADO code stopped working > >Hi Everyone, > >W2K SP4 / A2K SP3 / terminal server > >I have a database that has some DAO and some ADO code. Recently all >ADO stopped working. DAO is still working fine. Anytime code >utilizing ADO runs it shuts down the database abruptly, leaving the LDB >file. We were also having problems with the Windows Management >databases locking up and a reinstall of the latest MDAC took care of >that problem, but did not solve the ADO problem. ADO was working fine >for end of year reporting. There are no missing references. After the >MDAC reinstall I unchecked references, closed down, opened up and >rechecked references. > >Any help would be greatly appreciated. > >Thank you, > >Jennifer Gross >databasics >2839 Shirley Drive >Newbury Park, CA 91320-3068 >office: (805) 480-1921 >fax: (805) 499-0467 > > > -- 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 artful at rogers.com Mon Feb 5 17:07:44 2007 From: artful at rogers.com (artful at rogers.com) Date: Mon, 5 Feb 2007 15:07:44 -0800 (PST) Subject: [AccessD] Exporting objects (forms) to text and back in to Access Message-ID: <20070205230744.91482.qmail@web88213.mail.re2.yahoo.com> I can't find your file, Max. I'm assuming you're referring to Roger's Access Library. What's the exact filename? I couldn't find EAT in a search of the site, and "export to text" didn't turn it up either. TIA, Arthur From dwaters at usinternet.com Mon Feb 5 18:26:29 2007 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 5 Feb 2007 18:26:29 -0600 Subject: [AccessD] Connections and Performance In-Reply-To: <7048068.1170713511646.JavaMail.root@sniper50> References: <7048068.1170713511646.JavaMail.root@sniper50> Message-ID: <013001c74985$72610f30$0200a8c0@danwaters> Thanks Drew, I have asked everyone at my customer's site to close the screens they're not using (these are bound), but told them they can stay logged in because the main screen is not bound. We'll see if that helps. If not then I will need to start timing out the bound forms. I still don't know what is the definition of one connection. Is one bound form a connection? Is a FE with any number of bound forms a connection? Or is a connection defined by the periods of time when data transfer is taking place between a FE and BE? Or . . . ? Thanks for teaching me! Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Monday, February 05, 2007 4:06 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance Most 'articles' that 'document' Access performance are doing so based upon poorly designed systems. You have to design your system based on system requirements. If you are going to have 1 to 5 users, you can keep everything bound, and be reasonably assured that things will work well. If you are talking 5 to 30 users, now it's time to pick up some of the slack. Timeout forms and reports that are going to tie up db connections. 30 to 100 users, you better start thinking unbound. 100+ users, better start thinking about something other then Access as a front end (I would recommend ASP). The point is that JET, as a db system, can handle a lot, but Access, as a Front End provides more bells and whistles that tax the backend more. Case in point, we have our production database in Oracle, on it's own honking box. Huge server, loads of memory and disk space, but when certain things are run, even that system gets taken to It's knees. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 02, 2007 10:13 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance Drew, I read this somewhere - either in MS documentation or in a book where I believe the author. Here's the reason I was asking: At a certain customer site, they experienced a dramatic performance slowdown at a time when about 10 people were logged on concurrently. Each client PC has it's own FE. I know that they open the system and leave the process screens open, all of which are bound. I want to suggest that they remember to close the process screens so that just the main screen is open, which is not bound. This way a fewer number of connections are being used at any one time and performance would probably be acceptable. This particular customer, I believe, does not have a very good network, so that is part of the problem. But that's unlikely to get improved, so I wanted to provide at least a partial solution, hence my question. I've also heard that a connection is made not based on whether a form is open and bound, but on whether or not there is data traffic between to and from a table, which only takes a small part of a second. So what causes the performance slowdown when only 10 client PC's are logged on, and what could be done to improve this? Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, February 02, 2007 9:26 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance Where are you getting these numbers. Access can have up to 255 connections. Drew -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Friday, February 02, 2007 8:45 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance Access has the potential for 8 simultaneous connections, but 3 of them are reserved for the system's use. That leaves five for users. Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Friday, February 02, 2007 8:02 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance >But, the connection limit for one BE is 5 FE's. What does this mean? I have never heard of any such thing. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 02, 2007 8:58 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Connections and Performance I've read several times that maintaining a connection between a FE and a BE will increase the performance of the FE because it doesn't need to reconnect before transferring data. The connection here would be a bound form connected by a table link to a table in the BE. But, the connection limit for one BE is 5 FE's. So, will maintaining connections on more than 5 FE's reduce performance? Seems logical, but I was wondering if this is correct or is there more to it? Thanks! Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Mon Feb 5 18:40:25 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 5 Feb 2007 18:40:25 -0600 Subject: [AccessD] Connections and Performance Message-ID: I believe there is only one connection between a front end and back end. In fact, many databases have better performance when the connection is maintained through a 'linked table'. Create a dummy table (one field, no records), called tblLink. Create a form bound to that table, and open that form, hidden, on startup. That keeps the 'connection' live while the user is in the database. I know in Access 97 that process was recommended in the help files under 'splitting a database'. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, February 05, 2007 6:26 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance Thanks Drew, I have asked everyone at my customer's site to close the screens they're not using (these are bound), but told them they can stay logged in because the main screen is not bound. We'll see if that helps. If not then I will need to start timing out the bound forms. I still don't know what is the definition of one connection. Is one bound form a connection? Is a FE with any number of bound forms a connection? Or is a connection defined by the periods of time when data transfer is taking place between a FE and BE? Or . . . ? Thanks for teaching me! Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Monday, February 05, 2007 4:06 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance Most 'articles' that 'document' Access performance are doing so based upon poorly designed systems. You have to design your system based on system requirements. If you are going to have 1 to 5 users, you can keep everything bound, and be reasonably assured that things will work well. If you are talking 5 to 30 users, now it's time to pick up some of the slack. Timeout forms and reports that are going to tie up db connections. 30 to 100 users, you better start thinking unbound. 100+ users, better start thinking about something other then Access as a front end (I would recommend ASP). The point is that JET, as a db system, can handle a lot, but Access, as a Front End provides more bells and whistles that tax the backend more. Case in point, we have our production database in Oracle, on it's own honking box. Huge server, loads of memory and disk space, but when certain things are run, even that system gets taken to It's knees. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 02, 2007 10:13 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance Drew, I read this somewhere - either in MS documentation or in a book where I believe the author. Here's the reason I was asking: At a certain customer site, they experienced a dramatic performance slowdown at a time when about 10 people were logged on concurrently. Each client PC has it's own FE. I know that they open the system and leave the process screens open, all of which are bound. I want to suggest that they remember to close the process screens so that just the main screen is open, which is not bound. This way a fewer number of connections are being used at any one time and performance would probably be acceptable. This particular customer, I believe, does not have a very good network, so that is part of the problem. But that's unlikely to get improved, so I wanted to provide at least a partial solution, hence my question. I've also heard that a connection is made not based on whether a form is open and bound, but on whether or not there is data traffic between to and from a table, which only takes a small part of a second. So what causes the performance slowdown when only 10 client PC's are logged on, and what could be done to improve this? Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, February 02, 2007 9:26 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance Where are you getting these numbers. Access can have up to 255 connections. Drew -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Friday, February 02, 2007 8:45 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance Access has the potential for 8 simultaneous connections, but 3 of them are reserved for the system's use. That leaves five for users. Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Friday, February 02, 2007 8:02 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance >But, the connection limit for one BE is 5 FE's. What does this mean? I have never heard of any such thing. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 02, 2007 8:58 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Connections and Performance I've read several times that maintaining a connection between a FE and a BE will increase the performance of the FE because it doesn't need to reconnect before transferring data. The connection here would be a bound form connected by a table link to a table in the BE. But, the connection limit for one BE is 5 FE's. So, will maintaining connections on more than 5 FE's reduce performance? Seems logical, but I was wondering if this is correct or is there more to it? Thanks! Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at gmail.com Mon Feb 5 20:02:45 2007 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Mon, 5 Feb 2007 21:02:45 -0500 Subject: [AccessD] DBA Website Message-ID: Jim, Gotta favour to ask next time you are hacking DBAs site. Could you change the listmaster e-mail address to listmaster+www at databaseadvisors.com for me. Just the link parts, and not what is actually displayed. I'm trying a little experiment. -- 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 carbonnb at gmail.com Mon Feb 5 20:13:01 2007 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Mon, 5 Feb 2007 21:13:01 -0500 Subject: [AccessD] DBA Website In-Reply-To: References: Message-ID: On 2/5/07, Bryan Carbonnell wrote: > Jim, > > Gotta favour to ask ... Whoops. Sent this to the wrong place. So what do you say Jim :) OK, so where is that rock? Gotta go and crawl back under it. -- 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 Gustav at cactus.dk Tue Feb 6 04:57:07 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 06 Feb 2007 11:57:07 +0100 Subject: [AccessD] ADO code stopped working Message-ID: Thanks Marty, that explains. /gustav >>> martyconnelly at shaw.ca 05-02-2007 19:29:09 >>> I made a mistake I really meant this reference is need for ADOX Microsoft ADO Ext for 2.8 for DDL and Secuirity C:\Program Files\Common Files\System\ado\msadox.dll Actually msador.dll is only needed for backward compatibility, going back to MDAC 2.1 Originally, ADOR was designed to be a standalone component. However, as ADO has evolved in design and use, this is no longer ADOR's purpose. ADOR is now only a sub to the MSADO15.DLL and exists only to maintain backward compatibility. Gustav Brock wrote: >Hi Marty > >Are you absolutely sure? >I have a small test which fills a recordset from a saved query like Jennifer, and I have no reference for the Recordsets Library (never heard of that, by the way, until now - wonder what it does). > >/gustav > > > >>>>martyconnelly at shaw.ca 05-02-2007 06:15 >>> >>>> >>>> >You need two references set > >Microsoft ActiveX Data Object 2.7 Recordsets Library > >msador15.dll for ADOX >and > >Microsoft ActiveX Data Object 2.8 Library > >msado15.dll for ADODB > > > >Jennifer Gross wrote: > > > >>Thanks Marty. I have the reference to msado15.dll, it is the latest >>ActiveX Data Object 2.8 Recordset Library. The code is compiling, but >>failing. It was running properly in January for end of year reporting >>and I have made no changes to the code since it ran properly. The DAO >>code is all still running properly. After 6+ years I finally decided to >>dip my toe in ADO and it worked well before - I just can't figure out >>why it is failing now. We have re-installed MDAC. I've unchecked and >>rechecked the references. I am at a loss. I await the ADO gurus' >>various ah-ha's. >> >>Jennifer >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly >>Sent: Sunday, February 04, 2007 8:16 PM >>To: Access Developers discussion and problem solving >>Subject: Re: [AccessD] ADO code stopped working >> >> >>tlb/dll My eyeballs get fuzzy watching Superbowl commercials >> >>However you are using ADOX, so you need one more additional reference if >>it is 2.8 MDAC you need a reference to >> >>The Access reference >>Microsoft ActiveX Data Object 2.7 Recordsets Library >>should point at >>C:\Program Files\Common Files\System\ado\msador15.dll >> >>Jennifer Gross wrote: >> >> >> >> >> >>>Thanks for the suggestions. I set the references like Marty suggested >>>and am still getting the problem. I am using the Getz Developers >>>Handbook code for looping through parameters in a select query: >>> >>> Dim cmd As ADODB.Command >>> Dim rst As ADODB.Recordset >>> Dim prm As ADODB.Parameter >>> Dim cat As ADOX.Catalog >>> Dim prc As ADOX.Procedure >>> >>> Set cat = New ADOX.Catalog >>>* cat.ActiveConnection = CurrentProject.Connection >>>* Set prc = cat.Procedures("TheQuery") >>> Set cmd = prc.Command >>> For Each prm In cmd.Parameters >>> prm.Value = Eval(prm.Name) >>> Next prm >>> Set rst = cmd.Execute >>> >>>If I don't use the query with parameters, but instead base the >>>recordset on the table, then it works fine: >>> >>> Set rst = New ADODB.Recordset >>> Set rst.ActiveConnection = CurrentProject.Connection >>> rst.CursorType = adOpenForwardOnly >>> rst.LockType = adLockReadOnly >>> rst.Open "TheTable" >>> >>>I am getting the same results whether the code is in the existing FE or >>> >>> >>> >>> >> >> >> >> >>>if I create a new db with the ADO code as Rocky suggested. >>> >>>Any thoughts? >>> >>>Jennifer >>> >>>-----Original Message----- >>>From: accessd-bounces at databaseadvisors.com >>>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin >>> >>> >>> >>> >> >> >> >> >>>at Beach Access Software >>>Sent: Sunday, February 04, 2007 4:55 PM >>>To: 'Access Developers discussion and problem solving' >>>Subject: Re: [AccessD] ADO code stopped working >>> >>> >>>I would whip up a small app with some ado code to see if the problem is >>> >>> >>> >>> >> >> >> >> >>>inside your app or outside of it. Does your app compile? >>> >>>Rocky >>> >>> >>>-----Original Message----- >>>From: accessd-bounces at databaseadvisors.com >>>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer >>>Gross >>>Sent: Sunday, February 04, 2007 2:05 PM >>>To: AccessD List >>>Subject: [AccessD] ADO code stopped working >>> >>>Hi Everyone, >>> >>>W2K SP4 / A2K SP3 / terminal server >>> >>>I have a database that has some DAO and some ADO code. Recently all >>>ADO stopped working. DAO is still working fine. Anytime code >>>utilizing ADO runs it shuts down the database abruptly, leaving the LDB >>> >>> >>> >>> >> >> >> >> >>>file. We were also having problems with the Windows Management >>>databases locking up and a reinstall of the latest MDAC took care of >>>that problem, but did not solve the ADO problem. ADO was working fine >>>for end of year reporting. There are no missing references. After the >>> >>> >>> >>> >> >> >> >> >>>MDAC reinstall I unchecked references, closed down, opened up and >>>rechecked references. >>> >>>Any help would be greatly appreciated. >>> >>>Thank you, >>> >>> -- Marty Connelly Victoria, B.C. Canada From Gustav at cactus.dk Tue Feb 6 05:17:52 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 06 Feb 2007 12:17:52 +0100 Subject: [AccessD] ADO code stopped working Message-ID: Hi Jennifer The 3265 missing item error is not related to the name of the query but - surprise - to the parameter collection of the query. If the query's parameter collection does have a parameter count of zero, the error is raised. I have tested this in A2002/XP as well as A2003 and the scenario is consistent with ADO 2.8. What has happened could be that in a previous version of ADO the parameter count was not checked. Even if your code indicates the presence of one or more parameters I guess none exists, thus - after a possible update of ADO - the error occurs. On another note, the "smart" way of feeding values to your parameters my not work in Access 2007 as - if I remember correctly - the function Eval is considered "dangerous" and thus has been removed. So, in the future, you better spell out each parameter and the variable you wish to assign. Remember, that a parameter can be identified by its Index: cmd.Parameters(0).Value = /gustav >>> jengross at gte.net 05-02-2007 20:16:05 >>> Hi Gustav, I have checked all references. The code is compiling. I have created a test database with one table and one query. It is failing in the same spot my original database is failing - Set prc = cat.Procedures("TheQuery") - In the test database I am getting the error 3265 - Item cannot be found in the collection corresponding to the requested name or ordinal. The query does exist - no spelling errors. The same ADO code is working fine on my home office system. It worked fine at the client's site in January. Any thoughts? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, February 05, 2007 1:47 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] ADO code stopped working Hi Jennifer You could - for and while debugging - try to separate the connection object: Dim cnn As ADODB.Connection Dim cmd As ADODB.Command Dim rst As ADODB.Recordset Dim prm As ADODB.Parameter Dim cat As ADOX.Catalog Dim prc As ADOX.Procedure Set cat = New ADOX.Catalog Set cnn = CurrentProject.Connection cat.ActiveConnection = cnn I guess you have double-checked the reference: Microsoft ADO Ext. 2.8 for DDL and Security points to ..system32\MSADOX.DLL /gustav >>> jengross at gte.net 05-02-2007 05:00 >>> Thanks for the suggestions. I set the references like Marty suggested and am still getting the problem. I am using the Getz Developers Handbook code for looping through parameters in a select query: Dim cmd As ADODB.Command Dim rst As ADODB.Recordset Dim prm As ADODB.Parameter Dim cat As ADOX.Catalog Dim prc As ADOX.Procedure Set cat = New ADOX.Catalog * cat.ActiveConnection = CurrentProject.Connection * Set prc = cat.Procedures("TheQuery") Set cmd = prc.Command For Each prm In cmd.Parameters prm.Value = Eval(prm.Name) Next prm Set rst = cmd.Execute If I don't use the query with parameters, but instead base the recordset on the table, then it works fine: Set rst = New ADODB.Recordset Set rst.ActiveConnection = CurrentProject.Connection rst.CursorType = adOpenForwardOnly rst.LockType = adLockReadOnly rst.Open "TheTable" I am getting the same results whether the code is in the existing FE or if I create a new db with the ADO code as Rocky suggested. Any thoughts? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Sunday, February 04, 2007 4:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] ADO code stopped working I would whip up a small app with some ado code to see if the problem is inside your app or outside of it. Does your app compile? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Sunday, February 04, 2007 2:05 PM To: AccessD List Subject: [AccessD] ADO code stopped working Hi Everyone, W2K SP4 / A2K SP3 / terminal server I have a database that has some DAO and some ADO code. Recently all ADO stopped working. DAO is still working fine. Anytime code utilizing ADO runs it shuts down the database abruptly, leaving the LDB file. We were also having problems with the Windows Management databases locking up and a reinstall of the latest MDAC took care of that problem, but did not solve the ADO problem. ADO was working fine for end of year reporting. There are no missing references. After the MDAC reinstall I unchecked references, closed down, opened up and rechecked references. Any help would be greatly appreciated. Thank you, Jennifer Gross databasics 2839 Shirley Drive Newbury Park, CA 91320-3068 office: (805) 480-1921 fax: (805) 499-0467 From Gustav at cactus.dk Tue Feb 6 05:45:11 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 06 Feb 2007 12:45:11 +0100 Subject: [AccessD] Option Group on Report Message-ID: Hi Virginia You could use Choose: =Choose([YourOptionGroup], "Go", "No Go", "N/A") /gustav >>> hollisvj at pgdp.usec.com 05-02-2007 18:38:49 >>> I have an option group on a form. How do I get the related word from the selected option to show on a report? Choices for Option group 1- Go 2 - No Go 3 - N/A The report needs to show the words "Go", 'No Go" or "N/A" not the number (1, 2, or 3). Virginia From Gustav at cactus.dk Tue Feb 6 06:23:41 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 06 Feb 2007 13:23:41 +0100 Subject: [AccessD] Date Format for Month Message-ID: Hi Virginia I would use DateDiff: If DateDiff("m", Date, [DateNextSAI]) <= 0 Then or: If DateDiff("m", Date, Nz([DateNextSAI], Date)) <= 0 Then or: If Nz(DateDiff("m", Date, [DateNextSAI]), 0) <= 0 Then /gustav >>> hollisvj at pgdp.usec.com 05-02-2007 20:58:45 >>> I know you guys are probably getting tired of hearing from me lately. It has been several years since I have done this & my mind leaks...... On a report I need to show the date of the next inspection in red & bold (got that part). My problem is that they only care about the month & year due, not the day. How do I get it to pick out the month & year from today's date? So if the report is run for February and the next inspection date is 2/10/2007, it would show in bold & red on the report. If the next inspection date is 11/3/2007. It would be regular font. If Format$([DateNextSAI], "mmm yyyy", 0, 0) = Date Then From jwcolby at colbyconsulting.com Tue Feb 6 06:54:55 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Tue, 6 Feb 2007 07:54:55 -0500 Subject: [AccessD] Excel Default cursor movement Message-ID: <00d001c749ee$00d176c0$657aa8c0@m6805> How do I set the default in excel to have the arrow keys move the cursor from cell to cell. For some reason it causes the viewable area to scroll around, keeping the cursor in the same cell. John W. Colby Colby Consulting www.ColbyConsulting.com From Lambert.Heenan at AIG.com Tue Feb 6 08:28:47 2007 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 6 Feb 2007 08:28:47 -0600 Subject: [AccessD] Excel Default cursor movement Message-ID: <34C8A2AB1EF3564CB0D64DB6AFFDD5C201200FE0@xlivmbx35.aig.com> That happens when the scroll-lock key has been pressed. Hit it again and the arrow keys will be back to 'normal'. If you want to control this in code I have some VAB to do the trick. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Tuesday, February 06, 2007 7:55 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Excel Default cursor movement How do I set the default in excel to have the arrow keys move the cursor from cell to cell. For some reason it causes the viewable area to scroll around, keeping the cursor in the same cell. John W. Colby Colby Consulting www.ColbyConsulting.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 Feb 6 08:41:30 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Tue, 6 Feb 2007 09:41:30 -0500 Subject: [AccessD] Excel Default cursor movement In-Reply-To: <34C8A2AB1EF3564CB0D64DB6AFFDD5C201200FE0@xlivmbx35.aig.com> Message-ID: <00e101c749fc$e47aae60$657aa8c0@m6805> Thanks Lambert, that did it. This happens occasionally and I can never remember how to fix it. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Tuesday, February 06, 2007 9:29 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Excel Default cursor movement That happens when the scroll-lock key has been pressed. Hit it again and the arrow keys will be back to 'normal'. If you want to control this in code I have some VAB to do the trick. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Tuesday, February 06, 2007 7:55 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Excel Default cursor movement How do I set the default in excel to have the arrow keys move the cursor from cell to cell. For some reason it causes the viewable area to scroll around, keeping the cursor in the same cell. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Tue Feb 6 08:57:15 2007 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 6 Feb 2007 08:57:15 -0600 Subject: [AccessD] Connections and Performance In-Reply-To: <638723.1170722665768.JavaMail.root@sniper64> References: <638723.1170722665768.JavaMail.root@sniper64> Message-ID: <00ac01c749ff$17a2c5a0$0200a8c0@danwaters> Hi Drew, Do you know how many FE clients could maintain that type of connection to a BE at the same and still have reasonable performance? Does anyone have experience with this configuration? Dan Waters -----Original Message----- Subject: Re: [AccessD] Connections and Performance I believe there is only one connection between a front end and back end. In fact, many databases have better performance when the connection is maintained through a 'linked table'. Create a dummy table (one field, no records), called tblLink. Create a form bound to that table, and open that form, hidden, on startup. That keeps the 'connection' live while the user is in the database. I know in Access 97 that process was recommended in the help files under 'splitting a database'. Drew -----Original Message----- Subject: Re: [AccessD] Connections and Performance Thanks Drew, I have asked everyone at my customer's site to close the screens they're not using (these are bound), but told them they can stay logged in because the main screen is not bound. We'll see if that helps. If not then I will need to start timing out the bound forms. I still don't know what is the definition of one connection. Is one bound form a connection? Is a FE with any number of bound forms a connection? Or is a connection defined by the periods of time when data transfer is taking place between a FE and BE? Or . . . ? Thanks for teaching me! Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Monday, February 05, 2007 4:06 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance Most 'articles' that 'document' Access performance are doing so based upon poorly designed systems. You have to design your system based on system requirements. If you are going to have 1 to 5 users, you can keep everything bound, and be reasonably assured that things will work well. If you are talking 5 to 30 users, now it's time to pick up some of the slack. Timeout forms and reports that are going to tie up db connections. 30 to 100 users, you better start thinking unbound. 100+ users, better start thinking about something other then Access as a front end (I would recommend ASP). The point is that JET, as a db system, can handle a lot, but Access, as a Front End provides more bells and whistles that tax the backend more. Case in point, we have our production database in Oracle, on it's own honking box. Huge server, loads of memory and disk space, but when certain things are run, even that system gets taken to It's knees. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 02, 2007 10:13 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance Drew, I read this somewhere - either in MS documentation or in a book where I believe the author. Here's the reason I was asking: At a certain customer site, they experienced a dramatic performance slowdown at a time when about 10 people were logged on concurrently. Each client PC has it's own FE. I know that they open the system and leave the process screens open, all of which are bound. I want to suggest that they remember to close the process screens so that just the main screen is open, which is not bound. This way a fewer number of connections are being used at any one time and performance would probably be acceptable. This particular customer, I believe, does not have a very good network, so that is part of the problem. But that's unlikely to get improved, so I wanted to provide at least a partial solution, hence my question. I've also heard that a connection is made not based on whether a form is open and bound, but on whether or not there is data traffic between to and from a table, which only takes a small part of a second. So what causes the performance slowdown when only 10 client PC's are logged on, and what could be done to improve this? Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, February 02, 2007 9:26 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance Where are you getting these numbers. Access can have up to 255 connections. Drew -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Friday, February 02, 2007 8:45 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance Access has the potential for 8 simultaneous connections, but 3 of them are reserved for the system's use. That leaves five for users. Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Friday, February 02, 2007 8:02 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance >But, the connection limit for one BE is 5 FE's. What does this mean? I have never heard of any such thing. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 02, 2007 8:58 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Connections and Performance I've read several times that maintaining a connection between a FE and a BE will increase the performance of the FE because it doesn't need to reconnect before transferring data. The connection here would be a bound form connected by a table link to a table in the BE. But, the connection limit for one BE is 5 FE's. So, will maintaining connections on more than 5 FE's reduce performance? Seems logical, but I was wondering if this is correct or is there more to it? Thanks! Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Tue Feb 6 08:43:29 2007 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Tue, 6 Feb 2007 08:43:29 -0600 Subject: [AccessD] Excel Default cursor movement Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DE28A@corp-es01.fleetpride.com> toggle the scroll lock key Jim Hale -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Tuesday, February 06, 2007 6:55 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Excel Default cursor movement How do I set the default in excel to have the arrow keys move the cursor from cell to cell. For some reason it causes the viewable area to scroll around, keeping the cursor in the same cell. John W. Colby Colby Consulting www.ColbyConsulting.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 DWUTKA at Marlow.com Tue Feb 6 09:34:27 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 6 Feb 2007 09:34:27 -0600 Subject: [AccessD] Connections and Performance Message-ID: Again, it depends on the design of the front end. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, February 06, 2007 8:57 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance Hi Drew, Do you know how many FE clients could maintain that type of connection to a BE at the same and still have reasonable performance? Does anyone have experience with this configuration? Dan Waters -----Original Message----- Subject: Re: [AccessD] Connections and Performance I believe there is only one connection between a front end and back end. In fact, many databases have better performance when the connection is maintained through a 'linked table'. Create a dummy table (one field, no records), called tblLink. Create a form bound to that table, and open that form, hidden, on startup. That keeps the 'connection' live while the user is in the database. I know in Access 97 that process was recommended in the help files under 'splitting a database'. Drew -----Original Message----- Subject: Re: [AccessD] Connections and Performance Thanks Drew, I have asked everyone at my customer's site to close the screens they're not using (these are bound), but told them they can stay logged in because the main screen is not bound. We'll see if that helps. If not then I will need to start timing out the bound forms. I still don't know what is the definition of one connection. Is one bound form a connection? Is a FE with any number of bound forms a connection? Or is a connection defined by the periods of time when data transfer is taking place between a FE and BE? Or . . . ? Thanks for teaching me! Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Monday, February 05, 2007 4:06 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance Most 'articles' that 'document' Access performance are doing so based upon poorly designed systems. You have to design your system based on system requirements. If you are going to have 1 to 5 users, you can keep everything bound, and be reasonably assured that things will work well. If you are talking 5 to 30 users, now it's time to pick up some of the slack. Timeout forms and reports that are going to tie up db connections. 30 to 100 users, you better start thinking unbound. 100+ users, better start thinking about something other then Access as a front end (I would recommend ASP). The point is that JET, as a db system, can handle a lot, but Access, as a Front End provides more bells and whistles that tax the backend more. Case in point, we have our production database in Oracle, on it's own honking box. Huge server, loads of memory and disk space, but when certain things are run, even that system gets taken to It's knees. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 02, 2007 10:13 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance Drew, I read this somewhere - either in MS documentation or in a book where I believe the author. Here's the reason I was asking: At a certain customer site, they experienced a dramatic performance slowdown at a time when about 10 people were logged on concurrently. Each client PC has it's own FE. I know that they open the system and leave the process screens open, all of which are bound. I want to suggest that they remember to close the process screens so that just the main screen is open, which is not bound. This way a fewer number of connections are being used at any one time and performance would probably be acceptable. This particular customer, I believe, does not have a very good network, so that is part of the problem. But that's unlikely to get improved, so I wanted to provide at least a partial solution, hence my question. I've also heard that a connection is made not based on whether a form is open and bound, but on whether or not there is data traffic between to and from a table, which only takes a small part of a second. So what causes the performance slowdown when only 10 client PC's are logged on, and what could be done to improve this? Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, February 02, 2007 9:26 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance Where are you getting these numbers. Access can have up to 255 connections. Drew -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Friday, February 02, 2007 8:45 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance Access has the potential for 8 simultaneous connections, but 3 of them are reserved for the system's use. That leaves five for users. Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Friday, February 02, 2007 8:02 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance >But, the connection limit for one BE is 5 FE's. What does this mean? I have never heard of any such thing. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 02, 2007 8:58 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Connections and Performance I've read several times that maintaining a connection between a FE and a BE will increase the performance of the FE because it doesn't need to reconnect before transferring data. The connection here would be a bound form connected by a table link to a table in the BE. But, the connection limit for one BE is 5 FE's. So, will maintaining connections on more than 5 FE's reduce performance? Seems logical, but I was wondering if this is correct or is there more to it? Thanks! Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Tue Feb 6 09:50:26 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 06 Feb 2007 15:50:26 +0000 Subject: [AccessD] Connections and Performance In-Reply-To: <00ac01c749ff$17a2c5a0$0200a8c0@danwaters> Message-ID: Dan, My experience with this is around is about 6 years ago and with A97. Most of my decisions then were based on this group's input. At that time the average feedback I received with Access as the FE and BE...was 40 users... after that corruption...so I limited them to 40 users. There were a number of things I did to increase performance. I had a seperate computer that housed the BE. Nothing else was done with this machine(just an extra desktop we had). FEs on each users machine. This app was a complaint management system...so continuous lookup/edit existing/adding new. I had an unbound searchscreen...it had a couple of bound subforms to show each user the stats of their cases...and the search results subform was unbound until you hit search. The form to display/edit the case record did not use the filter property...the 'record source' SQL used the searchform as criteria. Hope this helps...let me know if you have any specific questions. Thanks, Mark A. Matte >From: "Dan Waters" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] Connections and Performance >Date: Tue, 6 Feb 2007 08:57:15 -0600 > >Hi Drew, > >Do you know how many FE clients could maintain that type of connection to a >BE at the same and still have reasonable performance? > >Does anyone have experience with this configuration? > >Dan Waters > >-----Original Message----- >Subject: Re: [AccessD] Connections and Performance > >I believe there is only one connection between a front end and back end. >In fact, many databases have better performance when the connection is >maintained through a 'linked table'. Create a dummy table (one field, >no records), called tblLink. Create a form bound to that table, and >open that form, hidden, on startup. That keeps the 'connection' live >while the user is in the database. > >I know in Access 97 that process was recommended in the help files under >'splitting a database'. > >Drew > >-----Original Message----- >Subject: Re: [AccessD] Connections and Performance > >Thanks Drew, > >I have asked everyone at my customer's site to close the screens they're >not >using (these are bound), but told them they can stay logged in because >the >main screen is not bound. We'll see if that helps. If not then I will >need >to start timing out the bound forms. > >I still don't know what is the definition of one connection. Is one >bound >form a connection? Is a FE with any number of bound forms a connection? >Or >is a connection defined by the periods of time when data transfer is >taking >place between a FE and BE? Or . . . ? > > >Thanks for teaching me! >Dan Waters > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka >Sent: Monday, February 05, 2007 4:06 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Connections and Performance > >Most 'articles' that 'document' Access performance are doing so based >upon poorly designed systems. You have to design your system based on >system requirements. If you are going to have 1 to 5 users, you can >keep everything bound, and be reasonably assured that things will work >well. If you are talking 5 to 30 users, now it's time to pick up some >of the slack. Timeout forms and reports that are going to tie up db >connections. 30 to 100 users, you better start thinking unbound. 100+ >users, better start thinking about something other then Access as a >front end (I would recommend ASP). > >The point is that JET, as a db system, can handle a lot, but Access, as >a Front End provides more bells and whistles that tax the backend more. >Case in point, we have our production database in Oracle, on it's own >honking box. Huge server, loads of memory and disk space, but when >certain things are run, even that system gets taken to It's knees. > >Drew > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >Sent: Friday, February 02, 2007 10:13 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Connections and Performance > >Drew, > >I read this somewhere - either in MS documentation or in a book where I >believe the author. > >Here's the reason I was asking: > >At a certain customer site, they experienced a dramatic performance >slowdown >at a time when about 10 people were logged on concurrently. Each client >PC >has it's own FE. I know that they open the system and leave the process >screens open, all of which are bound. I want to suggest that they >remember >to close the process screens so that just the main screen is open, which >is >not bound. This way a fewer number of connections are being used at any >one >time and performance would probably be acceptable. This particular >customer, I believe, does not have a very good network, so that is part >of >the problem. But that's unlikely to get improved, so I wanted to >provide at >least a partial solution, hence my question. > >I've also heard that a connection is made not based on whether a form is >open and bound, but on whether or not there is data traffic between to >and >from a table, which only takes a small part of a second. > >So what causes the performance slowdown when only 10 client PC's are >logged >on, and what could be done to improve this? > >Dan Waters > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka >Sent: Friday, February 02, 2007 9:26 AM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Connections and Performance > >Where are you getting these numbers. Access can have up to 255 >connections. > >Drew > >-----Original Message----- >From: Dan Waters [mailto:dwaters at usinternet.com] >Sent: Friday, February 02, 2007 8:45 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Connections and Performance > >Access has the potential for 8 simultaneous connections, but 3 of them >are >reserved for the system's use. That leaves five for users. > >Dan Waters > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby >Sent: Friday, February 02, 2007 8:02 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Connections and Performance > > >But, the connection limit for one BE is 5 FE's. > >What does this mean? I have never heard of any such thing. > > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >Sent: Friday, February 02, 2007 8:58 AM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] Connections and Performance > >I've read several times that maintaining a connection between a FE and a >BE >will increase the performance of the FE because it doesn't need to >reconnect >before transferring data. The connection here would be a bound form >connected by a table link to a table in the BE. > >But, the connection limit for one BE is 5 FE's. So, will maintaining >connections on more than 5 FE's reduce performance? Seems logical, but >I >was wondering if this is correct or is there more to it? > >Thanks! > >Dan Waters > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Laugh, share and connect with Windows Live Messenger http://clk.atdmt.com/MSN/go/msnnkwme0020000001msn/direct/01/?href=http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=hmtagline From dwaters at usinternet.com Tue Feb 6 10:07:55 2007 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 6 Feb 2007 10:07:55 -0600 Subject: [AccessD] Connections and Performance In-Reply-To: <8325015.1170777396751.JavaMail.root@sniper9> References: <00ac01c749ff$17a2c5a0$0200a8c0@danwaters> <8325015.1170777396751.JavaMail.root@sniper9> Message-ID: <000f01c74a08$f6a1ef70$0200a8c0@danwaters> Thanks Mark! That sounds quite similar to what I do now. Lots of input/output and FE/BE. I'll try the continuous connection technique to see how that works. I'll have to wait till the next time I'm on site though. Dan Waters -----Original Message----- Subject: Re: [AccessD] Connections and Performance Dan, My experience with this is around is about 6 years ago and with A97. Most of my decisions then were based on this group's input. At that time the average feedback I received with Access as the FE and BE...was 40 users... after that corruption...so I limited them to 40 users. There were a number of things I did to increase performance. I had a seperate computer that housed the BE. Nothing else was done with this machine(just an extra desktop we had). FEs on each users machine. This app was a complaint management system...so continuous lookup/edit existing/adding new. I had an unbound searchscreen...it had a couple of bound subforms to show each user the stats of their cases...and the search results subform was unbound until you hit search. The form to display/edit the case record did not use the filter property...the 'record source' SQL used the searchform as criteria. Hope this helps...let me know if you have any specific questions. Thanks, Mark A. Matte >From: "Dan Waters" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] Connections and Performance >Date: Tue, 6 Feb 2007 08:57:15 -0600 > >Hi Drew, > >Do you know how many FE clients could maintain that type of connection to a >BE at the same and still have reasonable performance? > >Does anyone have experience with this configuration? > >Dan Waters > >-----Original Message----- >Subject: Re: [AccessD] Connections and Performance > >I believe there is only one connection between a front end and back end. >In fact, many databases have better performance when the connection is >maintained through a 'linked table'. Create a dummy table (one field, >no records), called tblLink. Create a form bound to that table, and >open that form, hidden, on startup. That keeps the 'connection' live >while the user is in the database. > >I know in Access 97 that process was recommended in the help files under >'splitting a database'. > >Drew > >-----Original Message----- >Subject: Re: [AccessD] Connections and Performance > >Thanks Drew, > >I have asked everyone at my customer's site to close the screens they're >not >using (these are bound), but told them they can stay logged in because >the >main screen is not bound. We'll see if that helps. If not then I will >need >to start timing out the bound forms. > >I still don't know what is the definition of one connection. Is one >bound >form a connection? Is a FE with any number of bound forms a connection? >Or >is a connection defined by the periods of time when data transfer is >taking >place between a FE and BE? Or . . . ? > > >Thanks for teaching me! >Dan Waters > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka >Sent: Monday, February 05, 2007 4:06 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Connections and Performance > >Most 'articles' that 'document' Access performance are doing so based >upon poorly designed systems. You have to design your system based on >system requirements. If you are going to have 1 to 5 users, you can >keep everything bound, and be reasonably assured that things will work >well. If you are talking 5 to 30 users, now it's time to pick up some >of the slack. Timeout forms and reports that are going to tie up db >connections. 30 to 100 users, you better start thinking unbound. 100+ >users, better start thinking about something other then Access as a >front end (I would recommend ASP). > >The point is that JET, as a db system, can handle a lot, but Access, as >a Front End provides more bells and whistles that tax the backend more. >Case in point, we have our production database in Oracle, on it's own >honking box. Huge server, loads of memory and disk space, but when >certain things are run, even that system gets taken to It's knees. > >Drew > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >Sent: Friday, February 02, 2007 10:13 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Connections and Performance > >Drew, > >I read this somewhere - either in MS documentation or in a book where I >believe the author. > >Here's the reason I was asking: > >At a certain customer site, they experienced a dramatic performance >slowdown >at a time when about 10 people were logged on concurrently. Each client >PC >has it's own FE. I know that they open the system and leave the process >screens open, all of which are bound. I want to suggest that they >remember >to close the process screens so that just the main screen is open, which >is >not bound. This way a fewer number of connections are being used at any >one >time and performance would probably be acceptable. This particular >customer, I believe, does not have a very good network, so that is part >of >the problem. But that's unlikely to get improved, so I wanted to >provide at >least a partial solution, hence my question. > >I've also heard that a connection is made not based on whether a form is >open and bound, but on whether or not there is data traffic between to >and >from a table, which only takes a small part of a second. > >So what causes the performance slowdown when only 10 client PC's are >logged >on, and what could be done to improve this? > >Dan Waters > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka >Sent: Friday, February 02, 2007 9:26 AM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Connections and Performance > >Where are you getting these numbers. Access can have up to 255 >connections. > >Drew > >-----Original Message----- >From: Dan Waters [mailto:dwaters at usinternet.com] >Sent: Friday, February 02, 2007 8:45 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Connections and Performance > >Access has the potential for 8 simultaneous connections, but 3 of them >are >reserved for the system's use. That leaves five for users. > >Dan Waters > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby >Sent: Friday, February 02, 2007 8:02 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Connections and Performance > > >But, the connection limit for one BE is 5 FE's. > >What does this mean? I have never heard of any such thing. > > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >Sent: Friday, February 02, 2007 8:58 AM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] Connections and Performance > >I've read several times that maintaining a connection between a FE and a >BE >will increase the performance of the FE because it doesn't need to >reconnect >before transferring data. The connection here would be a bound form >connected by a table link to a table in the BE. > >But, the connection limit for one BE is 5 FE's. So, will maintaining >connections on more than 5 FE's reduce performance? Seems logical, but >I >was wondering if this is correct or is there more to it? > >Thanks! > >Dan Waters > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Laugh, share and connect with Windows Live Messenger http://clk.atdmt.com/MSN/go/msnnkwme0020000001msn/direct/01/?href=http://ima gine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=hmtagline -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Tue Feb 6 10:17:49 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 6 Feb 2007 08:17:49 -0800 Subject: [AccessD] ADO code stopped working In-Reply-To: References: Message-ID: You have to get the datatypes right for the parameters too. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, February 06, 2007 3:18 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] ADO code stopped working Hi Jennifer The 3265 missing item error is not related to the name of the query but - surprise - to the parameter collection of the query. If the query's parameter collection does have a parameter count of zero, the error is raised. I have tested this in A2002/XP as well as A2003 and the scenario is consistent with ADO 2.8. What has happened could be that in a previous version of ADO the parameter count was not checked. Even if your code indicates the presence of one or more parameters I guess none exists, thus - after a possible update of ADO - the error occurs. On another note, the "smart" way of feeding values to your parameters my not work in Access 2007 as - if I remember correctly - the function Eval is considered "dangerous" and thus has been removed. So, in the future, you better spell out each parameter and the variable you wish to assign. Remember, that a parameter can be identified by its Index: cmd.Parameters(0).Value = /gustav >>> jengross at gte.net 05-02-2007 20:16:05 >>> Hi Gustav, I have checked all references. The code is compiling. I have created a test database with one table and one query. It is failing in the same spot my original database is failing - Set prc = cat.Procedures("TheQuery") - In the test database I am getting the error 3265 - Item cannot be found in the collection corresponding to the requested name or ordinal. The query does exist - no spelling errors. The same ADO code is working fine on my home office system. It worked fine at the client's site in January. Any thoughts? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, February 05, 2007 1:47 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] ADO code stopped working Hi Jennifer You could - for and while debugging - try to separate the connection object: Dim cnn As ADODB.Connection Dim cmd As ADODB.Command Dim rst As ADODB.Recordset Dim prm As ADODB.Parameter Dim cat As ADOX.Catalog Dim prc As ADOX.Procedure Set cat = New ADOX.Catalog Set cnn = CurrentProject.Connection cat.ActiveConnection = cnn I guess you have double-checked the reference: Microsoft ADO Ext. 2.8 for DDL and Security points to ..system32\MSADOX.DLL /gustav >>> jengross at gte.net 05-02-2007 05:00 >>> Thanks for the suggestions. I set the references like Marty suggested and am still getting the problem. I am using the Getz Developers Handbook code for looping through parameters in a select query: Dim cmd As ADODB.Command Dim rst As ADODB.Recordset Dim prm As ADODB.Parameter Dim cat As ADOX.Catalog Dim prc As ADOX.Procedure Set cat = New ADOX.Catalog * cat.ActiveConnection = CurrentProject.Connection * Set prc = cat.Procedures("TheQuery") Set cmd = prc.Command For Each prm In cmd.Parameters prm.Value = Eval(prm.Name) Next prm Set rst = cmd.Execute If I don't use the query with parameters, but instead base the recordset on the table, then it works fine: Set rst = New ADODB.Recordset Set rst.ActiveConnection = CurrentProject.Connection rst.CursorType = adOpenForwardOnly rst.LockType = adLockReadOnly rst.Open "TheTable" I am getting the same results whether the code is in the existing FE or if I create a new db with the ADO code as Rocky suggested. Any thoughts? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Sunday, February 04, 2007 4:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] ADO code stopped working I would whip up a small app with some ado code to see if the problem is inside your app or outside of it. Does your app compile? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Sunday, February 04, 2007 2:05 PM To: AccessD List Subject: [AccessD] ADO code stopped working Hi Everyone, W2K SP4 / A2K SP3 / terminal server I have a database that has some DAO and some ADO code. Recently all ADO stopped working. DAO is still working fine. Anytime code utilizing ADO runs it shuts down the database abruptly, leaving the LDB file. We were also having problems with the Windows Management databases locking up and a reinstall of the latest MDAC took care of that problem, but did not solve the ADO problem. ADO was working fine for end of year reporting. There are no missing references. After the MDAC reinstall I unchecked references, closed down, opened up and rechecked references. Any help would be greatly appreciated. Thank you, Jennifer Gross databasics 2839 Shirley Drive Newbury Park, CA 91320-3068 office: (805) 480-1921 fax: (805) 499-0467 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Tue Feb 6 10:27:01 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 6 Feb 2007 10:27:01 -0600 Subject: [AccessD] Connections and Performance Message-ID: Do you have a lot of people editing data? That is a design issue that will cut the performance. Instead of editing, you should add. I know it won't work for everything, but it is feasible in many situations. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, February 06, 2007 10:08 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance Thanks Mark! That sounds quite similar to what I do now. Lots of input/output and FE/BE. I'll try the continuous connection technique to see how that works. I'll have to wait till the next time I'm on site though. Dan Waters -----Original Message----- Subject: Re: [AccessD] Connections and Performance Dan, My experience with this is around is about 6 years ago and with A97. Most of my decisions then were based on this group's input. At that time the average feedback I received with Access as the FE and BE...was 40 users... after that corruption...so I limited them to 40 users. There were a number of things I did to increase performance. I had a seperate computer that housed the BE. Nothing else was done with this machine(just an extra desktop we had). FEs on each users machine. This app was a complaint management system...so continuous lookup/edit existing/adding new. I had an unbound searchscreen...it had a couple of bound subforms to show each user the stats of their cases...and the search results subform was unbound until you hit search. The form to display/edit the case record did not use the filter property...the 'record source' SQL used the searchform as criteria. Hope this helps...let me know if you have any specific questions. Thanks, Mark A. Matte >From: "Dan Waters" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] Connections and Performance >Date: Tue, 6 Feb 2007 08:57:15 -0600 > >Hi Drew, > >Do you know how many FE clients could maintain that type of connection to a >BE at the same and still have reasonable performance? > >Does anyone have experience with this configuration? > >Dan Waters > >-----Original Message----- >Subject: Re: [AccessD] Connections and Performance > >I believe there is only one connection between a front end and back end. >In fact, many databases have better performance when the connection is >maintained through a 'linked table'. Create a dummy table (one field, >no records), called tblLink. Create a form bound to that table, and >open that form, hidden, on startup. That keeps the 'connection' live >while the user is in the database. > >I know in Access 97 that process was recommended in the help files under >'splitting a database'. > >Drew > >-----Original Message----- >Subject: Re: [AccessD] Connections and Performance > >Thanks Drew, > >I have asked everyone at my customer's site to close the screens they're >not >using (these are bound), but told them they can stay logged in because >the >main screen is not bound. We'll see if that helps. If not then I will >need >to start timing out the bound forms. > >I still don't know what is the definition of one connection. Is one >bound >form a connection? Is a FE with any number of bound forms a connection? >Or >is a connection defined by the periods of time when data transfer is >taking >place between a FE and BE? Or . . . ? > > >Thanks for teaching me! >Dan Waters > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka >Sent: Monday, February 05, 2007 4:06 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Connections and Performance > >Most 'articles' that 'document' Access performance are doing so based >upon poorly designed systems. You have to design your system based on >system requirements. If you are going to have 1 to 5 users, you can >keep everything bound, and be reasonably assured that things will work >well. If you are talking 5 to 30 users, now it's time to pick up some >of the slack. Timeout forms and reports that are going to tie up db >connections. 30 to 100 users, you better start thinking unbound. 100+ >users, better start thinking about something other then Access as a >front end (I would recommend ASP). > >The point is that JET, as a db system, can handle a lot, but Access, as >a Front End provides more bells and whistles that tax the backend more. >Case in point, we have our production database in Oracle, on it's own >honking box. Huge server, loads of memory and disk space, but when >certain things are run, even that system gets taken to It's knees. > >Drew > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >Sent: Friday, February 02, 2007 10:13 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Connections and Performance > >Drew, > >I read this somewhere - either in MS documentation or in a book where I >believe the author. > >Here's the reason I was asking: > >At a certain customer site, they experienced a dramatic performance >slowdown >at a time when about 10 people were logged on concurrently. Each client >PC >has it's own FE. I know that they open the system and leave the process >screens open, all of which are bound. I want to suggest that they >remember >to close the process screens so that just the main screen is open, which >is >not bound. This way a fewer number of connections are being used at any >one >time and performance would probably be acceptable. This particular >customer, I believe, does not have a very good network, so that is part >of >the problem. But that's unlikely to get improved, so I wanted to >provide at >least a partial solution, hence my question. > >I've also heard that a connection is made not based on whether a form is >open and bound, but on whether or not there is data traffic between to >and >from a table, which only takes a small part of a second. > >So what causes the performance slowdown when only 10 client PC's are >logged >on, and what could be done to improve this? > >Dan Waters > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka >Sent: Friday, February 02, 2007 9:26 AM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Connections and Performance > >Where are you getting these numbers. Access can have up to 255 >connections. > >Drew > >-----Original Message----- >From: Dan Waters [mailto:dwaters at usinternet.com] >Sent: Friday, February 02, 2007 8:45 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Connections and Performance > >Access has the potential for 8 simultaneous connections, but 3 of them >are >reserved for the system's use. That leaves five for users. > >Dan Waters > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby >Sent: Friday, February 02, 2007 8:02 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Connections and Performance > > >But, the connection limit for one BE is 5 FE's. > >What does this mean? I have never heard of any such thing. > > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >Sent: Friday, February 02, 2007 8:58 AM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] Connections and Performance > >I've read several times that maintaining a connection between a FE and a >BE >will increase the performance of the FE because it doesn't need to >reconnect >before transferring data. The connection here would be a bound form >connected by a table link to a table in the BE. > >But, the connection limit for one BE is 5 FE's. So, will maintaining >connections on more than 5 FE's reduce performance? Seems logical, but >I >was wondering if this is correct or is there more to it? > >Thanks! > >Dan Waters > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Laugh, share and connect with Windows Live Messenger http://clk.atdmt.com/MSN/go/msnnkwme0020000001msn/direct/01/?href=http:/ /ima gine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=hmtagli ne -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at gmail.com Tue Feb 6 12:14:18 2007 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Tue, 6 Feb 2007 13:14:18 -0500 Subject: [AccessD] Design Question Message-ID: I have a design question from a colleague that I can't answer. It may be because I haven't given it enough thought, or that I'm too rusty when designing Access apps, but here goes for you wonderful folks. I have 5 distinct categories, which will be table(s) (normalized): People Facility Hardware Software Service Agreements So far, so simple, right? Now comes the hard part, and where I'm having problems Any one of the tables can be associated with virtually any other table. For example: A piece of hardware can be assigned to a facility or person A piece of software can be assigned to a person or hardware or facility A service agreement can be assigned to hardware, software, person or facility These are just some of the combos that are possible. Multiples are also possible. Multiple pieces of hardware can be assigned to a single or many facilities or people Multiple pieces of software can be assigned to a single or many people / hardware or facilities Multiple service agreements can be assigned to a single or multiple hardware, software, person or facility How would you structure the tables to facilitate this? My brain can't figure it out at the moment. I need to get back to programing and not management. Any guidance or insight will be greatly appreciated. -- 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 jwcolby at colbyconsulting.com Tue Feb 6 12:30:06 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Tue, 6 Feb 2007 13:30:06 -0500 Subject: [AccessD] Design Question In-Reply-To: Message-ID: <00fc01c74a1c$d3efb430$657aa8c0@m6805> Given the possibility of having multiples, I would probably have the individual object tables, then one big m-m "relationship" table where I placed: PEID FACID HDWRID SFTWRID SVCAGRID Probably you would want other info about the relationship such as when the relationship was established and when the relationship terminated: DteEst DteTerm "multiples" come from new records in the relationship table. A person assigned two pieces of software would be two records, with just the peid and softwareid, plus the DteEst. When that person "turned in" the software, the record's DteTerm would be updated. The only issue with this kind of relationship is that one relationship could be terminated while another was not. If that is possible, then each relationship needs to be established individually (separate records in the relationship table), so that you can record when each relationship was established and terminated. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan Carbonnell Sent: Tuesday, February 06, 2007 1:14 PM To: Access Developers discussion and problem solving Subject: [AccessD] Design Question I have a design question from a colleague that I can't answer. It may be because I haven't given it enough thought, or that I'm too rusty when designing Access apps, but here goes for you wonderful folks. I have 5 distinct categories, which will be table(s) (normalized): People Facility Hardware Software Service Agreements So far, so simple, right? Now comes the hard part, and where I'm having problems Any one of the tables can be associated with virtually any other table. For example: A piece of hardware can be assigned to a facility or person A piece of software can be assigned to a person or hardware or facility A service agreement can be assigned to hardware, software, person or facility These are just some of the combos that are possible. Multiples are also possible. Multiple pieces of hardware can be assigned to a single or many facilities or people Multiple pieces of software can be assigned to a single or many people / hardware or facilities Multiple service agreements can be assigned to a single or multiple hardware, software, person or facility How would you structure the tables to facilitate this? My brain can't figure it out at the moment. I need to get back to programing and not management. Any guidance or insight will be greatly appreciated. -- 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 jwcolby at colbyconsulting.com Tue Feb 6 12:31:17 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Tue, 6 Feb 2007 13:31:17 -0500 Subject: [AccessD] Form stopped working Message-ID: <00fd01c74a1c$fed54d40$657aa8c0@m6805> I have a bound form that does initial data entry for claims received. The form has been working for several years, suddenly it doesn't. A virtually identical form still does. The claim table is broken into pieces. There is a main tblClaim where info common to all claims is entered. There are three other tables which are 1 to 1 with tblClaim. There is a tblClaimLTD, tblClaimSTD and tblClaimWP. Each of these three tables have one and only one record in them for each record in tblClaim, but tblClaim will only have a record for STD type claims, tblLTD will only have records for LTD type claims and WP will only have records for WP type claims. In order to enter the data I created three different data input forms, one for STD, LTD and WP. Each looks similar except that the data out in the "claim type specific" table will be displayed on their respective input forms, i.e. the frmLTD form will show data from tblClaim and tblClaimLTD, frmSTD will show data from tblClaim and tblClaimSTD etc. In order to create the record out in the claim type specific table, I use code in the form's BeforeInsert event like the following: Me!CLST_ID = Me!Rec_ID That line is supposed to place the PK just generated by the autonumber in tblClaim into the PKID field of tblClaimSTD. The same code runs in frmLTD except that the control is bound to the PKID in tblClaimLTD. The three forms have worked for several years. Suddenly the STD form fails with an error "the control cannot be updated" on the above line. I have decompiled / compiled / compacted / repaired the FE and the BE. I have created a new form and imported all of the controls and code from the failing form. I have created a new BE and imported all of the tables into the new BE. All of these things have failed to fix the problem. The LTD form still works, the STD form still fails. I have examined the two form's properties, toggling back and forth between them side by side, no differences. I have likewise examined the individual text box's properties side by side, no differences. I have examined properties of the PK field of the two child tables, no differences. I have looked for different indexes on the two table's PKs, no differences. I have run out of things to try, and this still doesn't work. Anything come to mind out in the brain trust? John W. Colby Colby Consulting www.ColbyConsulting.com From jimdettman at verizon.net Tue Feb 6 12:41:56 2007 From: jimdettman at verizon.net (Jim Dettman) Date: Tue, 06 Feb 2007 13:41:56 -0500 Subject: [AccessD] Connections and Performance In-Reply-To: Message-ID: <004d01c74a1e$7b617f90$8abea8c0@XPS> Drew, That practice still should be followed. If you allow a BE to close, there is a lot of overhead that Access/JET goes through opening it back up. Can make a big difference. And it can be any reference to a DB. Even just opening the database in code would keep the connection established. Dan, If the BE is on a NT/2000/2003 server, you may want to investigate turning off opportunistic locking. Be careful with this though because if other apps are running off that server, they may be negatively impacted. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Monday, February 05, 2007 7:40 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance I believe there is only one connection between a front end and back end. In fact, many databases have better performance when the connection is maintained through a 'linked table'. Create a dummy table (one field, no records), called tblLink. Create a form bound to that table, and open that form, hidden, on startup. That keeps the 'connection' live while the user is in the database. I know in Access 97 that process was recommended in the help files under 'splitting a database'. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, February 05, 2007 6:26 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance Thanks Drew, I have asked everyone at my customer's site to close the screens they're not using (these are bound), but told them they can stay logged in because the main screen is not bound. We'll see if that helps. If not then I will need to start timing out the bound forms. I still don't know what is the definition of one connection. Is one bound form a connection? Is a FE with any number of bound forms a connection? Or is a connection defined by the periods of time when data transfer is taking place between a FE and BE? Or . . . ? Thanks for teaching me! Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Monday, February 05, 2007 4:06 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance Most 'articles' that 'document' Access performance are doing so based upon poorly designed systems. You have to design your system based on system requirements. If you are going to have 1 to 5 users, you can keep everything bound, and be reasonably assured that things will work well. If you are talking 5 to 30 users, now it's time to pick up some of the slack. Timeout forms and reports that are going to tie up db connections. 30 to 100 users, you better start thinking unbound. 100+ users, better start thinking about something other then Access as a front end (I would recommend ASP). The point is that JET, as a db system, can handle a lot, but Access, as a Front End provides more bells and whistles that tax the backend more. Case in point, we have our production database in Oracle, on it's own honking box. Huge server, loads of memory and disk space, but when certain things are run, even that system gets taken to It's knees. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 02, 2007 10:13 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance Drew, I read this somewhere - either in MS documentation or in a book where I believe the author. Here's the reason I was asking: At a certain customer site, they experienced a dramatic performance slowdown at a time when about 10 people were logged on concurrently. Each client PC has it's own FE. I know that they open the system and leave the process screens open, all of which are bound. I want to suggest that they remember to close the process screens so that just the main screen is open, which is not bound. This way a fewer number of connections are being used at any one time and performance would probably be acceptable. This particular customer, I believe, does not have a very good network, so that is part of the problem. But that's unlikely to get improved, so I wanted to provide at least a partial solution, hence my question. I've also heard that a connection is made not based on whether a form is open and bound, but on whether or not there is data traffic between to and from a table, which only takes a small part of a second. So what causes the performance slowdown when only 10 client PC's are logged on, and what could be done to improve this? Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, February 02, 2007 9:26 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance Where are you getting these numbers. Access can have up to 255 connections. Drew -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Friday, February 02, 2007 8:45 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance Access has the potential for 8 simultaneous connections, but 3 of them are reserved for the system's use. That leaves five for users. Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Friday, February 02, 2007 8:02 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance >But, the connection limit for one BE is 5 FE's. What does this mean? I have never heard of any such thing. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 02, 2007 8:58 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Connections and Performance I've read several times that maintaining a connection between a FE and a BE will increase the performance of the FE because it doesn't need to reconnect before transferring data. The connection here would be a bound form connected by a table link to a table in the BE. But, the connection limit for one BE is 5 FE's. So, will maintaining connections on more than 5 FE's reduce performance? Seems logical, but I was wondering if this is correct or is there more to it? Thanks! Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DElam at jenkens.com Tue Feb 6 13:07:32 2007 From: DElam at jenkens.com (Elam, Debbie) Date: Tue, 6 Feb 2007 13:07:32 -0600 Subject: [AccessD] Form stopped working Message-ID: <7B1961ED924D1A459E378C9B1BB22B4C068DEC53@natexch.jenkens.com> Do you have a backup of the FE? Sometimes when things suddenly go weird like this, I have gotten a quick fix by looking at the backup FE. Debbie -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Tuesday, February 06, 2007 12:31 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Form stopped working I have a bound form that does initial data entry for claims received. The form has been working for several years, suddenly it doesn't. A virtually identical form still does. The claim table is broken into pieces. There is a main tblClaim where info common to all claims is entered. There are three other tables which are 1 to 1 with tblClaim. There is a tblClaimLTD, tblClaimSTD and tblClaimWP. Each of these three tables have one and only one record in them for each record in tblClaim, but tblClaim will only have a record for STD type claims, tblLTD will only have records for LTD type claims and WP will only have records for WP type claims. In order to enter the data I created three different data input forms, one for STD, LTD and WP. Each looks similar except that the data out in the "claim type specific" table will be displayed on their respective input forms, i.e. the frmLTD form will show data from tblClaim and tblClaimLTD, frmSTD will show data from tblClaim and tblClaimSTD etc. In order to create the record out in the claim type specific table, I use code in the form's BeforeInsert event like the following: Me!CLST_ID = Me!Rec_ID That line is supposed to place the PK just generated by the autonumber in tblClaim into the PKID field of tblClaimSTD. The same code runs in frmLTD except that the control is bound to the PKID in tblClaimLTD. The three forms have worked for several years. Suddenly the STD form fails with an error "the control cannot be updated" on the above line. I have decompiled / compiled / compacted / repaired the FE and the BE. I have created a new form and imported all of the controls and code from the failing form. I have created a new BE and imported all of the tables into the new BE. All of these things have failed to fix the problem. The LTD form still works, the STD form still fails. I have examined the two form's properties, toggling back and forth between them side by side, no differences. I have likewise examined the individual text box's properties side by side, no differences. I have examined properties of the PK field of the two child tables, no differences. I have looked for different indexes on the two table's PKs, no differences. I have run out of things to try, and this still doesn't work. Anything come to mind out in the brain trust? John W. Colby Colby Consulting www.ColbyConsulting.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 Lambert.Heenan at AIG.com Tue Feb 6 13:30:58 2007 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 6 Feb 2007 13:30:58 -0600 Subject: [AccessD] Form stopped working Message-ID: <34C8A2AB1EF3564CB0D64DB6AFFDD5C201200FE7@xlivmbx35.aig.com> About the only thing you have not tried is to import all of the front end objects into a new database *EXCEPT* for the problem form. Then rebuild the problem form from scratch (though as you say it is very similar to the LTD form you might be able to just copy that one and modify it slightly). Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Tuesday, February 06, 2007 1:31 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Form stopped working I have a bound form that does initial data entry for claims received. The form has been working for several years, suddenly it doesn't. A virtually identical form still does. The claim table is broken into pieces. There is a main tblClaim where info common to all claims is entered. There are three other tables which are 1 to 1 with tblClaim. There is a tblClaimLTD, tblClaimSTD and tblClaimWP. Each of these three tables have one and only one record in them for each record in tblClaim, but tblClaim will only have a record for STD type claims, tblLTD will only have records for LTD type claims and WP will only have records for WP type claims. In order to enter the data I created three different data input forms, one for STD, LTD and WP. Each looks similar except that the data out in the "claim type specific" table will be displayed on their respective input forms, i.e. the frmLTD form will show data from tblClaim and tblClaimLTD, frmSTD will show data from tblClaim and tblClaimSTD etc. In order to create the record out in the claim type specific table, I use code in the form's BeforeInsert event like the following: Me!CLST_ID = Me!Rec_ID That line is supposed to place the PK just generated by the autonumber in tblClaim into the PKID field of tblClaimSTD. The same code runs in frmLTD except that the control is bound to the PKID in tblClaimLTD. The three forms have worked for several years. Suddenly the STD form fails with an error "the control cannot be updated" on the above line. I have decompiled / compiled / compacted / repaired the FE and the BE. I have created a new form and imported all of the controls and code from the failing form. I have created a new BE and imported all of the tables into the new BE. All of these things have failed to fix the problem. The LTD form still works, the STD form still fails. I have examined the two form's properties, toggling back and forth between them side by side, no differences. I have likewise examined the individual text box's properties side by side, no differences. I have examined properties of the PK field of the two child tables, no differences. I have looked for different indexes on the two table's PKs, no differences. I have run out of things to try, and this still doesn't work. Anything come to mind out in the brain trust? John W. Colby Colby Consulting www.ColbyConsulting.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 Feb 6 13:55:11 2007 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 6 Feb 2007 13:55:11 -0600 Subject: [AccessD] Connections and Performance In-Reply-To: <28974405.1170779757828.JavaMail.root@sniper30> References: <28974405.1170779757828.JavaMail.root@sniper30> Message-ID: <002b01c74a28$b6a78e50$0200a8c0@danwaters> Yes - lot's of editing. These are mostly process records where a single record can stay available for editing for days or weeks before the record is finally closed. I do have a Vacation Management module which is mostly adding records though. But, due to screen graphics redisplay, it's the slowest of the bunch! I'm going to try to work through this one to see if I can speed it up. Dan Waters -----Original Message----- Subject: Re: [AccessD] Connections and Performance Do you have a lot of people editing data? That is a design issue that will cut the performance. Instead of editing, you should add. I know it won't work for everything, but it is feasible in many situations. Drew -----Original Message----- Subject: Re: [AccessD] Connections and Performance Thanks Mark! That sounds quite similar to what I do now. Lots of input/output and FE/BE. I'll try the continuous connection technique to see how that works. I'll have to wait till the next time I'm on site though. Dan Waters -----Original Message----- Subject: Re: [AccessD] Connections and Performance Dan, My experience with this is around is about 6 years ago and with A97. Most of my decisions then were based on this group's input. At that time the average feedback I received with Access as the FE and BE...was 40 users... after that corruption...so I limited them to 40 users. There were a number of things I did to increase performance. I had a seperate computer that housed the BE. Nothing else was done with this machine(just an extra desktop we had). FEs on each users machine. This app was a complaint management system...so continuous lookup/edit existing/adding new. I had an unbound searchscreen...it had a couple of bound subforms to show each user the stats of their cases...and the search results subform was unbound until you hit search. The form to display/edit the case record did not use the filter property...the 'record source' SQL used the searchform as criteria. Hope this helps...let me know if you have any specific questions. Thanks, Mark A. Matte >From: "Dan Waters" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] Connections and Performance >Date: Tue, 6 Feb 2007 08:57:15 -0600 > >Hi Drew, > >Do you know how many FE clients could maintain that type of connection to a >BE at the same and still have reasonable performance? > >Does anyone have experience with this configuration? > >Dan Waters > >-----Original Message----- >Subject: Re: [AccessD] Connections and Performance > >I believe there is only one connection between a front end and back end. >In fact, many databases have better performance when the connection is >maintained through a 'linked table'. Create a dummy table (one field, >no records), called tblLink. Create a form bound to that table, and >open that form, hidden, on startup. That keeps the 'connection' live >while the user is in the database. > >I know in Access 97 that process was recommended in the help files under >'splitting a database'. > >Drew > >-----Original Message----- >Subject: Re: [AccessD] Connections and Performance > >Thanks Drew, > >I have asked everyone at my customer's site to close the screens they're >not >using (these are bound), but told them they can stay logged in because >the >main screen is not bound. We'll see if that helps. If not then I will >need >to start timing out the bound forms. > >I still don't know what is the definition of one connection. Is one >bound >form a connection? Is a FE with any number of bound forms a connection? >Or >is a connection defined by the periods of time when data transfer is >taking >place between a FE and BE? Or . . . ? > > >Thanks for teaching me! >Dan Waters > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka >Sent: Monday, February 05, 2007 4:06 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Connections and Performance > >Most 'articles' that 'document' Access performance are doing so based >upon poorly designed systems. You have to design your system based on >system requirements. If you are going to have 1 to 5 users, you can >keep everything bound, and be reasonably assured that things will work >well. If you are talking 5 to 30 users, now it's time to pick up some >of the slack. Timeout forms and reports that are going to tie up db >connections. 30 to 100 users, you better start thinking unbound. 100+ >users, better start thinking about something other then Access as a >front end (I would recommend ASP). > >The point is that JET, as a db system, can handle a lot, but Access, as >a Front End provides more bells and whistles that tax the backend more. >Case in point, we have our production database in Oracle, on it's own >honking box. Huge server, loads of memory and disk space, but when >certain things are run, even that system gets taken to It's knees. > >Drew > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >Sent: Friday, February 02, 2007 10:13 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Connections and Performance > >Drew, > >I read this somewhere - either in MS documentation or in a book where I >believe the author. > >Here's the reason I was asking: > >At a certain customer site, they experienced a dramatic performance >slowdown >at a time when about 10 people were logged on concurrently. Each client >PC >has it's own FE. I know that they open the system and leave the process >screens open, all of which are bound. I want to suggest that they >remember >to close the process screens so that just the main screen is open, which >is >not bound. This way a fewer number of connections are being used at any >one >time and performance would probably be acceptable. This particular >customer, I believe, does not have a very good network, so that is part >of >the problem. But that's unlikely to get improved, so I wanted to >provide at >least a partial solution, hence my question. > >I've also heard that a connection is made not based on whether a form is >open and bound, but on whether or not there is data traffic between to >and >from a table, which only takes a small part of a second. > >So what causes the performance slowdown when only 10 client PC's are >logged >on, and what could be done to improve this? > >Dan Waters > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka >Sent: Friday, February 02, 2007 9:26 AM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Connections and Performance > >Where are you getting these numbers. Access can have up to 255 >connections. > >Drew > >-----Original Message----- >From: Dan Waters [mailto:dwaters at usinternet.com] >Sent: Friday, February 02, 2007 8:45 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Connections and Performance > >Access has the potential for 8 simultaneous connections, but 3 of them >are >reserved for the system's use. That leaves five for users. > >Dan Waters > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby >Sent: Friday, February 02, 2007 8:02 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Connections and Performance > > >But, the connection limit for one BE is 5 FE's. > >What does this mean? I have never heard of any such thing. > > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >Sent: Friday, February 02, 2007 8:58 AM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] Connections and Performance > >I've read several times that maintaining a connection between a FE and a >BE >will increase the performance of the FE because it doesn't need to >reconnect >before transferring data. The connection here would be a bound form >connected by a table link to a table in the BE. > >But, the connection limit for one BE is 5 FE's. So, will maintaining >connections on more than 5 FE's reduce performance? Seems logical, but >I >was wondering if this is correct or is there more to it? > >Thanks! > >Dan Waters > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Laugh, share and connect with Windows Live Messenger http://clk.atdmt.com/MSN/go/msnnkwme0020000001msn/direct/01/?href=http:/ /ima gine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=hmtagli ne -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Feb 6 14:15:23 2007 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 6 Feb 2007 14:15:23 -0600 Subject: [AccessD] Connections and Performance In-Reply-To: <27801219.1170787972443.JavaMail.root@sniper57> References: <27801219.1170787972443.JavaMail.root@sniper57> Message-ID: <003201c74a2b$88ebc370$0200a8c0@danwaters> Jim, In a system set up where each FE has a connection automatically established, about how many FE's could do this? I use Edited Record for my databases - this is equivalent to pessimistic locking for Jet, but does Windows Server 2003 supersede the Access setting? In a book I have called MS Jet Database Engine Programmer's Guide (pub. 1997), it talks about a ConnectionTimeout registry key for Jet that is by default set to time out an inactive connection after 10 minutes (600 seconds on my PC). The book suggested that you can change the value using the SetOption method in code, but I believe that the SetOption method actually can't be used for this particular key. It seems as though in an environment where FE apps are competing for connections that reducing this value could be beneficial. Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Tuesday, February 06, 2007 12:42 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance Drew, That practice still should be followed. If you allow a BE to close, there is a lot of overhead that Access/JET goes through opening it back up. Can make a big difference. And it can be any reference to a DB. Even just opening the database in code would keep the connection established. Dan, If the BE is on a NT/2000/2003 server, you may want to investigate turning off opportunistic locking. Be careful with this though because if other apps are running off that server, they may be negatively impacted. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Monday, February 05, 2007 7:40 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance I believe there is only one connection between a front end and back end. In fact, many databases have better performance when the connection is maintained through a 'linked table'. Create a dummy table (one field, no records), called tblLink. Create a form bound to that table, and open that form, hidden, on startup. That keeps the 'connection' live while the user is in the database. I know in Access 97 that process was recommended in the help files under 'splitting a database'. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, February 05, 2007 6:26 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance Thanks Drew, I have asked everyone at my customer's site to close the screens they're not using (these are bound), but told them they can stay logged in because the main screen is not bound. We'll see if that helps. If not then I will need to start timing out the bound forms. I still don't know what is the definition of one connection. Is one bound form a connection? Is a FE with any number of bound forms a connection? Or is a connection defined by the periods of time when data transfer is taking place between a FE and BE? Or . . . ? Thanks for teaching me! Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Monday, February 05, 2007 4:06 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance Most 'articles' that 'document' Access performance are doing so based upon poorly designed systems. You have to design your system based on system requirements. If you are going to have 1 to 5 users, you can keep everything bound, and be reasonably assured that things will work well. If you are talking 5 to 30 users, now it's time to pick up some of the slack. Timeout forms and reports that are going to tie up db connections. 30 to 100 users, you better start thinking unbound. 100+ users, better start thinking about something other then Access as a front end (I would recommend ASP). The point is that JET, as a db system, can handle a lot, but Access, as a Front End provides more bells and whistles that tax the backend more. Case in point, we have our production database in Oracle, on it's own honking box. Huge server, loads of memory and disk space, but when certain things are run, even that system gets taken to It's knees. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 02, 2007 10:13 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance Drew, I read this somewhere - either in MS documentation or in a book where I believe the author. Here's the reason I was asking: At a certain customer site, they experienced a dramatic performance slowdown at a time when about 10 people were logged on concurrently. Each client PC has it's own FE. I know that they open the system and leave the process screens open, all of which are bound. I want to suggest that they remember to close the process screens so that just the main screen is open, which is not bound. This way a fewer number of connections are being used at any one time and performance would probably be acceptable. This particular customer, I believe, does not have a very good network, so that is part of the problem. But that's unlikely to get improved, so I wanted to provide at least a partial solution, hence my question. I've also heard that a connection is made not based on whether a form is open and bound, but on whether or not there is data traffic between to and from a table, which only takes a small part of a second. So what causes the performance slowdown when only 10 client PC's are logged on, and what could be done to improve this? Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, February 02, 2007 9:26 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance Where are you getting these numbers. Access can have up to 255 connections. Drew -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Friday, February 02, 2007 8:45 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance Access has the potential for 8 simultaneous connections, but 3 of them are reserved for the system's use. That leaves five for users. Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Friday, February 02, 2007 8:02 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance >But, the connection limit for one BE is 5 FE's. What does this mean? I have never heard of any such thing. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 02, 2007 8:58 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Connections and Performance I've read several times that maintaining a connection between a FE and a BE will increase the performance of the FE because it doesn't need to reconnect before transferring data. The connection here would be a bound form connected by a table link to a table in the BE. But, the connection limit for one BE is 5 FE's. So, will maintaining connections on more than 5 FE's reduce performance? Seems logical, but I was wondering if this is correct or is there more to it? Thanks! Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ewaldt at gdls.com Tue Feb 6 14:18:01 2007 From: ewaldt at gdls.com (ewaldt at gdls.com) Date: Tue, 6 Feb 2007 15:18:01 -0500 Subject: [AccessD] Exporting help requested In-Reply-To: Message-ID: I have a database with a self-related table. I'll use a simplified example table: PartNumber PartDescription Parent Qty As should be obvious from the field names, the PartNumber is related as a child to its given Parent. Access is not to be the database for this project (sorry for the blasphemy; it's not my idea). There is a vertical application DB (I'll call it VADB) with CAD-type capabilities that Access does not possess (OTOH, the rest of the VADB is 80s technology; it's run in a DOS window, and minimum requirements include DOS 5 and a 386!). I am trying to use Access as an intermediary to convert data from a UNIX flat file to this VADB. I need to produce a text file in the format the VADB requires for importing. The target file would look like this, with each line below representing a line in the target file: Parent (and all data on the parent) .Child (and all data on the child) .Child (and all data on the child) ..Grandchild (and all data on the grandchild) .Child (and all data on the child) And so forth. The leading dots are necessary, although I could probably insert those manually or export the whole puppy to Excel and have Excel do it via VBA. The main point is that all of the lineage has to be included. That is, all of the "grandchildren" have to appear every time they're in a "child'; if the original table has only 200 records, the resulting target file could easily have over 1000, with many of the records repeated many times. The closest I've come is to create a report grouped by the Parent and export it to Excel. However, this only goes down one level, and does not include the leading dots, of course. Is there a way to have Access go down all levels? Is there a better way to do the whole thing? TIA, Tom Ewald GDLS Thomas F. Ewald FCS Database Manager General Dynamics Land Systems (586) 276-1256 This is an e-mail from General Dynamics Land Systems. It is for the intended recipient only and may contain confidential and privileged information. No one else may read, print, store, copy, forward or act in reliance on it or its attachments. If you are not the intended recipient, please return this message to the sender and delete the message and any attachments from your computer. Your cooperation is appreciated. From DWUTKA at Marlow.com Tue Feb 6 14:20:26 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 6 Feb 2007 14:20:26 -0600 Subject: [AccessD] Connections and Performance Message-ID: Ok, process records, let me see if I can take a stab at that. Let's say you have an insurance case. It gets assigned a case number, and you are allowing people to edit the details, as new things happen. This kind of concept should be redesigned so that each individual entry is a new record. It's a simple design, the case number and one time details would be in one table, then a separate table would hold additional entries, each with the foreign key from the original case number. This way, you can view all 'work' done on the case, but each 'change' is a new record, which is just added to the db, instead of tying up the entire record during editing. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, February 06, 2007 1:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance Yes - lot's of editing. These are mostly process records where a single record can stay available for editing for days or weeks before the record is finally closed. I do have a Vacation Management module which is mostly adding records though. But, due to screen graphics redisplay, it's the slowest of the bunch! I'm going to try to work through this one to see if I can speed it up. Dan Waters -----Original Message----- Subject: Re: [AccessD] Connections and Performance Do you have a lot of people editing data? That is a design issue that will cut the performance. Instead of editing, you should add. I know it won't work for everything, but it is feasible in many situations. Drew -----Original Message----- Subject: Re: [AccessD] Connections and Performance Thanks Mark! That sounds quite similar to what I do now. Lots of input/output and FE/BE. I'll try the continuous connection technique to see how that works. I'll have to wait till the next time I'm on site though. Dan Waters -----Original Message----- Subject: Re: [AccessD] Connections and Performance Dan, My experience with this is around is about 6 years ago and with A97. Most of my decisions then were based on this group's input. At that time the average feedback I received with Access as the FE and BE...was 40 users... after that corruption...so I limited them to 40 users. There were a number of things I did to increase performance. I had a seperate computer that housed the BE. Nothing else was done with this machine(just an extra desktop we had). FEs on each users machine. This app was a complaint management system...so continuous lookup/edit existing/adding new. I had an unbound searchscreen...it had a couple of bound subforms to show each user the stats of their cases...and the search results subform was unbound until you hit search. The form to display/edit the case record did not use the filter property...the 'record source' SQL used the searchform as criteria. Hope this helps...let me know if you have any specific questions. Thanks, Mark A. Matte >From: "Dan Waters" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] Connections and Performance >Date: Tue, 6 Feb 2007 08:57:15 -0600 > >Hi Drew, > >Do you know how many FE clients could maintain that type of connection to a >BE at the same and still have reasonable performance? > >Does anyone have experience with this configuration? > >Dan Waters > >-----Original Message----- >Subject: Re: [AccessD] Connections and Performance > >I believe there is only one connection between a front end and back end. >In fact, many databases have better performance when the connection is >maintained through a 'linked table'. Create a dummy table (one field, >no records), called tblLink. Create a form bound to that table, and >open that form, hidden, on startup. That keeps the 'connection' live >while the user is in the database. > >I know in Access 97 that process was recommended in the help files under >'splitting a database'. > >Drew > >-----Original Message----- >Subject: Re: [AccessD] Connections and Performance > >Thanks Drew, > >I have asked everyone at my customer's site to close the screens they're >not >using (these are bound), but told them they can stay logged in because >the >main screen is not bound. We'll see if that helps. If not then I will >need >to start timing out the bound forms. > >I still don't know what is the definition of one connection. Is one >bound >form a connection? Is a FE with any number of bound forms a connection? >Or >is a connection defined by the periods of time when data transfer is >taking >place between a FE and BE? Or . . . ? > > >Thanks for teaching me! >Dan Waters > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka >Sent: Monday, February 05, 2007 4:06 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Connections and Performance > >Most 'articles' that 'document' Access performance are doing so based >upon poorly designed systems. You have to design your system based on >system requirements. If you are going to have 1 to 5 users, you can >keep everything bound, and be reasonably assured that things will work >well. If you are talking 5 to 30 users, now it's time to pick up some >of the slack. Timeout forms and reports that are going to tie up db >connections. 30 to 100 users, you better start thinking unbound. 100+ >users, better start thinking about something other then Access as a >front end (I would recommend ASP). > >The point is that JET, as a db system, can handle a lot, but Access, as >a Front End provides more bells and whistles that tax the backend more. >Case in point, we have our production database in Oracle, on it's own >honking box. Huge server, loads of memory and disk space, but when >certain things are run, even that system gets taken to It's knees. > >Drew > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >Sent: Friday, February 02, 2007 10:13 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Connections and Performance > >Drew, > >I read this somewhere - either in MS documentation or in a book where I >believe the author. > >Here's the reason I was asking: > >At a certain customer site, they experienced a dramatic performance >slowdown >at a time when about 10 people were logged on concurrently. Each client >PC >has it's own FE. I know that they open the system and leave the process >screens open, all of which are bound. I want to suggest that they >remember >to close the process screens so that just the main screen is open, which >is >not bound. This way a fewer number of connections are being used at any >one >time and performance would probably be acceptable. This particular >customer, I believe, does not have a very good network, so that is part >of >the problem. But that's unlikely to get improved, so I wanted to >provide at >least a partial solution, hence my question. > >I've also heard that a connection is made not based on whether a form is >open and bound, but on whether or not there is data traffic between to >and >from a table, which only takes a small part of a second. > >So what causes the performance slowdown when only 10 client PC's are >logged >on, and what could be done to improve this? > >Dan Waters > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka >Sent: Friday, February 02, 2007 9:26 AM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Connections and Performance > >Where are you getting these numbers. Access can have up to 255 >connections. > >Drew > >-----Original Message----- >From: Dan Waters [mailto:dwaters at usinternet.com] >Sent: Friday, February 02, 2007 8:45 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Connections and Performance > >Access has the potential for 8 simultaneous connections, but 3 of them >are >reserved for the system's use. That leaves five for users. > >Dan Waters > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby >Sent: Friday, February 02, 2007 8:02 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Connections and Performance > > >But, the connection limit for one BE is 5 FE's. > >What does this mean? I have never heard of any such thing. > > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >Sent: Friday, February 02, 2007 8:58 AM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] Connections and Performance > >I've read several times that maintaining a connection between a FE and a >BE >will increase the performance of the FE because it doesn't need to >reconnect >before transferring data. The connection here would be a bound form >connected by a table link to a table in the BE. > >But, the connection limit for one BE is 5 FE's. So, will maintaining >connections on more than 5 FE's reduce performance? Seems logical, but >I >was wondering if this is correct or is there more to it? > >Thanks! > >Dan Waters > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Laugh, share and connect with Windows Live Messenger http://clk.atdmt.com/MSN/go/msnnkwme0020000001msn/direct/01/?href=http:/ /ima gine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=hmtagli ne -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From garykjos at gmail.com Tue Feb 6 14:36:11 2007 From: garykjos at gmail.com (Gary Kjos) Date: Tue, 6 Feb 2007 14:36:11 -0600 Subject: [AccessD] Exporting help requested In-Reply-To: References: Message-ID: I think I would be inclined to write this file out using File IO and to read the data using DAO with Do While loops for the various levels of the data hierarchy. See Seth Galitzers website for info on the File IO http://www.cis.ksu.edu/~sgsax/files/download/file_io.txt GK On 2/6/07, ewaldt at gdls.com wrote: > I have a database with a self-related table. I'll use a simplified example > table: > > PartNumber > PartDescription > Parent > Qty > > As should be obvious from the field names, the PartNumber is related as a > child to its given Parent. > > Access is not to be the database for this project (sorry for the > blasphemy; it's not my idea). There is a vertical application DB (I'll > call it VADB) with CAD-type capabilities that Access does not possess > (OTOH, the rest of the VADB is 80s technology; it's run in a DOS window, > and minimum requirements include DOS 5 and a 386!). I am trying to use > Access as an intermediary to convert data from a UNIX flat file to this > VADB. I need to produce a text file in the format the VADB requires for > importing. > > The target file would look like this, with each line below representing a > line in the target file: > > Parent (and all data on the parent) > .Child (and all data on the child) > .Child (and all data on the child) > ..Grandchild (and all data on the grandchild) > .Child (and all data on the child) > > And so forth. The leading dots are necessary, although I could probably > insert those manually or export the whole puppy to Excel and have Excel do > it via VBA. The main point is that all of the lineage has to be included. > That is, all of the "grandchildren" have to appear every time they're in a > "child'; if the original table has only 200 records, the resulting target > file could easily have over 1000, with many of the records repeated many > times. > > The closest I've come is to create a report grouped by the Parent and > export it to Excel. However, this only goes down one level, and does not > include the leading dots, of course. Is there a way to have Access go down > all levels? Is there a better way to do the whole thing? > > TIA, > > Tom Ewald > GDLS > > > > > > > > > > > > Thomas F. Ewald > FCS Database Manager > General Dynamics Land Systems > (586) 276-1256 > > > > > > This is an e-mail from General Dynamics Land Systems. It is for the intended recipient only and may contain confidential and privileged information. No one else may read, print, store, copy, forward or act in reliance on it or its attachments. If you are not the intended recipient, please return this message to the sender and delete the message and any attachments from your computer. Your cooperation is appreciated. > > -- > 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 martyconnelly at shaw.ca Tue Feb 6 15:11:48 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 06 Feb 2007 13:11:48 -0800 Subject: [AccessD] Exporting help requested In-Reply-To: References: Message-ID: <45C8EF14.70900@shaw.ca> You might try using the Data Shape Provider. It was first included I think in MDAC ADO 2.1. There are .chm help files but also several explanatory Papers on MSDN and Knowledge Base. Look under hierachical recordsets or DataShape. I find it useful for aggregate grouping. You could display with old VB6 Hierarchical Flexgrid control http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ado270/htm/mdmscaccessingrowsinhierarchicalrecordset.asp Data shaping provides a way to query a data source and return a Recordset that represents a parent-child relationship between two or more logical entities (a hierarchy). A classic example of a hierarchical relationship is customers and orders. For every customer in a database, there can be zero or more orders. Regular SQL provides a means of retrieving the data using JOIN syntax, but this can be inefficient and unwieldy because redundant parent data is repeated in each record returned for a given parent-child relationship. Data shaping can relate a single parent record in the parent recordset to multiple child records in the child recordset, avoiding the redundancy of a JOIN. Example Dim cnn As New ADODB.Connection cnn.Provider = "MSDataShape" cnn.Open "Data Provider=MSDASQL;DSN=vfox;uid=sa;pwd=vfox;database=Pubs" . . . rs1.Open "SHAPE {select * from Customers} " & _ "APPEND ({select * from Orders} AS chapOrders " & _ "RELATE CustomerID to CustomerID)", cnn ewaldt at gdls.com wrote: >I have a database with a self-related table. I'll use a simplified example >table: > >PartNumber >PartDescription >Parent >Qty > >As should be obvious from the field names, the PartNumber is related as a >child to its given Parent. > >Access is not to be the database for this project (sorry for the >blasphemy; it's not my idea). There is a vertical application DB (I'll >call it VADB) with CAD-type capabilities that Access does not possess >(OTOH, the rest of the VADB is 80s technology; it's run in a DOS window, >and minimum requirements include DOS 5 and a 386!). I am trying to use >Access as an intermediary to convert data from a UNIX flat file to this >VADB. I need to produce a text file in the format the VADB requires for >importing. > >The target file would look like this, with each line below representing a >line in the target file: > >Parent (and all data on the parent) >.Child (and all data on the child) >.Child (and all data on the child) >..Grandchild (and all data on the grandchild) >.Child (and all data on the child) > >And so forth. The leading dots are necessary, although I could probably >insert those manually or export the whole puppy to Excel and have Excel do >it via VBA. The main point is that all of the lineage has to be included. >That is, all of the "grandchildren" have to appear every time they're in a >"child'; if the original table has only 200 records, the resulting target >file could easily have over 1000, with many of the records repeated many >times. > >The closest I've come is to create a report grouped by the Parent and >export it to Excel. However, this only goes down one level, and does not >include the leading dots, of course. Is there a way to have Access go down >all levels? Is there a better way to do the whole thing? > >TIA, > >Tom Ewald >GDLS > > > > > > > > > > > >Thomas F. Ewald >FCS Database Manager >General Dynamics Land Systems >(586) 276-1256 > > > > > >This is an e-mail from General Dynamics Land Systems. It is for the intended recipient only and may contain confidential and privileged information. No one else may read, print, store, copy, forward or act in reliance on it or its attachments. If you are not the intended recipient, please return this message to the sender and delete the message and any attachments from your computer. Your cooperation is appreciated. > > > -- Marty Connelly Victoria, B.C. Canada From accessd at shaw.ca Tue Feb 6 15:17:33 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 06 Feb 2007 13:17:33 -0800 Subject: [AccessD] Design Question In-Reply-To: Message-ID: <0JD2000W28DRE4R1@l-daemon> Hi Bryan: It looks like an additional table would have to be create to store/keep the relationships of facilities, people software etc... People Facility Hardware Software Service Agreements The above would be correct (I will assume that each record in each of the tables has a field name ID) and if you add a table named 'CONNECTION' with only two fields, additional to its own ID field. One field could be named OwnerID and the other field OwnedID. The records in this table would be created when a relationship was established in code, one for each relationship. The beauty of using this type of table is that one-to-one, one to many, backwards or forwards and even reciprocal relationships (the table could call it's self) could used... The only particular about this type of table is that you as the programmer would most likely have to maintain it with your code.... sorry not bound. This system works great and I have used it to resolve many similar issues. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan Carbonnell Sent: Tuesday, February 06, 2007 10:14 AM To: Access Developers discussion and problem solving Subject: [AccessD] Design Question I have a design question from a colleague that I can't answer. It may be because I haven't given it enough thought, or that I'm too rusty when designing Access apps, but here goes for you wonderful folks. I have 5 distinct categories, which will be table(s) (normalized): People Facility Hardware Software Service Agreements So far, so simple, right? Now comes the hard part, and where I'm having problems Any one of the tables can be associated with virtually any other table. For example: A piece of hardware can be assigned to a facility or person A piece of software can be assigned to a person or hardware or facility A service agreement can be assigned to hardware, software, person or facility These are just some of the combos that are possible. Multiples are also possible. Multiple pieces of hardware can be assigned to a single or many facilities or people Multiple pieces of software can be assigned to a single or many people / hardware or facilities Multiple service agreements can be assigned to a single or multiple hardware, software, person or facility How would you structure the tables to facilitate this? My brain can't figure it out at the moment. I need to get back to programing and not management. Any guidance or insight will be greatly appreciated. -- 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 martyconnelly at shaw.ca Tue Feb 6 15:17:05 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 06 Feb 2007 13:17:05 -0800 Subject: [AccessD] Design Question In-Reply-To: References: Message-ID: <45C8F051.5000308@shaw.ca> Have a look at this mdb and article. somewhat similar People in households and companies - modelling human relationships http://www.allenbrowne.com/AppHuman.html Bryan Carbonnell wrote: >I have a design question from a colleague that I can't answer. It may >be because I haven't given it enough thought, or that I'm too rusty >when designing Access apps, but here goes for you wonderful folks. > >I have 5 distinct categories, which will be table(s) (normalized): > >People >Facility >Hardware >Software >Service Agreements > >So far, so simple, right? > >Now comes the hard part, and where I'm having problems > >Any one of the tables can be associated with virtually any other table. > >For example: >A piece of hardware can be assigned to a facility or person >A piece of software can be assigned to a person or hardware or facility >A service agreement can be assigned to hardware, software, person or facility > >These are just some of the combos that are possible. Multiples are >also possible. >Multiple pieces of hardware can be assigned to a single or many >facilities or people >Multiple pieces of software can be assigned to a single or many people >/ hardware or facilities >Multiple service agreements can be assigned to a single or multiple >hardware, software, person or facility > >How would you structure the tables to facilitate this? My brain can't >figure it out at the moment. I need to get back to programing and not >management. > >Any guidance or insight will be greatly appreciated. > > > -- Marty Connelly Victoria, B.C. Canada From cfoust at infostatsystems.com Tue Feb 6 16:59:08 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 6 Feb 2007 14:59:08 -0800 Subject: [AccessD] Design Question In-Reply-To: References: Message-ID: Is this for data entry or retrieval, Bryan? For Retrieval, a star schema will work. Just create tables with all the shared foreign key fields and slice and dice to taste. ;o} Not efficient for data entry but whizbang for retrieval. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan Carbonnell Sent: Tuesday, February 06, 2007 10:14 AM To: Access Developers discussion and problem solving Subject: [AccessD] Design Question I have a design question from a colleague that I can't answer. It may be because I haven't given it enough thought, or that I'm too rusty when designing Access apps, but here goes for you wonderful folks. I have 5 distinct categories, which will be table(s) (normalized): People Facility Hardware Software Service Agreements So far, so simple, right? Now comes the hard part, and where I'm having problems Any one of the tables can be associated with virtually any other table. For example: A piece of hardware can be assigned to a facility or person A piece of software can be assigned to a person or hardware or facility A service agreement can be assigned to hardware, software, person or facility These are just some of the combos that are possible. Multiples are also possible. Multiple pieces of hardware can be assigned to a single or many facilities or people Multiple pieces of software can be assigned to a single or many people / hardware or facilities Multiple service agreements can be assigned to a single or multiple hardware, software, person or facility How would you structure the tables to facilitate this? My brain can't figure it out at the moment. I need to get back to programing and not management. Any guidance or insight will be greatly appreciated. -- 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 dwaters at usinternet.com Tue Feb 6 18:01:05 2007 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 6 Feb 2007 18:01:05 -0600 Subject: [AccessD] Connections and Performance In-Reply-To: <30920009.1170793546997.JavaMail.root@Sniper29> References: <30920009.1170793546997.JavaMail.root@Sniper29> Message-ID: <002401c74a4b$13448a10$0200a8c0@danwaters> Thanks Drew - that might work for some processes. Dan Waters -----Original Message----- Subject: Re: [AccessD] Connections and Performance Ok, process records, let me see if I can take a stab at that. Let's say you have an insurance case. It gets assigned a case number, and you are allowing people to edit the details, as new things happen. This kind of concept should be redesigned so that each individual entry is a new record. It's a simple design, the case number and one time details would be in one table, then a separate table would hold additional entries, each with the foreign key from the original case number. This way, you can view all 'work' done on the case, but each 'change' is a new record, which is just added to the db, instead of tying up the entire record during editing. Drew -----Original Message----- Subject: Re: [AccessD] Connections and Performance Yes - lot's of editing. These are mostly process records where a single record can stay available for editing for days or weeks before the record is finally closed. I do have a Vacation Management module which is mostly adding records though. But, due to screen graphics redisplay, it's the slowest of the bunch! I'm going to try to work through this one to see if I can speed it up. Dan Waters -----Original Message----- Subject: Re: [AccessD] Connections and Performance Do you have a lot of people editing data? That is a design issue that will cut the performance. Instead of editing, you should add. I know it won't work for everything, but it is feasible in many situations. Drew -----Original Message----- Subject: Re: [AccessD] Connections and Performance Thanks Mark! That sounds quite similar to what I do now. Lots of input/output and FE/BE. I'll try the continuous connection technique to see how that works. I'll have to wait till the next time I'm on site though. Dan Waters -----Original Message----- Subject: Re: [AccessD] Connections and Performance Dan, My experience with this is around is about 6 years ago and with A97. Most of my decisions then were based on this group's input. At that time the average feedback I received with Access as the FE and BE...was 40 users... after that corruption...so I limited them to 40 users. There were a number of things I did to increase performance. I had a seperate computer that housed the BE. Nothing else was done with this machine(just an extra desktop we had). FEs on each users machine. This app was a complaint management system...so continuous lookup/edit existing/adding new. I had an unbound searchscreen...it had a couple of bound subforms to show each user the stats of their cases...and the search results subform was unbound until you hit search. The form to display/edit the case record did not use the filter property...the 'record source' SQL used the searchform as criteria. Hope this helps...let me know if you have any specific questions. Thanks, Mark A. Matte >From: "Dan Waters" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] Connections and Performance >Date: Tue, 6 Feb 2007 08:57:15 -0600 > >Hi Drew, > >Do you know how many FE clients could maintain that type of connection to a >BE at the same and still have reasonable performance? > >Does anyone have experience with this configuration? > >Dan Waters > >-----Original Message----- >Subject: Re: [AccessD] Connections and Performance > >I believe there is only one connection between a front end and back end. >In fact, many databases have better performance when the connection is >maintained through a 'linked table'. Create a dummy table (one field, >no records), called tblLink. Create a form bound to that table, and >open that form, hidden, on startup. That keeps the 'connection' live >while the user is in the database. > >I know in Access 97 that process was recommended in the help files under >'splitting a database'. > >Drew > >-----Original Message----- >Subject: Re: [AccessD] Connections and Performance > >Thanks Drew, > >I have asked everyone at my customer's site to close the screens they're >not >using (these are bound), but told them they can stay logged in because >the >main screen is not bound. We'll see if that helps. If not then I will >need >to start timing out the bound forms. > >I still don't know what is the definition of one connection. Is one >bound >form a connection? Is a FE with any number of bound forms a connection? >Or >is a connection defined by the periods of time when data transfer is >taking >place between a FE and BE? Or . . . ? > > >Thanks for teaching me! >Dan Waters > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka >Sent: Monday, February 05, 2007 4:06 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Connections and Performance > >Most 'articles' that 'document' Access performance are doing so based >upon poorly designed systems. You have to design your system based on >system requirements. If you are going to have 1 to 5 users, you can >keep everything bound, and be reasonably assured that things will work >well. If you are talking 5 to 30 users, now it's time to pick up some >of the slack. Timeout forms and reports that are going to tie up db >connections. 30 to 100 users, you better start thinking unbound. 100+ >users, better start thinking about something other then Access as a >front end (I would recommend ASP). > >The point is that JET, as a db system, can handle a lot, but Access, as >a Front End provides more bells and whistles that tax the backend more. >Case in point, we have our production database in Oracle, on it's own >honking box. Huge server, loads of memory and disk space, but when >certain things are run, even that system gets taken to It's knees. > >Drew > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >Sent: Friday, February 02, 2007 10:13 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Connections and Performance > >Drew, > >I read this somewhere - either in MS documentation or in a book where I >believe the author. > >Here's the reason I was asking: > >At a certain customer site, they experienced a dramatic performance >slowdown >at a time when about 10 people were logged on concurrently. Each client >PC >has it's own FE. I know that they open the system and leave the process >screens open, all of which are bound. I want to suggest that they >remember >to close the process screens so that just the main screen is open, which >is >not bound. This way a fewer number of connections are being used at any >one >time and performance would probably be acceptable. This particular >customer, I believe, does not have a very good network, so that is part >of >the problem. But that's unlikely to get improved, so I wanted to >provide at >least a partial solution, hence my question. > >I've also heard that a connection is made not based on whether a form is >open and bound, but on whether or not there is data traffic between to >and >from a table, which only takes a small part of a second. > >So what causes the performance slowdown when only 10 client PC's are >logged >on, and what could be done to improve this? > >Dan Waters > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka >Sent: Friday, February 02, 2007 9:26 AM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Connections and Performance > >Where are you getting these numbers. Access can have up to 255 >connections. > >Drew > >-----Original Message----- >From: Dan Waters [mailto:dwaters at usinternet.com] >Sent: Friday, February 02, 2007 8:45 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Connections and Performance > >Access has the potential for 8 simultaneous connections, but 3 of them >are >reserved for the system's use. That leaves five for users. > >Dan Waters > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby >Sent: Friday, February 02, 2007 8:02 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Connections and Performance > > >But, the connection limit for one BE is 5 FE's. > >What does this mean? I have never heard of any such thing. > > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >Sent: Friday, February 02, 2007 8:58 AM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] Connections and Performance > >I've read several times that maintaining a connection between a FE and a >BE >will increase the performance of the FE because it doesn't need to >reconnect >before transferring data. The connection here would be a bound form >connected by a table link to a table in the BE. > >But, the connection limit for one BE is 5 FE's. So, will maintaining >connections on more than 5 FE's reduce performance? Seems logical, but >I >was wondering if this is correct or is there more to it? > >Thanks! > >Dan Waters > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Laugh, share and connect with Windows Live Messenger http://clk.atdmt.com/MSN/go/msnnkwme0020000001msn/direct/01/?href=http:/ /ima gine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=hmtagli ne -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From darren.dick at bigpond.com Wed Feb 7 05:29:58 2007 From: darren.dick at bigpond.com (Darren DICK) Date: Wed, 7 Feb 2007 22:29:58 +1100 Subject: [AccessD] Rename files Message-ID: <20070207113049.STDH27396.oaamta01sl.mx.bigpond.com@DENZILLAP> Hi All I have a renaming routine but can't quite work out the syntax I have file names in a folder similar to 10.pdf 11.pdf 12.pdf 13.pdf etc etc (All sequential) I want to prefix each file name in the nominated folder with "inv103" I can do this bit - no prob But I want to insert "-016" before the .PDF bit So final filename is like. inv10310-016.pdf inv10311-016.pdf inv10312-016.pdf inv10313-016.pdf and so on Any suggestions? Many thanks in advance Darren From bheid at sc.rr.com Wed Feb 7 05:43:43 2007 From: bheid at sc.rr.com (Bobby Heid) Date: Wed, 7 Feb 2007 06:43:43 -0500 Subject: [AccessD] Rename files In-Reply-To: <20070207113049.STDH27396.oaamta01sl.mx.bigpond.com@DENZILLAP> References: <20070207113049.STDH27396.oaamta01sl.mx.bigpond.com@DENZILLAP> Message-ID: <002c01c74aad$38c32820$2d01a8c0@bhxp> Darren, As you read each file name, split it up into the file name and the extension. Then NewName="Inv03" & FileName & "-016." & FileExt Then rename the file to NewName. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Wednesday, February 07, 2007 6:30 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Rename files Hi All I have a renaming routine but can't quite work out the syntax I have file names in a folder similar to 10.pdf 11.pdf 12.pdf 13.pdf etc etc (All sequential) I want to prefix each file name in the nominated folder with "inv103" I can do this bit - no prob But I want to insert "-016" before the .PDF bit So final filename is like. inv10310-016.pdf inv10311-016.pdf inv10312-016.pdf inv10313-016.pdf and so on Any suggestions? Many thanks in advance Darren From paul.hartland at fsmail.net Wed Feb 7 05:50:12 2007 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 7 Feb 2007 12:50:12 +0100 (CET) Subject: [AccessD] Rename files Message-ID: <3069814.39491170849012073.JavaMail.www@wwinf3203> This might work, not knowing how you are renaming your files... Get current filename New filename = "inv103" & Mid(OldFileName,1,(Len(OldFileName)-4)) & "-016.pdf" Paul Hartland Message Received: Feb 07 2007, 11:34 AM From: "Darren DICK" To: "'Access Developers discussion and problem solving'" Cc: Subject: [AccessD] Rename files Hi All I have a renaming routine but can't quite work out the syntax I have file names in a folder similar to 10.pdf 11.pdf 12.pdf 13.pdf etc etc (All sequential) I want to prefix each file name in the nominated folder with "inv103" I can do this bit - no prob But I want to insert "-016" before the .PDF bit So final filename is like. inv10310-016.pdf inv10311-016.pdf inv10312-016.pdf inv10313-016.pdf and so on Any suggestions? Many thanks in advance Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Paul Hartland paul.hartland at fsmail.net 07730 523179 From Gustav at cactus.dk Wed Feb 7 08:44:53 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 07 Feb 2007 15:44:53 +0100 Subject: [AccessD] ADO code stopped working Message-ID: Hi Charlotte No, that will not cause (or raise) the error discussed, 3265. Of course, if you have an explicit parameter, the value passed must be of a matching datatype. If not, it will raise the error 3421 (wrong datatype), but that will not happen until the code line with the parameter value setting is reached, not at the call to the procedures' collection which is Jennifer's problem. /gustav >>> cfoust at infostatsystems.com 06-02-2007 17:17:49 >>> You have to get the datatypes right for the parameters too. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, February 06, 2007 3:18 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] ADO code stopped working Hi Jennifer The 3265 missing item error is not related to the name of the query but - surprise - to the parameter collection of the query. If the query's parameter collection does have a parameter count of zero, the error is raised. I have tested this in A2002/XP as well as A2003 and the scenario is consistent with ADO 2.8. What has happened could be that in a previous version of ADO the parameter count was not checked. Even if your code indicates the presence of one or more parameters I guess none exists, thus - after a possible update of ADO - the error occurs. On another note, the "smart" way of feeding values to your parameters my not work in Access 2007 as - if I remember correctly - the function Eval is considered "dangerous" and thus has been removed. So, in the future, you better spell out each parameter and the variable you wish to assign. Remember, that a parameter can be identified by its Index: cmd.Parameters(0).Value = /gustav >>> jengross at gte.net 05-02-2007 20:16:05 >>> Hi Gustav, I have checked all references. The code is compiling. I have created a test database with one table and one query. It is failing in the same spot my original database is failing - Set prc = cat.Procedures("TheQuery") - In the test database I am getting the error 3265 - Item cannot be found in the collection corresponding to the requested name or ordinal. The query does exist - no spelling errors. The same ADO code is working fine on my home office system. It worked fine at the client's site in January. Any thoughts? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, February 05, 2007 1:47 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] ADO code stopped working Hi Jennifer You could - for and while debugging - try to separate the connection object: Dim cnn As ADODB.Connection Dim cmd As ADODB.Command Dim rst As ADODB.Recordset Dim prm As ADODB.Parameter Dim cat As ADOX.Catalog Dim prc As ADOX.Procedure Set cat = New ADOX.Catalog Set cnn = CurrentProject.Connection cat.ActiveConnection = cnn I guess you have double-checked the reference: Microsoft ADO Ext. 2.8 for DDL and Security points to ..system32\MSADOX.DLL /gustav >>> jengross at gte.net 05-02-2007 05:00 >>> Thanks for the suggestions. I set the references like Marty suggested and am still getting the problem. I am using the Getz Developers Handbook code for looping through parameters in a select query: Dim cmd As ADODB.Command Dim rst As ADODB.Recordset Dim prm As ADODB.Parameter Dim cat As ADOX.Catalog Dim prc As ADOX.Procedure Set cat = New ADOX.Catalog * cat.ActiveConnection = CurrentProject.Connection * Set prc = cat.Procedures("TheQuery") Set cmd = prc.Command For Each prm In cmd.Parameters prm.Value = Eval(prm.Name) Next prm Set rst = cmd.Execute If I don't use the query with parameters, but instead base the recordset on the table, then it works fine: Set rst = New ADODB.Recordset Set rst.ActiveConnection = CurrentProject.Connection rst.CursorType = adOpenForwardOnly rst.LockType = adLockReadOnly rst.Open "TheTable" I am getting the same results whether the code is in the existing FE or if I create a new db with the ADO code as Rocky suggested. Any thoughts? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Sunday, February 04, 2007 4:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] ADO code stopped working I would whip up a small app with some ado code to see if the problem is inside your app or outside of it. Does your app compile? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Sunday, February 04, 2007 2:05 PM To: AccessD List Subject: [AccessD] ADO code stopped working Hi Everyone, W2K SP4 / A2K SP3 / terminal server I have a database that has some DAO and some ADO code. Recently all ADO stopped working. DAO is still working fine. Anytime code utilizing ADO runs it shuts down the database abruptly, leaving the LDB file. We were also having problems with the Windows Management databases locking up and a reinstall of the latest MDAC took care of that problem, but did not solve the ADO problem. ADO was working fine for end of year reporting. There are no missing references. After the MDAC reinstall I unchecked references, closed down, opened up and rechecked references. Any help would be greatly appreciated. Thank you, Jennifer Gross databasics 2839 Shirley Drive Newbury Park, CA 91320-3068 office: (805) 480-1921 fax: (805) 499-0467 From Gustav at cactus.dk Wed Feb 7 08:57:48 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 07 Feb 2007 15:57:48 +0100 Subject: [AccessD] ADO code stopped working Message-ID: Hi Marty That is interesting! It appears that - if you specify a parameter by its name - for an explicit parameter the brackets must _not_ be specified, while for an implicit parameter the brackets _must_ be specified. If you don't, an 3265 error will be raised but not before you reach the code line where you pass the parameter value. So this is not the scenario Jennifer sees, as - for her case - the error is raised earlier when you address the Procedures' collection. /gustav >>> martyconnelly at shaw.ca 05-02-2007 21:46:05 >>> I am just wondering if TheQuery has to be run once to compile it? or this ACC2000: How to Use Parameters with ActiveX Data Objects (ADO) and Jet http://support.microsoft.com/kb/225897/en-us Method 3: Using an Implicit Parameter NOTE: Implicit parameter names have brackets ([ ]) around them, and you must use the brackets (or the parameter's ordinal position) when referring to implicit parameters in the Parameters collection. If you do not use the brackets, you receive the following error message: Run-time error '3265': ADO could not find the object in the collection corresponding to the name or ordinal reference requested by the application. PRB: Error 3265 When You Access Properties Collection http://support.microsoft.com/?kbid=201826 http://support.microsoft.com/default.aspx?scid=kb;en-us;223212 Jennifer Gross wrote: >Hi Gustav, > >I have checked all references. The code is compiling. I have created a >test database with one table and one query. It is failing in the same >spot my original database is failing - Set prc = >cat.Procedures("TheQuery") - In the test database I am getting the error >3265 - Item cannot be found in the collection corresponding to the >requested name or ordinal. The query does exist - no spelling errors. >The same ADO code is working fine on my home office system. It worked >fine at the client's site in January. Any thoughts? > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >Sent: Monday, February 05, 2007 1:47 AM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] ADO code stopped working > > >Hi Jennifer > >You could - for and while debugging - try to separate the connection >object: > > Dim cnn As ADODB.Connection > Dim cmd As ADODB.Command > Dim rst As ADODB.Recordset > Dim prm As ADODB.Parameter > Dim cat As ADOX.Catalog > Dim prc As ADOX.Procedure > > Set cat = New ADOX.Catalog > Set cnn = CurrentProject.Connection > cat.ActiveConnection = cnn > >I guess you have double-checked the reference: > Microsoft ADO Ext. 2.8 for DDL and Security >points to > ..system32\MSADOX.DLL > >/gustav > > > >>>>jengross at gte.net 05-02-2007 05:00 >>> >>>> >>>> >Thanks for the suggestions. I set the references like Marty suggested >and am still getting the problem. I am using the Getz Developers >Handbook code for looping through parameters in a select query: > > Dim cmd As ADODB.Command > Dim rst As ADODB.Recordset > Dim prm As ADODB.Parameter > Dim cat As ADOX.Catalog > Dim prc As ADOX.Procedure > > Set cat = New ADOX.Catalog >* cat.ActiveConnection = CurrentProject.Connection >* Set prc = cat.Procedures("TheQuery") > Set cmd = prc.Command > For Each prm In cmd.Parameters > prm.Value = Eval(prm.Name) > Next prm > Set rst = cmd.Execute > >If I don't use the query with parameters, but instead base the recordset >on the table, then it works fine: > > Set rst = New ADODB.Recordset > Set rst.ActiveConnection = CurrentProject.Connection > rst.CursorType = adOpenForwardOnly > rst.LockType = adLockReadOnly > rst.Open "TheTable" > >I am getting the same results whether the code is in the existing FE or >if I create a new db with the ADO code as Rocky suggested. > >Any thoughts? > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin >at Beach Access Software >Sent: Sunday, February 04, 2007 4:55 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] ADO code stopped working > > >I would whip up a small app with some ado code to see if the problem is >inside your app or outside of it. Does your app compile? > >Rocky > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer >Gross >Sent: Sunday, February 04, 2007 2:05 PM >To: AccessD List >Subject: [AccessD] ADO code stopped working > >Hi Everyone, > >W2K SP4 / A2K SP3 / terminal server > >I have a database that has some DAO and some ADO code. Recently all ADO >stopped working. DAO is still working fine. Anytime code utilizing ADO >runs it shuts down the database abruptly, leaving the LDB file. We were >also having problems with the Windows Management databases locking up >and a reinstall of the latest MDAC took care of that problem, but did >not solve the ADO problem. ADO was working fine for end of year >reporting. There are no missing references. After the MDAC reinstall I >unchecked references, closed down, opened up and rechecked references. > >Any help would be greatly appreciated. > >Thank you, > >Jennifer Gross >databasics >2839 Shirley Drive >Newbury Park, CA 91320-3068 >office: (805) 480-1921 >fax: (805) 499-0467 > > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This mail is marked as non spam by Pinjo revealer, spamfilter technology. ( http://www.pinjo.nl ) From carbonnb at gmail.com Wed Feb 7 09:40:11 2007 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Wed, 7 Feb 2007 10:40:11 -0500 Subject: [AccessD] Design Question In-Reply-To: References: Message-ID: On 2/6/07, Charlotte Foust wrote: > Is this for data entry or retrieval, Bryan? For Retrieval, a star It's for both. That's the PITA part. > schema will work. Just create tables with all the shared foreign key > fields and slice and dice to taste. ;o} Not efficient for data entry > but whizbang for retrieval. By Star schema, I'm assuming that is something like JC described? -- 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 carbonnb at gmail.com Wed Feb 7 09:42:46 2007 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Wed, 7 Feb 2007 10:42:46 -0500 Subject: [AccessD] Design Question In-Reply-To: <0JD2000W28DRE4R1@l-daemon> References: <0JD2000W28DRE4R1@l-daemon> Message-ID: On 2/6/07, Jim Lawrence wrote: > The above would be correct (I will assume that each record in each of the > tables has a field name ID) and if you add a table named 'CONNECTION' with Correct assumption. I've bashed that into his head :) > only two fields, additional to its own ID field. > > One field could be named OwnerID and the other field OwnedID. The records in > this table would be created when a relationship was established in code, one > for each relationship. The beauty of using this type of table is that > one-to-one, one to many, backwards or forwards and even reciprocal > relationships (the table could call it's self) could used... How would you know which table the OwnerID and OwnedID belongs to? > The only particular about this type of table is that you as the programmer > would most likely have to maintain it with your code.... sorry not bound. > This system works great and I have used it to resolve many similar issues. In this case, I doubt it's gonna happen. He's not a programmer. Just a manager :) -- 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 carbonnb at gmail.com Wed Feb 7 09:43:25 2007 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Wed, 7 Feb 2007 10:43:25 -0500 Subject: [AccessD] Design Question In-Reply-To: <00fc01c74a1c$d3efb430$657aa8c0@m6805> References: <00fc01c74a1c$d3efb430$657aa8c0@m6805> Message-ID: On 2/6/07, JWColby wrote: > Given the possibility of having multiples, I would probably have the > individual object tables, then one big m-m "relationship" table where I > placed: > > PEID > FACID > HDWRID > SFTWRID > SVCAGRID > > > Probably you would want other info about the relationship such as when the > relationship was established and when the relationship terminated: > > DteEst > DteTerm > > "multiples" come from new records in the relationship table. > > A person assigned two pieces of software would be two records, with just the > peid and softwareid, plus the DteEst. When that person "turned in" the > software, the record's DteTerm would be updated. > > The only issue with this kind of relationship is that one relationship could > be terminated while another was not. If that is possible, then each > relationship needs to be established individually (separate records in the > relationship table), so that you can record when each relationship was > established and terminated. Merci. -- 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 carbonnb at gmail.com Wed Feb 7 09:44:01 2007 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Wed, 7 Feb 2007 10:44:01 -0500 Subject: [AccessD] Design Question In-Reply-To: <45C8F051.5000308@shaw.ca> References: <45C8F051.5000308@shaw.ca> Message-ID: On 2/6/07, MartyConnelly wrote: > Have a look at this mdb and article. somewhat similar > > People in households and companies - modelling human relationships > http://www.allenbrowne.com/AppHuman.html I'll pass this one for his perusal and add it to my list of things to look at. -- 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 cfoust at infostatsystems.com Wed Feb 7 10:01:04 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 7 Feb 2007 08:01:04 -0800 Subject: [AccessD] Design Question In-Reply-To: References: Message-ID: I just skimmed John's reply, but no, that isn't exactly it. A star schema is commonly used in data warehousing and tables have a multiplicity of FKs for all tables they relate to. That makes querying data a snap because you don't need complicated joins to get the data you want, just filter on the FKs. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan Carbonnell Sent: Wednesday, February 07, 2007 7:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Design Question On 2/6/07, Charlotte Foust wrote: > Is this for data entry or retrieval, Bryan? For Retrieval, a star It's for both. That's the PITA part. > schema will work. Just create tables with all the shared foreign key > fields and slice and dice to taste. ;o} Not efficient for data entry > but whizbang for retrieval. By Star schema, I'm assuming that is something like JC described? -- 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 carbonnb at gmail.com Wed Feb 7 10:28:37 2007 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Wed, 7 Feb 2007 11:28:37 -0500 Subject: [AccessD] Design Question In-Reply-To: References: Message-ID: On 2/7/07, Charlotte Foust wrote: > I just skimmed John's reply, but no, that isn't exactly it. A star > schema is commonly used in data warehousing and tables have a > multiplicity of FKs for all tables they relate to. That makes querying > data a snap because you don't need complicated joins to get the data you > want, just filter on the FKs. So in the people table there would be columns for the FKs for Software, Hardware, Service Agreements and Facilities. The equipment table would have a column for the others, etc? -- 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 kismert at gmail.com Wed Feb 7 10:53:09 2007 From: kismert at gmail.com (Ken Ismert) Date: Wed, 07 Feb 2007 10:53:09 -0600 Subject: [AccessD] Design Question In-Reply-To: References: Message-ID: <45CA03F5.6090301@gmail.com> Bryan, This brings to mind Robert Stewart's idea of database unique ID's. Instead of having separate autonumber keys for each table, you implement one autonumber key for the whole database. You would have a single table with a single counter field that all tables used for their next primary key. A function would increment the counter, and return the value to the form doing the insert. This way, you could simplify your many-to-many table even further: LeftID RightID LeftTypeID RightTypeID Primary key is LeftID, RightID, and LeftTypeID, RightTypeID are also indexed. Left is the ID of the table on the left side of the relationship, Right is the ID of the other table. LeftTypeID and RightTypeID key the type of relationship (hardware => facility, hardware => person, software => hardware, service agreement => software, etc...). The LeftTypeID and RightTypeID values come from one lookup table which lists the entity types (software, hardware, etc...) you are relating. There would be a third table that defines the possible relationships between Left and Right. This ensures that there are only one-way relationships, in other words, (software => hardware) is allowed, but (hardware => software) isn't (that combination would not exist in the table). You can join any table (People, Facility, Hardware, Software, ServiceAgreements) to either LeftID or RightID, and they will match only their IDs, because each Primary Key ID is unique not only to that table, but to every table. Because they are indexed joins, these queries will work fast, and will be easy to optimize. The beauty of this approach is that adding another table to the mix causes no redesign of the schema. The new table takes its DB unique IDs from the same source as all others. You would just to add one record to the entity table for your new table, and records to relationship table to define the allowable relationships between the new entity and the others. That's it -- you have achieved a purely data-driven extension of your schema. You would wind up with Left and Right hand queries to answer all possible relationship questions. For example, the (hardware => software) relationship isn't defined (left => right), but it clearly exists (right => left). You would query the relationship table to determine if that relationship exists, and if so, use a Left hand query. If not, use the Right hand query. Limits? In Access, this would limit you to 4 billion records total in the database, but you'd overrun the maximum file size for the mdb well before that! With 64 bit integer keys in a modern enterprise DB, you would have no practical limit on the records you could key this way. Of course, Robert has ways of overcoming these limits now, but I will leave it to him to describe that. -Ken > Subject: > Re: [AccessD] Design Question > From: > "JWColby" > Date: > Tue, 6 Feb 2007 13:30:06 -0500 > To: > "'Access Developers discussion and problem solving'" > > > To: > "'Access Developers discussion and problem solving'" > > > > Given the possibility of having multiples, I would probably have the > individual object tables, then one big m-m "relationship" table where I > placed: > > PEID > FACID > HDWRID > SFTWRID > SVCAGRID > > > Probably you would want other info about the relationship such as when the > relationship was established and when the relationship terminated: > > DteEst > DteTerm > > "multiples" come from new records in the relationship table. > > A person assigned two pieces of software would be two records, with just the > peid and softwareid, plus the DteEst. When that person "turned in" the > software, the record's DteTerm would be updated. > > The only issue with this kind of relationship is that one relationship could > be terminated while another was not. If that is possible, then each > relationship needs to be established individually (separate records in the > relationship table), so that you can record when each relationship was > established and terminated. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com From jwcolby at colbyconsulting.com Wed Feb 7 11:10:40 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 7 Feb 2007 12:10:40 -0500 Subject: [AccessD] Design Question In-Reply-To: Message-ID: <002b01c74ada$e568b900$657aa8c0@m6805> Bryan, Before you do anything you need to determine whether the DATES that you make / break these relationships matter (or any other info about the relationship). What Charlotte is discussing is a construct for data warehouses, where data rarely if ever changes. This does not sound like your application. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan Carbonnell Sent: Wednesday, February 07, 2007 11:29 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Design Question On 2/7/07, Charlotte Foust wrote: > I just skimmed John's reply, but no, that isn't exactly it. A star > schema is commonly used in data warehousing and tables have a > multiplicity of FKs for all tables they relate to. That makes > querying data a snap because you don't need complicated joins to get > the data you want, just filter on the FKs. So in the people table there would be columns for the FKs for Software, Hardware, Service Agreements and Facilities. The equipment table would have a column for the others, etc? -- 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 carbonnb at gmail.com Wed Feb 7 11:23:21 2007 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Wed, 7 Feb 2007 12:23:21 -0500 Subject: [AccessD] Design Question In-Reply-To: <002b01c74ada$e568b900$657aa8c0@m6805> References: <002b01c74ada$e568b900$657aa8c0@m6805> Message-ID: On 2/7/07, JWColby wrote: > Before you do anything you need to determine whether the DATES that you make > / break these relationships matter (or any other info about the > relationship). What Charlotte is discussing is a construct for data > warehouses, where data rarely if ever changes. This does not sound like > your application. No, it certainly isn't. The dates may matter. Luckily, in this case I think, I'm just collecting the info for someone else. They are doing the design and implementation. I haven't done any Access work in so long that my brain is rusty when it comes to design. That's why I asked the experts :) -- 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 accessd at shaw.ca Wed Feb 7 12:57:28 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 07 Feb 2007 10:57:28 -0800 Subject: [AccessD] Design Question In-Reply-To: Message-ID: <0JD3007U9WK6DVM1@l-daemon> HI Bryan: I will add my comments inline. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan Carbonnell Sent: Wednesday, February 07, 2007 7:43 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Design Question On 2/6/07, Jim Lawrence wrote: > The above would be correct (I will assume that each record in each of the > tables has a field name ID) and if you add a table named 'CONNECTION' with Correct assumption. I've bashed that into his head :) > only two fields, additional to its own ID field. > > One field could be named OwnerID and the other field OwnedID. The records in > this table would be created when a relationship was established in code, one > for each relationship. The beauty of using this type of table is that > one-to-one, one to many, backwards or forwards and even reciprocal > relationships (the table could call it's self) could used... How would you know which table the OwnerID and OwnedID belongs to? 1. The field named OwnerID would be the Parent and the OwnedID would be the child. 2. It does not really matter as it could be a one to one or to many from either direction. > The only particular about this type of table is that you as the programmer > would most likely have to maintain it with your code.... sorry not bound. > This system works great and I have used it to resolve many similar issues. In this case, I doubt it's gonna happen. He's not a programmer. Just a manager :) That is why there is programmer at your office. If the manager who I assume has no programming experience, wishes to do it himself then it is not possible. (Had a similar situation at a office; the manager, a Systems Architect fooled around with a similar problem for 3 weeks before finally asking me to do it... it took 3 hours to solve and code.) -- 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 darrend at nimble.com.au Wed Feb 7 16:09:39 2007 From: darrend at nimble.com.au (Darren DICK) Date: Thu, 8 Feb 2007 09:09:39 +1100 Subject: [AccessD] Rename files In-Reply-To: <002c01c74aad$38c32820$2d01a8c0@bhxp> Message-ID: <200702072209.l17M9wO08125@databaseadvisors.com> Hi Bobby I tried that but the file name already has the dot PDF in it so with that method I end up with file names like inv10310.pdf-016.pdf I wrote a routine to strip all the filenames of their dot PDF extension rename and then put a desired extension on the new file name Many thanks Darren ------------------ -----Original Message----- From: Bobby Heid [mailto:bheid at sc.rr.com] Sent: Wednesday, 7 February 2007 10:44 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Rename files Darren, As you read each file name, split it up into the file name and the extension. Then NewName="Inv03" & FileName & "-016." & FileExt Then rename the file to NewName. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Wednesday, February 07, 2007 6:30 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Rename files Hi All I have a renaming routine but can't quite work out the syntax I have file names in a folder similar to 10.pdf 11.pdf 12.pdf 13.pdf etc etc (All sequential) I want to prefix each file name in the nominated folder with "inv103" I can do this bit - no prob But I want to insert "-016" before the .PDF bit So final filename is like. inv10310-016.pdf inv10311-016.pdf inv10312-016.pdf inv10313-016.pdf and so on Any suggestions? Many thanks in advance Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Thu Feb 8 01:26:25 2007 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 8 Feb 2007 08:26:25 +0100 (CET) Subject: [AccessD] Visual Basic Form - Check If Recordset/Field Needs Updating Message-ID: <28391916.181731170919585361.JavaMail.www@wwinf3101> To all, Firstly my appologies for cross-posting this on the Access site, the reason for this is I haven't seen much (well very very little to be precise) activity on the VB Group. I am after some advice really, basically I would like to know the best way to check if a recordset/field needs updating. Say if a user has a client record in front of them and doesn't make any changes I need to detect this so I don't have to bother to update any recordsets/fields, but if the user does make a change to any textbox/checkbox/dropdown etc I would like to detect this so that : 1. I can update the recordset/field 2. So I can create a log of the record the user changed (plus if possible the name of the field and what they changed it from and to). So any help on this will be appreciated, I have come up with a couple of solutions but the one seems long winded and the other, I just can't get to work quite right. Thanks in advance for any help on this. Paul Hartland From adtp at hotmail.com Thu Feb 8 05:52:59 2007 From: adtp at hotmail.com (A.D.TEJPAL) Date: Thu, 8 Feb 2007 17:22:59 +0530 Subject: [AccessD] Rename files References: <200702072209.l17M9wO08125@databaseadvisors.com> Message-ID: Darren, Sample subroutine P_AddPrefixSuffixToFileNames() as given below, will insert the desired prefix and / or suffix in all target files in the specified folder (including all subfolders belonging to this folder). It is a generic procedure with recursive feature (ensuring coverage of all subfolders as well). First argument provides the path of folder containing the files in question, while next three arguments are all optional. If last argument (file extn) is missing, all files get renamed. Otherwise, only the files with specified extn get affected. Sample call for inserting "inv103_" as prefix & "_016" as suffix in all pdf type files in the target folders, as desired by you, would be as follows: P_AddPrefixSuffixToFileNames _ "<>", _ "inv103_", "_016", ".pdf" Note - If only prefix or only suffix is required, the unwanted optional argument can be omitted (If such optional argument is not the last one, corresponding place holder comma should be provided). Best wishes, A.D.Tejpal --------------- Sample SubRoutine (Insertion of Prefix & Suffix in File Names) ===================================== Sub P_AddPrefixSuffixToFileNames( _ ByVal FolderPath As String, _ Optional Prefix As Variant, _ Optional Suffix As Variant, _ Optional Extn As Variant) ' Inserts desired Prefix & Suffix in File Names ' (For all files in the target folder, including all its ' subfolders). If Extn has been specified, only ' files with this particular extn will get renamed. On Error GoTo ErrTrap Dim fso As FileSystemObject Dim pfd As Folder, sfd As Folder Dim fe As File Dim BaseName As String, FileExtn As String Dim Rtv As Variant, NewPath As String Dim Pfx As String, Sfx As String, Exn As String Dim Lpx As Long, Lsx As Long ' Translate optional arguments into strings Pfx = IIf(IsMissing(Prefix), "", Nz(Prefix, "")) Sfx = IIf(IsMissing(Suffix), "", Nz(Suffix, "")) Exn = IIf(IsMissing(Extn), "", Nz(Extn, "")) ' Exit if no prefix & suffix specified If Pfx = "" And Sfx = "" Then GoTo ExitPoint End If Lpx = Len(Pfx) Lsx = Len(Sfx) Set fso = New FileSystemObject Set pfd = fso.GetFolder(FolderPath) ' Provide dot at beginning of extn argument ' (if such dot is missing) Exn = IIf(Left(Exn, 1) = ".", "", ".") & Exn ' Cycle through the files in parent folder For Each fe In pfd.Files Rtv = Split(fe.Name, ".") BaseName = Rtv(0) FileExtn = "." & Rtv(1) ' Skip Renaming if already renamed ' (A) If (Lpx > 0 And Left(BaseName, _ Lpx) = Pfx) Or (Lsx > 0 And _ Right(BaseName, Lsx) = Sfx) Then GoTo Skip End If NewPath = pfd.Path & "\" & Pfx & _ BaseName & Sfx & FileExtn If IsMissing(Extn) Then Name fe.Path As NewPath Else If FileExtn = Exn Then Name fe.Path As NewPath End If End If Skip: Next ' Note - (A) is meant to prevent repeat action ' on same file. (In a For Each loop, an ' object's index position can get disturbed ' after renaming,, leading to repeat processing) ' Cycle through the files in all subfolders ' contained in current parent folder If pfd.SubFolders.Count > 0 Then For Each sfd In pfd.SubFolders If IsMissing(Extn) Then P_AddPrefixSuffixToFileNames sfd.Path, _ Prefix, Suffix Else P_AddPrefixSuffixToFileNames sfd.Path, _ Prefix, Suffix, Extn End If Next End If ExitPoint: On Error Resume Next Set fe = Nothing Set sfd = Nothing Set pfd = Nothing Set fso = Nothing On Error GoTo 0 Exit Sub ErrTrap: MsgBox Err.Number & " - " & Err.Description Resume ExitPoint End Sub ===================================== -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Wednesday, February 07, 2007 6:30 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Rename files Hi All I have a renaming routine but can't quite work out the syntax I have file names in a folder similar to 10.pdf 11.pdf 12.pdf 13.pdf etc etc (All sequential) I want to prefix each file name in the nominated folder with "inv103" I can do this bit - no prob But I want to insert "-016" before the .PDF bit So final filename is like. inv10310-016.pdf inv10311-016.pdf inv10312-016.pdf inv10313-016.pdf and so on Any suggestions? Many thanks in advance Darren From markamatte at hotmail.com Thu Feb 8 08:44:29 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 08 Feb 2007 14:44:29 +0000 Subject: [AccessD] Replicas In-Reply-To: Message-ID: Hello All, I have an A97 db that used to be replicated. It is now the design master...but I get a warning everytime I open it that says This replica has exceeded the number of days it can go without being synced...and that I should delete it? This db is the only one left...and does NOT need to be replicated anymore. How would I fix this? Thanks, Mark A. Matte _________________________________________________________________ Talk now to your Hotmail contacts with Windows Live Messenger. http://get.live.com/messenger/overview From john at winhaven.net Thu Feb 8 09:02:15 2007 From: john at winhaven.net (John Bartow) Date: Thu, 8 Feb 2007 09:02:15 -0600 Subject: [AccessD] Replicas In-Reply-To: References: Message-ID: <00fd01c74b92$225c2100$6502a8c0@ScuzzPaq> Set up linux on your old 386 with 4MB of RAM, then install MySQL... Just because I'm feeling a bit sarcastic today! :o) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Thursday, February 08, 2007 8:44 AM To: accessd at databaseadvisors.com Subject: [AccessD] Replicas Hello All, I have an A97 db that used to be replicated. It is now the design master...but I get a warning everytime I open it that says This replica has exceeded the number of days it can go without being synced...and that I should delete it? This db is the only one left...and does NOT need to be replicated anymore. How would I fix this? Thanks, Mark A. Matte _________________________________________________________________ Talk now to your Hotmail contacts with Windows Live Messenger. http://get.live.com/messenger/overview -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Kwilliamson at RTKL.com Thu Feb 8 09:16:07 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Thu, 8 Feb 2007 10:16:07 -0500 Subject: [AccessD] Linked Table Limits? Message-ID: Hi all, Does anyone know if there are limits to the number of linked tables (to a SQL database) that can be included in an Access query? I have a query that joins (2) linked tables and (2) local Access tables. That runs very fast. However, if I try to add one more linked table to the query.....it simply crashes the database. I've even tried using a sql select statement in the query, to get the data from that last linked table......crashes the database. IF I copy the entire linked table to a local table, and then select/join to that table......the query runs fast. When I try exporting the query, with the select statement to the linked table.....my resultant export (incomplete due to the crash) is corrupted. So, my question is....is there some sort of limit to the number of sql tables that I can join, in a query? There doesn't seem to be anything wrong with the sql table I am trying to join. Just very odd. Thanks, Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com From jwcolby at colbyconsulting.com Thu Feb 8 09:14:58 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Thu, 8 Feb 2007 10:14:58 -0500 Subject: [AccessD] Replicas In-Reply-To: <00fd01c74b92$225c2100$6502a8c0@ScuzzPaq> Message-ID: <001701c74b93$e6589830$657aa8c0@m6805> LOL, you could be burned at the stake in these circles. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Thursday, February 08, 2007 10:02 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Replicas Set up linux on your old 386 with 4MB of RAM, then install MySQL... Just because I'm feeling a bit sarcastic today! :o) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Thursday, February 08, 2007 8:44 AM To: accessd at databaseadvisors.com Subject: [AccessD] Replicas Hello All, I have an A97 db that used to be replicated. It is now the design master...but I get a warning everytime I open it that says This replica has exceeded the number of days it can go without being synced...and that I should delete it? This db is the only one left...and does NOT need to be replicated anymore. How would I fix this? Thanks, Mark A. Matte _________________________________________________________________ Talk now to your Hotmail contacts with Windows Live Messenger. http://get.live.com/messenger/overview -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Thu Feb 8 09:19:58 2007 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 8 Feb 2007 16:19:58 +0100 (CET) Subject: [AccessD] Linked Table Limits? Message-ID: <8130296.122981170947998649.JavaMail.www@wwinf3203> I don't know if there is a limit, but I have a database which nearly all the tables (150+, 2 of which contain over 200,000 records) are linked from SQL Server, and I have a query that links 8 of them with no problem whatsoever...... Paul Hartland Message Received: Feb 08 2007, 03:16 PM From: "Keith Williamson" To: "Access Developers discussion and problem solving" Cc: Subject: [AccessD] Linked Table Limits? Hi all, Does anyone know if there are limits to the number of linked tables (to a SQL database) that can be included in an Access query? I have a query that joins (2) linked tables and (2) local Access tables. That runs very fast. However, if I try to add one more linked table to the query.....it simply crashes the database. I've even tried using a sql select statement in the query, to get the data from that last linked table......crashes the database. IF I copy the entire linked table to a local table, and then select/join to that table......the query runs fast. When I try exporting the query, with the select statement to the linked table.....my resultant export (incomplete due to the crash) is corrupted. So, my question is....is there some sort of limit to the number of sql tables that I can join, in a query? There doesn't seem to be anything wrong with the sql table I am trying to join. Just very odd. Thanks, Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Paul Hartland paul.hartland at fsmail.net 07730 523179 From jwcolby at colbyconsulting.com Thu Feb 8 09:28:48 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Thu, 8 Feb 2007 10:28:48 -0500 Subject: [AccessD] Linked Table Limits? In-Reply-To: Message-ID: <001901c74b95$d4c8fae0$657aa8c0@m6805> Hmmm... I think something else is going on. AFAIK you can have every table in your database be out in SQL Server and thus you could have dozens of SQL Server tables in a query. I have to admit that I do not have many "mixed" databases, and the ones I do have tend to use just one or two views from SQL Server. If you have OTHER SQL Server tables, I would try to build queries using those tables to see how they function. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, February 08, 2007 10:16 AM To: Access Developers discussion and problem solving Subject: [AccessD] Linked Table Limits? Hi all, Does anyone know if there are limits to the number of linked tables (to a SQL database) that can be included in an Access query? I have a query that joins (2) linked tables and (2) local Access tables. That runs very fast. However, if I try to add one more linked table to the query.....it simply crashes the database. I've even tried using a sql select statement in the query, to get the data from that last linked table......crashes the database. IF I copy the entire linked table to a local table, and then select/join to that table......the query runs fast. When I try exporting the query, with the select statement to the linked table.....my resultant export (incomplete due to the crash) is corrupted. So, my question is....is there some sort of limit to the number of sql tables that I can join, in a query? There doesn't seem to be anything wrong with the sql table I am trying to join. Just very odd. Thanks, Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mikedorism at verizon.net Thu Feb 8 09:27:01 2007 From: mikedorism at verizon.net (Doris Manning) Date: Thu, 08 Feb 2007 10:27:01 -0500 Subject: [AccessD] Visual Basic Form - Check If Recordset/Field Needs Updating In-Reply-To: <28391916.181731170919585361.JavaMail.www@wwinf3101> References: <28391916.181731170919585361.JavaMail.www@wwinf3101> Message-ID: <000601c74b95$94f0d550$2f01a8c0@Kermit> Hi Paul, I have handled this by binding the Tag property to the same field that the text/value property is bound to. I loop through all the controls on the form and pass the control to a special check revision history process that takes care of the rest. I will send you the code I use offline. Doris Manning Database Administrator Hargrove Inc -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: Thursday, February 08, 2007 2:26 AM To: accessd; dba-vb Subject: [AccessD] Visual Basic Form - Check If Recordset/Field Needs Updating Importance: High To all, Firstly my appologies for cross-posting this on the Access site, the reason for this is I haven't seen much (well very very little to be precise) activity on the VB Group. I am after some advice really, basically I would like to know the best way to check if a recordset/field needs updating. Say if a user has a client record in front of them and doesn't make any changes I need to detect this so I don't have to bother to update any recordsets/fields, but if the user does make a change to any textbox/checkbox/dropdown etc I would like to detect this so that : 1. I can update the recordset/field 2. So I can create a log of the record the user changed (plus if possible the name of the field and what they changed it from and to). So any help on this will be appreciated, I have come up with a couple of solutions but the one seems long winded and the other, I just can't get to work quite right. Thanks in advance for any help on this. Paul Hartland -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Thu Feb 8 09:30:52 2007 From: wdhindman at dejpolsystems.com (William Hindman) Date: Thu, 8 Feb 2007 10:30:52 -0500 Subject: [AccessD] Replicas References: Message-ID: <000201c74b96$1f384ef0$8d4beb44@50NM721> Mark ...look in the Help file under How to make a replicated mdb into a regular mdb. William Hindman ----- Original Message ----- From: "Mark A Matte" To: Sent: Thursday, February 08, 2007 9:44 AM Subject: [AccessD] Replicas > Hello All, > > I have an A97 db that used to be replicated. It is now the design > master...but I get a warning everytime I open it that says This replica > has > exceeded the number of days it can go without being synced...and that I > should delete it? > > This db is the only one left...and does NOT need to be replicated anymore. > How would I fix this? > > Thanks, > > Mark A. Matte > > _________________________________________________________________ > Talk now to your Hotmail contacts with Windows Live Messenger. > http://get.live.com/messenger/overview > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From wdhindman at dejpolsystems.com Thu Feb 8 09:32:19 2007 From: wdhindman at dejpolsystems.com (William Hindman) Date: Thu, 8 Feb 2007 10:32:19 -0500 Subject: [AccessD] Replicas References: <001701c74b93$e6589830$657aa8c0@m6805> Message-ID: <000601c74b96$531410b0$8d4beb44@50NM721> ...only after the flaying and salt rubbing had taken its toll :) William Hindman ----- Original Message ----- From: "JWColby" To: "'Access Developers discussion and problem solving'" Sent: Thursday, February 08, 2007 10:14 AM Subject: Re: [AccessD] Replicas > LOL, you could be burned at the stake in these circles. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow > Sent: Thursday, February 08, 2007 10:02 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Replicas > > Set up linux on your old 386 with 4MB of RAM, then install MySQL... > > Just because I'm feeling a bit sarcastic today! > :o) > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > Sent: Thursday, February 08, 2007 8:44 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] Replicas > > Hello All, > > I have an A97 db that used to be replicated. It is now the design > master...but I get a warning everytime I open it that says This replica > has > exceeded the number of days it can go without being synced...and that I > should delete it? > > This db is the only one left...and does NOT need to be replicated anymore. > How would I fix this? > > Thanks, > > Mark A. Matte > > _________________________________________________________________ > Talk now to your Hotmail contacts with Windows Live Messenger. > http://get.live.com/messenger/overview > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From markamatte at hotmail.com Thu Feb 8 09:47:14 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 08 Feb 2007 15:47:14 +0000 Subject: [AccessD] Replicas In-Reply-To: <000201c74b96$1f384ef0$8d4beb44@50NM721> Message-ID: Thanks William for the advice... ...John and JC...thanks for the humor? >From: "William Hindman" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Replicas >Date: Thu, 8 Feb 2007 10:30:52 -0500 > >Mark > >...look in the Help file under How to make a replicated mdb into a regular >mdb. > >William Hindman > >----- Original Message ----- >From: "Mark A Matte" >To: >Sent: Thursday, February 08, 2007 9:44 AM >Subject: [AccessD] Replicas > > > > Hello All, > > > > I have an A97 db that used to be replicated. It is now the design > > master...but I get a warning everytime I open it that says This replica > > has > > exceeded the number of days it can go without being synced...and that I > > should delete it? > > > > This db is the only one left...and does NOT need to be replicated >anymore. > > How would I fix this? > > > > Thanks, > > > > Mark A. Matte > > > > _________________________________________________________________ > > Talk now to your Hotmail contacts with Windows Live Messenger. > > http://get.live.com/messenger/overview > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Turn searches into helpful donations. Make your search count. http://click4thecause.live.com/search/charity/default.aspx?source=hmemtagline_donation&FORM=WLMTAG From jwcolby at colbyconsulting.com Thu Feb 8 09:51:08 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Thu, 8 Feb 2007 10:51:08 -0500 Subject: [AccessD] Replicas In-Reply-To: <000601c74b96$531410b0$8d4beb44@50NM721> Message-ID: <001a01c74b98$f3f1a2c0$657aa8c0@m6805> I think hot tar and feathers are more common down where you are. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Thursday, February 08, 2007 10:32 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Replicas ...only after the flaying and salt rubbing had taken its toll :) William Hindman ----- Original Message ----- From: "JWColby" To: "'Access Developers discussion and problem solving'" Sent: Thursday, February 08, 2007 10:14 AM Subject: Re: [AccessD] Replicas > LOL, you could be burned at the stake in these circles. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow > Sent: Thursday, February 08, 2007 10:02 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Replicas > > Set up linux on your old 386 with 4MB of RAM, then install MySQL... > > Just because I'm feeling a bit sarcastic today! > :o) > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > Sent: Thursday, February 08, 2007 8:44 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] Replicas > > Hello All, > > I have an A97 db that used to be replicated. It is now the design > master...but I get a warning everytime I open it that says This replica > has > exceeded the number of days it can go without being synced...and that I > should delete it? > > This db is the only one left...and does NOT need to be replicated anymore. > How would I fix this? > > Thanks, > > Mark A. Matte > > _________________________________________________________________ > Talk now to your Hotmail contacts with Windows Live Messenger. > http://get.live.com/messenger/overview > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Kwilliamson at RTKL.com Thu Feb 8 10:04:52 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Thu, 8 Feb 2007 11:04:52 -0500 Subject: [AccessD] Linked Table Limits? In-Reply-To: <001901c74b95$d4c8fae0$657aa8c0@m6805> References: <001901c74b95$d4c8fae0$657aa8c0@m6805> Message-ID: I suspect there must be a corrupted record in that particular table. I know I have run queries before with just as many, if not more, joined tables (that are linked to sql database.) I was hoping someone had some quick info about such a situation. But alas, I have to dump the issue on our MIS laps, to investigate the offending table. Thanks, Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, February 08, 2007 10:29 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Linked Table Limits? Hmmm... I think something else is going on. AFAIK you can have every table in your database be out in SQL Server and thus you could have dozens of SQL Server tables in a query. I have to admit that I do not have many "mixed" databases, and the ones I do have tend to use just one or two views from SQL Server. If you have OTHER SQL Server tables, I would try to build queries using those tables to see how they function. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, February 08, 2007 10:16 AM To: Access Developers discussion and problem solving Subject: [AccessD] Linked Table Limits? Hi all, Does anyone know if there are limits to the number of linked tables (to a SQL database) that can be included in an Access query? I have a query that joins (2) linked tables and (2) local Access tables. That runs very fast. However, if I try to add one more linked table to the query.....it simply crashes the database. I've even tried using a sql select statement in the query, to get the data from that last linked table......crashes the database. IF I copy the entire linked table to a local table, and then select/join to that table......the query runs fast. When I try exporting the query, with the select statement to the linked table.....my resultant export (incomplete due to the crash) is corrupted. So, my question is....is there some sort of limit to the number of sql tables that I can join, in a query? There doesn't seem to be anything wrong with the sql table I am trying to join. Just very odd. Thanks, Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Feb 8 10:08:19 2007 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 8 Feb 2007 16:08:19 +0000 Subject: [AccessD] =?iso-8859-1?q?Visual_Basic_Form_-_Check_If_Recordset/F?= =?iso-8859-1?q?ield_Needs=09Updating?= Message-ID: <20070208160824.6A4CE2BA9BC@smtp.nildram.co.uk> If it's a bound form then Me.Dirty will tell you if the record is in an edited but not yet saved state. Won't help with the individual fields though. -- 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] Visual Basic Form - Check If Recordset/Field Needs Updating Date: 08/02/07 15:35 Hi Paul, I have handled this by binding the Tag property to the same field that the text/value property is bound to. I loop through all the controls on the form and pass the control to a special check revision history process that takes care of the rest. I will send you the code I use offline. Doris Manning Database Administrator Hargrove Inc -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: Thursday, February 08, 2007 2:26 AM To: accessd; dba-vb Subject: [AccessD] Visual Basic Form - Check If Recordset/Field Needs Updating Importance: High To all, Firstly my appologies for cross-posting this on the Access site, the reason for this is I haven't seen much (well very very little to be precise) activity on the VB Group. I am after some advice really, basically I would like to know the best way to check if a recordset/field needs updating. Say if a user has a client record in front of them and doesn't make any changes I need to detect this so I don't have to bother to update any recordsets/fields, but if the user does make a change to any textbox/checkbox/dropdown etc I would like to detect this so that : 1. I can update the recordset/field 2. So I can create a log of the record the user changed (plus if possible the name of the field and what they changed it from and to). So any help on this will be appreciated, I have come up with a couple of solutions but the one seems long winded and the other, I just can't get to work quite right. Thanks in advance for any help on this. Paul Hartland -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 From artful at rogers.com Thu Feb 8 10:13:21 2007 From: artful at rogers.com (artful at rogers.com) Date: Thu, 8 Feb 2007 08:13:21 -0800 (PST) Subject: [AccessD] Linked Table Limits? Message-ID: <20070208161321.24702.qmail@web88210.mail.re2.yahoo.com> If memory serves, you cannot use more than 20 tables in a single query. I'll double-check that but I'm fairly sure that's the limit. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: JWColby To: Access Developers discussion and problem solving Sent: Thursday, February 8, 2007 10:28:48 AM Subject: Re: [AccessD] Linked Table Limits? Hmmm... I think something else is going on. AFAIK you can have every table in your database be out in SQL Server and thus you could have dozens of SQL Server tables in a query. I have to admit that I do not have many "mixed" databases, and the ones I do have tend to use just one or two views from SQL Server. If you have OTHER SQL Server tables, I would try to build queries using those tables to see how they function. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, February 08, 2007 10:16 AM To: Access Developers discussion and problem solving Subject: [AccessD] Linked Table Limits? Hi all, Does anyone know if there are limits to the number of linked tables (to a SQL database) that can be included in an Access query? I have a query that joins (2) linked tables and (2) local Access tables. That runs very fast. However, if I try to add one more linked table to the query.....it simply crashes the database. I've even tried using a sql select statement in the query, to get the data from that last linked table......crashes the database. IF I copy the entire linked table to a local table, and then select/join to that table......the query runs fast. When I try exporting the query, with the select statement to the linked table.....my resultant export (incomplete due to the crash) is corrupted. So, my question is....is there some sort of limit to the number of sql tables that I can join, in a query? There doesn't seem to be anything wrong with the sql table I am trying to join. Just very odd. Thanks, Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Thu Feb 8 10:13:24 2007 From: wdhindman at dejpolsystems.com (William Hindman) Date: Thu, 8 Feb 2007 11:13:24 -0500 Subject: [AccessD] Replicas References: <001a01c74b98$f3f1a2c0$657aa8c0@m6805> Message-ID: <001d01c74b9c$0fede9e0$8d4beb44@50NM721> ...shows how little you yankees know, eh ...all the tar pits and chicken ranches round here have been replaced by condos ...but we still know how to flay yankees and rub a bit 'o ocean salt in their wounds, we do :) William Hindman ----- Original Message ----- From: "JWColby" To: "'Access Developers discussion and problem solving'" Sent: Thursday, February 08, 2007 10:51 AM Subject: Re: [AccessD] Replicas >I think hot tar and feathers are more common down where you are. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman > Sent: Thursday, February 08, 2007 10:32 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Replicas > > ...only after the flaying and salt rubbing had taken its toll :) > > William Hindman > ----- Original Message ----- > From: "JWColby" > To: "'Access Developers discussion and problem solving'" > > Sent: Thursday, February 08, 2007 10:14 AM > Subject: Re: [AccessD] Replicas > > >> LOL, you could be burned at the stake in these circles. >> >> John W. Colby >> Colby Consulting >> www.ColbyConsulting.com >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow >> Sent: Thursday, February 08, 2007 10:02 AM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] Replicas >> >> Set up linux on your old 386 with 4MB of RAM, then install MySQL... >> >> Just because I'm feeling a bit sarcastic today! >> :o) >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >> Sent: Thursday, February 08, 2007 8:44 AM >> To: accessd at databaseadvisors.com >> Subject: [AccessD] Replicas >> >> Hello All, >> >> I have an A97 db that used to be replicated. It is now the design >> master...but I get a warning everytime I open it that says This replica >> has >> exceeded the number of days it can go without being synced...and that I >> should delete it? >> >> This db is the only one left...and does NOT need to be replicated >> anymore. >> How would I fix this? >> >> Thanks, >> >> Mark A. Matte >> >> _________________________________________________________________ >> Talk now to your Hotmail contacts with Windows Live Messenger. >> http://get.live.com/messenger/overview >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Feb 8 10:14:22 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Thu, 8 Feb 2007 11:14:22 -0500 Subject: [AccessD] Linked Table Limits? In-Reply-To: Message-ID: <001e01c74b9c$3317d610$657aa8c0@m6805> You may be right. Memo fields are a corruption issue in Access and if there were fields in SQL Server being treated as memos in Access, it could cause problems. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, February 08, 2007 11:05 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Linked Table Limits? I suspect there must be a corrupted record in that particular table. I know I have run queries before with just as many, if not more, joined tables (that are linked to sql database.) I was hoping someone had some quick info about such a situation. But alas, I have to dump the issue on our MIS laps, to investigate the offending table. Thanks, Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, February 08, 2007 10:29 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Linked Table Limits? Hmmm... I think something else is going on. AFAIK you can have every table in your database be out in SQL Server and thus you could have dozens of SQL Server tables in a query. I have to admit that I do not have many "mixed" databases, and the ones I do have tend to use just one or two views from SQL Server. If you have OTHER SQL Server tables, I would try to build queries using those tables to see how they function. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, February 08, 2007 10:16 AM To: Access Developers discussion and problem solving Subject: [AccessD] Linked Table Limits? Hi all, Does anyone know if there are limits to the number of linked tables (to a SQL database) that can be included in an Access query? I have a query that joins (2) linked tables and (2) local Access tables. That runs very fast. However, if I try to add one more linked table to the query.....it simply crashes the database. I've even tried using a sql select statement in the query, to get the data from that last linked table......crashes the database. IF I copy the entire linked table to a local table, and then select/join to that table......the query runs fast. When I try exporting the query, with the select statement to the linked table.....my resultant export (incomplete due to the crash) is corrupted. So, my question is....is there some sort of limit to the number of sql tables that I can join, in a query? There doesn't seem to be anything wrong with the sql table I am trying to join. Just very odd. Thanks, Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From sgoodhall at comcast.net Thu Feb 8 10:15:07 2007 From: sgoodhall at comcast.net (sgoodhall at comcast.net) Date: Thu, 08 Feb 2007 16:15:07 +0000 Subject: [AccessD] Linked Table Limits? Message-ID: <020820071615.12832.45CB4C8B000B8A7200003220220076106404040E080B0101099C@comcast.net> I don't know about the limits on the number of tables, but I can't believe it would be that low. I have run into limits on the number of fields in a query. Nominally this is 255, but some non-obvious things get counted. My personal practice is to put all query logic over into SQL Server Views or Stored Procedures, so I don't run up against this that often. My Client Application retrieves and updates against the Views or invokes Stored Procedures for complex updates. If you define your Access application as an ADP as opposed to an MDB, you can do most of the editing in SQL from the Access Development Environment. Regards, Steve Goodhall, PMP -------------- Original message ---------------------- From: "Keith Williamson" > Hi all, > > > > Does anyone know if there are limits to the number of linked tables (to > a SQL database) that can be included in an Access query? I have a query > that joins (2) linked tables and (2) local Access tables. That runs > very fast. However, if I try to add one more linked table to the > query.....it simply crashes the database. I've even tried using a sql > select statement in the query, to get the data from that last linked > table......crashes the database. IF I copy the entire linked table to a > local table, and then select/join to that table......the query runs > fast. When I try exporting the query, with the select statement to the > linked table.....my resultant export (incomplete due to the crash) is > corrupted. > > > > So, my question is....is there some sort of limit to the number of sql > tables that I can join, in a query? There doesn't seem to be anything > wrong with the sql table I am trying to join. Just very odd. > > > > Thanks, > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From garykjos at gmail.com Thu Feb 8 10:17:43 2007 From: garykjos at gmail.com (Gary Kjos) Date: Thu, 8 Feb 2007 10:17:43 -0600 Subject: [AccessD] Linked Table Limits? In-Reply-To: References: <001901c74b95$d4c8fae0$657aa8c0@m6805> Message-ID: We have an Oracle table in our data warehouse that if we just link to and use the results of that link it works fine but if I put a criteria on anything in that table it blows up and causes an Oracle Error message. It's the Customer Location table and someone wanted all the sales to California. I tried to select by the ship to state and it blew up. I tried it again and it blew up again. And Again. I thought it was something I was doing wrong. Then I did it pulling all records into a temporary table including the state and then selecting only the california sales from there and it worked fine. Go figure. GK On 2/8/07, Keith Williamson wrote: > I suspect there must be a corrupted record in that particular table. I > know I have run queries before with just as many, if not more, joined > tables (that are linked to sql database.) I was hoping someone had some > quick info about such a situation. But alas, I have to dump the issue > on our MIS laps, to investigate the offending table. > > Thanks, > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby > Sent: Thursday, February 08, 2007 10:29 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Linked Table Limits? > > Hmmm... I think something else is going on. AFAIK you can have every > table > in your database be out in SQL Server and thus you could have dozens of > SQL > Server tables in a query. I have to admit that I do not have many > "mixed" > databases, and the ones I do have tend to use just one or two views from > SQL > Server. > > If you have OTHER SQL Server tables, I would try to build queries using > those tables to see how they function. > > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith > Williamson > Sent: Thursday, February 08, 2007 10:16 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Linked Table Limits? > > Hi all, > > > > Does anyone know if there are limits to the number of linked tables (to > a > SQL database) that can be included in an Access query? I have a query > that > joins (2) linked tables and (2) local Access tables. That runs very > fast. > However, if I try to add one more linked table to the query.....it > simply > crashes the database. I've even tried using a sql select statement in > the > query, to get the data from that last linked table......crashes the > database. IF I copy the entire linked table to a local table, and then > select/join to that table......the query runs fast. When I try > exporting > the query, with the select statement to the linked table.....my > resultant > export (incomplete due to the crash) is corrupted. > > > > So, my question is....is there some sort of limit to the number of sql > tables that I can join, in a query? There doesn't seem to be anything > wrong > with the sql table I am trying to join. Just very odd. > > > > Thanks, > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > 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 Kwilliamson at RTKL.com Thu Feb 8 10:35:28 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Thu, 8 Feb 2007 11:35:28 -0500 Subject: [AccessD] Linked Table Limits? In-Reply-To: <20070208161321.24702.qmail@web88210.mail.re2.yahoo.com> References: <20070208161321.24702.qmail@web88210.mail.re2.yahoo.com> Message-ID: Well....MIS tells me there is nothing wrong with the table. This is just counter-intuitive. IF I run the query without the select from (to that linked table)...it runs great. IF I download the data from the linked table, to a local Access table....it runs great. BUT...if I run the query, with the select from the linked table....crash. I only have 4 joined tables (2 local and 2 linked), and the select statement from the linked table. I only have about 40 fields in the entire query. Based on the above, it doesn't appear to be anything wrong with the data (since the downloaded data worked fine.) Maybe I'll try re-linking the table. Can a link get corrupted? Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Thursday, February 08, 2007 11:13 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Linked Table Limits? If memory serves, you cannot use more than 20 tables in a single query. I'll double-check that but I'm fairly sure that's the limit. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: JWColby To: Access Developers discussion and problem solving Sent: Thursday, February 8, 2007 10:28:48 AM Subject: Re: [AccessD] Linked Table Limits? Hmmm... I think something else is going on. AFAIK you can have every table in your database be out in SQL Server and thus you could have dozens of SQL Server tables in a query. I have to admit that I do not have many "mixed" databases, and the ones I do have tend to use just one or two views from SQL Server. If you have OTHER SQL Server tables, I would try to build queries using those tables to see how they function. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, February 08, 2007 10:16 AM To: Access Developers discussion and problem solving Subject: [AccessD] Linked Table Limits? Hi all, Does anyone know if there are limits to the number of linked tables (to a SQL database) that can be included in an Access query? I have a query that joins (2) linked tables and (2) local Access tables. That runs very fast. However, if I try to add one more linked table to the query.....it simply crashes the database. I've even tried using a sql select statement in the query, to get the data from that last linked table......crashes the database. IF I copy the entire linked table to a local table, and then select/join to that table......the query runs fast. When I try exporting the query, with the select statement to the linked table.....my resultant export (incomplete due to the crash) is corrupted. So, my question is....is there some sort of limit to the number of sql tables that I can join, in a query? There doesn't seem to be anything wrong with the sql table I am trying to join. Just very odd. Thanks, Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Kwilliamson at RTKL.com Thu Feb 8 10:46:53 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Thu, 8 Feb 2007 11:46:53 -0500 Subject: [AccessD] Linked Table Limits? In-Reply-To: References: <001901c74b95$d4c8fae0$657aa8c0@m6805> Message-ID: Sounds similar. This sql database is a major software (Architectural/Service Industry....Labor-Based) called Vision. Unfortunately, the designers didn't really seem to have a lot of "vision" when designing it. All the Key fields seem to be text fields......that's right...I said TEXT fields. Employee Number, Project Number, etc. ......ALL TEXT. WHAT WERE THEY THINKING???? <:( Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Thursday, February 08, 2007 11:18 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Linked Table Limits? We have an Oracle table in our data warehouse that if we just link to and use the results of that link it works fine but if I put a criteria on anything in that table it blows up and causes an Oracle Error message. It's the Customer Location table and someone wanted all the sales to California. I tried to select by the ship to state and it blew up. I tried it again and it blew up again. And Again. I thought it was something I was doing wrong. Then I did it pulling all records into a temporary table including the state and then selecting only the california sales from there and it worked fine. Go figure. GK On 2/8/07, Keith Williamson wrote: > I suspect there must be a corrupted record in that particular table. I > know I have run queries before with just as many, if not more, joined > tables (that are linked to sql database.) I was hoping someone had some > quick info about such a situation. But alas, I have to dump the issue > on our MIS laps, to investigate the offending table. > > Thanks, > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby > Sent: Thursday, February 08, 2007 10:29 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Linked Table Limits? > > Hmmm... I think something else is going on. AFAIK you can have every > table > in your database be out in SQL Server and thus you could have dozens of > SQL > Server tables in a query. I have to admit that I do not have many > "mixed" > databases, and the ones I do have tend to use just one or two views from > SQL > Server. > > If you have OTHER SQL Server tables, I would try to build queries using > those tables to see how they function. > > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith > Williamson > Sent: Thursday, February 08, 2007 10:16 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Linked Table Limits? > > Hi all, > > > > Does anyone know if there are limits to the number of linked tables (to > a > SQL database) that can be included in an Access query? I have a query > that > joins (2) linked tables and (2) local Access tables. That runs very > fast. > However, if I try to add one more linked table to the query.....it > simply > crashes the database. I've even tried using a sql select statement in > the > query, to get the data from that last linked table......crashes the > database. IF I copy the entire linked table to a local table, and then > select/join to that table......the query runs fast. When I try > exporting > the query, with the select statement to the linked table.....my > resultant > export (incomplete due to the crash) is corrupted. > > > > So, my question is....is there some sort of limit to the number of sql > tables that I can join, in a query? There doesn't seem to be anything > wrong > with the sql table I am trying to join. Just very odd. > > > > Thanks, > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From garykjos at gmail.com Thu Feb 8 11:18:38 2007 From: garykjos at gmail.com (Gary Kjos) Date: Thu, 8 Feb 2007 11:18:38 -0600 Subject: [AccessD] Linked Table Limits? In-Reply-To: References: <001901c74b95$d4c8fae0$657aa8c0@m6805> Message-ID: Well, I was taught that numbers that you don't expect to do mathematics on SHOULD be stored as text..... perhaps those guys went to my school? ;-) GK On 2/8/07, Keith Williamson wrote: > Sounds similar. This sql database is a major software > (Architectural/Service Industry....Labor-Based) called Vision. > Unfortunately, the designers didn't really seem to have a lot of > "vision" when designing it. All the Key fields seem to be text > fields......that's right...I said TEXT fields. Employee Number, Project > Number, etc. ......ALL TEXT. WHAT WERE THEY THINKING???? > > <:( > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > Sent: Thursday, February 08, 2007 11:18 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Linked Table Limits? > > We have an Oracle table in our data warehouse that if we just link to > and use the results of that link it works fine but if I put a criteria > on anything in that table it blows up and causes an Oracle Error > message. It's the Customer Location table and someone wanted all the > sales to California. I tried to select by the ship to state and it > blew up. I tried it again and it blew up again. And Again. I thought > it was something I was doing wrong. Then I did it pulling all records > into a temporary table including the state and then selecting only the > california sales from there and it worked fine. Go figure. > > GK > > On 2/8/07, Keith Williamson wrote: > > I suspect there must be a corrupted record in that particular table. > I > > know I have run queries before with just as many, if not more, joined > > tables (that are linked to sql database.) I was hoping someone had > some > > quick info about such a situation. But alas, I have to dump the issue > > on our MIS laps, to investigate the offending table. > > > > Thanks, > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > > 21231-3305 > > > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby > > Sent: Thursday, February 08, 2007 10:29 AM > > To: 'Access Developers discussion and problem solving' > > Subject: Re: [AccessD] Linked Table Limits? > > > > Hmmm... I think something else is going on. AFAIK you can have every > > table > > in your database be out in SQL Server and thus you could have dozens > of > > SQL > > Server tables in a query. I have to admit that I do not have many > > "mixed" > > databases, and the ones I do have tend to use just one or two views > from > > SQL > > Server. > > > > If you have OTHER SQL Server tables, I would try to build queries > using > > those tables to see how they function. > > > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith > > Williamson > > Sent: Thursday, February 08, 2007 10:16 AM > > To: Access Developers discussion and problem solving > > Subject: [AccessD] Linked Table Limits? > > > > Hi all, > > > > > > > > Does anyone know if there are limits to the number of linked tables > (to > > a > > SQL database) that can be included in an Access query? I have a query > > that > > joins (2) linked tables and (2) local Access tables. That runs very > > fast. > > However, if I try to add one more linked table to the query.....it > > simply > > crashes the database. I've even tried using a sql select statement in > > the > > query, to get the data from that last linked table......crashes the > > database. IF I copy the entire linked table to a local table, and > then > > select/join to that table......the query runs fast. When I try > > exporting > > the query, with the select statement to the linked table.....my > > resultant > > export (incomplete due to the crash) is corrupted. > > > > > > > > So, my question is....is there some sort of limit to the number of sql > > tables that I can join, in a query? There doesn't seem to be anything > > wrong > > with the sql table I am trying to join. Just very odd. > > > > > > > > Thanks, > > > > > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > > 21231-3305 > > > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > -- > Gary Kjos > garykjos at gmail.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > 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 Kwilliamson at RTKL.com Thu Feb 8 11:41:00 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Thu, 8 Feb 2007 12:41:00 -0500 Subject: [AccessD] Linked Table Limits? In-Reply-To: References: <001901c74b95$d4c8fae0$657aa8c0@m6805> Message-ID: I thought that both Access and Sql do searches much faster on numbers, rather than text. ?? This application is pretty slow. I assumed it was from all the text keys. ?? Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Thursday, February 08, 2007 12:19 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Linked Table Limits? Well, I was taught that numbers that you don't expect to do mathematics on SHOULD be stored as text..... perhaps those guys went to my school? ;-) GK On 2/8/07, Keith Williamson wrote: > Sounds similar. This sql database is a major software > (Architectural/Service Industry....Labor-Based) called Vision. > Unfortunately, the designers didn't really seem to have a lot of > "vision" when designing it. All the Key fields seem to be text > fields......that's right...I said TEXT fields. Employee Number, Project > Number, etc. ......ALL TEXT. WHAT WERE THEY THINKING???? > > <:( > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > Sent: Thursday, February 08, 2007 11:18 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Linked Table Limits? > > We have an Oracle table in our data warehouse that if we just link to > and use the results of that link it works fine but if I put a criteria > on anything in that table it blows up and causes an Oracle Error > message. It's the Customer Location table and someone wanted all the > sales to California. I tried to select by the ship to state and it > blew up. I tried it again and it blew up again. And Again. I thought > it was something I was doing wrong. Then I did it pulling all records > into a temporary table including the state and then selecting only the > california sales from there and it worked fine. Go figure. > > GK > > On 2/8/07, Keith Williamson wrote: > > I suspect there must be a corrupted record in that particular table. > I > > know I have run queries before with just as many, if not more, joined > > tables (that are linked to sql database.) I was hoping someone had > some > > quick info about such a situation. But alas, I have to dump the issue > > on our MIS laps, to investigate the offending table. > > > > Thanks, > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > > 21231-3305 > > > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby > > Sent: Thursday, February 08, 2007 10:29 AM > > To: 'Access Developers discussion and problem solving' > > Subject: Re: [AccessD] Linked Table Limits? > > > > Hmmm... I think something else is going on. AFAIK you can have every > > table > > in your database be out in SQL Server and thus you could have dozens > of > > SQL > > Server tables in a query. I have to admit that I do not have many > > "mixed" > > databases, and the ones I do have tend to use just one or two views > from > > SQL > > Server. > > > > If you have OTHER SQL Server tables, I would try to build queries > using > > those tables to see how they function. > > > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith > > Williamson > > Sent: Thursday, February 08, 2007 10:16 AM > > To: Access Developers discussion and problem solving > > Subject: [AccessD] Linked Table Limits? > > > > Hi all, > > > > > > > > Does anyone know if there are limits to the number of linked tables > (to > > a > > SQL database) that can be included in an Access query? I have a query > > that > > joins (2) linked tables and (2) local Access tables. That runs very > > fast. > > However, if I try to add one more linked table to the query.....it > > simply > > crashes the database. I've even tried using a sql select statement in > > the > > query, to get the data from that last linked table......crashes the > > database. IF I copy the entire linked table to a local table, and > then > > select/join to that table......the query runs fast. When I try > > exporting > > the query, with the select statement to the linked table.....my > > resultant > > export (incomplete due to the crash) is corrupted. > > > > > > > > So, my question is....is there some sort of limit to the number of sql > > tables that I can join, in a query? There doesn't seem to be anything > > wrong > > with the sql table I am trying to join. Just very odd. > > > > > > > > Thanks, > > > > > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > > 21231-3305 > > > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > -- > Gary Kjos > garykjos at gmail.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From garykjos at gmail.com Thu Feb 8 11:53:37 2007 From: garykjos at gmail.com (Gary Kjos) Date: Thu, 8 Feb 2007 11:53:37 -0600 Subject: [AccessD] Linked Table Limits? In-Reply-To: References: <001901c74b95$d4c8fae0$657aa8c0@m6805> Message-ID: Well since a number is normally compressed into fewer bytes than a text field with the same value there would be some economy there with a fewer number of bytes needing to be compared or indexed but if everything is indexed the same I don't know if you would notice a huge difference. No doubt if you get into huge databases with millions of records the compression that numerics bring to the party would make things a lot faster. GK On 2/8/07, Keith Williamson wrote: > I thought that both Access and Sql do searches much faster on numbers, > rather than text. ?? This application is pretty slow. I assumed it > was from all the text keys. ?? > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > Sent: Thursday, February 08, 2007 12:19 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Linked Table Limits? > > Well, I was taught that numbers that you don't expect to do > mathematics on SHOULD be stored as text..... perhaps those guys went > to my school? ;-) > > GK > > On 2/8/07, Keith Williamson wrote: > > Sounds similar. This sql database is a major software > > (Architectural/Service Industry....Labor-Based) called Vision. > > Unfortunately, the designers didn't really seem to have a lot of > > "vision" when designing it. All the Key fields seem to be text > > fields......that's right...I said TEXT fields. Employee Number, > Project > > Number, etc. ......ALL TEXT. WHAT WERE THEY THINKING???? > > > > <:( > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > > 21231-3305 > > > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > > Sent: Thursday, February 08, 2007 11:18 AM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Linked Table Limits? > > > > We have an Oracle table in our data warehouse that if we just link to > > and use the results of that link it works fine but if I put a criteria > > on anything in that table it blows up and causes an Oracle Error > > message. It's the Customer Location table and someone wanted all the > > sales to California. I tried to select by the ship to state and it > > blew up. I tried it again and it blew up again. And Again. I thought > > it was something I was doing wrong. Then I did it pulling all records > > into a temporary table including the state and then selecting only the > > california sales from there and it worked fine. Go figure. > > > > GK > > > > On 2/8/07, Keith Williamson wrote: > > > I suspect there must be a corrupted record in that particular table. > > I > > > know I have run queries before with just as many, if not more, > joined > > > tables (that are linked to sql database.) I was hoping someone had > > some > > > quick info about such a situation. But alas, I have to dump the > issue > > > on our MIS laps, to investigate the offending table. > > > > > > Thanks, > > > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > > > > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > > > 21231-3305 > > > > > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby > > > Sent: Thursday, February 08, 2007 10:29 AM > > > To: 'Access Developers discussion and problem solving' > > > Subject: Re: [AccessD] Linked Table Limits? > > > > > > Hmmm... I think something else is going on. AFAIK you can have > every > > > table > > > in your database be out in SQL Server and thus you could have dozens > > of > > > SQL > > > Server tables in a query. I have to admit that I do not have many > > > "mixed" > > > databases, and the ones I do have tend to use just one or two views > > from > > > SQL > > > Server. > > > > > > If you have OTHER SQL Server tables, I would try to build queries > > using > > > those tables to see how they function. > > > > > > > > > John W. Colby > > > Colby Consulting > > > www.ColbyConsulting.com > > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith > > > Williamson > > > Sent: Thursday, February 08, 2007 10:16 AM > > > To: Access Developers discussion and problem solving > > > Subject: [AccessD] Linked Table Limits? > > > > > > Hi all, > > > > > > > > > > > > Does anyone know if there are limits to the number of linked tables > > (to > > > a > > > SQL database) that can be included in an Access query? I have a > query > > > that > > > joins (2) linked tables and (2) local Access tables. That runs very > > > fast. > > > However, if I try to add one more linked table to the query.....it > > > simply > > > crashes the database. I've even tried using a sql select statement > in > > > the > > > query, to get the data from that last linked table......crashes the > > > database. IF I copy the entire linked table to a local table, and > > then > > > select/join to that table......the query runs fast. When I try > > > exporting > > > the query, with the select statement to the linked table.....my > > > resultant > > > export (incomplete due to the crash) is corrupted. > > > > > > > > > > > > So, my question is....is there some sort of limit to the number of > sql > > > tables that I can join, in a query? There doesn't seem to be > anything > > > wrong > > > with the sql table I am trying to join. Just very odd. > > > > > > > > > > > > Thanks, > > > > > > > > > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > > > > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > > > 21231-3305 > > > > > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > > > > > > > > > > > > > > > -- > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > -- > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > -- > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > > > > -- > > Gary Kjos > > garykjos at gmail.com > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > -- > Gary Kjos > garykjos at gmail.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > 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 accessd at shaw.ca Thu Feb 8 12:39:56 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 08 Feb 2007 10:39:56 -0800 Subject: [AccessD] Linked Table Limits? In-Reply-To: Message-ID: <0JD500D65QF0RSI0@l-daemon> Hi Keith: They do. All databases back before the 90's use to run with text based keys. Is it your job to just run the application or is it your job to run it and repair it? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, February 08, 2007 9:41 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Linked Table Limits? I thought that both Access and Sql do searches much faster on numbers, rather than text. ?? This application is pretty slow. I assumed it was from all the text keys. ?? Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Thursday, February 08, 2007 12:19 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Linked Table Limits? Well, I was taught that numbers that you don't expect to do mathematics on SHOULD be stored as text..... perhaps those guys went to my school? ;-) GK On 2/8/07, Keith Williamson wrote: > Sounds similar. This sql database is a major software > (Architectural/Service Industry....Labor-Based) called Vision. > Unfortunately, the designers didn't really seem to have a lot of > "vision" when designing it. All the Key fields seem to be text > fields......that's right...I said TEXT fields. Employee Number, Project > Number, etc. ......ALL TEXT. WHAT WERE THEY THINKING???? > > <:( > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > Sent: Thursday, February 08, 2007 11:18 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Linked Table Limits? > > We have an Oracle table in our data warehouse that if we just link to > and use the results of that link it works fine but if I put a criteria > on anything in that table it blows up and causes an Oracle Error > message. It's the Customer Location table and someone wanted all the > sales to California. I tried to select by the ship to state and it > blew up. I tried it again and it blew up again. And Again. I thought > it was something I was doing wrong. Then I did it pulling all records > into a temporary table including the state and then selecting only the > california sales from there and it worked fine. Go figure. > > GK > > On 2/8/07, Keith Williamson wrote: > > I suspect there must be a corrupted record in that particular table. > I > > know I have run queries before with just as many, if not more, joined > > tables (that are linked to sql database.) I was hoping someone had > some > > quick info about such a situation. But alas, I have to dump the issue > > on our MIS laps, to investigate the offending table. > > > > Thanks, > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > > 21231-3305 > > > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby > > Sent: Thursday, February 08, 2007 10:29 AM > > To: 'Access Developers discussion and problem solving' > > Subject: Re: [AccessD] Linked Table Limits? > > > > Hmmm... I think something else is going on. AFAIK you can have every > > table > > in your database be out in SQL Server and thus you could have dozens > of > > SQL > > Server tables in a query. I have to admit that I do not have many > > "mixed" > > databases, and the ones I do have tend to use just one or two views > from > > SQL > > Server. > > > > If you have OTHER SQL Server tables, I would try to build queries > using > > those tables to see how they function. > > > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith > > Williamson > > Sent: Thursday, February 08, 2007 10:16 AM > > To: Access Developers discussion and problem solving > > Subject: [AccessD] Linked Table Limits? > > > > Hi all, > > > > > > > > Does anyone know if there are limits to the number of linked tables > (to > > a > > SQL database) that can be included in an Access query? I have a query > > that > > joins (2) linked tables and (2) local Access tables. That runs very > > fast. > > However, if I try to add one more linked table to the query.....it > > simply > > crashes the database. I've even tried using a sql select statement in > > the > > query, to get the data from that last linked table......crashes the > > database. IF I copy the entire linked table to a local table, and > then > > select/join to that table......the query runs fast. When I try > > exporting > > the query, with the select statement to the linked table.....my > > resultant > > export (incomplete due to the crash) is corrupted. > > > > > > > > So, my question is....is there some sort of limit to the number of sql > > tables that I can join, in a query? There doesn't seem to be anything > > wrong > > with the sql table I am trying to join. Just very odd. > > > > > > > > Thanks, > > > > > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > > 21231-3305 > > > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > -- > Gary Kjos > garykjos at gmail.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From saaf at sonic.net Thu Feb 8 13:11:55 2007 From: saaf at sonic.net (steve saaf) Date: Thu, 8 Feb 2007 11:11:55 -0800 Subject: [AccessD] Access and home construction work Message-ID: <002001c74bb5$00077140$a77294d1@loreleisxp> Hello- Anyone have experience with the above and could give any tips/experience/recommendations? Thanks, Steve From mmattys at rochester.rr.com Thu Feb 8 13:29:30 2007 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Thu, 8 Feb 2007 14:29:30 -0500 Subject: [AccessD] Access and home construction work References: <002001c74bb5$00077140$a77294d1@loreleisxp> Message-ID: <039c01c74bb7$758a3a40$0202a8c0@default> Steve, A little vague - are you building homes or are you trying to control all the lights in your house from a database? Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "steve saaf" To: Sent: Thursday, February 08, 2007 2:11 PM Subject: [AccessD] Access and home construction work > Hello- > Anyone have experience with the above and could give any > tips/experience/recommendations? > Thanks, > Steve > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From Kwilliamson at RTKL.com Thu Feb 8 13:33:52 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Thu, 8 Feb 2007 14:33:52 -0500 Subject: [AccessD] Linked Table Limits? In-Reply-To: References: <001901c74b95$d4c8fae0$657aa8c0@m6805> Message-ID: Well....our labor detail table, alone, is 2.5 million records. Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Thursday, February 08, 2007 12:54 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Linked Table Limits? Well since a number is normally compressed into fewer bytes than a text field with the same value there would be some economy there with a fewer number of bytes needing to be compared or indexed but if everything is indexed the same I don't know if you would notice a huge difference. No doubt if you get into huge databases with millions of records the compression that numerics bring to the party would make things a lot faster. GK On 2/8/07, Keith Williamson wrote: > I thought that both Access and Sql do searches much faster on numbers, > rather than text. ?? This application is pretty slow. I assumed it > was from all the text keys. ?? > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > Sent: Thursday, February 08, 2007 12:19 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Linked Table Limits? > > Well, I was taught that numbers that you don't expect to do > mathematics on SHOULD be stored as text..... perhaps those guys went > to my school? ;-) > > GK > > On 2/8/07, Keith Williamson wrote: > > Sounds similar. This sql database is a major software > > (Architectural/Service Industry....Labor-Based) called Vision. > > Unfortunately, the designers didn't really seem to have a lot of > > "vision" when designing it. All the Key fields seem to be text > > fields......that's right...I said TEXT fields. Employee Number, > Project > > Number, etc. ......ALL TEXT. WHAT WERE THEY THINKING???? > > > > <:( > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > > 21231-3305 > > > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > > Sent: Thursday, February 08, 2007 11:18 AM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Linked Table Limits? > > > > We have an Oracle table in our data warehouse that if we just link to > > and use the results of that link it works fine but if I put a criteria > > on anything in that table it blows up and causes an Oracle Error > > message. It's the Customer Location table and someone wanted all the > > sales to California. I tried to select by the ship to state and it > > blew up. I tried it again and it blew up again. And Again. I thought > > it was something I was doing wrong. Then I did it pulling all records > > into a temporary table including the state and then selecting only the > > california sales from there and it worked fine. Go figure. > > > > GK > > > > On 2/8/07, Keith Williamson wrote: > > > I suspect there must be a corrupted record in that particular table. > > I > > > know I have run queries before with just as many, if not more, > joined > > > tables (that are linked to sql database.) I was hoping someone had > > some > > > quick info about such a situation. But alas, I have to dump the > issue > > > on our MIS laps, to investigate the offending table. > > > > > > Thanks, > > > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > > > > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > > > 21231-3305 > > > > > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby > > > Sent: Thursday, February 08, 2007 10:29 AM > > > To: 'Access Developers discussion and problem solving' > > > Subject: Re: [AccessD] Linked Table Limits? > > > > > > Hmmm... I think something else is going on. AFAIK you can have > every > > > table > > > in your database be out in SQL Server and thus you could have dozens > > of > > > SQL > > > Server tables in a query. I have to admit that I do not have many > > > "mixed" > > > databases, and the ones I do have tend to use just one or two views > > from > > > SQL > > > Server. > > > > > > If you have OTHER SQL Server tables, I would try to build queries > > using > > > those tables to see how they function. > > > > > > > > > John W. Colby > > > Colby Consulting > > > www.ColbyConsulting.com > > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith > > > Williamson > > > Sent: Thursday, February 08, 2007 10:16 AM > > > To: Access Developers discussion and problem solving > > > Subject: [AccessD] Linked Table Limits? > > > > > > Hi all, > > > > > > > > > > > > Does anyone know if there are limits to the number of linked tables > > (to > > > a > > > SQL database) that can be included in an Access query? I have a > query > > > that > > > joins (2) linked tables and (2) local Access tables. That runs very > > > fast. > > > However, if I try to add one more linked table to the query.....it > > > simply > > > crashes the database. I've even tried using a sql select statement > in > > > the > > > query, to get the data from that last linked table......crashes the > > > database. IF I copy the entire linked table to a local table, and > > then > > > select/join to that table......the query runs fast. When I try > > > exporting > > > the query, with the select statement to the linked table.....my > > > resultant > > > export (incomplete due to the crash) is corrupted. > > > > > > > > > > > > So, my question is....is there some sort of limit to the number of > sql > > > tables that I can join, in a query? There doesn't seem to be > anything > > > wrong > > > with the sql table I am trying to join. Just very odd. > > > > > > > > > > > > Thanks, > > > > > > > > > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > > > > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > > > 21231-3305 > > > > > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > > > > > > > > > > > > > > > -- > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > -- > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > -- > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > > > > -- > > Gary Kjos > > garykjos at gmail.com > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > -- > Gary Kjos > garykjos at gmail.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Kwilliamson at RTKL.com Thu Feb 8 13:36:30 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Thu, 8 Feb 2007 14:36:30 -0500 Subject: [AccessD] Linked Table Limits? In-Reply-To: <0JD500D65QF0RSI0@l-daemon> References: <0JD500D65QF0RSI0@l-daemon> Message-ID: No. I can't do anything with the base application. My job is to create processes to extract the data (either through the canned reports, or by creating Access queries/forms/reports). I am using Access (instead of just Enterprise Manager, for example) because I am also storing some data, to make my reporting processes better. Thus, I link to the backend tables in the application AND use my own tables in Access, to create meaningful financial reports. Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, February 08, 2007 1:40 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Linked Table Limits? Hi Keith: They do. All databases back before the 90's use to run with text based keys. Is it your job to just run the application or is it your job to run it and repair it? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, February 08, 2007 9:41 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Linked Table Limits? I thought that both Access and Sql do searches much faster on numbers, rather than text. ?? This application is pretty slow. I assumed it was from all the text keys. ?? Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Thursday, February 08, 2007 12:19 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Linked Table Limits? Well, I was taught that numbers that you don't expect to do mathematics on SHOULD be stored as text..... perhaps those guys went to my school? ;-) GK On 2/8/07, Keith Williamson wrote: > Sounds similar. This sql database is a major software > (Architectural/Service Industry....Labor-Based) called Vision. > Unfortunately, the designers didn't really seem to have a lot of > "vision" when designing it. All the Key fields seem to be text > fields......that's right...I said TEXT fields. Employee Number, Project > Number, etc. ......ALL TEXT. WHAT WERE THEY THINKING???? > > <:( > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > Sent: Thursday, February 08, 2007 11:18 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Linked Table Limits? > > We have an Oracle table in our data warehouse that if we just link to > and use the results of that link it works fine but if I put a criteria > on anything in that table it blows up and causes an Oracle Error > message. It's the Customer Location table and someone wanted all the > sales to California. I tried to select by the ship to state and it > blew up. I tried it again and it blew up again. And Again. I thought > it was something I was doing wrong. Then I did it pulling all records > into a temporary table including the state and then selecting only the > california sales from there and it worked fine. Go figure. > > GK > > On 2/8/07, Keith Williamson wrote: > > I suspect there must be a corrupted record in that particular table. > I > > know I have run queries before with just as many, if not more, joined > > tables (that are linked to sql database.) I was hoping someone had > some > > quick info about such a situation. But alas, I have to dump the issue > > on our MIS laps, to investigate the offending table. > > > > Thanks, > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > > 21231-3305 > > > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby > > Sent: Thursday, February 08, 2007 10:29 AM > > To: 'Access Developers discussion and problem solving' > > Subject: Re: [AccessD] Linked Table Limits? > > > > Hmmm... I think something else is going on. AFAIK you can have every > > table > > in your database be out in SQL Server and thus you could have dozens > of > > SQL > > Server tables in a query. I have to admit that I do not have many > > "mixed" > > databases, and the ones I do have tend to use just one or two views > from > > SQL > > Server. > > > > If you have OTHER SQL Server tables, I would try to build queries > using > > those tables to see how they function. > > > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith > > Williamson > > Sent: Thursday, February 08, 2007 10:16 AM > > To: Access Developers discussion and problem solving > > Subject: [AccessD] Linked Table Limits? > > > > Hi all, > > > > > > > > Does anyone know if there are limits to the number of linked tables > (to > > a > > SQL database) that can be included in an Access query? I have a query > > that > > joins (2) linked tables and (2) local Access tables. That runs very > > fast. > > However, if I try to add one more linked table to the query.....it > > simply > > crashes the database. I've even tried using a sql select statement in > > the > > query, to get the data from that last linked table......crashes the > > database. IF I copy the entire linked table to a local table, and > then > > select/join to that table......the query runs fast. When I try > > exporting > > the query, with the select statement to the linked table.....my > > resultant > > export (incomplete due to the crash) is corrupted. > > > > > > > > So, my question is....is there some sort of limit to the number of sql > > tables that I can join, in a query? There doesn't seem to be anything > > wrong > > with the sql table I am trying to join. Just very odd. > > > > > > > > Thanks, > > > > > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > > 21231-3305 > > > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > -- > Gary Kjos > garykjos at gmail.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Kwilliamson at RTKL.com Thu Feb 8 13:45:27 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Thu, 8 Feb 2007 14:45:27 -0500 Subject: [AccessD] Access and home construction work In-Reply-To: <039c01c74bb7$758a3a40$0202a8c0@default> References: <002001c74bb5$00077140$a77294d1@loreleisxp> <039c01c74bb7$758a3a40$0202a8c0@default> Message-ID: I don't know what he is doing....but I should would love to control all the lights in my house, from my computer. :) so....do you have experience with THAT? Lol Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys Sent: Thursday, February 08, 2007 2:30 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and home construction work Steve, A little vague - are you building homes or are you trying to control all the lights in your house from a database? Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "steve saaf" To: Sent: Thursday, February 08, 2007 2:11 PM Subject: [AccessD] Access and home construction work > Hello- > Anyone have experience with the above and could give any > tips/experience/recommendations? > Thanks, > Steve > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Thu Feb 8 13:48:56 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 08 Feb 2007 19:48:56 +0000 Subject: [AccessD] Access and home construction work In-Reply-To: <039c01c74bb7$758a3a40$0202a8c0@default> Message-ID: >A little vague I agree...but I have a 50/50 chance of guessing...(my guess is not the lights)...so... A few years back I worked with a contractor on a bidding tool...?...is that relevant? Thanks, Mark A. Matte >From: "Michael R Mattys" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Access and home construction work >Date: Thu, 8 Feb 2007 14:29:30 -0500 > >Steve, > >A little vague - are you building homes or >are you trying to control all the lights in >your house from a database? > >Michael R. Mattys >MapPoint & Access Dev >www.mattysconsulting.com > >----- Original Message ----- >From: "steve saaf" >To: >Sent: Thursday, February 08, 2007 2:11 PM >Subject: [AccessD] Access and home construction work > > > > Hello- > > Anyone have experience with the above and could give any > > tips/experience/recommendations? > > Thanks, > > Steve > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Search for grocery stores. Find gratitude. Turn a simple search into something more. http://click4thecause.live.com/search/charity/default.aspx?source=hmemtagline_gratitude&FORM=WLMTAG From mmattys at rochester.rr.com Thu Feb 8 13:55:18 2007 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Thu, 8 Feb 2007 14:55:18 -0500 Subject: [AccessD] Access and home construction work References: <002001c74bb5$00077140$a77294d1@loreleisxp> <039c01c74bb7$758a3a40$0202a8c0@default> Message-ID: <03bb01c74bbb$10dc9e90$0202a8c0@default> Nope. Bill Gates has had that feature for years, though. ON / OFF, power or no power - It can't be that difficult :) Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "Keith Williamson" To: "Access Developers discussion and problem solving" Sent: Thursday, February 08, 2007 2:45 PM Subject: Re: [AccessD] Access and home construction work >I don't know what he is doing....but I should would love to control all > the lights in my house, from my computer. :) so....do you have > experience with THAT? Lol > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R > Mattys > Sent: Thursday, February 08, 2007 2:30 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access and home construction work > > Steve, > > A little vague - are you building homes or > are you trying to control all the lights in > your house from a database? > > Michael R. Mattys > MapPoint & Access Dev > www.mattysconsulting.com > > ----- Original Message ----- > From: "steve saaf" > To: > Sent: Thursday, February 08, 2007 2:11 PM > Subject: [AccessD] Access and home construction work > > >> Hello- >> Anyone have experience with the above and could give any >> tips/experience/recommendations? >> Thanks, >> Steve >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From Kwilliamson at RTKL.com Thu Feb 8 14:04:25 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Thu, 8 Feb 2007 15:04:25 -0500 Subject: [AccessD] Access and home construction work In-Reply-To: <03bb01c74bbb$10dc9e90$0202a8c0@default> References: <002001c74bb5$00077140$a77294d1@loreleisxp><039c01c74bb7$758a3a40$0202a8c0@default> <03bb01c74bbb$10dc9e90$0202a8c0@default> Message-ID: I forgot to add that I want it all wireless, flexible, and cheap! ;) Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys Sent: Thursday, February 08, 2007 2:55 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and home construction work Nope. Bill Gates has had that feature for years, though. ON / OFF, power or no power - It can't be that difficult :) Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "Keith Williamson" To: "Access Developers discussion and problem solving" Sent: Thursday, February 08, 2007 2:45 PM Subject: Re: [AccessD] Access and home construction work >I don't know what he is doing....but I should would love to control all > the lights in my house, from my computer. :) so....do you have > experience with THAT? Lol > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R > Mattys > Sent: Thursday, February 08, 2007 2:30 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access and home construction work > > Steve, > > A little vague - are you building homes or > are you trying to control all the lights in > your house from a database? > > Michael R. Mattys > MapPoint & Access Dev > www.mattysconsulting.com > > ----- Original Message ----- > From: "steve saaf" > To: > Sent: Thursday, February 08, 2007 2:11 PM > Subject: [AccessD] Access and home construction work > > >> Hello- >> Anyone have experience with the above and could give any >> tips/experience/recommendations? >> Thanks, >> Steve >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jeffrey.demulling at usbank.com Thu Feb 8 14:03:20 2007 From: jeffrey.demulling at usbank.com (jeffrey.demulling at usbank.com) Date: Thu, 8 Feb 2007 14:03:20 -0600 Subject: [AccessD] Access and home construction work In-Reply-To: <03bb01c74bbb$10dc9e90$0202a8c0@default> Message-ID: http://www.automatedliving.com/ Jeffrey F. Demulling Project Manager U.S. Bank Corporate Trust Services 60 Livingston Avenue EP-MN-WS3C St. Paul, MN 55107-2292 Ph: 651-495-3925 Fax: 651-495-8103 Pager: 888-732-3909 email: jeffrey.demulling at usbank.com Text Messaging: 8887323909 at my2way.com "Michael R Mattys" "Access Developers discussion and Sent by: problem solving" accessd-bounces at d atabaseadvisors.c cc om Subject Re: [AccessD] Access and home 02/08/2007 01:55 construction work PM Please respond to "Access Developers discussion and problem solving" Nope. Bill Gates has had that feature for years, though. ON / OFF, power or no power - It can't be that difficult :) Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "Keith Williamson" To: "Access Developers discussion and problem solving" Sent: Thursday, February 08, 2007 2:45 PM Subject: Re: [AccessD] Access and home construction work >I don't know what he is doing....but I should would love to control all > the lights in my house, from my computer. :) so....do you have > experience with THAT? Lol > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R > Mattys > Sent: Thursday, February 08, 2007 2:30 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access and home construction work > > Steve, > > A little vague - are you building homes or > are you trying to control all the lights in > your house from a database? > > Michael R. Mattys > MapPoint & Access Dev > www.mattysconsulting.com > > ----- Original Message ----- > From: "steve saaf" > To: > Sent: Thursday, February 08, 2007 2:11 PM > Subject: [AccessD] Access and home construction work > > >> Hello- >> Anyone have experience with the above and could give any >> tips/experience/recommendations? >> Thanks, >> Steve >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ------------------------------------------------------------------------------ Electronic Privacy Notice. This e-mail, and any attachments, contains information that is, or may be, covered by electronic communications privacy laws, and is also confidential and proprietary in nature. If you are not the intended recipient, please be advised that you are legally prohibited from retaining, using, copying, distributing, or otherwise disclosing this information in any manner. Instead, please reply to the sender that you have received this communication in error, and then immediately delete it. Thank you in advance for your cooperation. ============================================================================== From reuben at gfconsultants.com Thu Feb 8 14:11:17 2007 From: reuben at gfconsultants.com (Reuben Cummings) Date: Thu, 8 Feb 2007 15:11:17 -0500 Subject: [AccessD] Access and home construction work In-Reply-To: <03bb01c74bbb$10dc9e90$0202a8c0@default> Message-ID: I would love something like this. Our church uses some crap software to control all the lights in the sanctuary. Every light is on a dimmer and it is all controlled via software. However, the interface cannot be changed at all which makes it difficult to setup for different services or weddings. All the titles for each "que button" are always the same. The user simply has to remember what button goes with what que depending on what service is going on. I would like to build a system that the interface (button titles) would change to match the service. Anyone familiar with something like that? I apologize for hijacking this thread. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Michael R > Mattys > Sent: Thursday, February 08, 2007 2:55 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access and home construction work > > > Nope. Bill Gates has had that feature for years, though. > ON / OFF, power or no power - It can't be that difficult :) > > Michael R. Mattys > MapPoint & Access Dev > www.mattysconsulting.com > > ----- Original Message ----- > From: "Keith Williamson" > To: "Access Developers discussion and problem solving" > > Sent: Thursday, February 08, 2007 2:45 PM > Subject: Re: [AccessD] Access and home construction work > > > >I don't know what he is doing....but I should would love to control all > > the lights in my house, from my computer. :) so....do you have > > experience with THAT? Lol > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > > 21231-3305 > > > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R > > Mattys > > Sent: Thursday, February 08, 2007 2:30 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Access and home construction work > > > > Steve, > > > > A little vague - are you building homes or > > are you trying to control all the lights in > > your house from a database? > > > > Michael R. Mattys > > MapPoint & Access Dev > > www.mattysconsulting.com > > > > ----- Original Message ----- > > From: "steve saaf" > > To: > > Sent: Thursday, February 08, 2007 2:11 PM > > Subject: [AccessD] Access and home construction work > > > > > >> Hello- > >> Anyone have experience with the above and could give any > >> tips/experience/recommendations? > >> Thanks, > >> Steve > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jengross at gte.net Thu Feb 8 14:38:40 2007 From: jengross at gte.net (Jennifer Gross) Date: Thu, 08 Feb 2007 12:38:40 -0800 Subject: [AccessD] ADO code stopped working In-Reply-To: Message-ID: <002201c74bc1$1e867c90$6401a8c0@jefferson> I am still stumped. I am moving the code to DAO, since it works fine, even with the Eval statement and no change to the way the parameters are set up. It has to be something outside the code, in network or security, because the ADO works fine on my system, and worked fine on theirs until last week. Something changed in their setup, but we can't identify it. Thanks for everyone's help and the wonderful tangential insights. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, February 07, 2007 6:58 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] ADO code stopped working Hi Marty That is interesting! It appears that - if you specify a parameter by its name - for an explicit parameter the brackets must _not_ be specified, while for an implicit parameter the brackets _must_ be specified. If you don't, an 3265 error will be raised but not before you reach the code line where you pass the parameter value. So this is not the scenario Jennifer sees, as - for her case - the error is raised earlier when you address the Procedures' collection. /gustav >>> martyconnelly at shaw.ca 05-02-2007 21:46:05 >>> I am just wondering if TheQuery has to be run once to compile it? or this ACC2000: How to Use Parameters with ActiveX Data Objects (ADO) and Jet http://support.microsoft.com/kb/225897/en-us Method 3: Using an Implicit Parameter NOTE: Implicit parameter names have brackets ([ ]) around them, and you must use the brackets (or the parameter's ordinal position) when referring to implicit parameters in the Parameters collection. If you do not use the brackets, you receive the following error message: Run-time error '3265': ADO could not find the object in the collection corresponding to the name or ordinal reference requested by the application. PRB: Error 3265 When You Access Properties Collection http://support.microsoft.com/?kbid=201826 http://support.microsoft.com/default.aspx?scid=kb;en-us;223212 Jennifer Gross wrote: >Hi Gustav, > >I have checked all references. The code is compiling. I have created >a test database with one table and one query. It is failing in the >same spot my original database is failing - Set prc = >cat.Procedures("TheQuery") - In the test database I am getting the >error 3265 - Item cannot be found in the collection corresponding to >the requested name or ordinal. The query does exist - no spelling >errors. The same ADO code is working fine on my home office system. It >worked fine at the client's site in January. Any thoughts? > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >Sent: Monday, February 05, 2007 1:47 AM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] ADO code stopped working > > >Hi Jennifer > >You could - for and while debugging - try to separate the connection >object: > > Dim cnn As ADODB.Connection > Dim cmd As ADODB.Command > Dim rst As ADODB.Recordset > Dim prm As ADODB.Parameter > Dim cat As ADOX.Catalog > Dim prc As ADOX.Procedure > > Set cat = New ADOX.Catalog > Set cnn = CurrentProject.Connection > cat.ActiveConnection = cnn > >I guess you have double-checked the reference: > Microsoft ADO Ext. 2.8 for DDL and Security >points to > ..system32\MSADOX.DLL > >/gustav > > > >>>>jengross at gte.net 05-02-2007 05:00 >>> >>>> >>>> >Thanks for the suggestions. I set the references like Marty suggested >and am still getting the problem. I am using the Getz Developers >Handbook code for looping through parameters in a select query: > > Dim cmd As ADODB.Command > Dim rst As ADODB.Recordset > Dim prm As ADODB.Parameter > Dim cat As ADOX.Catalog > Dim prc As ADOX.Procedure > > Set cat = New ADOX.Catalog >* cat.ActiveConnection = CurrentProject.Connection >* Set prc = cat.Procedures("TheQuery") > Set cmd = prc.Command > For Each prm In cmd.Parameters > prm.Value = Eval(prm.Name) > Next prm > Set rst = cmd.Execute > >If I don't use the query with parameters, but instead base the >recordset on the table, then it works fine: > > Set rst = New ADODB.Recordset > Set rst.ActiveConnection = CurrentProject.Connection > rst.CursorType = adOpenForwardOnly > rst.LockType = adLockReadOnly > rst.Open "TheTable" > >I am getting the same results whether the code is in the existing FE or >if I create a new db with the ADO code as Rocky suggested. > >Any thoughts? > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin >at Beach Access Software >Sent: Sunday, February 04, 2007 4:55 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] ADO code stopped working > > >I would whip up a small app with some ado code to see if the problem is >inside your app or outside of it. Does your app compile? > >Rocky > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer >Gross >Sent: Sunday, February 04, 2007 2:05 PM >To: AccessD List >Subject: [AccessD] ADO code stopped working > >Hi Everyone, > >W2K SP4 / A2K SP3 / terminal server > >I have a database that has some DAO and some ADO code. Recently all >ADO stopped working. DAO is still working fine. Anytime code >utilizing ADO runs it shuts down the database abruptly, leaving the LDB >file. We were also having problems with the Windows Management >databases locking up and a reinstall of the latest MDAC took care of >that problem, but did not solve the ADO problem. ADO was working fine >for end of year reporting. There are no missing references. After the >MDAC reinstall I unchecked references, closed down, opened up and >rechecked references. > >Any help would be greatly appreciated. > >Thank you, > >Jennifer Gross >databasics >2839 Shirley Drive >Newbury Park, CA 91320-3068 >office: (805) 480-1921 >fax: (805) 499-0467 > > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This mail is marked as non spam by Pinjo revealer, spamfilter technology. ( http://www.pinjo.nl ) -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From tbadmin at tenbus.co.uk Thu Feb 8 14:11:32 2007 From: tbadmin at tenbus.co.uk (Webadmin - Tenbus) Date: Thu, 8 Feb 2007 20:11:32 -0000 Subject: [AccessD] Access and home construction work In-Reply-To: Message-ID: <006f01c74bbd$5a8f4770$0200a8c0@matilda> I can't do cheap but how about ? Regards! Chris Foote -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: 08 February 2007 20:04 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and home construction work I forgot to add that I want it all wireless, flexible, and cheap! ;) Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys Sent: Thursday, February 08, 2007 2:55 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and home construction work Nope. Bill Gates has had that feature for years, though. ON / OFF, power or no power - It can't be that difficult :) Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "Keith Williamson" To: "Access Developers discussion and problem solving" Sent: Thursday, February 08, 2007 2:45 PM Subject: Re: [AccessD] Access and home construction work >I don't know what he is doing....but I should would love to control all > the lights in my house, from my computer. :) so....do you have > experience with THAT? Lol > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com From Kwilliamson at RTKL.com Thu Feb 8 14:58:29 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Thu, 8 Feb 2007 15:58:29 -0500 Subject: [AccessD] Access and home construction work In-Reply-To: <006f01c74bbd$5a8f4770$0200a8c0@matilda> References: <006f01c74bbd$5a8f4770$0200a8c0@matilda> Message-ID: Interesting. Thanks! Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Webadmin - Tenbus Sent: Thursday, February 08, 2007 3:12 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access and home construction work I can't do cheap but how about ? Regards! Chris Foote -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: 08 February 2007 20:04 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and home construction work I forgot to add that I want it all wireless, flexible, and cheap! ;) Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys Sent: Thursday, February 08, 2007 2:55 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and home construction work Nope. Bill Gates has had that feature for years, though. ON / OFF, power or no power - It can't be that difficult :) Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "Keith Williamson" To: "Access Developers discussion and problem solving" Sent: Thursday, February 08, 2007 2:45 PM Subject: Re: [AccessD] Access and home construction work >I don't know what he is doing....but I should would love to control all > the lights in my house, from my computer. :) so....do you have > experience with THAT? Lol > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Thu Feb 8 16:11:31 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Thu, 8 Feb 2007 16:11:31 -0600 Subject: [AccessD] Access and home construction work Message-ID: Depends how good you are with electronics. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, February 08, 2007 1:45 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and home construction work I don't know what he is doing....but I should would love to control all the lights in my house, from my computer. :) so....do you have experience with THAT? Lol Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys Sent: Thursday, February 08, 2007 2:30 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and home construction work Steve, A little vague - are you building homes or are you trying to control all the lights in your house from a database? Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "steve saaf" To: Sent: Thursday, February 08, 2007 2:11 PM Subject: [AccessD] Access and home construction work > Hello- > Anyone have experience with the above and could give any > tips/experience/recommendations? > Thanks, > Steve > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Feb 8 16:36:34 2007 From: kp at sdsonline.net (Kath Pelletti) Date: Fri, 9 Feb 2007 09:36:34 +1100 Subject: [AccessD] Help with an ActiveX control Message-ID: <001e01c74bd1$96fc3e70$6401a8c0@office> I have downloaded a trial version of a rich text control from Chado (http://www.spelltext.com/aboutspe.htm ). I have added a reference to it, and placed the control on a form. I have opened the properties window and bound that control to my table field. All works OK except that I then need to export that field with all formatting as html. I have contacted Chado support and they tell me "The default is TextRTF, since RTF is the native format for the SpellEditor control. You need to bind the TextHTML property instead, since this will return the HTML equivalent of the RTF". OK - but I can't work out how to do that. If I open the object browser I can see the SpellEditor class and the Texthtml property but I can;t work out how to reference that from my form's vba window. Can someone tell me how to do that?? (NB: I have contacted Chado for further support but there's quite a delay in response time....) ______________________________________ Kath Pelletti Software Design and Solutions Pty Ltd. Ph: 9505-6714 Fax: 9505-6430 Email: KP at SDSOnline.net From martyconnelly at shaw.ca Thu Feb 8 17:26:24 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 08 Feb 2007 15:26:24 -0800 Subject: [AccessD] ADO code stopped working In-Reply-To: <002201c74bc1$1e867c90$6401a8c0@jefferson> References: <002201c74bc1$1e867c90$6401a8c0@jefferson> Message-ID: <45CBB1A0.3070403@shaw.ca> Just a thought, could one site be running a higher MDAC 2.8 SP1 where the property version number would be Msado15.dll 2.81.1117.0 ADO Download MDAC 2.8 SP1 http://www.microsoft.com/downloads/details.aspx?familyid=78cac895-efc2-4f8e-a9e0-3a1afbd5922e&displaylang=en Release manifest for MDAC 2.8 Service Pack 1 (2.81.1117.6) http://support.microsoft.com/kb/899456 If not sure you could run Component Checker: Diagnose problems and reconfigure MDAC installations Tells you what MDAC's are installed on a machine http://support.microsoft.com/kb/307255/ Jennifer Gross wrote: >I am still stumped. I am moving the code to DAO, since it works fine, >even with the Eval statement and no change to the way the parameters are >set up. It has to be something outside the code, in network or >security, because the ADO works fine on my system, and worked fine on >theirs until last week. Something changed in their setup, but we can't >identify it. > >Thanks for everyone's help and the wonderful tangential insights. > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >Sent: Wednesday, February 07, 2007 6:58 AM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] ADO code stopped working > > >Hi Marty > >That is interesting! >It appears that - if you specify a parameter by its name - for an >explicit parameter the brackets must _not_ be specified, while for an >implicit parameter the brackets _must_ be specified. If you don't, an >3265 error will be raised but not before you reach the code line where >you pass the parameter value. So this is not the scenario Jennifer sees, >as - for her case - the error is raised earlier when you address the >Procedures' collection. > >/gustav > > > >>>>martyconnelly at shaw.ca 05-02-2007 21:46:05 >>> >>>> >>>> >I am just wondering if TheQuery has to be run once to compile it? > >or this > >ACC2000: How to Use Parameters with ActiveX Data Objects (ADO) and Jet >http://support.microsoft.com/kb/225897/en-us > >Method 3: Using an Implicit Parameter >NOTE: Implicit parameter names have brackets ([ ]) around them, and you >must use the brackets (or the parameter's ordinal position) when >referring to implicit parameters in the Parameters collection. If you >do not use the brackets, you receive the following error message: >Run-time error '3265': > >ADO could not find the object in the collection corresponding to the >name or ordinal reference requested by the application. > >PRB: Error 3265 When You Access Properties Collection >http://support.microsoft.com/?kbid=201826 > >http://support.microsoft.com/default.aspx?scid=kb;en-us;223212 > >Jennifer Gross wrote: > > > >>Hi Gustav, >> >>I have checked all references. The code is compiling. I have created >>a test database with one table and one query. It is failing in the >>same spot my original database is failing - Set prc = >>cat.Procedures("TheQuery") - In the test database I am getting the >>error 3265 - Item cannot be found in the collection corresponding to >>the requested name or ordinal. The query does exist - no spelling >>errors. The same ADO code is working fine on my home office system. It >> >> > > > >>worked fine at the client's site in January. Any thoughts? >> >>Jennifer >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >>Sent: Monday, February 05, 2007 1:47 AM >>To: accessd at databaseadvisors.com >>Subject: Re: [AccessD] ADO code stopped working >> >> >>Hi Jennifer >> >>You could - for and while debugging - try to separate the connection >>object: >> >> Dim cnn As ADODB.Connection >> Dim cmd As ADODB.Command >> Dim rst As ADODB.Recordset >> Dim prm As ADODB.Parameter >> Dim cat As ADOX.Catalog >> Dim prc As ADOX.Procedure >> >> Set cat = New ADOX.Catalog >> Set cnn = CurrentProject.Connection >> cat.ActiveConnection = cnn >> >>I guess you have double-checked the reference: >> Microsoft ADO Ext. 2.8 for DDL and Security >>points to >> ..system32\MSADOX.DLL >> >>/gustav >> >> >> >> >> >>>>>jengross at gte.net 05-02-2007 05:00 >>> >>>>> >>>>> >>>>> >>>>> >>Thanks for the suggestions. I set the references like Marty suggested >>and am still getting the problem. I am using the Getz Developers >>Handbook code for looping through parameters in a select query: >> >> Dim cmd As ADODB.Command >> Dim rst As ADODB.Recordset >> Dim prm As ADODB.Parameter >> Dim cat As ADOX.Catalog >> Dim prc As ADOX.Procedure >> >> Set cat = New ADOX.Catalog >>* cat.ActiveConnection = CurrentProject.Connection >>* Set prc = cat.Procedures("TheQuery") >> Set cmd = prc.Command >> For Each prm In cmd.Parameters >> prm.Value = Eval(prm.Name) >> Next prm >> Set rst = cmd.Execute >> >>If I don't use the query with parameters, but instead base the >>recordset on the table, then it works fine: >> >> Set rst = New ADODB.Recordset >> Set rst.ActiveConnection = CurrentProject.Connection >> rst.CursorType = adOpenForwardOnly >> rst.LockType = adLockReadOnly >> rst.Open "TheTable" >> >>I am getting the same results whether the code is in the existing FE or >> >> > > > >>if I create a new db with the ADO code as Rocky suggested. >> >>Any thoughts? >> >>Jennifer >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin >>at Beach Access Software >>Sent: Sunday, February 04, 2007 4:55 PM >>To: 'Access Developers discussion and problem solving' >>Subject: Re: [AccessD] ADO code stopped working >> >> >>I would whip up a small app with some ado code to see if the problem is >> >> > > > >>inside your app or outside of it. Does your app compile? >> >>Rocky >> >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer >>Gross >>Sent: Sunday, February 04, 2007 2:05 PM >>To: AccessD List >>Subject: [AccessD] ADO code stopped working >> >>Hi Everyone, >> >>W2K SP4 / A2K SP3 / terminal server >> >>I have a database that has some DAO and some ADO code. Recently all >>ADO stopped working. DAO is still working fine. Anytime code >>utilizing ADO runs it shuts down the database abruptly, leaving the LDB >> >> > > > >>file. We were also having problems with the Windows Management >>databases locking up and a reinstall of the latest MDAC took care of >>that problem, but did not solve the ADO problem. ADO was working fine >>for end of year reporting. There are no missing references. After the >> >> > > > >>MDAC reinstall I unchecked references, closed down, opened up and >>rechecked references. >> >>Any help would be greatly appreciated. >> >>Thank you, >> >>Jennifer Gross >>databasics >>2839 Shirley Drive >>Newbury Park, CA 91320-3068 >>office: (805) 480-1921 >>fax: (805) 499-0467 >> >> >> >> >> > > > -- Marty Connelly Victoria, B.C. Canada From wdhindman at dejpolsystems.com Thu Feb 8 17:53:08 2007 From: wdhindman at dejpolsystems.com (William Hindman) Date: Thu, 8 Feb 2007 18:53:08 -0500 Subject: [AccessD] Help with an ActiveX control References: <001e01c74bd1$96fc3e70$6401a8c0@office> Message-ID: <001201c74bdc$49a3fa40$8d4beb44@50NM721> Kath ...have you looked at Lebans free RTF control www.lebans.com ? William Hindman ----- Original Message ----- From: "Kath Pelletti" To: "Access D Normal List" Sent: Thursday, February 08, 2007 5:36 PM Subject: [AccessD] Help with an ActiveX control >I have downloaded a trial version of a rich text control from Chado >(http://www.spelltext.com/aboutspe.htm ). > > I have added a reference to it, and placed the control on a form. > > I have opened the properties window and bound that control to my table > field. > > All works OK except that I then need to export that field with all > formatting as html. I have contacted Chado support and they tell me "The > default is TextRTF, since RTF is the native format for the SpellEditor > control. You need to bind the TextHTML property instead, since this will > return the HTML equivalent of the RTF". > > OK - but I can't work out how to do that. > > If I open the object browser I can see the SpellEditor class and the > Texthtml property but I can;t work out how to reference that from my > form's vba window. > > Can someone tell me how to do that?? > > (NB: I have contacted Chado for further support but there's quite a delay > in response time....) > > ______________________________________ > Kath Pelletti > Software Design and Solutions Pty Ltd. > Ph: 9505-6714 > Fax: 9505-6430 > Email: KP at SDSOnline.net > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From kp at sdsonline.net Thu Feb 8 17:58:14 2007 From: kp at sdsonline.net (Kath Pelletti) Date: Fri, 9 Feb 2007 10:58:14 +1100 Subject: [AccessD] Help with an ActiveX control References: <001e01c74bd1$96fc3e70$6401a8c0@office> <001201c74bdc$49a3fa40$8d4beb44@50NM721> Message-ID: <006401c74bdc$ff878bb0$6401a8c0@office> Hi William - yeah, I worked with that ...but it seems a bit clumsy to be going with rtf and then finding ways of converting to html (I did try a few conversions). I think it should be simpler to find a control which has an html format option.......... Kath ----- Original Message ----- From: William Hindman To: Access Developers discussion and problem solving Sent: Friday, February 09, 2007 10:53 AM Subject: Re: [AccessD] Help with an ActiveX control Kath ...have you looked at Lebans free RTF control www.lebans.com ? William Hindman ----- Original Message ----- From: "Kath Pelletti" To: "Access D Normal List" Sent: Thursday, February 08, 2007 5:36 PM Subject: [AccessD] Help with an ActiveX control >I have downloaded a trial version of a rich text control from Chado >(http://www.spelltext.com/aboutspe.htm ). > > I have added a reference to it, and placed the control on a form. > > I have opened the properties window and bound that control to my table > field. > > All works OK except that I then need to export that field with all > formatting as html. I have contacted Chado support and they tell me "The > default is TextRTF, since RTF is the native format for the SpellEditor > control. You need to bind the TextHTML property instead, since this will > return the HTML equivalent of the RTF". > > OK - but I can't work out how to do that. > > If I open the object browser I can see the SpellEditor class and the > Texthtml property but I can;t work out how to reference that from my > form's vba window. > > Can someone tell me how to do that?? > > (NB: I have contacted Chado for further support but there's quite a delay > in response time....) > > ______________________________________ > Kath Pelletti > Software Design and Solutions Pty Ltd. > Ph: 9505-6714 > Fax: 9505-6430 > Email: KP at SDSOnline.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 kp at sdsonline.net Thu Feb 8 18:07:30 2007 From: kp at sdsonline.net (Kath Pelletti) Date: Fri, 9 Feb 2007 11:07:30 +1100 Subject: [AccessD] Help with an ActiveX control References: <001e01c74bd1$96fc3e70$6401a8c0@office> <001201c74bdc$49a3fa40$8d4beb44@50NM721> Message-ID: <006f01c74bde$4aa6d960$6401a8c0@office> ..and when I used Access's 'export as html' it was really still rtf inside the html ouput file, so I couldn't get that to work, unfortunately. Kath ----- Original Message ----- From: William Hindman To: Access Developers discussion and problem solving Sent: Friday, February 09, 2007 10:53 AM Subject: Re: [AccessD] Help with an ActiveX control Kath ...have you looked at Lebans free RTF control www.lebans.com ? William Hindman ----- Original Message ----- From: "Kath Pelletti" To: "Access D Normal List" Sent: Thursday, February 08, 2007 5:36 PM Subject: [AccessD] Help with an ActiveX control >I have downloaded a trial version of a rich text control from Chado >(http://www.spelltext.com/aboutspe.htm ). > > I have added a reference to it, and placed the control on a form. > > I have opened the properties window and bound that control to my table > field. > > All works OK except that I then need to export that field with all > formatting as html. I have contacted Chado support and they tell me "The > default is TextRTF, since RTF is the native format for the SpellEditor > control. You need to bind the TextHTML property instead, since this will > return the HTML equivalent of the RTF". > > OK - but I can't work out how to do that. > > If I open the object browser I can see the SpellEditor class and the > Texthtml property but I can;t work out how to reference that from my > form's vba window. > > Can someone tell me how to do that?? > > (NB: I have contacted Chado for further support but there's quite a delay > in response time....) > > ______________________________________ > Kath Pelletti > Software Design and Solutions Pty Ltd. > Ph: 9505-6714 > Fax: 9505-6430 > Email: KP at SDSOnline.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 wdhindman at dejpolsystems.com Thu Feb 8 18:20:10 2007 From: wdhindman at dejpolsystems.com (William Hindman) Date: Thu, 8 Feb 2007 19:20:10 -0500 Subject: [AccessD] Help with an ActiveX control References: <001e01c74bd1$96fc3e70$6401a8c0@office><001201c74bdc$49a3fa40$8d4beb44@50NM721> <006401c74bdc$ff878bb0$6401a8c0@office> Message-ID: <001d01c74be0$10322df0$8d4beb44@50NM721> ...have you asked Lebans? ...he's always on the microsoft.public.access newsgroup and has offered solutions like that before. William Hindman ----- Original Message ----- From: "Kath Pelletti" To: "Access Developers discussion and problem solving" Sent: Thursday, February 08, 2007 6:58 PM Subject: Re: [AccessD] Help with an ActiveX control > Hi William - yeah, I worked with that ...but it seems a bit clumsy to be > going with rtf and then finding ways of converting to html (I did try a > few conversions). > > I think it should be simpler to find a control which has an html format > option.......... > > Kath > ----- Original Message ----- > From: William Hindman > To: Access Developers discussion and problem solving > Sent: Friday, February 09, 2007 10:53 AM > Subject: Re: [AccessD] Help with an ActiveX control > > > Kath > > ...have you looked at Lebans free RTF control www.lebans.com ? > > William Hindman > > ----- Original Message ----- > From: "Kath Pelletti" > To: "Access D Normal List" > Sent: Thursday, February 08, 2007 5:36 PM > Subject: [AccessD] Help with an ActiveX control > > > >I have downloaded a trial version of a rich text control from Chado > >(http://www.spelltext.com/aboutspe.htm ). > > > > I have added a reference to it, and placed the control on a form. > > > > I have opened the properties window and bound that control to my table > > field. > > > > All works OK except that I then need to export that field with all > > formatting as html. I have contacted Chado support and they tell me > "The > > default is TextRTF, since RTF is the native format for the SpellEditor > > control. You need to bind the TextHTML property instead, since this > will > > return the HTML equivalent of the RTF". > > > > OK - but I can't work out how to do that. > > > > If I open the object browser I can see the SpellEditor class and the > > Texthtml property but I can;t work out how to reference that from my > > form's vba window. > > > > Can someone tell me how to do that?? > > > > (NB: I have contacted Chado for further support but there's quite a > delay > > in response time....) > > > > ______________________________________ > > Kath Pelletti > > Software Design and Solutions Pty Ltd. > > Ph: 9505-6714 > > Fax: 9505-6430 > > Email: KP at SDSOnline.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 BarbaraRyan at cox.net Thu Feb 8 18:21:06 2007 From: BarbaraRyan at cox.net (Barbara Ryan) Date: Thu, 8 Feb 2007 19:21:06 -0500 Subject: [AccessD] Queries are messed up! Message-ID: <00a701c74be0$30cfc9f0$0a00a8c0@PCRURI35> In an Access 2002 application, when I need to distribute database object changes, I copy all of the modified objects into a blank database and email it to client sites. They then click a push button in their application which imports all of the objects. Everything has worked great (for years) until now ---- if a query is included in the update, it will import into their application without any relationships (i.e., there are no "lines" between tables) when the query is viewed in design mode on their computer. Also, even if the query only contains one table, all of the selected fields are listed as "Exp1", etc. For example, what used to appear as "EmpNo" now displays as "Expr1:EmpNo". I have duplicated this problem myself by importing the objects into another database on my computer. We (the clients and I) have recently upgraded to Access 2003. Any ideas? Or should I call Ghostbusters again :-( Thanks, Barb Ryan From kp at sdsonline.net Thu Feb 8 18:24:03 2007 From: kp at sdsonline.net (Kath Pelletti) Date: Fri, 9 Feb 2007 11:24:03 +1100 Subject: [AccessD] Help with an ActiveX control References: <001e01c74bd1$96fc3e70$6401a8c0@office><001201c74bdc$49a3fa40$8d4beb44@50NM721><006401c74bdc$ff878bb0$6401a8c0@office> <001d01c74be0$10322df0$8d4beb44@50NM721> Message-ID: <007c01c74be0$9a570460$6401a8c0@office> I'll give it a shot. Kath ----- Original Message ----- From: William Hindman To: Access Developers discussion and problem solving Sent: Friday, February 09, 2007 11:20 AM Subject: Re: [AccessD] Help with an ActiveX control ...have you asked Lebans? ...he's always on the microsoft.public.access newsgroup and has offered solutions like that before. William Hindman ----- Original Message ----- From: "Kath Pelletti" To: "Access Developers discussion and problem solving" Sent: Thursday, February 08, 2007 6:58 PM Subject: Re: [AccessD] Help with an ActiveX control > Hi William - yeah, I worked with that ...but it seems a bit clumsy to be > going with rtf and then finding ways of converting to html (I did try a > few conversions). > > I think it should be simpler to find a control which has an html format > option.......... > > Kath > ----- Original Message ----- > From: William Hindman > To: Access Developers discussion and problem solving > Sent: Friday, February 09, 2007 10:53 AM > Subject: Re: [AccessD] Help with an ActiveX control > > > Kath > > ...have you looked at Lebans free RTF control www.lebans.com ? > > William Hindman > > ----- Original Message ----- > From: "Kath Pelletti" > To: "Access D Normal List" > Sent: Thursday, February 08, 2007 5:36 PM > Subject: [AccessD] Help with an ActiveX control > > > >I have downloaded a trial version of a rich text control from Chado > >(http://www.spelltext.com/aboutspe.htm ). > > > > I have added a reference to it, and placed the control on a form. > > > > I have opened the properties window and bound that control to my table > > field. > > > > All works OK except that I then need to export that field with all > > formatting as html. I have contacted Chado support and they tell me > "The > > default is TextRTF, since RTF is the native format for the SpellEditor > > control. You need to bind the TextHTML property instead, since this > will > > return the HTML equivalent of the RTF". > > > > OK - but I can't work out how to do that. > > > > If I open the object browser I can see the SpellEditor class and the > > Texthtml property but I can;t work out how to reference that from my > > form's vba window. > > > > Can someone tell me how to do that?? > > > > (NB: I have contacted Chado for further support but there's quite a > delay > > in response time....) > > > > ______________________________________ > > Kath Pelletti > > Software Design and Solutions Pty Ltd. > > Ph: 9505-6714 > > Fax: 9505-6430 > > Email: KP at SDSOnline.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 dw-murphy at cox.net Thu Feb 8 18:24:22 2007 From: dw-murphy at cox.net (Doug Murphy) Date: Thu, 8 Feb 2007 16:24:22 -0800 Subject: [AccessD] Help with an ActiveX control In-Reply-To: <006401c74bdc$ff878bb0$6401a8c0@office> Message-ID: <006101c74be0$a5c44790$0200a8c0@murphy3234aaf1> Kathy, Not sure what your original requirement was but Leban has another html editing control on his site. Look at http://www.lebans.com/htmleditor.htm. Don't know anything about this, have only seen it listed. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Thursday, February 08, 2007 3:58 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Help with an ActiveX control Hi William - yeah, I worked with that ...but it seems a bit clumsy to be going with rtf and then finding ways of converting to html (I did try a few conversions). I think it should be simpler to find a control which has an html format option.......... Kath ----- Original Message ----- From: William Hindman To: Access Developers discussion and problem solving Sent: Friday, February 09, 2007 10:53 AM Subject: Re: [AccessD] Help with an ActiveX control Kath ...have you looked at Lebans free RTF control www.lebans.com ? William Hindman ----- Original Message ----- From: "Kath Pelletti" To: "Access D Normal List" Sent: Thursday, February 08, 2007 5:36 PM Subject: [AccessD] Help with an ActiveX control >I have downloaded a trial version of a rich text control from Chado >(http://www.spelltext.com/aboutspe.htm ). > > I have added a reference to it, and placed the control on a form. > > I have opened the properties window and bound that control to my table > field. > > All works OK except that I then need to export that field with all > formatting as html. I have contacted Chado support and they tell me "The > default is TextRTF, since RTF is the native format for the SpellEditor > control. You need to bind the TextHTML property instead, since this will > return the HTML equivalent of the RTF". > > OK - but I can't work out how to do that. > > If I open the object browser I can see the SpellEditor class and the > Texthtml property but I can;t work out how to reference that from my > form's vba window. > > Can someone tell me how to do that?? > > (NB: I have contacted Chado for further support but there's quite a delay > in response time....) > > ______________________________________ > Kath Pelletti > Software Design and Solutions Pty Ltd. > Ph: 9505-6714 > Fax: 9505-6430 > Email: KP at SDSOnline.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 kp at sdsonline.net Thu Feb 8 18:53:30 2007 From: kp at sdsonline.net (Kath Pelletti) Date: Fri, 9 Feb 2007 11:53:30 +1100 Subject: [AccessD] Help with an ActiveX control References: <006101c74be0$a5c44790$0200a8c0@murphy3234aaf1> Message-ID: <00be01c74be4$b7bafc60$6401a8c0@office> Thanks Doug - that seems to be for a difft. purpose. What I am trying to achive is this: Allow users to use full rich text type formatting of a field using as Access form (eg. bold, red header, followed by smaller font next para etc.) Then I need to export that data to an external mdb file which is used for the website. The file needs to include the text with html formatting so that it can be displayed on the website using the same formats the user used in the Access form. Hope that makes sense. Kath ----- Original Message ----- From: Doug Murphy To: 'Access Developers discussion and problem solving' Sent: Friday, February 09, 2007 11:24 AM Subject: Re: [AccessD] Help with an ActiveX control Kathy, Not sure what your original requirement was but Leban has another html editing control on his site. Look at http://www.lebans.com/htmleditor.htm. Don't know anything about this, have only seen it listed. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Thursday, February 08, 2007 3:58 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Help with an ActiveX control Hi William - yeah, I worked with that ...but it seems a bit clumsy to be going with rtf and then finding ways of converting to html (I did try a few conversions). I think it should be simpler to find a control which has an html format option.......... Kath ----- Original Message ----- From: William Hindman To: Access Developers discussion and problem solving Sent: Friday, February 09, 2007 10:53 AM Subject: Re: [AccessD] Help with an ActiveX control Kath ...have you looked at Lebans free RTF control www.lebans.com ? William Hindman ----- Original Message ----- From: "Kath Pelletti" To: "Access D Normal List" Sent: Thursday, February 08, 2007 5:36 PM Subject: [AccessD] Help with an ActiveX control >I have downloaded a trial version of a rich text control from Chado >(http://www.spelltext.com/aboutspe.htm ). > > I have added a reference to it, and placed the control on a form. > > I have opened the properties window and bound that control to my table > field. > > All works OK except that I then need to export that field with all > formatting as html. I have contacted Chado support and they tell me "The > default is TextRTF, since RTF is the native format for the SpellEditor > control. You need to bind the TextHTML property instead, since this will > return the HTML equivalent of the RTF". > > OK - but I can't work out how to do that. > > If I open the object browser I can see the SpellEditor class and the > Texthtml property but I can;t work out how to reference that from my > form's vba window. > > Can someone tell me how to do that?? > > (NB: I have contacted Chado for further support but there's quite a delay > in response time....) > > ______________________________________ > Kath Pelletti > Software Design and Solutions Pty Ltd. > Ph: 9505-6714 > Fax: 9505-6430 > Email: KP at SDSOnline.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 accessd at shaw.ca Thu Feb 8 19:10:42 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 08 Feb 2007 17:10:42 -0800 Subject: [AccessD] Linked Table Limits? In-Reply-To: Message-ID: <0JD600H5X8I98Z70@l-daemon> Hi Keith: Unfortunately that situation limits your ability to resolves what sounds like internal system design limitations. This may be what is causing errors but of course you are limited in the ability to dig into some problems. One main problem may be the use of pass-through-queries. The use of these functions is probably the single greatest cause of slow data access and as well as adding another unstable layer to your application. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, February 08, 2007 11:37 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Linked Table Limits? No. I can't do anything with the base application. My job is to create processes to extract the data (either through the canned reports, or by creating Access queries/forms/reports). I am using Access (instead of just Enterprise Manager, for example) because I am also storing some data, to make my reporting processes better. Thus, I link to the backend tables in the application AND use my own tables in Access, to create meaningful financial reports. Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, February 08, 2007 1:40 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Linked Table Limits? Hi Keith: They do. All databases back before the 90's use to run with text based keys. Is it your job to just run the application or is it your job to run it and repair it? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, February 08, 2007 9:41 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Linked Table Limits? I thought that both Access and Sql do searches much faster on numbers, rather than text. ?? This application is pretty slow. I assumed it was from all the text keys. ?? Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Thursday, February 08, 2007 12:19 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Linked Table Limits? Well, I was taught that numbers that you don't expect to do mathematics on SHOULD be stored as text..... perhaps those guys went to my school? ;-) GK On 2/8/07, Keith Williamson wrote: > Sounds similar. This sql database is a major software > (Architectural/Service Industry....Labor-Based) called Vision. > Unfortunately, the designers didn't really seem to have a lot of > "vision" when designing it. All the Key fields seem to be text > fields......that's right...I said TEXT fields. Employee Number, Project > Number, etc. ......ALL TEXT. WHAT WERE THEY THINKING???? > > <:( > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > Sent: Thursday, February 08, 2007 11:18 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Linked Table Limits? > > We have an Oracle table in our data warehouse that if we just link to > and use the results of that link it works fine but if I put a criteria > on anything in that table it blows up and causes an Oracle Error > message. It's the Customer Location table and someone wanted all the > sales to California. I tried to select by the ship to state and it > blew up. I tried it again and it blew up again. And Again. I thought > it was something I was doing wrong. Then I did it pulling all records > into a temporary table including the state and then selecting only the > california sales from there and it worked fine. Go figure. > > GK > > On 2/8/07, Keith Williamson wrote: > > I suspect there must be a corrupted record in that particular table. > I > > know I have run queries before with just as many, if not more, joined > > tables (that are linked to sql database.) I was hoping someone had > some > > quick info about such a situation. But alas, I have to dump the issue > > on our MIS laps, to investigate the offending table. > > > > Thanks, > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > > 21231-3305 > > > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby > > Sent: Thursday, February 08, 2007 10:29 AM > > To: 'Access Developers discussion and problem solving' > > Subject: Re: [AccessD] Linked Table Limits? > > > > Hmmm... I think something else is going on. AFAIK you can have every > > table > > in your database be out in SQL Server and thus you could have dozens > of > > SQL > > Server tables in a query. I have to admit that I do not have many > > "mixed" > > databases, and the ones I do have tend to use just one or two views > from > > SQL > > Server. > > > > If you have OTHER SQL Server tables, I would try to build queries > using > > those tables to see how they function. > > > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith > > Williamson > > Sent: Thursday, February 08, 2007 10:16 AM > > To: Access Developers discussion and problem solving > > Subject: [AccessD] Linked Table Limits? > > > > Hi all, > > > > > > > > Does anyone know if there are limits to the number of linked tables > (to > > a > > SQL database) that can be included in an Access query? I have a query > > that > > joins (2) linked tables and (2) local Access tables. That runs very > > fast. > > However, if I try to add one more linked table to the query.....it > > simply > > crashes the database. I've even tried using a sql select statement in > > the > > query, to get the data from that last linked table......crashes the > > database. IF I copy the entire linked table to a local table, and > then > > select/join to that table......the query runs fast. When I try > > exporting > > the query, with the select statement to the linked table.....my > > resultant > > export (incomplete due to the crash) is corrupted. > > > > > > > > So, my question is....is there some sort of limit to the number of sql > > tables that I can join, in a query? There doesn't seem to be anything > > wrong > > with the sql table I am trying to join. Just very odd. > > > > > > > > Thanks, > > > > > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > > 21231-3305 > > > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > -- > Gary Kjos > garykjos at gmail.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Feb 8 19:12:26 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 08 Feb 2007 17:12:26 -0800 Subject: [AccessD] Access and home construction work In-Reply-To: Message-ID: <0JD600HRT8L58Y70@l-daemon> What is that saying that ends with '...you can have any 2'? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, February 08, 2007 12:04 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and home construction work I forgot to add that I want it all wireless, flexible, and cheap! ;) Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys Sent: Thursday, February 08, 2007 2:55 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and home construction work Nope. Bill Gates has had that feature for years, though. ON / OFF, power or no power - It can't be that difficult :) Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "Keith Williamson" To: "Access Developers discussion and problem solving" Sent: Thursday, February 08, 2007 2:45 PM Subject: Re: [AccessD] Access and home construction work >I don't know what he is doing....but I should would love to control all > the lights in my house, from my computer. :) so....do you have > experience with THAT? Lol > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R > Mattys > Sent: Thursday, February 08, 2007 2:30 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access and home construction work > > Steve, > > A little vague - are you building homes or > are you trying to control all the lights in > your house from a database? > > Michael R. Mattys > MapPoint & Access Dev > www.mattysconsulting.com > > ----- Original Message ----- > From: "steve saaf" > To: > Sent: Thursday, February 08, 2007 2:11 PM > Subject: [AccessD] Access and home construction work > > >> Hello- >> Anyone have experience with the above and could give any >> tips/experience/recommendations? >> Thanks, >> Steve >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Feb 8 19:13:25 2007 From: kp at sdsonline.net (Kath Pelletti) Date: Fri, 9 Feb 2007 12:13:25 +1100 Subject: [AccessD] Access and home construction work References: <0JD600HRT8L58Y70@l-daemon> Message-ID: <00d601c74be7$8097d070$6401a8c0@office> good, cheap, fast ?? ----- Original Message ----- From: Jim Lawrence To: 'Access Developers discussion and problem solving' Sent: Friday, February 09, 2007 12:12 PM Subject: Re: [AccessD] Access and home construction work What is that saying that ends with '...you can have any 2'? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, February 08, 2007 12:04 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and home construction work I forgot to add that I want it all wireless, flexible, and cheap! ;) Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys Sent: Thursday, February 08, 2007 2:55 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and home construction work Nope. Bill Gates has had that feature for years, though. ON / OFF, power or no power - It can't be that difficult :) Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "Keith Williamson" To: "Access Developers discussion and problem solving" Sent: Thursday, February 08, 2007 2:45 PM Subject: Re: [AccessD] Access and home construction work >I don't know what he is doing....but I should would love to control all > the lights in my house, from my computer. :) so....do you have > experience with THAT? Lol > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R > Mattys > Sent: Thursday, February 08, 2007 2:30 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access and home construction work > > Steve, > > A little vague - are you building homes or > are you trying to control all the lights in > your house from a database? > > Michael R. Mattys > MapPoint & Access Dev > www.mattysconsulting.com > > ----- Original Message ----- > From: "steve saaf" > To: > Sent: Thursday, February 08, 2007 2:11 PM > Subject: [AccessD] Access and home construction work > > >> Hello- >> Anyone have experience with the above and could give any >> tips/experience/recommendations? >> Thanks, >> Steve >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From saaf at sonic.net Thu Feb 8 19:20:47 2007 From: saaf at sonic.net (steve saaf) Date: Thu, 8 Feb 2007 17:20:47 -0800 Subject: [AccessD] in re to:Access and home construction work Message-ID: <001001c74be8$87f3dbb0$6c7294d1@loreleisxp> Yep, wouldn't ya know this newbie goofs on the first query. I want to design a database for a home construction business. I am looking for the gotcha's, as well as tips/hints based on experience. My apologies to those folks who got their hopes up about light's,etc. Thanks, Steve From jeff at boyes.net Thu Feb 8 19:32:25 2007 From: jeff at boyes.net (Jeff) Date: Thu, 8 Feb 2007 18:32:25 -0700 Subject: [AccessD] Access and home construction work Message-ID: <200702090132.l191WJO24142@databaseadvisors.com> Mine is good, and cheap. I have about $500 invested, and can control all the lights, heating/cooling, tv/tivo, garage doors, and hot tub...via any pc, or voice commands from any phone... Www.homeseer.com jeff -----Original Message----- From: "Kath Pelletti" To: "Access Developers discussion and problem solving" Sent: 2/8/07 6:13 PM Subject: Re: [AccessD] Access and home construction work good, cheap, fast ?? ----- Original Message ----- From: Jim Lawrence To: 'Access Developers discussion and problem solving' Sent: Friday, February 09, 2007 12:12 PM Subject: Re: [AccessD] Access and home construction work What is that saying that ends with '...you can have any 2'? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, February 08, 2007 12:04 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and home construction work I forgot to add that I want it all wireless, flexible, and cheap! ;) Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys Sent: Thursday, February 08, 2007 2:55 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and home construction work Nope. Bill Gates has had that feature for years, though. ON / OFF, power or no power - It can't be that difficult :) Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "Keith Williamson" To: "Access Developers discussion and problem solving" Sent: Thursday, February 08, 2007 2:45 PM Subject: Re: [AccessD] Access and home construction work >I don't know what he is doing....but I should would love to control all > the lights in my house, from my computer. :) so....do you have > experience with THAT? Lol > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R > Mattys > Sent: Thursday, February 08, 2007 2:30 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access and home construction work > > Steve, > > A little vague - are you building homes or > are you trying to control all the lights in > your house from a database? > > Michael R. Mattys > MapPoint & Access Dev > www.mattysconsulting.com > > ----- Original Message ----- > From: "steve saaf" > To: > Sent: Thursday, February 08, 2007 2:11 PM > Subject: [AccessD] Access and home construction work > > >> Hello- >> Anyone have experience with the above and could give any >> tips/experience/recommendations? >> Thanks, >> Steve >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jengross at gte.net Thu Feb 8 19:33:36 2007 From: jengross at gte.net (Jennifer Gross) Date: Thu, 08 Feb 2007 17:33:36 -0800 Subject: [AccessD] Access and home construction work In-Reply-To: Message-ID: <002801c74bea$54e6a2a0$6401a8c0@jefferson> My brother is currently building a house - so here a few other providers to throw into the mix. The two main manufacturers of lighting control for new construction are: http://www.vantagecontrols.com/ http://www.lutron.com/ Existing construction can use a variety of other options - a good source is: http://www.smarthome.com/ Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings Sent: Thursday, February 08, 2007 12:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and home construction work I would love something like this. Our church uses some crap software to control all the lights in the sanctuary. Every light is on a dimmer and it is all controlled via software. However, the interface cannot be changed at all which makes it difficult to setup for different services or weddings. All the titles for each "que button" are always the same. The user simply has to remember what button goes with what que depending on what service is going on. I would like to build a system that the interface (button titles) would change to match the service. Anyone familiar with something like that? I apologize for hijacking this thread. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Michael R > Mattys > Sent: Thursday, February 08, 2007 2:55 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access and home construction work > > > Nope. Bill Gates has had that feature for years, though. > ON / OFF, power or no power - It can't be that difficult :) > > Michael R. Mattys > MapPoint & Access Dev > www.mattysconsulting.com > > ----- Original Message ----- > From: "Keith Williamson" > To: "Access Developers discussion and problem solving" > > Sent: Thursday, February 08, 2007 2:45 PM > Subject: Re: [AccessD] Access and home construction work > > > >I don't know what he is doing....but I should would love to control all > > the lights in my house, from my computer. :) so....do you have > > experience with THAT? Lol > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > > 21231-3305 > > > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R > > Mattys > > Sent: Thursday, February 08, 2007 2:30 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Access and home construction work > > > > Steve, > > > > A little vague - are you building homes or > > are you trying to control all the lights in > > your house from a database? > > > > Michael R. Mattys > > MapPoint & Access Dev > > www.mattysconsulting.com > > > > ----- Original Message ----- > > From: "steve saaf" > > To: > > Sent: Thursday, February 08, 2007 2:11 PM > > Subject: [AccessD] Access and home construction work > > > > > >> Hello- > >> Anyone have experience with the above and could give any > >> tips/experience/recommendations? Thanks, > >> Steve > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jeff at boyes.net Thu Feb 8 19:36:51 2007 From: jeff at boyes.net (Jeff) Date: Thu, 8 Feb 2007 18:36:51 -0700 Subject: [AccessD] Access and home construction work Message-ID: <200702090136.l191adO25303@databaseadvisors.com> FWIW, Smarthome is a great resource, but a bit overpriced. Jeff -----Original Message----- From: "Jennifer Gross" To: "'Access Developers discussion and problem solving'" Sent: 2/8/07 6:33 PM Subject: Re: [AccessD] Access and home construction work My brother is currently building a house - so here a few other providers to throw into the mix. The two main manufacturers of lighting control for new construction are: http://www.vantagecontrols.com/ http://www.lutron.com/ Existing construction can use a variety of other options - a good source is: http://www.smarthome.com/ Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings Sent: Thursday, February 08, 2007 12:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and home construction work I would love something like this. Our church uses some crap software to control all the lights in the sanctuary. Every light is on a dimmer and it is all controlled via software. However, the interface cannot be changed at all which makes it difficult to setup for different services or weddings. All the titles for each "que button" are always the same. The user simply has to remember what button goes with what que depending on what service is going on. I would like to build a system that the interface (button titles) would change to match the service. Anyone familiar with something like that? I apologize for hijacking this thread. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Michael R > Mattys > Sent: Thursday, February 08, 2007 2:55 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access and home construction work > > > Nope. Bill Gates has had that feature for years, though. > ON / OFF, power or no power - It can't be that difficult :) > > Michael R. Mattys > MapPoint & Access Dev > www.mattysconsulting.com > > ----- Original Message ----- > From: "Keith Williamson" > To: "Access Developers discussion and problem solving" > > Sent: Thursday, February 08, 2007 2:45 PM > Subject: Re: [AccessD] Access and home construction work > > > >I don't know what he is doing....but I should would love to control all > > the lights in my house, from my computer. :) so....do you have > > experience with THAT? Lol > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > > 21231-3305 > > > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R > > Mattys > > Sent: Thursday, February 08, 2007 2:30 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Access and home construction work > > > > Steve, > > > > A little vague - are you building homes or > > are you trying to control all the lights in > > your house from a database? > > > > Michael R. Mattys > > MapPoint & Access Dev > > www.mattysconsulting.com > > > > ----- Original Message ----- > > From: "steve saaf" > > To: > > Sent: Thursday, February 08, 2007 2:11 PM > > Subject: [AccessD] Access and home construction work > > > > > >> Hello- > >> Anyone have experience with the above and could give any > >> tips/experience/recommendations? Thanks, > >> Steve > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at sc.rr.com Thu Feb 8 22:26:16 2007 From: bheid at sc.rr.com (Bobby Heid) Date: Thu, 8 Feb 2007 23:26:16 -0500 Subject: [AccessD] What type of query.... Message-ID: <004301c74c02$70fb2020$2d01a8c0@bhxp> Hey, I have this scenario Table 1: PID FName Lname Table2: ZID PID TypeID Zip Table3: TypeID Type Note that there are only 2 types, home and work. What I want is to have: Fname Lname HomeZip WorkZip Joe Schmoe 29977 78665 Suzy Chapstick 98847 To do this in one query, what kind of query would I use? Basically, I have a one-to-many relationship and I want to have both zips for each name record. Thanks, Bobby From Gustav at cactus.dk Fri Feb 9 02:36:57 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 09 Feb 2007 09:36:57 +0100 Subject: [AccessD] ADO code stopped working Message-ID: Hi Jennifer Please report your findings. I think Marty is on the right track. The Component Checker at my machine reports version 2.81.1117.0 for msado15.dll and - in general - MDAC 2.8 SP1 on WinXP SP2. I could update to MDAC 2.8 SP2 if I could find it. However, the test I carry out here is very consistent. How many parameters does your query have? /gustav >>> jengross at gte.net 08-02-2007 21:38 >>> I am still stumped. I am moving the code to DAO, since it works fine, even with the Eval statement and no change to the way the parameters are set up. It has to be something outside the code, in network or security, because the ADO works fine on my system, and worked fine on theirs until last week. Something changed in their setup, but we can't identify it. Thanks for everyone's help and the wonderful tangential insights. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, February 07, 2007 6:58 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] ADO code stopped working Hi Marty That is interesting! It appears that - if you specify a parameter by its name - for an explicit parameter the brackets must _not_ be specified, while for an implicit parameter the brackets _must_ be specified. If you don't, an 3265 error will be raised but not before you reach the code line where you pass the parameter value. So this is not the scenario Jennifer sees, as - for her case - the error is raised earlier when you address the Procedures' collection. /gustav >>> martyconnelly at shaw.ca 05-02-2007 21:46:05 >>> I am just wondering if TheQuery has to be run once to compile it? or this ACC2000: How to Use Parameters with ActiveX Data Objects (ADO) and Jet http://support.microsoft.com/kb/225897/en-us Method 3: Using an Implicit Parameter NOTE: Implicit parameter names have brackets ([ ]) around them, and you must use the brackets (or the parameter's ordinal position) when referring to implicit parameters in the Parameters collection. If you do not use the brackets, you receive the following error message: Run-time error '3265': ADO could not find the object in the collection corresponding to the name or ordinal reference requested by the application. PRB: Error 3265 When You Access Properties Collection http://support.microsoft.com/?kbid=201826 http://support.microsoft.com/default.aspx?scid=kb;en-us;223212 Jennifer Gross wrote: >Hi Gustav, > >I have checked all references. The code is compiling. I have created >a test database with one table and one query. It is failing in the >same spot my original database is failing - Set prc = >cat.Procedures("TheQuery") - In the test database I am getting the >error 3265 - Item cannot be found in the collection corresponding to >the requested name or ordinal. The query does exist - no spelling >errors. The same ADO code is working fine on my home office system. It >worked fine at the client's site in January. Any thoughts? > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >Sent: Monday, February 05, 2007 1:47 AM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] ADO code stopped working > > >Hi Jennifer > >You could - for and while debugging - try to separate the connection >object: > > Dim cnn As ADODB.Connection > Dim cmd As ADODB.Command > Dim rst As ADODB.Recordset > Dim prm As ADODB.Parameter > Dim cat As ADOX.Catalog > Dim prc As ADOX.Procedure > > Set cat = New ADOX.Catalog > Set cnn = CurrentProject.Connection > cat.ActiveConnection = cnn > >I guess you have double-checked the reference: > Microsoft ADO Ext. 2.8 for DDL and Security >points to > ..system32\MSADOX.DLL > >/gustav > > > >>>>jengross at gte.net 05-02-2007 05:00 >>> >>>> >>>> >Thanks for the suggestions. I set the references like Marty suggested >and am still getting the problem. I am using the Getz Developers >Handbook code for looping through parameters in a select query: > > Dim cmd As ADODB.Command > Dim rst As ADODB.Recordset > Dim prm As ADODB.Parameter > Dim cat As ADOX.Catalog > Dim prc As ADOX.Procedure > > Set cat = New ADOX.Catalog >* cat.ActiveConnection = CurrentProject.Connection >* Set prc = cat.Procedures("TheQuery") > Set cmd = prc.Command > For Each prm In cmd.Parameters > prm.Value = Eval(prm.Name) > Next prm > Set rst = cmd.Execute > >If I don't use the query with parameters, but instead base the >recordset on the table, then it works fine: > > Set rst = New ADODB.Recordset > Set rst.ActiveConnection = CurrentProject.Connection > rst.CursorType = adOpenForwardOnly > rst.LockType = adLockReadOnly > rst.Open "TheTable" > >I am getting the same results whether the code is in the existing FE or >if I create a new db with the ADO code as Rocky suggested. > >Any thoughts? > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin >at Beach Access Software >Sent: Sunday, February 04, 2007 4:55 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] ADO code stopped working > > >I would whip up a small app with some ado code to see if the problem is >inside your app or outside of it. Does your app compile? > >Rocky > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer >Gross >Sent: Sunday, February 04, 2007 2:05 PM >To: AccessD List >Subject: [AccessD] ADO code stopped working > >Hi Everyone, > >W2K SP4 / A2K SP3 / terminal server > >I have a database that has some DAO and some ADO code. Recently all >ADO stopped working. DAO is still working fine. Anytime code >utilizing ADO runs it shuts down the database abruptly, leaving the LDB >file. We were also having problems with the Windows Management >databases locking up and a reinstall of the latest MDAC took care of >that problem, but did not solve the ADO problem. ADO was working fine >for end of year reporting. There are no missing references. After the >MDAC reinstall I unchecked references, closed down, opened up and >rechecked references. > >Any help would be greatly appreciated. > >Thank you, > >Jennifer Gross >databasics >2839 Shirley Drive >Newbury Park, CA 91320-3068 >office: (805) 480-1921 >fax: (805) 499-0467 From accessd666 at yahoo.com Fri Feb 9 02:40:23 2007 From: accessd666 at yahoo.com (Sad Der) Date: Fri, 9 Feb 2007 00:40:23 -0800 (PST) Subject: [AccessD] Access ADP - Setting connection Message-ID: <721673.48392.qm@web31603.mail.mud.yahoo.com> Hi group, I've got an ADP. In File Connection I've set a connection to a SQL Server 2000 database. I want (Read: DBA wants...) to create an ini file which is in a secure location where the connection info resides. Is this possible? I've created an AutoExec macro that executes a function Main. This function reads an ini file and creates a new connection: Dim cnn As ADODB.Connection Set cnn = New ADODB.Connection With cnn .Provider = "SQLOLEDB" .Properties("Data Source") = "xxxx\yyy01" .Properties("Initial Catalog") = "APP" .Properties("User Id") = "xxxx" .Properties("Password") = "yyyyy" .Properties("Persist Security Info") = False .Open End With After this I excpect a list of tables that reside in this database...however I do not see them. I'm doing something wrong? Did I miss something? TIA Sander ____________________________________________________________________________________ Expecting? Get great news right away with email Auto-Check. Try the Yahoo! Mail Beta. http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html From Gustav at cactus.dk Fri Feb 9 03:49:40 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 09 Feb 2007 10:49:40 +0100 Subject: [AccessD] Access ADP - Setting connection Message-ID: Hi Sander That sounds like a request for a DSN file. Here: http://blogs.ittoolbox.com/visualbasic/munk/archives/database-access-made-simple-9149 you can study this example by Skip Munk: Private Sub cmdADO_Click() 'ADO objects Dim adoConn As ADODB.Connection Dim adoRset As ADODB.Recordset Dim adoField As ADODB.Field 'Other variables Dim intFile As Integer Dim intCol As Integer Dim intRow As Integer Dim strInput As String Dim strConn As String Dim strData As String 'Get a file number. intFile = FreeFile() 'Open the file DSN for input\reading. Open App.Path & "\MS-SQL_Example.dsn" For Input As intFile 'Loop through and read the file one line at a time. Do While Not EOF(intFile) 'Read a single line of the file. Line Input #intFile, strInput 'Ignore the first line of the File DSN. 'Your connection string will through an error 'if you do not eliminate that line. If (InStr(1, strInput, "[ODBC]") = 0) Then 'Append the read line to the connection string. strConn = strConn & IIf((strConn = ""), _ strInput, ";" & strInput) End If '(InStr(1, strInput, "[ODBC]") = 0) Loop 'While Not EOF(intFile) Close #inFile 'Initialized the ADO Connection Object. Set adoConn = New ADODB.Connection 'Set the Connection String. adoConn.ConnectionString = strConn 'Open the connection. adoConn.Open 'Initialize the ADO Recordset with a query 'executed via the Connection Object's Execute method. Set adoRset = adoConn.Execute("select * from authors") 'Print the value of each field for each row in the recordset. Do While (Not adoRset.EOF) 'Scan fields and display contents. For Each adoField In adoRset.Fields Debug.Print adoField.Name & " = " & adoField.Value Next 'Move to the next record in the ADO Recordset. adoRset.MoveNext Loop 'While (Not adoRset.EOF) 'Close the recordset and connection. adoRset.Close adoConn.Close 'Deallocate all objects. Set adoRset = Nothing Set adoConn = Nothing End Sub /gustav >>> accessd666 at yahoo.com 09-02-2007 09:40 >>> Hi group, I've got an ADP. In File Connection I've set a connection to a SQL Server 2000 database. I want (Read: DBA wants...) to create an ini file which is in a secure location where the connection info resides. Is this possible? I've created an AutoExec macro that executes a function Main. This function reads an ini file and creates a new connection: Dim cnn As ADODB.Connection Set cnn = New ADODB.Connection With cnn .Provider = "SQLOLEDB" .Properties("Data Source") = "xxxx\yyy01" .Properties("Initial Catalog") = "APP" .Properties("User Id") = "xxxx" .Properties("Password") = "yyyyy" .Properties("Persist Security Info") = False .Open End With After this I excpect a list of tables that reside in this database...however I do not see them. I'm doing something wrong? Did I miss something? TIA Sander From Gustav at cactus.dk Fri Feb 9 03:51:39 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 09 Feb 2007 10:51:39 +0100 Subject: [AccessD] Help with an ActiveX control Message-ID: Kath You could - gosh - update to Access 2007 and use the free built-in HTML rich text control ... /gustav >>> kp at sdsonline.net 09-02-2007 00:58 >>> I think it should be simpler to find a control which has an html format option.......... From jimdettman at verizon.net Fri Feb 9 06:04:04 2007 From: jimdettman at verizon.net (Jim Dettman) Date: Fri, 09 Feb 2007 07:04:04 -0500 Subject: [AccessD] Linked Table Limits? In-Reply-To: Message-ID: <00bc01c74c42$65805450$8abea8c0@XPS> <> There are optimizations that can be carried out on a text field which cannot be done with a number. It would also allow for fewer indexes (I don't have to index the PK and another field to search). Of course, there is always the flip side; it depends on how big the string fields are. Then of course they were stupid if they are all defined as variable. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, February 08, 2007 11:47 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Linked Table Limits? Sounds similar. This sql database is a major software (Architectural/Service Industry....Labor-Based) called Vision. Unfortunately, the designers didn't really seem to have a lot of "vision" when designing it. All the Key fields seem to be text fields......that's right...I said TEXT fields. Employee Number, Project Number, etc. ......ALL TEXT. WHAT WERE THEY THINKING???? <:( Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Thursday, February 08, 2007 11:18 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Linked Table Limits? We have an Oracle table in our data warehouse that if we just link to and use the results of that link it works fine but if I put a criteria on anything in that table it blows up and causes an Oracle Error message. It's the Customer Location table and someone wanted all the sales to California. I tried to select by the ship to state and it blew up. I tried it again and it blew up again. And Again. I thought it was something I was doing wrong. Then I did it pulling all records into a temporary table including the state and then selecting only the california sales from there and it worked fine. Go figure. GK On 2/8/07, Keith Williamson wrote: > I suspect there must be a corrupted record in that particular table. I > know I have run queries before with just as many, if not more, joined > tables (that are linked to sql database.) I was hoping someone had some > quick info about such a situation. But alas, I have to dump the issue > on our MIS laps, to investigate the offending table. > > Thanks, > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby > Sent: Thursday, February 08, 2007 10:29 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Linked Table Limits? > > Hmmm... I think something else is going on. AFAIK you can have every > table > in your database be out in SQL Server and thus you could have dozens of > SQL > Server tables in a query. I have to admit that I do not have many > "mixed" > databases, and the ones I do have tend to use just one or two views from > SQL > Server. > > If you have OTHER SQL Server tables, I would try to build queries using > those tables to see how they function. > > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith > Williamson > Sent: Thursday, February 08, 2007 10:16 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Linked Table Limits? > > Hi all, > > > > Does anyone know if there are limits to the number of linked tables (to > a > SQL database) that can be included in an Access query? I have a query > that > joins (2) linked tables and (2) local Access tables. That runs very > fast. > However, if I try to add one more linked table to the query.....it > simply > crashes the database. I've even tried using a sql select statement in > the > query, to get the data from that last linked table......crashes the > database. IF I copy the entire linked table to a local table, and then > select/join to that table......the query runs fast. When I try > exporting > the query, with the select statement to the linked table.....my > resultant > export (incomplete due to the crash) is corrupted. > > > > So, my question is....is there some sort of limit to the number of sql > tables that I can join, in a query? There doesn't seem to be anything > wrong > with the sql table I am trying to join. Just very odd. > > > > Thanks, > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Fri Feb 9 06:33:38 2007 From: kp at sdsonline.net (Kath Pelletti) Date: Fri, 9 Feb 2007 23:33:38 +1100 Subject: [AccessD] Help with an ActiveX control References: Message-ID: <000f01c74c46$86d4e770$6401a8c0@office> But - gosh - then I'd have to charge the client to re-test the entire application. Kath ----- Original Message ----- From: Gustav Brock To: accessd at databaseadvisors.com Sent: Friday, February 09, 2007 8:51 PM Subject: Re: [AccessD] Help with an ActiveX control Kath You could - gosh - update to Access 2007 and use the free built-in HTML rich text control ... /gustav >>> kp at sdsonline.net 09-02-2007 00:58 >>> I think it should be simpler to find a control which has an html format option.......... -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Fri Feb 9 07:08:04 2007 From: artful at rogers.com (artful at rogers.com) Date: Fri, 9 Feb 2007 05:08:04 -0800 (PST) Subject: [AccessD] What type of query.... Message-ID: <532935.37475.qm@web88202.mail.re2.yahoo.com> This query works (note: this is SQL 2005 syntax; to make it work in Access, lose the schema-part of the name, i.e. "ZIps."). SELECT HomeType.TypeID, HomeType.TYPE, Zips.People.FName, Zips.People.LName, HomeZips.Zip AS Home, WorkZips.Zip AS [Work] FROM Zips.People INNER JOIN Zips.Zips AS HomeZips ON Zips.People.PID = HomeZips.PID INNER JOIN Zips.Types AS HomeType ON HomeZips.TypeID = HomeType.TypeID INNER JOIN Zips.Zips AS WorkZips ON Zips.People.PID = WorkZips.PID INNER JOIN Zips.Types AS WorkType ON WorkZips.TypeID = WorkType.TypeID WHERE (HomeType.TYPE = 'Home') AND (WorkType.TYPE = 'Work') The trick is to open the Zips table twice qualifying each instance with a criterion that points to 'Home' or 'Work'. hth, Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Bobby Heid To: Access Developers discussion and problem solving Sent: Thursday, February 8, 2007 11:26:16 PM Subject: [AccessD] What type of query.... Hey, I have this scenario Table 1: PID FName Lname Table2: ZID PID TypeID Zip Table3: TypeID Type Note that there are only 2 types, home and work. What I want is to have: Fname Lname HomeZip WorkZip Joe Schmoe 29977 78665 Suzy Chapstick 98847 To do this in one query, what kind of query would I use? Basically, I have a one-to-many relationship and I want to have both zips for each name record. Thanks, Bobby -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Fri Feb 9 08:05:28 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 09 Feb 2007 06:05:28 -0800 Subject: [AccessD] Queries are messed up! In-Reply-To: <00a701c74be0$30cfc9f0$0a00a8c0@PCRURI35> Message-ID: <0JD70060G8DM4K90@l-daemon> Hi Barb: This only happen in a query is when some of the fields or tables requested are not available in the current DB, in this case the clients site. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Barbara Ryan Sent: Thursday, February 08, 2007 4:21 PM To: Access List Subject: [AccessD] Queries are messed up! In an Access 2002 application, when I need to distribute database object changes, I copy all of the modified objects into a blank database and email it to client sites. They then click a push button in their application which imports all of the objects. Everything has worked great (for years) until now ---- if a query is included in the update, it will import into their application without any relationships (i.e., there are no "lines" between tables) when the query is viewed in design mode on their computer. Also, even if the query only contains one table, all of the selected fields are listed as "Exp1", etc. For example, what used to appear as "EmpNo" now displays as "Expr1:EmpNo". I have duplicated this problem myself by importing the objects into another database on my computer. We (the clients and I) have recently upgraded to Access 2003. Any ideas? Or should I call Ghostbusters again :-( Thanks, Barb Ryan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From hollisvj at pgdp.usec.com Fri Feb 9 08:04:00 2007 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Fri, 09 Feb 2007 08:04:00 -0600 Subject: [AccessD] User Form Snapshot Message-ID: <703BDA18A87DFA4CB265A86F42E4178D01E76222@c2k3exchange.pgdp.corp.usec.com> I am trying to create a function that will open the form for users only. I thought I would use the same form as the Data Entry users instead of creating a separate form. They can't update or edit the record, just view. How do you set the controls on the form to locked? Or set it to snapshot? The below function does not work, it does not open it ReadOnly, they can still change the data. Function OpenUserForm() DoCmd.OpenForm "frm_InventoryMain", acNormal, , , acFormReadOnly, acWindowNormal Forms!frm_InventoryMain.cmdAddNew.Visible = False End Function Virginia From jwelz at hotmail.com Fri Feb 9 08:06:19 2007 From: jwelz at hotmail.com (Jurgen Welz) Date: Fri, 09 Feb 2007 07:06:19 -0700 Subject: [AccessD] What type of query.... In-Reply-To: <004301c74c02$70fb2020$2d01a8c0@bhxp> Message-ID: Defining 2 addresses is somewhat limiting. For example, some of the Canadian snowbirds have addresses in Arizona, Mexico or Florida that are active at different times of year. Others have weekend cabins. Some people have a physical address for deliveries and a post office box for mail, or may recieve deliveries at the address of an acquaintance. I have on several occasions had multiple concurrent work addresses. Keeping track of former addresses and time the address was active is often necessary for historical purposes. One example I've run into is where a person is building or buying a home with a fixed possession date and correspondence needs to be sent during the process. Often I've run into cases where a landlord owns many different properties or a person may own a few businesses, each of which maintains a distinct address. Joining aliased tables for an indeterminate number of potential joins is messy. I use a parent Entity form with an addresses subform as a flexible and expandable solution. Generally, in this kind of relationship, I do the reverse as well. An Address parent form with and Entity subform. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: "Bobby Heid" > >Hey, > >I have this scenario > >Table 1: >PID >FName >Lname > >Table2: >ZID >PID >TypeID >Zip > >Table3: >TypeID >Type > >Note that there are only 2 types, home and work. > >What I want is to have: >Fname Lname HomeZip WorkZip >Joe Schmoe 29977 78665 >Suzy Chapstick 98847 > >To do this in one query, what kind of query would I use? Basically, I have >a one-to-many relationship and I want to have both zips for each name >record. > >Thanks, >Bobby _________________________________________________________________ http://local.live.com/default.aspx?v=2&cp=43.658648~-79.383962&style=r&lvl=15&tilt=-90&dir=0&alt=-1000&scene=3702663&cid=7ABE80D1746919B4!1329 >From January 26 to February 8, 2007 From accessd at shaw.ca Fri Feb 9 08:08:45 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 09 Feb 2007 06:08:45 -0800 Subject: [AccessD] Access and home construction work In-Reply-To: <200702090132.l191WJO24142@databaseadvisors.com> Message-ID: <0JD7001O38J3J652@l-daemon> Well, two out of three ain't bad... Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeff Sent: Thursday, February 08, 2007 5:32 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and home construction work Mine is good, and cheap. I have about $500 invested, and can control all the lights, heating/cooling, tv/tivo, garage doors, and hot tub...via any pc, or voice commands from any phone... Www.homeseer.com jeff -----Original Message----- From: "Kath Pelletti" To: "Access Developers discussion and problem solving" Sent: 2/8/07 6:13 PM Subject: Re: [AccessD] Access and home construction work good, cheap, fast ?? ----- Original Message ----- From: Jim Lawrence To: 'Access Developers discussion and problem solving' Sent: Friday, February 09, 2007 12:12 PM Subject: Re: [AccessD] Access and home construction work What is that saying that ends with '...you can have any 2'? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, February 08, 2007 12:04 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and home construction work I forgot to add that I want it all wireless, flexible, and cheap! ;) Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys Sent: Thursday, February 08, 2007 2:55 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and home construction work Nope. Bill Gates has had that feature for years, though. ON / OFF, power or no power - It can't be that difficult :) Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "Keith Williamson" To: "Access Developers discussion and problem solving" Sent: Thursday, February 08, 2007 2:45 PM Subject: Re: [AccessD] Access and home construction work >I don't know what he is doing....but I should would love to control all > the lights in my house, from my computer. :) so....do you have > experience with THAT? Lol > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R > Mattys > Sent: Thursday, February 08, 2007 2:30 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access and home construction work > > Steve, > > A little vague - are you building homes or > are you trying to control all the lights in > your house from a database? > > Michael R. Mattys > MapPoint & Access Dev > www.mattysconsulting.com > > ----- Original Message ----- > From: "steve saaf" > To: > Sent: Thursday, February 08, 2007 2:11 PM > Subject: [AccessD] Access and home construction work > > >> Hello- >> Anyone have experience with the above and could give any >> tips/experience/recommendations? >> Thanks, >> Steve >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Kwilliamson at RTKL.com Fri Feb 9 08:16:24 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Fri, 9 Feb 2007 09:16:24 -0500 Subject: [AccessD] Linked Table Limits? In-Reply-To: <0JD600H5X8I98Z70@l-daemon> References: <0JD600H5X8I98Z70@l-daemon> Message-ID: Hmmm. Well...I have used a couple pass-through-queries. But not within this particular problem. I'll have to look at that. Thanks for the input. Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, February 08, 2007 8:11 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Linked Table Limits? Hi Keith: Unfortunately that situation limits your ability to resolves what sounds like internal system design limitations. This may be what is causing errors but of course you are limited in the ability to dig into some problems. One main problem may be the use of pass-through-queries. The use of these functions is probably the single greatest cause of slow data access and as well as adding another unstable layer to your application. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, February 08, 2007 11:37 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Linked Table Limits? No. I can't do anything with the base application. My job is to create processes to extract the data (either through the canned reports, or by creating Access queries/forms/reports). I am using Access (instead of just Enterprise Manager, for example) because I am also storing some data, to make my reporting processes better. Thus, I link to the backend tables in the application AND use my own tables in Access, to create meaningful financial reports. Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, February 08, 2007 1:40 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Linked Table Limits? Hi Keith: They do. All databases back before the 90's use to run with text based keys. Is it your job to just run the application or is it your job to run it and repair it? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, February 08, 2007 9:41 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Linked Table Limits? I thought that both Access and Sql do searches much faster on numbers, rather than text. ?? This application is pretty slow. I assumed it was from all the text keys. ?? Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Thursday, February 08, 2007 12:19 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Linked Table Limits? Well, I was taught that numbers that you don't expect to do mathematics on SHOULD be stored as text..... perhaps those guys went to my school? ;-) GK On 2/8/07, Keith Williamson wrote: > Sounds similar. This sql database is a major software > (Architectural/Service Industry....Labor-Based) called Vision. > Unfortunately, the designers didn't really seem to have a lot of > "vision" when designing it. All the Key fields seem to be text > fields......that's right...I said TEXT fields. Employee Number, Project > Number, etc. ......ALL TEXT. WHAT WERE THEY THINKING???? > > <:( > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > Sent: Thursday, February 08, 2007 11:18 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Linked Table Limits? > > We have an Oracle table in our data warehouse that if we just link to > and use the results of that link it works fine but if I put a criteria > on anything in that table it blows up and causes an Oracle Error > message. It's the Customer Location table and someone wanted all the > sales to California. I tried to select by the ship to state and it > blew up. I tried it again and it blew up again. And Again. I thought > it was something I was doing wrong. Then I did it pulling all records > into a temporary table including the state and then selecting only the > california sales from there and it worked fine. Go figure. > > GK > > On 2/8/07, Keith Williamson wrote: > > I suspect there must be a corrupted record in that particular table. > I > > know I have run queries before with just as many, if not more, joined > > tables (that are linked to sql database.) I was hoping someone had > some > > quick info about such a situation. But alas, I have to dump the issue > > on our MIS laps, to investigate the offending table. > > > > Thanks, > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > > 21231-3305 > > > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby > > Sent: Thursday, February 08, 2007 10:29 AM > > To: 'Access Developers discussion and problem solving' > > Subject: Re: [AccessD] Linked Table Limits? > > > > Hmmm... I think something else is going on. AFAIK you can have every > > table > > in your database be out in SQL Server and thus you could have dozens > of > > SQL > > Server tables in a query. I have to admit that I do not have many > > "mixed" > > databases, and the ones I do have tend to use just one or two views > from > > SQL > > Server. > > > > If you have OTHER SQL Server tables, I would try to build queries > using > > those tables to see how they function. > > > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith > > Williamson > > Sent: Thursday, February 08, 2007 10:16 AM > > To: Access Developers discussion and problem solving > > Subject: [AccessD] Linked Table Limits? > > > > Hi all, > > > > > > > > Does anyone know if there are limits to the number of linked tables > (to > > a > > SQL database) that can be included in an Access query? I have a query > > that > > joins (2) linked tables and (2) local Access tables. That runs very > > fast. > > However, if I try to add one more linked table to the query.....it > > simply > > crashes the database. I've even tried using a sql select statement in > > the > > query, to get the data from that last linked table......crashes the > > database. IF I copy the entire linked table to a local table, and > then > > select/join to that table......the query runs fast. When I try > > exporting > > the query, with the select statement to the linked table.....my > > resultant > > export (incomplete due to the crash) is corrupted. > > > > > > > > So, my question is....is there some sort of limit to the number of sql > > tables that I can join, in a query? There doesn't seem to be anything > > wrong > > with the sql table I am trying to join. Just very odd. > > > > > > > > Thanks, > > > > > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > > 21231-3305 > > > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > -- > Gary Kjos > garykjos at gmail.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Kwilliamson at RTKL.com Fri Feb 9 08:21:38 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Fri, 9 Feb 2007 09:21:38 -0500 Subject: [AccessD] Access and home construction work In-Reply-To: <200702090132.l191WJO24142@databaseadvisors.com> References: <200702090132.l191WJO24142@databaseadvisors.com> Message-ID: Cool. Thanks!! Now....if only it could change a diaper.....I'd be in HEAVEN!! :) Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeff Sent: Thursday, February 08, 2007 8:32 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and home construction work Mine is good, and cheap. I have about $500 invested, and can control all the lights, heating/cooling, tv/tivo, garage doors, and hot tub...via any pc, or voice commands from any phone... Www.homeseer.com jeff -----Original Message----- From: "Kath Pelletti" To: "Access Developers discussion and problem solving" Sent: 2/8/07 6:13 PM Subject: Re: [AccessD] Access and home construction work good, cheap, fast ?? ----- Original Message ----- From: Jim Lawrence To: 'Access Developers discussion and problem solving' Sent: Friday, February 09, 2007 12:12 PM Subject: Re: [AccessD] Access and home construction work What is that saying that ends with '...you can have any 2'? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, February 08, 2007 12:04 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and home construction work I forgot to add that I want it all wireless, flexible, and cheap! ;) Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys Sent: Thursday, February 08, 2007 2:55 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and home construction work Nope. Bill Gates has had that feature for years, though. ON / OFF, power or no power - It can't be that difficult :) Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "Keith Williamson" To: "Access Developers discussion and problem solving" Sent: Thursday, February 08, 2007 2:45 PM Subject: Re: [AccessD] Access and home construction work >I don't know what he is doing....but I should would love to control all > the lights in my house, from my computer. :) so....do you have > experience with THAT? Lol > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R > Mattys > Sent: Thursday, February 08, 2007 2:30 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access and home construction work > > Steve, > > A little vague - are you building homes or > are you trying to control all the lights in > your house from a database? > > Michael R. Mattys > MapPoint & Access Dev > www.mattysconsulting.com > > ----- Original Message ----- > From: "steve saaf" > To: > Sent: Thursday, February 08, 2007 2:11 PM > Subject: [AccessD] Access and home construction work > > >> Hello- >> Anyone have experience with the above and could give any >> tips/experience/recommendations? >> Thanks, >> Steve >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From hollisvj at pgdp.usec.com Fri Feb 9 08:23:39 2007 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Fri, 09 Feb 2007 08:23:39 -0600 Subject: [AccessD] Refer Report Sub Message-ID: <703BDA18A87DFA4CB265A86F42E4178D01E76226@c2k3exchange.pgdp.corp.usec.com> How do you refer to a sub report? I do not want the subreport to show records that do not have data. Right now, it still shows the headings for the subreport, but there isn't any data, so I don't want it to show the headings or the report if they are null. Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer) If IsNull(Reports!rpt_FilterSpecial.Report.rpt_FilterSpecialSub.InventoryID ) Then Me.Report.rpt_FilterSpecialSub.Visible = False Else Me.Report.rpt_FilterSpecialSub.Visible = True End If End Sub Virginia From dwaters at usinternet.com Fri Feb 9 08:25:19 2007 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 9 Feb 2007 08:25:19 -0600 Subject: [AccessD] User Form Snapshot In-Reply-To: <10783702.1171030219230.JavaMail.root@sniper54> References: <10783702.1171030219230.JavaMail.root@sniper54> Message-ID: <00f701c74c56$2092d2a0$0200a8c0@danwaters> Hi Virgina, In the Properties list for the form, go to the Data page. Near the bottom you'll find a property called Recordset Type. If you set that to Snapshot, your form will always be read-only. This is set to Dynaset by default. This property could be changed in code during the form's Open event. Dan Waters -----Original Message----- Subject: [AccessD] User Form Snapshot I am trying to create a function that will open the form for users only. I thought I would use the same form as the Data Entry users instead of creating a separate form. They can't update or edit the record, just view. How do you set the controls on the form to locked? Or set it to snapshot? The below function does not work, it does not open it ReadOnly, they can still change the data. Function OpenUserForm() DoCmd.OpenForm "frm_InventoryMain", acNormal, , , acFormReadOnly, acWindowNormal Forms!frm_InventoryMain.cmdAddNew.Visible = False End Function Virginia -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BarbaraRyan at cox.net Fri Feb 9 08:39:00 2007 From: BarbaraRyan at cox.net (Barbara Ryan) Date: Fri, 9 Feb 2007 09:39:00 -0500 Subject: [AccessD] Queries are messed up! References: <0JD70060G8DM4K90@l-daemon> Message-ID: <007601c74c58$09ccacb0$0a00a8c0@PCRURI35> That's what I thought.....however, the client has all the tables referenced in the queries. I even ran on test on my computer with the same weird results. Barb ----- Original Message ----- From: "Jim Lawrence" To: "'Access Developers discussion and problem solving'" Sent: Friday, February 09, 2007 9:05 AM Subject: Re: [AccessD] Queries are messed up! > Hi Barb: > > This only happen in a query is when some of the fields or tables requested > are not available in the current DB, in this case the clients site. > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Barbara Ryan > Sent: Thursday, February 08, 2007 4:21 PM > To: Access List > Subject: [AccessD] Queries are messed up! > > In an Access 2002 application, when I need to distribute database object > changes, I copy all of the modified objects into a blank database and > email > it to client sites. They then click a push button in their application > which imports all of the objects. > > Everything has worked great (for years) until now ---- if a query is > included in the update, it will import into their application without any > relationships (i.e., there are no "lines" between tables) when the query > is > viewed in design mode on their computer. Also, even if the query only > contains one table, all of the selected fields are listed as "Exp1", etc. > For example, what used to appear as "EmpNo" now displays as "Expr1:EmpNo". > > I have duplicated this problem myself by importing the objects into > another > database on my computer. > > We (the clients and I) have recently upgraded to Access 2003. > > Any ideas? Or should I call Ghostbusters again :-( > > Thanks, > Barb Ryan > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From bheid at sc.rr.com Fri Feb 9 09:03:31 2007 From: bheid at sc.rr.com (Bobby Heid) Date: Fri, 9 Feb 2007 10:03:31 -0500 Subject: [AccessD] What type of query.... In-Reply-To: <532935.37475.qm@web88202.mail.re2.yahoo.com> References: <532935.37475.qm@web88202.mail.re2.yahoo.com> Message-ID: <005f01c74c5b$76fe4a20$2d01a8c0@bhxp> Hi Arthur, Thanks for that. One other issue. There may not be a given type of zip (or I guess even no zip in the Zip (table 2) table. This query returns those records that have both. Any ideas? Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Friday, February 09, 2007 8:08 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] What type of query.... This query works (note: this is SQL 2005 syntax; to make it work in Access, lose the schema-part of the name, i.e. "ZIps."). SELECT HomeType.TypeID, HomeType.TYPE, Zips.People.FName, Zips.People.LName, HomeZips.Zip AS Home, WorkZips.Zip AS [Work] FROM Zips.People INNER JOIN Zips.Zips AS HomeZips ON Zips.People.PID = HomeZips.PID INNER JOIN Zips.Types AS HomeType ON HomeZips.TypeID = HomeType.TypeID INNER JOIN Zips.Zips AS WorkZips ON Zips.People.PID = WorkZips.PID INNER JOIN Zips.Types AS WorkType ON WorkZips.TypeID = WorkType.TypeID WHERE (HomeType.TYPE = 'Home') AND (WorkType.TYPE = 'Work') The trick is to open the Zips table twice qualifying each instance with a criterion that points to 'Home' or 'Work'. hth, Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Bobby Heid To: Access Developers discussion and problem solving Sent: Thursday, February 8, 2007 11:26:16 PM Subject: [AccessD] What type of query.... Hey, I have this scenario Table 1: PID FName Lname Table2: ZID PID TypeID Zip Table3: TypeID Type Note that there are only 2 types, home and work. What I want is to have: Fname Lname HomeZip WorkZip Joe Schmoe 29977 78665 Suzy Chapstick 98847 To do this in one query, what kind of query would I use? Basically, I have a one-to-many relationship and I want to have both zips for each name record. Thanks, Bobby -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From garykjos at gmail.com Fri Feb 9 09:08:16 2007 From: garykjos at gmail.com (Gary Kjos) Date: Fri, 9 Feb 2007 09:08:16 -0600 Subject: [AccessD] Queries are messed up! In-Reply-To: <00a701c74be0$30cfc9f0$0a00a8c0@PCRURI35> References: <00a701c74be0$30cfc9f0$0a00a8c0@PCRURI35> Message-ID: A couple of thoughts. First do you have the "Name Autocorrect" options checked or unchecked? I always UNCHECK them so Access doesn't try to get to smart when copying tables and queries etc. Second there is an option under the Import to "Import Relationships" is that checked? It sounds like it is treating the imported query as if the table names have changed between the versions. Are you sure everything is named exactly the same in both versions? One more thought. And I think this one may be the real answer. If the database that you are using doesn't have any table definitions in it, perhaps the query there is being compiled somehow and since there are no table names it is being confused. You could try including empty tables in that bridge database in order to give the query actual tables to reference in that temporary database. Then you just have to be sure to not import the empty table definitions into the end users database you are intending to update. Good luck figgering it out. GK On 2/8/07, Barbara Ryan wrote: > In an Access 2002 application, when I need to distribute database object changes, I copy all of the modified objects into a blank database and email it to client sites. They then click a push button in their application which imports all of the objects. > > Everything has worked great (for years) until now ---- if a query is included in the update, it will import into their application without any relationships (i.e., there are no "lines" between tables) when the query is viewed in design mode on their computer. Also, even if the query only contains one table, all of the selected fields are listed as "Exp1", etc. For example, what used to appear as "EmpNo" now displays as "Expr1:EmpNo". > > I have duplicated this problem myself by importing the objects into another database on my computer. > > We (the clients and I) have recently upgraded to Access 2003. > > Any ideas? Or should I call Ghostbusters again :-( > > Thanks, > Barb Ryan > -- > 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 markamatte at hotmail.com Fri Feb 9 09:20:03 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 09 Feb 2007 15:20:03 +0000 Subject: [AccessD] in re to:Access and home construction work In-Reply-To: <001001c74be8$87f3dbb0$6c7294d1@loreleisxp> Message-ID: Steve, What would this database do? Some examples:Customer Relations, Payroll, bidding contracts, inventory etc...??? Thanks, Mark A. Matte >From: "steve saaf" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: [AccessD] in re to:Access and home construction work >Date: Thu, 8 Feb 2007 17:20:47 -0800 > >Yep, wouldn't ya know this newbie goofs on the first query. I want to >design a database for a home construction business. I am looking for the >gotcha's, as well as tips/hints based on experience. >My apologies to those folks who got their hopes up about light's,etc. >Thanks, >Steve >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Check out all that glitters with the MSN Entertainment Guide to the Academy Awards? http://movies.msn.com/movies/oscars2007/?icid=ncoscartagline2 From BarbaraRyan at cox.net Fri Feb 9 10:08:12 2007 From: BarbaraRyan at cox.net (Barbara Ryan) Date: Fri, 9 Feb 2007 11:08:12 -0500 Subject: [AccessD] Queries are messed up! References: <00a701c74be0$30cfc9f0$0a00a8c0@PCRURI35> Message-ID: <00b801c74c64$7ff87b60$0a00a8c0@PCRURI35> Gary.... You are absolutely right --- the "Name Autocorrect" options are the culprits --- see http://alexdyb.blogspot.com/2006/05/user-friendly-name-autocorrect-option.html Thanks a Bunch! Barb ----- Original Message ----- From: "Gary Kjos" To: "Access Developers discussion and problem solving" Sent: Friday, February 09, 2007 10:08 AM Subject: Re: [AccessD] Queries are messed up! >A couple of thoughts. First do you have the "Name Autocorrect" options > checked or unchecked? I always UNCHECK them so Access doesn't try to > get to smart when copying tables and queries etc. Second there is an > option under the Import to "Import Relationships" is that checked? > > It sounds like it is treating the imported query as if the table names > have changed between the versions. Are you sure everything is named > exactly the same in both versions? > > One more thought. And I think this one may be the real answer. If the > database that you are using doesn't have any table definitions in it, > perhaps the query there is being compiled somehow and since there are > no table names it is being confused. You could try including empty > tables in that bridge database in order to give the query actual > tables to reference in that temporary database. Then you just have > to be sure to not import the empty table definitions into the end > users database you are intending to update. > > Good luck figgering it out. > > GK > > On 2/8/07, Barbara Ryan wrote: >> In an Access 2002 application, when I need to distribute database object >> changes, I copy all of the modified objects into a blank database and >> email it to client sites. They then click a push button in their >> application which imports all of the objects. >> >> Everything has worked great (for years) until now ---- if a query is >> included in the update, it will import into their application without any >> relationships (i.e., there are no "lines" between tables) when the query >> is viewed in design mode on their computer. Also, even if the query only >> contains one table, all of the selected fields are listed as "Exp1", etc. >> For example, what used to appear as "EmpNo" now displays as >> "Expr1:EmpNo". >> >> I have duplicated this problem myself by importing the objects into >> another database on my computer. >> >> We (the clients and I) have recently upgraded to Access 2003. >> >> Any ideas? Or should I call Ghostbusters again :-( >> >> Thanks, >> Barb Ryan >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > -- > Gary Kjos > garykjos at gmail.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From garykjos at gmail.com Fri Feb 9 10:16:09 2007 From: garykjos at gmail.com (Gary Kjos) Date: Fri, 9 Feb 2007 10:16:09 -0600 Subject: [AccessD] Queries are messed up! In-Reply-To: <00b801c74c64$7ff87b60$0a00a8c0@PCRURI35> References: <00a701c74be0$30cfc9f0$0a00a8c0@PCRURI35> <00b801c74c64$7ff87b60$0a00a8c0@PCRURI35> Message-ID: Yea! Those buggers cause lots of weirdness. Glad I was able to help. GK On 2/9/07, Barbara Ryan wrote: > Gary.... > > You are absolutely right --- the "Name Autocorrect" options are the > culprits --- see > http://alexdyb.blogspot.com/2006/05/user-friendly-name-autocorrect-option.html > > Thanks a Bunch! > Barb > > ----- Original Message ----- > From: "Gary Kjos" > To: "Access Developers discussion and problem solving" > > Sent: Friday, February 09, 2007 10:08 AM > Subject: Re: [AccessD] Queries are messed up! > > > >A couple of thoughts. First do you have the "Name Autocorrect" options > > checked or unchecked? I always UNCHECK them so Access doesn't try to > > get to smart when copying tables and queries etc. Second there is an > > option under the Import to "Import Relationships" is that checked? > > > > It sounds like it is treating the imported query as if the table names > > have changed between the versions. Are you sure everything is named > > exactly the same in both versions? > > > > One more thought. And I think this one may be the real answer. If the > > database that you are using doesn't have any table definitions in it, > > perhaps the query there is being compiled somehow and since there are > > no table names it is being confused. You could try including empty > > tables in that bridge database in order to give the query actual > > tables to reference in that temporary database. Then you just have > > to be sure to not import the empty table definitions into the end > > users database you are intending to update. > > > > Good luck figgering it out. > > > > GK > > > > On 2/8/07, Barbara Ryan wrote: > >> In an Access 2002 application, when I need to distribute database object > >> changes, I copy all of the modified objects into a blank database and > >> email it to client sites. They then click a push button in their > >> application which imports all of the objects. > >> > >> Everything has worked great (for years) until now ---- if a query is > >> included in the update, it will import into their application without any > >> relationships (i.e., there are no "lines" between tables) when the query > >> is viewed in design mode on their computer. Also, even if the query only > >> contains one table, all of the selected fields are listed as "Exp1", etc. > >> For example, what used to appear as "EmpNo" now displays as > >> "Expr1:EmpNo". > >> > >> I have duplicated this problem myself by importing the objects into > >> another database on my computer. > >> > >> We (the clients and I) have recently upgraded to Access 2003. > >> > >> Any ideas? Or should I call Ghostbusters again :-( > >> > >> Thanks, > >> Barb Ryan > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > >> > > > > > > -- > > Gary Kjos > > garykjos at gmail.com > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > -- > 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 artful at rogers.com Fri Feb 9 11:11:11 2007 From: artful at rogers.com (artful at rogers.com) Date: Fri, 9 Feb 2007 09:11:11 -0800 (PST) Subject: [AccessD] What type of query.... Message-ID: <593155.38374.qm@web88206.mail.re2.yahoo.com> A simple way to do it is to break the query into 3 pieces. The table People, plus two views, one for HomeZips and the other for WorkZips: CREATE VIEW [dbo].[Zips_HomeZips_vue] AS SELECT Zips.People.PID, Zips.People.FName, Zips.People.LName, Zips.Zips.Zip AS Home, Zips.Types.TYPE FROM Zips.People INNER JOIN Zips.Zips ON Zips.People.PID = Zips.Zips.PID INNER JOIN Zips.Types ON Zips.Zips.TypeID = Zips.Types.TypeID WHERE (Zips.Types.TYPE = 'Home') GO CREATE VIEW [dbo].[Zips_WorkZips_vue] AS SELECT Zips.People.PID, Zips.People.FName, Zips.People.LName, Zips.Zips.Zip AS [Work], Zips.Types.TYPE FROM Zips.People INNER JOIN Zips.Zips ON Zips.People.PID = Zips.Zips.PID INNER JOIN Zips.Types ON Zips.Zips.TypeID = Zips.Types.TypeID WHERE (Zips.Types.TYPE = 'Work') GO Now just join them all up and run the query: SELECT Zips.People.FName, Zips.People.LName, Zips_HomeZips_vue.Home, Zips_WorkZips_vue.[Work] FROM Zips.People LEFT OUTER JOIN Zips_HomeZips_vue ON Zips.People.PID = Zips_HomeZips_vue.PID LEFT OUTER JOIN Zips_WorkZips_vue ON Zips.People.PID = Zips_WorkZips_vue.PID Note: I like to do things this way because the components are reusable in other contexts, whereas doing the whole thing in a single query solves only the specific problem. I have written about this approach in various places. I call it "atomic and molecular queries". In this case the views are the atoms and the query is the molecule comprised of said atoms. hth, Arthur ----- Original Message ---- From: Bobby Heid To: Access Developers discussion and problem solving Sent: Friday, February 9, 2007 10:03:31 AM Subject: Re: [AccessD] What type of query.... Hi Arthur, Thanks for that. One other issue. There may not be a given type of zip (or I guess even no zip in the Zip (table 2) table. This query returns those records that have both. Any ideas? Thanks, Bobby From bheid at sc.rr.com Fri Feb 9 11:39:48 2007 From: bheid at sc.rr.com (Bobby Heid) Date: Fri, 9 Feb 2007 12:39:48 -0500 Subject: [AccessD] What type of query.... In-Reply-To: <593155.38374.qm@web88206.mail.re2.yahoo.com> References: <593155.38374.qm@web88206.mail.re2.yahoo.com> Message-ID: <009301c74c71$4c0e4ed0$2d01a8c0@bhxp> Thanks! Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Friday, February 09, 2007 12:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] What type of query.... A simple way to do it is to break the query into 3 pieces. The table People, plus two views, one for HomeZips and the other for WorkZips: CREATE VIEW [dbo].[Zips_HomeZips_vue] AS SELECT Zips.People.PID, Zips.People.FName, Zips.People.LName, Zips.Zips.Zip AS Home, Zips.Types.TYPE FROM Zips.People INNER JOIN Zips.Zips ON Zips.People.PID = Zips.Zips.PID INNER JOIN Zips.Types ON Zips.Zips.TypeID = Zips.Types.TypeID WHERE (Zips.Types.TYPE = 'Home') GO CREATE VIEW [dbo].[Zips_WorkZips_vue] AS SELECT Zips.People.PID, Zips.People.FName, Zips.People.LName, Zips.Zips.Zip AS [Work], Zips.Types.TYPE FROM Zips.People INNER JOIN Zips.Zips ON Zips.People.PID = Zips.Zips.PID INNER JOIN Zips.Types ON Zips.Zips.TypeID = Zips.Types.TypeID WHERE (Zips.Types.TYPE = 'Work') GO Now just join them all up and run the query: SELECT Zips.People.FName, Zips.People.LName, Zips_HomeZips_vue.Home, Zips_WorkZips_vue.[Work] FROM Zips.People LEFT OUTER JOIN Zips_HomeZips_vue ON Zips.People.PID = Zips_HomeZips_vue.PID LEFT OUTER JOIN Zips_WorkZips_vue ON Zips.People.PID = Zips_WorkZips_vue.PID Note: I like to do things this way because the components are reusable in other contexts, whereas doing the whole thing in a single query solves only the specific problem. I have written about this approach in various places. I call it "atomic and molecular queries". In this case the views are the atoms and the query is the molecule comprised of said atoms. hth, Arthur ----- Original Message ---- From: Bobby Heid To: Access Developers discussion and problem solving Sent: Friday, February 9, 2007 10:03:31 AM Subject: Re: [AccessD] What type of query.... Hi Arthur, Thanks for that. One other issue. There may not be a given type of zip (or I guess even no zip in the Zip (table 2) table. This query returns those records that have both. Any ideas? Thanks, Bobby From markamatte at hotmail.com Fri Feb 9 13:00:53 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 09 Feb 2007 19:00:53 +0000 Subject: [AccessD] A97 Linked Tables In-Reply-To: Message-ID: Hello All, In A97 I need to link the FE to the BE in a shared folder on the network. I have the folder mapped as a drive on my machine...the users will not. Do I need to map the drive on each of their machines...or... IS there another method of linking these tables? Thanks, Mark A. Matte _________________________________________________________________ Valentine?s Day -- Shop for gifts that spell L-O-V-E at MSN Shopping http://shopping.msn.com/content/shp/?ctId=8323,ptnrid=37,ptnrdata=24095&tcode=wlmtagline From accessd at shaw.ca Fri Feb 9 13:14:38 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 09 Feb 2007 11:14:38 -0800 Subject: [AccessD] A97 Linked Tables In-Reply-To: Message-ID: <0JD70077BMOV3060@l-daemon> Hi Mark: You can map the BE in the format i.e: \\server1\Access97DB then you will not have to use drive letter mapping. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Friday, February 09, 2007 11:01 AM To: accessd at databaseadvisors.com Subject: [AccessD] A97 Linked Tables Hello All, In A97 I need to link the FE to the BE in a shared folder on the network. I have the folder mapped as a drive on my machine...the users will not. Do I need to map the drive on each of their machines...or... IS there another method of linking these tables? Thanks, Mark A. Matte _________________________________________________________________ Valentines Day -- Shop for gifts that spell L-O-V-E at MSN Shopping http://shopping.msn.com/content/shp/?ctId=8323,ptnrid=37,ptnrdata=24095&tcod e=wlmtagline From markamatte at hotmail.com Fri Feb 9 14:00:06 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 09 Feb 2007 20:00:06 +0000 Subject: [AccessD] A97 Linked Tables In-Reply-To: <0JD70077BMOV3060@l-daemon> Message-ID: Thanks Jim, I was using Net Use to link to the other machine...I'm on NT (SP4 I think)...How would I map in this format? Thanks, Mark >From: Jim Lawrence >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] A97 Linked Tables >Date: Fri, 09 Feb 2007 11:14:38 -0800 > >Hi Mark: > >You can map the BE in the format i.e: \\server1\Access97DB then you will >not >have to use drive letter mapping. > >Jim > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: Friday, February 09, 2007 11:01 AM >To: accessd at databaseadvisors.com >Subject: [AccessD] A97 Linked Tables > >Hello All, > >In A97 I need to link the FE to the BE in a shared folder on the network. >I > >have the folder mapped as a drive on my machine...the users will not. > >Do I need to map the drive on each of their machines...or... > >IS there another method of linking these tables? > >Thanks, > >Mark A. Matte > >_________________________________________________________________ >Valentines Day -- Shop for gifts that spell L-O-V-E at MSN Shopping >http://shopping.msn.com/content/shp/?ctId=8323,ptnrid=37,ptnrdata=24095&tcod >e=wlmtagline > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ FREE online classifieds from Windows Live Expo ? buy and sell with people you know http://clk.atdmt.com/MSN/go/msnnkwex0010000001msn/direct/01/?href=http://expo.live.com?s_cid=Hotmail_tagline_12/06 From Lambert.Heenan at AIG.com Fri Feb 9 14:09:50 2007 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Fri, 9 Feb 2007 15:09:50 -0500 Subject: [AccessD] A97 Linked Tables Message-ID: <34C8A2AB1EF3564CB0D64DB6AFFDD5C201201047@xlivmbx35.aig.com> No "mapping" is required. In Access when you browse to where the back end is to link to its tables, instead of selecting the drive letter and browsing to the folder with the MDB file, type \\SERVERNAME\SharedFolderName in the file name box of the file select dialog box. Hit enter and then you will see the folders on the share and you can browse to the backend. The paths stored within the front end will then be UNC paths instead of mapped drive letter paths. HTH Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Friday, February 09, 2007 3:00 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] A97 Linked Tables Thanks Jim, I was using Net Use to link to the other machine...I'm on NT (SP4 I think)...How would I map in this format? Thanks, Mark >From: Jim Lawrence >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] A97 Linked Tables >Date: Fri, 09 Feb 2007 11:14:38 -0800 > >Hi Mark: > >You can map the BE in the format i.e: \\server1\Access97DB then you >will >not >have to use drive letter mapping. > >Jim > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: Friday, February 09, 2007 11:01 AM >To: accessd at databaseadvisors.com >Subject: [AccessD] A97 Linked Tables > >Hello All, > >In A97 I need to link the FE to the BE in a shared folder on the >network. >I > >have the folder mapped as a drive on my machine...the users will not. > >Do I need to map the drive on each of their machines...or... > >IS there another method of linking these tables? > >Thanks, > >Mark A. Matte > >_________________________________________________________________ >Valentines Day -- Shop for gifts that spell L-O-V-E at MSN Shopping >http://shopping.msn.com/content/shp/?ctId=8323,ptnrid=37,ptnrdata=24095 >&tcod >e=wlmtagline > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ FREE online classifieds from Windows Live Expo - buy and sell with people you know http://clk.atdmt.com/MSN/go/msnnkwex0010000001msn/direct/01/?href=http://exp o.live.com?s_cid=Hotmail_tagline_12/06 From markamatte at hotmail.com Fri Feb 9 14:21:12 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 09 Feb 2007 20:21:12 +0000 Subject: [AccessD] A97 Linked Tables In-Reply-To: <34C8A2AB1EF3564CB0D64DB6AFFDD5C201201047@xlivmbx35.aig.com> Message-ID: OOOOHHHHHH....This is cool. Thanks Lambert!!! Mark A. Matte >From: "Heenan, Lambert" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] A97 Linked Tables >Date: Fri, 9 Feb 2007 15:09:50 -0500 > >No "mapping" is required. > >In Access when you browse to where the back end is to link to its tables, >instead of selecting the drive letter and browsing to the folder with the >MDB file, type > \\SERVERNAME\SharedFolderName >in the file name box of the file select dialog box. Hit enter and then you >will see the folders on the share and you can browse to the backend. The >paths stored within the front end will then be UNC paths instead of mapped >drive letter paths. > >HTH > >Lambert > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: Friday, February 09, 2007 3:00 PM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] A97 Linked Tables > > >Thanks Jim, > >I was using Net Use to link to the other machine...I'm on NT (SP4 I >think)...How would I map in this format? > >Thanks, > >Mark > > > > >From: Jim Lawrence > >Reply-To: Access Developers discussion and problem > >solving > >To: "'Access Developers discussion and problem > >solving'" > >Subject: Re: [AccessD] A97 Linked Tables > >Date: Fri, 09 Feb 2007 11:14:38 -0800 > > > >Hi Mark: > > > >You can map the BE in the format i.e: \\server1\Access97DB then you > >will > >not > >have to use drive letter mapping. > > > >Jim > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > >Sent: Friday, February 09, 2007 11:01 AM > >To: accessd at databaseadvisors.com > >Subject: [AccessD] A97 Linked Tables > > > >Hello All, > > > >In A97 I need to link the FE to the BE in a shared folder on the > >network. > >I > > > >have the folder mapped as a drive on my machine...the users will not. > > > >Do I need to map the drive on each of their machines...or... > > > >IS there another method of linking these tables? > > > >Thanks, > > > >Mark A. Matte > > > >_________________________________________________________________ > >Valentines Day -- Shop for gifts that spell L-O-V-E at MSN Shopping > >http://shopping.msn.com/content/shp/?ctId=8323,ptnrid=37,ptnrdata=24095 > >&tcod > >e=wlmtagline > > > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > >_________________________________________________________________ >FREE online classifieds from Windows Live Expo - buy and sell with people >you know >http://clk.atdmt.com/MSN/go/msnnkwex0010000001msn/direct/01/?href=http://exp >o.live.com?s_cid=Hotmail_tagline_12/06 > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ >From predictions to trailers, check out the MSN Entertainment Guide to the Academy Awards? http://movies.msn.com/movies/oscars2007/?icid=ncoscartagline1 From accessd at shaw.ca Fri Feb 9 14:42:22 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 09 Feb 2007 12:42:22 -0800 Subject: [AccessD] A97 Linked Tables In-Reply-To: Message-ID: <0JD700GXEQR3D1R2@l-daemon> Hi Mark: You would use something like i.e.: Net use \\ServerName\Access97DBShareName. No drive letter needs to be created, but of course the appropriate share has to exist on the host and when you resolved the connection within Access, the tables would be linked using the same syntax.(File > Get External data > Link Tables.. > '\\ServerName\Access97DBShareName\MyBE.mdb'.) HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Friday, February 09, 2007 12:00 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] A97 Linked Tables Thanks Jim, I was using Net Use to link to the other machine...I'm on NT (SP4 I think)...How would I map in this format? Thanks, Mark >From: Jim Lawrence >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] A97 Linked Tables >Date: Fri, 09 Feb 2007 11:14:38 -0800 > >Hi Mark: > >You can map the BE in the format i.e: \\server1\Access97DB then you will >not >have to use drive letter mapping. > >Jim > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: Friday, February 09, 2007 11:01 AM >To: accessd at databaseadvisors.com >Subject: [AccessD] A97 Linked Tables > >Hello All, > >In A97 I need to link the FE to the BE in a shared folder on the network. >I > >have the folder mapped as a drive on my machine...the users will not. > >Do I need to map the drive on each of their machines...or... > >IS there another method of linking these tables? > >Thanks, > >Mark A. Matte > >_________________________________________________________________ >Valentines Day -- Shop for gifts that spell L-O-V-E at MSN Shopping >http://shopping.msn.com/content/shp/?ctId=8323,ptnrid=37,ptnrdata=24095&tco d >e=wlmtagline > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ FREE online classifieds from Windows Live Expo  buy and sell with people you know http://clk.atdmt.com/MSN/go/msnnkwex0010000001msn/direct/01/?href=http://exp o.live.com?s_cid=Hotmail_tagline_12/06 From accessd at shaw.ca Fri Feb 9 14:43:50 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 09 Feb 2007 12:43:50 -0800 Subject: [AccessD] A97 Linked Tables In-Reply-To: Message-ID: <0JD700LG9QTJW060@l-daemon> Sorry Mark, should have read ahead. Lambert answered the question fully. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Friday, February 09, 2007 12:00 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] A97 Linked Tables Thanks Jim, I was using Net Use to link to the other machine...I'm on NT (SP4 I think)...How would I map in this format? Thanks, Mark >From: Jim Lawrence >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] A97 Linked Tables >Date: Fri, 09 Feb 2007 11:14:38 -0800 > >Hi Mark: > >You can map the BE in the format i.e: \\server1\Access97DB then you will >not >have to use drive letter mapping. > >Jim > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: Friday, February 09, 2007 11:01 AM >To: accessd at databaseadvisors.com >Subject: [AccessD] A97 Linked Tables > >Hello All, > >In A97 I need to link the FE to the BE in a shared folder on the network. >I > >have the folder mapped as a drive on my machine...the users will not. > >Do I need to map the drive on each of their machines...or... > >IS there another method of linking these tables? > >Thanks, > >Mark A. Matte > >_________________________________________________________________ >Valentines Day -- Shop for gifts that spell L-O-V-E at MSN Shopping >http://shopping.msn.com/content/shp/?ctId=8323,ptnrid=37,ptnrdata=24095&tco d >e=wlmtagline > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ FREE online classifieds from Windows Live Expo  buy and sell with people you know http://clk.atdmt.com/MSN/go/msnnkwex0010000001msn/direct/01/?href=http://exp o.live.com?s_cid=Hotmail_tagline_12/06 From markamatte at hotmail.com Fri Feb 9 14:53:38 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 09 Feb 2007 20:53:38 +0000 Subject: [AccessD] A97 Linked Tables In-Reply-To: <0JD700LG9QTJW060@l-daemon> Message-ID: No prob...I appreciate ALL feedback. Thanks, Mark A. Matte >From: Jim Lawrence >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] A97 Linked Tables >Date: Fri, 09 Feb 2007 12:43:50 -0800 > >Sorry Mark, should have read ahead. Lambert answered the question fully. > >Jim > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: Friday, February 09, 2007 12:00 PM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] A97 Linked Tables > >Thanks Jim, > >I was using Net Use to link to the other machine...I'm on NT (SP4 I >think)...How would I map in this format? > >Thanks, > >Mark > > > > >From: Jim Lawrence > >Reply-To: Access Developers discussion and problem > >solving > >To: "'Access Developers discussion and problem > >solving'" > >Subject: Re: [AccessD] A97 Linked Tables > >Date: Fri, 09 Feb 2007 11:14:38 -0800 > > > >Hi Mark: > > > >You can map the BE in the format i.e: \\server1\Access97DB then you will > >not > >have to use drive letter mapping. > > > >Jim > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > >Sent: Friday, February 09, 2007 11:01 AM > >To: accessd at databaseadvisors.com > >Subject: [AccessD] A97 Linked Tables > > > >Hello All, > > > >In A97 I need to link the FE to the BE in a shared folder on the network. > >I > > > >have the folder mapped as a drive on my machine...the users will not. > > > >Do I need to map the drive on each of their machines...or... > > > >IS there another method of linking these tables? > > > >Thanks, > > > >Mark A. Matte > > > >_________________________________________________________________ > >Valentines Day -- Shop for gifts that spell L-O-V-E at MSN Shopping > >http://shopping.msn.com/content/shp/?ctId=8323,ptnrid=37,ptnrdata=24095&tco >d > >e=wlmtagline > > > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > >_________________________________________________________________ >FREE online classifieds from Windows Live Expo  buy and sell with people >you know >http://clk.atdmt.com/MSN/go/msnnkwex0010000001msn/direct/01/?href=http://exp >o.live.com?s_cid=Hotmail_tagline_12/06 > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Invite your Hotmail contacts to join your friends list with Windows Live Spaces http://clk.atdmt.com/MSN/go/msnnkwsp0070000001msn/direct/01/?href=http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us From jwcolby at colbyconsulting.com Fri Feb 9 15:28:53 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Fri, 9 Feb 2007 16:28:53 -0500 Subject: [AccessD] A97 Linked Tables In-Reply-To: <34C8A2AB1EF3564CB0D64DB6AFFDD5C201201047@xlivmbx35.aig.com> Message-ID: <005401c74c91$4d6286a0$657aa8c0@m6805> I could swear though that unc mapping was slower than physical mapping. That may have been fixed long ago however. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Friday, February 09, 2007 3:10 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] A97 Linked Tables No "mapping" is required. In Access when you browse to where the back end is to link to its tables, instead of selecting the drive letter and browsing to the folder with the MDB file, type \\SERVERNAME\SharedFolderName in the file name box of the file select dialog box. Hit enter and then you will see the folders on the share and you can browse to the backend. The paths stored within the front end will then be UNC paths instead of mapped drive letter paths. HTH Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Friday, February 09, 2007 3:00 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] A97 Linked Tables Thanks Jim, I was using Net Use to link to the other machine...I'm on NT (SP4 I think)...How would I map in this format? Thanks, Mark >From: Jim Lawrence >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] A97 Linked Tables >Date: Fri, 09 Feb 2007 11:14:38 -0800 > >Hi Mark: > >You can map the BE in the format i.e: \\server1\Access97DB then you >will not have to use drive letter mapping. > >Jim > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: Friday, February 09, 2007 11:01 AM >To: accessd at databaseadvisors.com >Subject: [AccessD] A97 Linked Tables > >Hello All, > >In A97 I need to link the FE to the BE in a shared folder on the >network. >I > >have the folder mapped as a drive on my machine...the users will not. > >Do I need to map the drive on each of their machines...or... > >IS there another method of linking these tables? > >Thanks, > >Mark A. Matte > >_________________________________________________________________ >Valentines Day -- Shop for gifts that spell L-O-V-E at MSN Shopping >http://shopping.msn.com/content/shp/?ctId=8323,ptnrid=37,ptnrdata=24095 >&tcod >e=wlmtagline > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ FREE online classifieds from Windows Live Expo - buy and sell with people you know http://clk.atdmt.com/MSN/go/msnnkwex0010000001msn/direct/01/?href=http://exp o.live.com?s_cid=Hotmail_tagline_12/06 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Fri Feb 9 16:19:15 2007 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Fri, 9 Feb 2007 16:19:15 -0600 Subject: [AccessD] A97 Linked Tables Message-ID: <34C8A2AB1EF3564CB0D64DB6AFFDD5C20120104C@xlivmbx35.aig.com> Never heard of any problem with using UNC paths. You may be confusing that with using long filenames in paths. If you are linking to a file in "\\server\share\Some Long Path Name\And a SubFolder" then you can get a performance hit as the OS has to walk the folder path resolving long file names to 8.2 file names. To eliminate that problem you can use the short file names in the linked file path, like \\server\share\SomeLon~1\AndASu~1 See http://support.microsoft.com/kb/891176/en-us Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Friday, February 09, 2007 4:29 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] A97 Linked Tables I could swear though that unc mapping was slower than physical mapping. That may have been fixed long ago however. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Friday, February 09, 2007 3:10 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] A97 Linked Tables No "mapping" is required. In Access when you browse to where the back end is to link to its tables, instead of selecting the drive letter and browsing to the folder with the MDB file, type \\SERVERNAME\SharedFolderName in the file name box of the file select dialog box. Hit enter and then you will see the folders on the share and you can browse to the backend. The paths stored within the front end will then be UNC paths instead of mapped drive letter paths. HTH Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Friday, February 09, 2007 3:00 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] A97 Linked Tables Thanks Jim, I was using Net Use to link to the other machine...I'm on NT (SP4 I think)...How would I map in this format? Thanks, Mark >From: Jim Lawrence >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] A97 Linked Tables >Date: Fri, 09 Feb 2007 11:14:38 -0800 > >Hi Mark: > >You can map the BE in the format i.e: \\server1\Access97DB then you >will not have to use drive letter mapping. > >Jim > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: Friday, February 09, 2007 11:01 AM >To: accessd at databaseadvisors.com >Subject: [AccessD] A97 Linked Tables > >Hello All, > >In A97 I need to link the FE to the BE in a shared folder on the >network. >I > >have the folder mapped as a drive on my machine...the users will not. > >Do I need to map the drive on each of their machines...or... > >IS there another method of linking these tables? > >Thanks, > >Mark A. Matte > >_________________________________________________________________ >Valentines Day -- Shop for gifts that spell L-O-V-E at MSN Shopping >http://shopping.msn.com/content/shp/?ctId=8323,ptnrid=37,ptnrdata=24095 >&tcod >e=wlmtagline > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ FREE online classifieds from Windows Live Expo - buy and sell with people you know http://clk.atdmt.com/MSN/go/msnnkwex0010000001msn/direct/01/?href=http://exp o.live.com?s_cid=Hotmail_tagline_12/06 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Feb 9 16:36:33 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 09 Feb 2007 14:36:33 -0800 Subject: [AccessD] A97 Linked Tables In-Reply-To: <005401c74c91$4d6286a0$657aa8c0@m6805> References: <005401c74c91$4d6286a0$657aa8c0@m6805> Message-ID: <45CCF771.1070403@shaw.ca> Try to keep the mdb file up close to the root to avoid a`lot of OS directory permissions checks Here are some mapping/UNC connection functions from Randy Birch that will help Look through related functions too: WNetGetConnection: Get UNC Path for Mapped Drive http://vbnet.mvps.org/index.html?code/network/uncfrommappeddrive.htm WNetConnectionDialog: Invoking the Map/Disconnect Drive Dialog http://vbnet.mvps.org/index.html?code/network/wnetconnectiondialog.htm JWColby wrote: >I could swear though that unc mapping was slower than physical mapping. >That may have been fixed long ago however. > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert >Sent: Friday, February 09, 2007 3:10 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] A97 Linked Tables > >No "mapping" is required. > >In Access when you browse to where the back end is to link to its tables, >instead of selecting the drive letter and browsing to the folder with the >MDB file, type > \\SERVERNAME\SharedFolderName >in the file name box of the file select dialog box. Hit enter and then you >will see the folders on the share and you can browse to the backend. The >paths stored within the front end will then be UNC paths instead of mapped >drive letter paths. > >HTH > >Lambert > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: Friday, February 09, 2007 3:00 PM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] A97 Linked Tables > > >Thanks Jim, > >I was using Net Use to link to the other machine...I'm on NT (SP4 I >think)...How would I map in this format? > >Thanks, > >Mark > > > > > >>From: Jim Lawrence >>Reply-To: Access Developers discussion and problem >>solving >>To: "'Access Developers discussion and problem >>solving'" >>Subject: Re: [AccessD] A97 Linked Tables >>Date: Fri, 09 Feb 2007 11:14:38 -0800 >> >>Hi Mark: >> >>You can map the BE in the format i.e: \\server1\Access97DB then you >>will not have to use drive letter mapping. >> >>Jim >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >>Sent: Friday, February 09, 2007 11:01 AM >>To: accessd at databaseadvisors.com >>Subject: [AccessD] A97 Linked Tables >> >>Hello All, >> >>In A97 I need to link the FE to the BE in a shared folder on the >>network. >>I >> >>have the folder mapped as a drive on my machine...the users will not. >> >>Do I need to map the drive on each of their machines...or... >> >>IS there another method of linking these tables? >> >>Thanks, >> >>Mark A. Matte >> >>_________________________________________________________________ >>Valentines Day -- Shop for gifts that spell L-O-V-E at MSN Shopping >>http://shopping.msn.com/content/shp/?ctId=8323,ptnrid=37,ptnrdata=24095 >>&tcod >>e=wlmtagline >> >> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >> > >_________________________________________________________________ >FREE online classifieds from Windows Live Expo - buy and sell with people >you know >http://clk.atdmt.com/MSN/go/msnnkwex0010000001msn/direct/01/?href=http://exp >o.live.com?s_cid=Hotmail_tagline_12/06 > >-- >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 jeff at boyes.net Fri Feb 9 18:43:59 2007 From: jeff at boyes.net (Jeff Boyes) Date: Fri, 9 Feb 2007 17:43:59 -0700 Subject: [AccessD] Access and home construction work In-Reply-To: Message-ID: Let me know if you are serious about buying...I can point some resources your way. Jeff -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Friday, February 09, 2007 7:22 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and home construction work Cool. Thanks!! Now....if only it could change a diaper.....I'd be in HEAVEN!! :) Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeff Sent: Thursday, February 08, 2007 8:32 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and home construction work Mine is good, and cheap. I have about $500 invested, and can control all the lights, heating/cooling, tv/tivo, garage doors, and hot tub...via any pc, or voice commands from any phone... Www.homeseer.com jeff -----Original Message----- From: "Kath Pelletti" To: "Access Developers discussion and problem solving" Sent: 2/8/07 6:13 PM Subject: Re: [AccessD] Access and home construction work good, cheap, fast ?? ----- Original Message ----- From: Jim Lawrence To: 'Access Developers discussion and problem solving' Sent: Friday, February 09, 2007 12:12 PM Subject: Re: [AccessD] Access and home construction work What is that saying that ends with '...you can have any 2'? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, February 08, 2007 12:04 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and home construction work I forgot to add that I want it all wireless, flexible, and cheap! ;) Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys Sent: Thursday, February 08, 2007 2:55 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and home construction work Nope. Bill Gates has had that feature for years, though. ON / OFF, power or no power - It can't be that difficult :) Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "Keith Williamson" To: "Access Developers discussion and problem solving" Sent: Thursday, February 08, 2007 2:45 PM Subject: Re: [AccessD] Access and home construction work >I don't know what he is doing....but I should would love to control all > the lights in my house, from my computer. :) so....do you have > experience with THAT? Lol > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R > Mattys > Sent: Thursday, February 08, 2007 2:30 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access and home construction work > > Steve, > > A little vague - are you building homes or > are you trying to control all the lights in > your house from a database? > > Michael R. Mattys > MapPoint & Access Dev > www.mattysconsulting.com > > ----- Original Message ----- > From: "steve saaf" > To: > Sent: Thursday, February 08, 2007 2:11 PM > Subject: [AccessD] Access and home construction work > > >> Hello- >> Anyone have experience with the above and could give any >> tips/experience/recommendations? >> Thanks, >> Steve >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Fri Feb 9 18:48:03 2007 From: pcs at azizaz.com (pcs at azizaz.com) Date: Sat, 10 Feb 2007 10:48:03 +1000 Subject: [AccessD] Queries are messed up! Message-ID: <8d12232e.441c2ffa.81d8800@dommail.onthenet.com.au> This 'nice' feature bit me severely this week as well. For years I have been sending minor modifications to remote users by creating a small .mdb container to carry the tables, queries, modified forms etc. .... I recently updated to A2003. This week a modified query that was imported to the production database now instead of creating the expected dozen or so records in a temp table started off adding thousands upon thousands of records..... an investigation revealed that the inner joins between two tables had been removed by the 'helpful feature' and as a result turned the query into a cartesian product query (i think it's called) ..... Unfortunately - unlike for example choosing Access table type: Access 2000 or Access2002-2003 which can be set permanently in your options, this nice feature cannot be turned off as the permanent default, but appears to have to be turned OFF as the FIRST thing you do EVERY TIME you create a NEW database.... Allen Browne writes about the issue and gives pointers to all the things that according to MS can go wrong with this feature turned on: http://www.allenbrowne.com/bug-03.html Is there ANY way of turning this feature off permanently, by settings in the registry for example? regards borge ---- Original message ---- >Date: Fri, 9 Feb 2007 11:08:12 -0500 >From: "Barbara Ryan" >Subject: Re: [AccessD] Queries are messed up! >To: "Access Developers discussion and problem solving" > >Gary.... > >You are absolutely right --- the "Name Autocorrect" options are the >culprits --- see >http://alexdyb.blogspot.com/2006/05/user-friendly-name- autocorrect-option.html > >Thanks a Bunch! >Barb > >----- Original Message ----- >From: "Gary Kjos" >To: "Access Developers discussion and problem solving" > >Sent: Friday, February 09, 2007 10:08 AM >Subject: Re: [AccessD] Queries are messed up! > > >>A couple of thoughts. First do you have the "Name Autocorrect" options >> checked or unchecked? I always UNCHECK them so Access doesn't try to >> get to smart when copying tables and queries etc. Second there is an >> option under the Import to "Import Relationships" is that checked? From jengross at gte.net Fri Feb 9 17:25:45 2007 From: jengross at gte.net (Jennifer Gross) Date: Fri, 09 Feb 2007 15:25:45 -0800 Subject: [AccessD] ADO code stopped working In-Reply-To: Message-ID: <006e01c74ca1$a30aad20$6401a8c0@jefferson> Hi Gustav, I didn't use the Component Checker, but went right the file properties early on for the 2 ADO DLLs involved. Both my machine and the client's machine had the same version for both files. I don't recall the version #s now, but they corresponded to MDAC 2.8, no service packs per Microsoft's manifests. The query ultimately used is based on several subqueries, each with their own parameters - probably less than 10, but more than 5 all together. I've stopped looking for the answer to get ADO to work since opening the recordset with DAO is working and my time is better spent at this juncture to just convert the code to DAO, as the client needs the functionality up and running. They have also recently switched hardware/network providers and I am having a hard time getting any cooperation from the network people - they say of course that 'nothing has changed' on the network between when the ADO worked and now that it is not working. I find that difficult to believe as we have also had problems with SQL Server and the Windows Management databases - so something has happened. My swiftest route though right now is to convert code to DAO. An MDAC reinstall fixed the problem with Windows Management databases, but not mine. And they choose to upgrade to SQL Server 2005, rather than deal with the problems they were having with SQL Server 2000. My BE & FE are A2K. Thanks for everyone's help, Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, February 09, 2007 12:37 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] ADO code stopped working Hi Jennifer Please report your findings. I think Marty is on the right track. The Component Checker at my machine reports version 2.81.1117.0 for msado15.dll and - in general - MDAC 2.8 SP1 on WinXP SP2. I could update to MDAC 2.8 SP2 if I could find it. However, the test I carry out here is very consistent. How many parameters does your query have? /gustav >>> jengross at gte.net 08-02-2007 21:38 >>> I am still stumped. I am moving the code to DAO, since it works fine, even with the Eval statement and no change to the way the parameters are set up. It has to be something outside the code, in network or security, because the ADO works fine on my system, and worked fine on theirs until last week. Something changed in their setup, but we can't identify it. Thanks for everyone's help and the wonderful tangential insights. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, February 07, 2007 6:58 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] ADO code stopped working Hi Marty That is interesting! It appears that - if you specify a parameter by its name - for an explicit parameter the brackets must _not_ be specified, while for an implicit parameter the brackets _must_ be specified. If you don't, an 3265 error will be raised but not before you reach the code line where you pass the parameter value. So this is not the scenario Jennifer sees, as - for her case - the error is raised earlier when you address the Procedures' collection. /gustav >>> martyconnelly at shaw.ca 05-02-2007 21:46:05 >>> I am just wondering if TheQuery has to be run once to compile it? or this ACC2000: How to Use Parameters with ActiveX Data Objects (ADO) and Jet http://support.microsoft.com/kb/225897/en-us Method 3: Using an Implicit Parameter NOTE: Implicit parameter names have brackets ([ ]) around them, and you must use the brackets (or the parameter's ordinal position) when referring to implicit parameters in the Parameters collection. If you do not use the brackets, you receive the following error message: Run-time error '3265': ADO could not find the object in the collection corresponding to the name or ordinal reference requested by the application. PRB: Error 3265 When You Access Properties Collection http://support.microsoft.com/?kbid=201826 http://support.microsoft.com/default.aspx?scid=kb;en-us;223212 Jennifer Gross wrote: >Hi Gustav, > >I have checked all references. The code is compiling. I have created >a test database with one table and one query. It is failing in the >same spot my original database is failing - Set prc = >cat.Procedures("TheQuery") - In the test database I am getting the >error 3265 - Item cannot be found in the collection corresponding to >the requested name or ordinal. The query does exist - no spelling >errors. The same ADO code is working fine on my home office system. It >worked fine at the client's site in January. Any thoughts? > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >Sent: Monday, February 05, 2007 1:47 AM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] ADO code stopped working > > >Hi Jennifer > >You could - for and while debugging - try to separate the connection >object: > > Dim cnn As ADODB.Connection > Dim cmd As ADODB.Command > Dim rst As ADODB.Recordset > Dim prm As ADODB.Parameter > Dim cat As ADOX.Catalog > Dim prc As ADOX.Procedure > > Set cat = New ADOX.Catalog > Set cnn = CurrentProject.Connection > cat.ActiveConnection = cnn > >I guess you have double-checked the reference: > Microsoft ADO Ext. 2.8 for DDL and Security >points to > ..system32\MSADOX.DLL > >/gustav > > > >>>>jengross at gte.net 05-02-2007 05:00 >>> >>>> >>>> >Thanks for the suggestions. I set the references like Marty suggested >and am still getting the problem. I am using the Getz Developers >Handbook code for looping through parameters in a select query: > > Dim cmd As ADODB.Command > Dim rst As ADODB.Recordset > Dim prm As ADODB.Parameter > Dim cat As ADOX.Catalog > Dim prc As ADOX.Procedure > > Set cat = New ADOX.Catalog >* cat.ActiveConnection = CurrentProject.Connection >* Set prc = cat.Procedures("TheQuery") > Set cmd = prc.Command > For Each prm In cmd.Parameters > prm.Value = Eval(prm.Name) > Next prm > Set rst = cmd.Execute > >If I don't use the query with parameters, but instead base the >recordset on the table, then it works fine: > > Set rst = New ADODB.Recordset > Set rst.ActiveConnection = CurrentProject.Connection > rst.CursorType = adOpenForwardOnly > rst.LockType = adLockReadOnly > rst.Open "TheTable" > >I am getting the same results whether the code is in the existing FE or >if I create a new db with the ADO code as Rocky suggested. > >Any thoughts? > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin >at Beach Access Software >Sent: Sunday, February 04, 2007 4:55 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] ADO code stopped working > > >I would whip up a small app with some ado code to see if the problem is >inside your app or outside of it. Does your app compile? > >Rocky > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer >Gross >Sent: Sunday, February 04, 2007 2:05 PM >To: AccessD List >Subject: [AccessD] ADO code stopped working > >Hi Everyone, > >W2K SP4 / A2K SP3 / terminal server > >I have a database that has some DAO and some ADO code. Recently all >ADO stopped working. DAO is still working fine. Anytime code >utilizing ADO runs it shuts down the database abruptly, leaving the LDB >file. We were also having problems with the Windows Management >databases locking up and a reinstall of the latest MDAC took care of >that problem, but did not solve the ADO problem. ADO was working fine >for end of year reporting. There are no missing references. After the >MDAC reinstall I unchecked references, closed down, opened up and >rechecked references. > >Any help would be greatly appreciated. > >Thank you, > >Jennifer Gross >databasics >2839 Shirley Drive >Newbury Park, CA 91320-3068 >office: (805) 480-1921 >fax: (805) 499-0467 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Sat Feb 10 02:10:29 2007 From: gustav at cactus.dk (Gustav Brock) Date: Sat, 10 Feb 2007 09:10:29 +0100 Subject: [AccessD] A97 Linked Tables Message-ID: Hi Lambert Thanks for pointing this out. I've never heard of the problem with long filenames but it certainly may explain some experiences we have had through the years. /gustav >>> Lambert.Heenan at AIG.com 09-02-07 23:19 >>> Never heard of any problem with using UNC paths. You may be confusing that with using long filenames in paths. If you are linking to a file in "\\server\share\Some Long Path Name\And a SubFolder" then you can get a performance hit as the OS has to walk the folder path resolving long file names to 8.2 file names. To eliminate that problem you can use the short file names in the linked file path, like \\server\share\SomeLon~1\AndASu~1 See http://support.microsoft.com/kb/891176/en-us Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Friday, February 09, 2007 4:29 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] A97 Linked Tables I could swear though that unc mapping was slower than physical mapping. That may have been fixed long ago however. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Friday, February 09, 2007 3:10 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] A97 Linked Tables No "mapping" is required. In Access when you browse to where the back end is to link to its tables, instead of selecting the drive letter and browsing to the folder with the MDB file, type \\SERVERNAME\SharedFolderName in the file name box of the file select dialog box. Hit enter and then you will see the folders on the share and you can browse to the backend. The paths stored within the front end will then be UNC paths instead of mapped drive letter paths. HTH Lambert From jwcolby at colbyconsulting.com Sat Feb 10 04:50:52 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Sat, 10 Feb 2007 05:50:52 -0500 Subject: [AccessD] A97 Linked Tables In-Reply-To: Message-ID: <006e01c74d01$5624b220$657aa8c0@m6805> What this doesn't discuss is where the performance hit is encountered. Is it when a lock is attempted on the BE? If so then the "hold the be open" trick would "solve" the issue. Is it every time a specific table is referenced in a query? That would be much more serious since that would imply no method other than the ones discussed in this KB article would work. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Saturday, February 10, 2007 3:10 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] A97 Linked Tables Hi Lambert Thanks for pointing this out. I've never heard of the problem with long filenames but it certainly may explain some experiences we have had through the years. /gustav >>> Lambert.Heenan at AIG.com 09-02-07 23:19 >>> Never heard of any problem with using UNC paths. You may be confusing that with using long filenames in paths. If you are linking to a file in "\\server\share\Some Long Path Name\And a SubFolder" then you can get a performance hit as the OS has to walk the folder path resolving long file names to 8.2 file names. To eliminate that problem you can use the short file names in the linked file path, like \\server\share\SomeLon~1\AndASu~1 See http://support.microsoft.com/kb/891176/en-us Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Friday, February 09, 2007 4:29 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] A97 Linked Tables I could swear though that unc mapping was slower than physical mapping. That may have been fixed long ago however. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Friday, February 09, 2007 3:10 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] A97 Linked Tables No "mapping" is required. In Access when you browse to where the back end is to link to its tables, instead of selecting the drive letter and browsing to the folder with the MDB file, type \\SERVERNAME\SharedFolderName in the file name box of the file select dialog box. Hit enter and then you will see the folders on the share and you can browse to the backend. The paths stored within the front end will then be UNC paths instead of mapped drive letter paths. HTH Lambert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Sat Feb 10 17:24:38 2007 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 11 Feb 2007 00:24:38 +0100 Subject: [AccessD] A97 Linked Tables Message-ID: Hi John Good question. It mentions caching, multi-user access, and API calls to the mdb file but what that implies is not clear. /gustav >>> jwcolby at colbyconsulting.com 10-02-07 11:50 >>> What this doesn't discuss is where the performance hit is encountered. Is it when a lock is attempted on the BE? If so then the "hold the be open" trick would "solve" the issue. Is it every time a specific table is referenced in a query? That would be much more serious since that would imply no method other than the ones discussed in this KB article would work. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Saturday, February 10, 2007 3:10 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] A97 Linked Tables Hi Lambert Thanks for pointing this out. I've never heard of the problem with long filenames but it certainly may explain some experiences we have had through the years. /gustav >>> Lambert.Heenan at AIG.com 09-02-07 23:19 >>> Never heard of any problem with using UNC paths. You may be confusing that with using long filenames in paths. If you are linking to a file in "\\server\share\Some Long Path Name\And a SubFolder" then you can get a performance hit as the OS has to walk the folder path resolving long file names to 8.2 file names. To eliminate that problem you can use the short file names in the linked file path, like \\server\share\SomeLon~1\AndASu~1 See http://support.microsoft.com/kb/891176/en-us Lambert From martyconnelly at shaw.ca Sat Feb 10 18:45:49 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sat, 10 Feb 2007 16:45:49 -0800 Subject: [AccessD] A97 Linked Tables In-Reply-To: References: Message-ID: <45CE673D.6080900@shaw.ca> Some old notes on this MichKa (Michael Kaplan) made a statement on usenet years ago. He said "For linked tables, there is a LOT of info cached by Jet in the link as an optimization. However, sometimes backend changes are made and that cached info is not invalidated as it should be, and it causes a huge perf hit as Jet tries things that fail (at which point you hit bug#2, which is that it does not invalidate it here either). I have seen cases where even RefreshLink would not totally make this work right. "The fix? If this is the problem? You should completely delete the links in the frontend, then after making sure you have recently compacted the backend, relink all the tables." Also In Access 2000, when a second and subsequent user tries to access a shared backend database on the server, there seems to be a situation where Access tries to perform a delete on the LDB file (which fails because another user is currently in the file). This attempt is made about 15 times before silently failing and the records are returned from the linked table. To resolve this issue we need a persistent connection to the back-end from each of the front-end workstations. This can be done using a bound form which is always open or by keeping a recordset open at all times.. Maintaining persistent connections to linked tables could improve performance significantly because it prevents Microsoft Jet from constantly deleting, creating, and obtaining locking information from the other database's locking information file. Refreshing table links can also be quite slow Refreshing the links to tables can be quite slow even in Access 97. This can get much worse for the second and subsequent users into a shared MDB on a server. Once you've successfully refreshed the first table open a recordset based on that table. Once you've finished refreshing all the links close that recordset. Then open a bound form or keep this recordset open if so desired depending on your preference for better overall performance. Gustav Brock wrote: >Hi John > >Good question. >It mentions caching, multi-user access, and API calls to the mdb file but what that implies is not clear. > >/gustav > > > >>>>jwcolby at colbyconsulting.com 10-02-07 11:50 >>> >>>> >>>> >What this doesn't discuss is where the performance hit is encountered. Is >it when a lock is attempted on the BE? If so then the "hold the be open" >trick would "solve" the issue. Is it every time a specific table is >referenced in a query? That would be much more serious since that would >imply no method other than the ones discussed in this KB article would work. > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >Sent: Saturday, February 10, 2007 3:10 AM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] A97 Linked Tables > >Hi Lambert > >Thanks for pointing this out. I've never heard of the problem with long >filenames but it certainly may explain some experiences we have had through >the years. > >/gustav > > > >>>>Lambert.Heenan at AIG.com 09-02-07 23:19 >>> >>>> >>>> >Never heard of any problem with using UNC paths. You may be confusing that >with using long filenames in paths. > >If you are linking to a file in "\\server\share\Some Long Path Name\And a >SubFolder" then you can get a performance hit as the OS has to walk the >folder path resolving long file names to 8.2 file names. > >To eliminate that problem you can use the short file names in the linked >file path, like > >\\server\share\SomeLon~1\AndASu~1 > >See http://support.microsoft.com/kb/891176/en-us > >Lambert > > -- Marty Connelly Victoria, B.C. Canada From bheid at sc.rr.com Sat Feb 10 20:01:14 2007 From: bheid at sc.rr.com (Bobby Heid) Date: Sat, 10 Feb 2007 21:01:14 -0500 Subject: [AccessD] A97 Linked Tables In-Reply-To: <45CE673D.6080900@shaw.ca> References: <45CE673D.6080900@shaw.ca> Message-ID: <00ba01c74d80$83078810$2d01a8c0@bhxp> In one of our apps, we eventually just started relinking all of the tables because there were issues when we did not. This is back with Access 97 so the issue may be corrected now. But the app still does this. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Saturday, February 10, 2007 7:46 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A97 Linked Tables Some old notes on this MichKa (Michael Kaplan) made a statement on usenet years ago. He said "For linked tables, there is a LOT of info cached by Jet in the link as an optimization. However, sometimes backend changes are made and that cached info is not invalidated as it should be, and it causes a huge perf hit as Jet tries things that fail (at which point you hit bug#2, which is that it does not invalidate it here either). I have seen cases where even RefreshLink would not totally make this work right. "The fix? If this is the problem? You should completely delete the links in the frontend, then after making sure you have recently compacted the backend, relink all the tables." Also In Access 2000, when a second and subsequent user tries to access a shared backend database on the server, there seems to be a situation where Access tries to perform a delete on the LDB file (which fails because another user is currently in the file). This attempt is made about 15 times before silently failing and the records are returned from the linked table. To resolve this issue we need a persistent connection to the back-end from each of the front-end workstations. This can be done using a bound form which is always open or by keeping a recordset open at all times.. Maintaining persistent connections to linked tables could improve performance significantly because it prevents Microsoft Jet from constantly deleting, creating, and obtaining locking information from the other database's locking information file. Refreshing table links can also be quite slow Refreshing the links to tables can be quite slow even in Access 97. This can get much worse for the second and subsequent users into a shared MDB on a server. Once you've successfully refreshed the first table open a recordset based on that table. Once you've finished refreshing all the links close that recordset. Then open a bound form or keep this recordset open if so desired depending on your preference for better overall performance. Gustav Brock wrote: >Hi John > >Good question. >It mentions caching, multi-user access, and API calls to the mdb file but what that implies is not clear. > >/gustav > > > >>>>jwcolby at colbyconsulting.com 10-02-07 11:50 >>> >>>> >>>> >What this doesn't discuss is where the performance hit is encountered. Is >it when a lock is attempted on the BE? If so then the "hold the be open" >trick would "solve" the issue. Is it every time a specific table is >referenced in a query? That would be much more serious since that would >imply no method other than the ones discussed in this KB article would work. > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >Sent: Saturday, February 10, 2007 3:10 AM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] A97 Linked Tables > >Hi Lambert > >Thanks for pointing this out. I've never heard of the problem with long >filenames but it certainly may explain some experiences we have had through >the years. > >/gustav > > > >>>>Lambert.Heenan at AIG.com 09-02-07 23:19 >>> >>>> >>>> >Never heard of any problem with using UNC paths. You may be confusing that >with using long filenames in paths. > >If you are linking to a file in "\\server\share\Some Long Path Name\And a >SubFolder" then you can get a performance hit as the OS has to walk the >folder path resolving long file names to 8.2 file names. > >To eliminate that problem you can use the short file names in the linked >file path, like > >\\server\share\SomeLon~1\AndASu~1 > >See http://support.microsoft.com/kb/891176/en-us > >Lambert > From artful at rogers.com Sun Feb 11 06:31:08 2007 From: artful at rogers.com (artful at rogers.com) Date: Sun, 11 Feb 2007 04:31:08 -0800 (PST) Subject: [AccessD] Abstract question Message-ID: <314848.60214.qm@web88202.mail.re2.yahoo.com> Does anyone have an idea how to generate an autoForm from any arbitrary recordset? Ideally, such a class would have the smarts to realize that certain fields ought to be checkboxes, others formatted short-date, etc. Arthur From mmattys at rochester.rr.com Sun Feb 11 07:25:01 2007 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Sun, 11 Feb 2007 08:25:01 -0500 Subject: [AccessD] Abstract question References: <314848.60214.qm@web88202.mail.re2.yahoo.com> Message-ID: <000f01c74de0$0e9ef520$0202a8c0@default> Arthur, I think I have most of the code to do it {WithEvents}, but I have yet to add subforrms, which I'd bet would be required. I believe you'd need a template form for the CreateForm call so that you have an idea about how the form should look in the first place. There's a lot of code ... Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: To: "AccessD at databaseadvisors. com" Sent: Sunday, February 11, 2007 7:31 AM Subject: [AccessD] Abstract question > Does anyone have an idea how to generate an autoForm from any arbitrary > recordset? Ideally, such a class would have the smarts to realize that > certain fields ought to be checkboxes, others formatted short-date, etc. > > Arthur > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From shamil at users.mns.ru Sun Feb 11 08:06:49 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Sun, 11 Feb 2007 17:06:49 +0300 Subject: [AccessD] Abstract question In-Reply-To: <314848.60214.qm@web88202.mail.re2.yahoo.com> Message-ID: <000101c74de5$dfb99700$6401a8c0@nant> Hello Arthur, The task of "realizing that certain fields of any arbitrary recordset ought to be checkboxes, others formatted short-date, etc." can be solved by using recordset field's DisplayControl property, which defines what is a preferable way to display field's value: DisplayControl = 109 - textbox DisplayControl = 106 - checkbox DisplayControl = 110 - listbox DisplayControl = 111 - combobox Format property defines output format etc. You can find other useful properties to generate autoform - the following code can be used for that if you uncomment two code lines in Case Else code block: Public Sub TestDebugPrint(ByVal vstrRstName As String) Dim dbs As DAO.Database Dim rst As DAO.Recordset Dim fld As DAO.Field Dim fld1 As DAO.Field Dim prp As DAO.Property Set dbs = CurrentDb Set rst = dbs.OpenRecordset(vstrRstName) For Each fld In rst.Fields With fld Debug.Print .Name For Each prp In fld.Properties With prp Select Case .Name Case "DisplayControl", "Format": Debug.Print vbTab & prp.Name & " = " & _ propertyValue(prp) Case Else 'Debug.Print vbTab & prp.Name & " = " & _ ' propertyValue(prp) End Select End With Next prp End With Next fld End Sub Private Function propertyValue(ByRef rprp As DAO.Property) As Variant On Error GoTo HandleErr propertyValue = rprp.Value Exit Function HandleErr: propertyValue = "(N/A)" End Function -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Sunday, February 11, 2007 3:31 PM To: AccessD at databaseadvisors. com Subject: [AccessD] Abstract question Does anyone have an idea how to generate an autoForm from any arbitrary recordset? Ideally, such a class would have the smarts to realize that certain fields ought to be checkboxes, others formatted short-date, etc. Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mmattys at rochester.rr.com Sun Feb 11 10:14:00 2007 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Sun, 11 Feb 2007 11:14:00 -0500 Subject: [AccessD] Abstract question References: <000101c74de5$dfb99700$6401a8c0@nant> Message-ID: <007701c74df7$b8cc5c10$0202a8c0@default> Based upon Shamil Salakhetdinov's previous work using WithEvents in Access, I created a simple spreadsheet form ... 'Template Form Attached Application.LoadFromText acForm, "Spreadsheet", "C:\Spreadsheet.txt" '-----clsSpreadsheet----- Private WithEvents Form As Form Private mcolControls As New Collection Private mobjSelfRef As Object Private mblnTerminateCalled As Boolean Public Sub Init(ByRef rfrm As Access.Form) DeepsAttach rfrm End Sub Public Sub Terminate() Dim obj As Object If mblnTerminateCalled = False Then For Each obj In mcolControls On Error Resume Next obj.Terminate Err.Clear Next mblnTerminateCalled = True End If End Sub Private Sub DeepsAttach(ByRef rfrm As Access.Form) Set Form = rfrm Set mobjSelfRef = Me Form!lblHwnd.Caption = Form.hwnd Dim ctl As Access.Control Dim objTxt As clsSSTextBox For Each ctl In Form.Controls If TypeOf ctl Is Access.TextBox Then Set objTxt = New clsSSTextBox objTxt.Init ctl mcolControls.Add objTxt End If Next End Sub '-----clsSSTextbox----- Private WithEvents mtxt As Access.TextBox Private msngLastX As Single Private msngLastY As Single Private mlngBackColor As Long Private mstrLastCtlName As String Public Sub Init(ByRef rtxt As Access.TextBox) Set mtxt = rtxt mlngBackColor = mtxt.BackColor mtxt.OnEnter = "[Event Procedure]" mtxt.OnExit = "[Event Procedure]" mtxt.OnMouseMove = "[Event Procedure]" mtxt.OnGotFocus = "[Event Procedure]" mtxt.OnLostFocus = "[Event Procedure]" End Sub Private Sub mtxt_Enter() mlngBackColor = mtxt.BackColor mtxt.BackColor = 16776960 End Sub Private Sub mtxt_Exit(Cancel As Integer) mtxt.BackColor = mlngBackColor End Sub Private Sub mtxt_GotFocus() mtxt.BackColor = vbRed End Sub Private Sub mtxt_Lostfocus() mtxt_Exit 0 End Sub Private Sub mtxt_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single) On Error GoTo mtxt_MouseMove_Err ' If msngLastX <> X Or msngLastY <> Y Then ' If mstrLastCtlName <> mtxt.Name Then mtxt.SetFocus ' End If ' End If msngLastX = x msngLastY = y mstrLastCtlName = mtxt.Name mtxt_MouseMove_Err: End Sub Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: Spreadsheet.txt URL: From artful at rogers.com Sun Feb 11 10:13:43 2007 From: artful at rogers.com (artful at rogers.com) Date: Sun, 11 Feb 2007 08:13:43 -0800 (PST) Subject: [AccessD] Abstract question Message-ID: <552080.55091.qm@web88213.mail.re2.yahoo.com> I didn't say it would be easy, Michael. Where this is going, in case you need details, is this: UDAs (user-defined attributes). The concept is this: I have a Products table, containing the most obvious attributes, but the client is free to add attributes specific only to her situation. These would be stored in a UDA table, and keyed to the specific product, such that product A has 4 additional attributes while product B has 10. These attributes are stored as rows in table ProductAttributes and a query magically grabs all the relevant rows and turns them into a one-row result-set (I already know how to do this), and then I generate an autoForm that reflects the magically-generated row, so the user can edit it. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Michael R Mattys To: Access Developers discussion and problem solving Sent: Sunday, February 11, 2007 8:25:01 AM Subject: Re: [AccessD] Abstract question Arthur, I think I have most of the code to do it {WithEvents}, but I have yet to add subforrms, which I'd bet would be required. I believe you'd need a template form for the CreateForm call so that you have an idea about how the form should look in the first place. There's a lot of code ... Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com From mmattys at rochester.rr.com Sun Feb 11 10:19:20 2007 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Sun, 11 Feb 2007 11:19:20 -0500 Subject: [AccessD] Abstract question References: <314848.60214.qm@web88202.mail.re2.yahoo.com> Message-ID: <008901c74df8$642ce340$0202a8c0@default> I forgot this part ... '-----Module1----- Public Function SSInit(ByRef rfrm As Form) Dim obj As New clsSpreadSheet obj.Init rfrm End Function Public Sub AddSpreadSheets() Dim frm1 As New Form_Spreadsheet Dim frm2 As New Form_Spreadsheet Dim frm3 As New Form_Spreadsheet With frm1 .Visible = True DoCmd.MoveSize , 0 End With With frm2 .Visible = True DoCmd.MoveSize , 500 End With With frm3 .Visible = True DoCmd.MoveSize , 1000 End With End Sub Sub OpenSpreadSheets(NumberOfSS As Integer) Dim i As Integer, f As Form, h As Long, r As Integer, d As Integer, M As Integer r = 100 For i = 1 To NumberOfSS r = r + 500 Set f = New Form_Spreadsheet With f d = M + f.Section(0).Properties("Height") .Caption = .Name & i .Visible = True h = .hwnd DoCmd.MoveSize , d End With d = d + d Next End Sub Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com From artful at rogers.com Sun Feb 11 10:21:46 2007 From: artful at rogers.com (artful at rogers.com) Date: Sun, 11 Feb 2007 08:21:46 -0800 (PST) Subject: [AccessD] Abstract question Message-ID: <619028.6008.qm@web88203.mail.re2.yahoo.com> Thanks, Shamil. I will play with this. The point behind all this is a situation in which the customer can define N product attributes. So we have two tables: Products (which defines the basic attributes that all client products have in common, and the user-defined product attributes, which are actually recorded as rows but then assimilated into columns on a single row, from which is generated said AutoForm). Assuming that the UDAs (user-defined attributes) are defined completely (i.e. this column needs phone-formatting, that column needs short-date formatting, etc.), then I'm imagining a form with a pair of tabs, the first of which displays the columns that all products share, while the second displays the columns the user has defined. Thus the need for an AutoForm. Client A has defined 10 attributes, Client B has defined 15. I don't want to rewrite the UI for each new client. I want to generate the UDA form and plonk it on the Tab2 automagically. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Shamil Salakhetdinov To: Access Developers discussion and problem solving Sent: Sunday, February 11, 2007 9:06:49 AM Subject: Re: [AccessD] Abstract question Hello Arthur, The task of "realizing that certain fields of any arbitrary recordset ought to be checkboxes, others formatted short-date, etc." can be solved by using recordset field's DisplayControl property, which defines what is a preferable way to display field's value: DisplayControl = 109 - textbox DisplayControl = 106 - checkbox DisplayControl = 110 - listbox DisplayControl = 111 - combobox Format property defines output format etc. You can find other useful properties to generate autoform - the following code can be used for that if you uncomment two code lines in Case Else code block: Public Sub TestDebugPrint(ByVal vstrRstName As String) Dim dbs As DAO.Database Dim rst As DAO.Recordset Dim fld As DAO.Field Dim fld1 As DAO.Field Dim prp As DAO.Property Set dbs = CurrentDb Set rst = dbs.OpenRecordset(vstrRstName) For Each fld In rst.Fields With fld Debug.Print .Name For Each prp In fld.Properties With prp Select Case .Name Case "DisplayControl", "Format": Debug.Print vbTab & prp.Name & " = " & _ propertyValue(prp) Case Else 'Debug.Print vbTab & prp.Name & " = " & _ ' propertyValue(prp) End Select End With Next prp End With Next fld End Sub Private Function propertyValue(ByRef rprp As DAO.Property) As Variant On Error GoTo HandleErr propertyValue = rprp.Value Exit Function HandleErr: propertyValue = "(N/A)" End Function -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Sunday, February 11, 2007 3:31 PM To: AccessD at databaseadvisors. com Subject: [AccessD] Abstract question Does anyone have an idea how to generate an autoForm from any arbitrary recordset? Ideally, such a class would have the smarts to realize that certain fields ought to be checkboxes, others formatted short-date, etc. 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 From artful at rogers.com Sun Feb 11 10:30:16 2007 From: artful at rogers.com (artful at rogers.com) Date: Sun, 11 Feb 2007 08:30:16 -0800 (PST) Subject: [AccessD] Abstract question Message-ID: <923129.24515.qm@web88207.mail.re2.yahoo.com> Thanks Michael! I shall play around with this and see if it can work. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Michael R Mattys To: Access Developers discussion and problem solving Sent: Sunday, February 11, 2007 11:19:20 AM Subject: Re: [AccessD] Abstract question I forgot this part ... '-----Module1----- Public Function SSInit(ByRef rfrm As Form) Dim obj As New clsSpreadSheet obj.Init rfrm End Function Public Sub AddSpreadSheets() Dim frm1 As New Form_Spreadsheet Dim frm2 As New Form_Spreadsheet Dim frm3 As New Form_Spreadsheet With frm1 .Visible = True DoCmd.MoveSize , 0 End With With frm2 .Visible = True DoCmd.MoveSize , 500 End With With frm3 .Visible = True DoCmd.MoveSize , 1000 End With End Sub Sub OpenSpreadSheets(NumberOfSS As Integer) Dim i As Integer, f As Form, h As Long, r As Integer, d As Integer, M As Integer r = 100 For i = 1 To NumberOfSS r = r + 500 Set f = New Form_Spreadsheet With f d = M + f.Section(0).Properties("Height") .Caption = .Name & i .Visible = True h = .hwnd DoCmd.MoveSize , d End With d = d + d Next End Sub Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mmattys at rochester.rr.com Sun Feb 11 10:41:41 2007 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Sun, 11 Feb 2007 11:41:41 -0500 Subject: [AccessD] Abstract question References: <923129.24515.qm@web88207.mail.re2.yahoo.com> Message-ID: <00ac01c74dfb$830aed90$0202a8c0@default> Arthur, Your welcome. It isn't really anything. If it doesn't work or you'd like some assistance on the rest of your project, you only need to say so. Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: To: "Access Developers discussion and problem solving" Sent: Sunday, February 11, 2007 11:30 AM Subject: Re: [AccessD] Abstract question > Thanks Michael! I shall play around with this and see if it can work. > > Arthur Fuller > Technical Writer, Data Modeler, SQL Sensei > Artful Databases Organization > www.artfulsoftware.com > > > > > ----- Original Message ---- > From: Michael R Mattys > To: Access Developers discussion and problem solving > > Sent: Sunday, February 11, 2007 11:19:20 AM > Subject: Re: [AccessD] Abstract question > > > I forgot this part ... From shamil at users.mns.ru Sun Feb 11 11:30:48 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Sun, 11 Feb 2007 20:30:48 +0300 Subject: [AccessD] Abstract question In-Reply-To: <619028.6008.qm@web88203.mail.re2.yahoo.com> Message-ID: <000801c74e02$5e814620$6401a8c0@nant> <<< which are actually recorded as rows but then assimilated into columns on a single row, from which is generated said AutoForm). >>> Hi Arthur, I assume that this is a temp table, into which the data are assimilated - correct? If that's a correct assumption then you can create a (temp) query built on that temp table, set this query fields's display and format properties (they mentioned in the code I posted) and "plonk this query on the Tab2 automagically". Am I missing something? -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Sunday, February 11, 2007 7:22 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Abstract question Thanks, Shamil. I will play with this. The point behind all this is a situation in which the customer can define N product attributes. So we have two tables: Products (which defines the basic attributes that all client products have in common, and the user-defined product attributes, which are actually recorded as rows but then assimilated into columns on a single row, from which is generated said AutoForm). Assuming that the UDAs (user-defined attributes) are defined completely (i.e. this column needs phone-formatting, that column needs short-date formatting, etc.), then I'm imagining a form with a pair of tabs, the first of which displays the columns that all products share, while the second displays the columns the user has defined. Thus the need for an AutoForm. Client A has defined 10 attributes, Client B has defined 15. I don't want to rewrite the UI for each new client. I want to generate the UDA form and plonk it on the Tab2 automagically. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Shamil Salakhetdinov To: Access Developers discussion and problem solving Sent: Sunday, February 11, 2007 9:06:49 AM Subject: Re: [AccessD] Abstract question Hello Arthur, The task of "realizing that certain fields of any arbitrary recordset ought to be checkboxes, others formatted short-date, etc." can be solved by using recordset field's DisplayControl property, which defines what is a preferable way to display field's value: DisplayControl = 109 - textbox DisplayControl = 106 - checkbox DisplayControl = 110 - listbox DisplayControl = 111 - combobox Format property defines output format etc. You can find other useful properties to generate autoform - the following code can be used for that if you uncomment two code lines in Case Else code block: Public Sub TestDebugPrint(ByVal vstrRstName As String) Dim dbs As DAO.Database Dim rst As DAO.Recordset Dim fld As DAO.Field Dim fld1 As DAO.Field Dim prp As DAO.Property Set dbs = CurrentDb Set rst = dbs.OpenRecordset(vstrRstName) For Each fld In rst.Fields With fld Debug.Print .Name For Each prp In fld.Properties With prp Select Case .Name Case "DisplayControl", "Format": Debug.Print vbTab & prp.Name & " = " & _ propertyValue(prp) Case Else 'Debug.Print vbTab & prp.Name & " = " & _ ' propertyValue(prp) End Select End With Next prp End With Next fld End Sub Private Function propertyValue(ByRef rprp As DAO.Property) As Variant On Error GoTo HandleErr propertyValue = rprp.Value Exit Function HandleErr: propertyValue = "(N/A)" End Function -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Sunday, February 11, 2007 3:31 PM To: AccessD at databaseadvisors. com Subject: [AccessD] Abstract question Does anyone have an idea how to generate an autoForm from any arbitrary recordset? Ideally, such a class would have the smarts to realize that certain fields ought to be checkboxes, others formatted short-date, etc. 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mmattys at rochester.rr.com Sun Feb 11 15:19:32 2007 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Sun, 11 Feb 2007 16:19:32 -0500 Subject: [AccessD] Abstract question References: <923129.24515.qm@web88207.mail.re2.yahoo.com> Message-ID: <012e01c74e22$5403d3a0$0202a8c0@default> Hi Arthur, Thanks for not complaining ... here's the rest. Sub TestFC() 'NumRows, NumCols, and Modifier are always same FormCreator 7, 7, 7, "Seven" End Sub Sub FormCreator(NumRows As Integer, NumCols As Integer, Moderator, MyForm As String) 'Michael R Mattys 2000 Dim frm As Form Dim ctlTxt As Control, ctlLabel As Control Dim intColumn As Integer, intRow As Integer, i As Integer, J As Integer Dim intL As String, intT As String, intW As String, intH As String intL = 0 intT = 30 intW = 940 intH = 275 intColumn = 1 intRow = 1 Set frm = CreateForm(, "frmSpreadSheet") With frm .tag = "SS" .Width = 6.875 * 1440 .AutoCenter = False .BorderStyle = 1 .DefaultView = 0 .DividingLines = False .RecordSelectors = False .NavigationButtons = False .ScrollBars = 0 .PopUp = True .OnOpen = "=SSInit([Form])" .HasModule = True Set ctlLabel = CreateControl(frm.Name, acLabel, acDetail, , , 10, 10, 10, 10) With ctlLabel .Properties("Caption") = "HWND" .Properties("Name") = "lblHwnd" .Properties("Visible") = False End With For i = 1 To NumRows For J = 1 To NumCols Set ctlTxt = CreateControl(frm.Name, acTextBox, acDetail, , , intL, intT, intW, intH) With ctlTxt .Properties("Name") = "Col" & intColumn & "Row" & intRow .Properties("BackColor") = "13421619" End With intL = intL + 1000 intColumn = intColumn + 1 Next J If intColumn Mod (Moderator + 1) = 0 Then intColumn = 1 intL = 0 intT = intT + 300 intW = 940 intH = 275 intRow = intRow + 1 End If Next i .Width = CLng(intW * NumCols) .Section(0).Height = CLng(intH * NumRows) End With Dim FN As String FN = frm.Name DoCmd.Save acForm, FN DoCmd.Close acForm, FN DoCmd.Rename MyForm, acForm, FN CurrentDb.Containers("Forms").Documents.Refresh DoCmd.OpenForm MyForm, acNormal End Sub Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: To: "Access Developers discussion and problem solving" Sent: Sunday, February 11, 2007 11:30 AM Subject: Re: [AccessD] Abstract question > Thanks Michael! I shall play around with this and see if it can work. > > Arthur Fuller > Technical Writer, Data Modeler, SQL Sensei > Artful Databases Organization > www.artfulsoftware.com > > > > > ----- Original Message ---- > From: Michael R Mattys > To: Access Developers discussion and problem solving > > Sent: Sunday, February 11, 2007 11:19:20 AM > Subject: Re: [AccessD] Abstract question > > > I forgot this part ... > > '-----Module1----- > Public Function SSInit(ByRef rfrm As Form) > Dim obj As New clsSpreadSheet > obj.Init rfrm > End Function > > Public Sub AddSpreadSheets() > Dim frm1 As New Form_Spreadsheet > Dim frm2 As New Form_Spreadsheet > Dim frm3 As New Form_Spreadsheet > With frm1 > .Visible = True > DoCmd.MoveSize , 0 > End With > With frm2 > .Visible = True > DoCmd.MoveSize , 500 > End With > With frm3 > .Visible = True > DoCmd.MoveSize , 1000 > End With > End Sub > > Sub OpenSpreadSheets(NumberOfSS As Integer) > Dim i As Integer, f As Form, h As Long, r As Integer, d As Integer, M > As > Integer > r = 100 > For i = 1 To NumberOfSS > r = r + 500 > Set f = New Form_Spreadsheet > With f > d = M + f.Section(0).Properties("Height") > .Caption = .Name & i > .Visible = True > h = .hwnd > DoCmd.MoveSize , d > End With > d = d + d > Next > End Sub > > Michael R. Mattys > MapPoint & Access Dev > www.mattysconsulting.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From markamatte at hotmail.com Mon Feb 12 10:47:53 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 12 Feb 2007 16:47:53 +0000 Subject: [AccessD] A97 Linked Tables In-Reply-To: <34C8A2AB1EF3564CB0D64DB6AFFDD5C201201047@xlivmbx35.aig.com> Message-ID: Lambert, Thanks for the suggestion. I can map to this folder thru net use...and according to the Administrator I have full rights...but if I try your suggestion I get the error that I do not have permission to view the folder? Any ideas? Thanks, Mark A. Matte >From: "Heenan, Lambert" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] A97 Linked Tables >Date: Fri, 9 Feb 2007 15:09:50 -0500 > >No "mapping" is required. > >In Access when you browse to where the back end is to link to its tables, >instead of selecting the drive letter and browsing to the folder with the >MDB file, type > \\SERVERNAME\SharedFolderName >in the file name box of the file select dialog box. Hit enter and then you >will see the folders on the share and you can browse to the backend. The >paths stored within the front end will then be UNC paths instead of mapped >drive letter paths. > >HTH > >Lambert > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: Friday, February 09, 2007 3:00 PM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] A97 Linked Tables > > >Thanks Jim, > >I was using Net Use to link to the other machine...I'm on NT (SP4 I >think)...How would I map in this format? > >Thanks, > >Mark > > > > >From: Jim Lawrence > >Reply-To: Access Developers discussion and problem > >solving > >To: "'Access Developers discussion and problem > >solving'" > >Subject: Re: [AccessD] A97 Linked Tables > >Date: Fri, 09 Feb 2007 11:14:38 -0800 > > > >Hi Mark: > > > >You can map the BE in the format i.e: \\server1\Access97DB then you > >will > >not > >have to use drive letter mapping. > > > >Jim > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > >Sent: Friday, February 09, 2007 11:01 AM > >To: accessd at databaseadvisors.com > >Subject: [AccessD] A97 Linked Tables > > > >Hello All, > > > >In A97 I need to link the FE to the BE in a shared folder on the > >network. > >I > > > >have the folder mapped as a drive on my machine...the users will not. > > > >Do I need to map the drive on each of their machines...or... > > > >IS there another method of linking these tables? > > > >Thanks, > > > >Mark A. Matte > > > >_________________________________________________________________ > >Valentines Day -- Shop for gifts that spell L-O-V-E at MSN Shopping > >http://shopping.msn.com/content/shp/?ctId=8323,ptnrid=37,ptnrdata=24095 > >&tcod > >e=wlmtagline > > > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > >_________________________________________________________________ >FREE online classifieds from Windows Live Expo - buy and sell with people >you know >http://clk.atdmt.com/MSN/go/msnnkwex0010000001msn/direct/01/?href=http://exp >o.live.com?s_cid=Hotmail_tagline_12/06 > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ >From predictions to trailers, check out the MSN Entertainment Guide to the Academy Awards? http://movies.msn.com/movies/oscars2007/?icid=ncoscartagline1 From Lambert.Heenan at AIG.com Mon Feb 12 12:31:02 2007 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Mon, 12 Feb 2007 13:31:02 -0500 Subject: [AccessD] A97 Linked Tables Message-ID: <34C8A2AB1EF3564CB0D64DB6AFFDD5C20120105B@xlivmbx35.aig.com> Matt, It may be a local security policy imposed on your computer. For example on my machine I can fire up Explorer (Windows, not Internet) and type a UNC path into the address bar and then browse the folders on the network share, but other users with more restricted rights are not allowed to do that - they get an Access Denied message when they try, and can only browse with mapped drive letters. However, access itself is perfectly happy to use tables that are linked via UNC paths, even for users who cannot browse with UNC path in explorer. So the quick solution for you may be to have the browse restriction removed from your machine. Failing that, you may have to do the table linking using code. As I mentioned in an earlier post, I have a table in the front ends of the application I support which lists all the tables that the applications link to. The table has paths to both the production and development versions of the tables. When I want to release a new version of an application, one of the first steps is to relink the tables, and this is all done with code, using the "Linked Tables table" to determine all the paths. In other words, I never use the Access Linked Tables Manager dialog box. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Monday, February 12, 2007 11:48 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] A97 Linked Tables Lambert, Thanks for the suggestion. I can map to this folder thru net use...and according to the Administrator I have full rights...but if I try your suggestion I get the error that I do not have permission to view the folder? Any ideas? Thanks, Mark A. Matte >From: "Heenan, Lambert" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] A97 Linked Tables >Date: Fri, 9 Feb 2007 15:09:50 -0500 > >No "mapping" is required. > >In Access when you browse to where the back end is to link to its >tables, instead of selecting the drive letter and browsing to the >folder with the MDB file, type > \\SERVERNAME\SharedFolderName >in the file name box of the file select dialog box. Hit enter and then >you will see the folders on the share and you can browse to the >backend. The paths stored within the front end will then be UNC paths >instead of mapped drive letter paths. > >HTH > >Lambert > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: Friday, February 09, 2007 3:00 PM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] A97 Linked Tables > > >Thanks Jim, > >I was using Net Use to link to the other machine...I'm on NT (SP4 I >think)...How would I map in this format? > >Thanks, > >Mark > > > > >From: Jim Lawrence > >Reply-To: Access Developers discussion and problem > >solving > >To: "'Access Developers discussion and problem > >solving'" > >Subject: Re: [AccessD] A97 Linked Tables > >Date: Fri, 09 Feb 2007 11:14:38 -0800 > > > >Hi Mark: > > > >You can map the BE in the format i.e: \\server1\Access97DB then you > >will not > >have to use drive letter mapping. > > > >Jim > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A > >Matte > >Sent: Friday, February 09, 2007 11:01 AM > >To: accessd at databaseadvisors.com > >Subject: [AccessD] A97 Linked Tables > > > >Hello All, > > > >In A97 I need to link the FE to the BE in a shared folder on the > >network. I > > > >have the folder mapped as a drive on my machine...the users will not. > > > >Do I need to map the drive on each of their machines...or... > > > >IS there another method of linking these tables? > > > >Thanks, > > > >Mark A. Matte > > > >_________________________________________________________________ > >Valentines Day -- Shop for gifts that spell L-O-V-E at MSN Shopping > >http://shopping.msn.com/content/shp/?ctId=8323,ptnrid=37,ptnrdata=240 > >95 > >&tcod > >e=wlmtagline > > > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > >_________________________________________________________________ >FREE online classifieds from Windows Live Expo - buy and sell with >people you know >http://clk.atdmt.com/MSN/go/msnnkwex0010000001msn/direct/01/?href=http: >//exp >o.live.com?s_cid=Hotmail_tagline_12/06 > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ >From predictions to trailers, check out the MSN Entertainment Guide to >the Academy Awards(r) http://movies.msn.com/movies/oscars2007/?icid=ncoscartagline1 From kost36 at otenet.gr Mon Feb 12 13:43:08 2007 From: kost36 at otenet.gr (Kostas Konstantinidis) Date: Mon, 12 Feb 2007 21:43:08 +0200 Subject: [AccessD] How to transfer text.. References: <34C8A2AB1EF3564CB0D64DB6AFFDD5C20120105B@xlivmbx35.aig.com> Message-ID: <005301c74ede$0aa21890$6501a8c0@kost36> hi group, On a double click on a form I use the follown: Private Sub AM_DblClick(Cancel As Integer) Dim poustia As String Dim stdocname As String stdocname = "MT_basic_char" If IsNull(num_mitroou) Then DoCmd.OpenForm stdocname DoCmd.GoToRecord acDataForm, stdocname, acNewRec else poustia = Me!num_mitroou DoCmd.OpenForm stdocname, , , "num_mitroou= " & poustia End If End Sub what I want to do is after the new record update and closing the stdocname the text of AM's field to be tranfered to the AM field of the opened form Many thank's /kostas From mmattys at rochester.rr.com Mon Feb 12 14:15:07 2007 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Mon, 12 Feb 2007 15:15:07 -0500 Subject: [AccessD] How to transfer text.. References: <34C8A2AB1EF3564CB0D64DB6AFFDD5C20120105B@xlivmbx35.aig.com> <005301c74ede$0aa21890$6501a8c0@kost36> Message-ID: <009c01c74ee2$7e5b3330$0202a8c0@default> Hi Kostas, The next line, then, would be Forms(stdocname)!AM = Me!AM Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "Kostas Konstantinidis" To: "Access Developers discussion and problem solving" Sent: Monday, February 12, 2007 2:43 PM Subject: [AccessD] How to transfer text.. > hi group, > On a double click on a form I use the follown: > > Private Sub AM_DblClick(Cancel As Integer) > Dim poustia As String > Dim stdocname As String > > stdocname = "MT_basic_char" > If IsNull(num_mitroou) Then > DoCmd.OpenForm stdocname > DoCmd.GoToRecord acDataForm, stdocname, acNewRec > else > poustia = Me!num_mitroou > DoCmd.OpenForm stdocname, , , "num_mitroou= " & poustia > End If > End Sub > > > what I want to do is after the new record update and closing the > stdocname > the text of AM's field to be tranfered to the AM field of the opened form > > Many thank's > /kostas > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From mmattys at rochester.rr.com Mon Feb 12 14:29:02 2007 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Mon, 12 Feb 2007 15:29:02 -0500 Subject: [AccessD] How to transfer text.. References: <34C8A2AB1EF3564CB0D64DB6AFFDD5C20120105B@xlivmbx35.aig.com> <005301c74ede$0aa21890$6501a8c0@kost36> <009c01c74ee2$7e5b3330$0202a8c0@default> Message-ID: <00d401c74ee4$703d8b20$0202a8c0@default> Oops, backwards isn't it? In that case, why not declare a global variable in a module that you can make equal to Forms("MT_basic_char")!AM before you close it and then gather that to the open form ... Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "Michael R Mattys" To: "Access Developers discussion and problem solving" Sent: Monday, February 12, 2007 3:15 PM Subject: Re: [AccessD] How to transfer text.. > Hi Kostas, > > The next line, then, would be > Forms(stdocname)!AM = Me!AM > > Michael R. Mattys > MapPoint & Access Dev > www.mattysconsulting.com > > ----- Original Message ----- > From: "Kostas Konstantinidis" > To: "Access Developers discussion and problem solving" > > Sent: Monday, February 12, 2007 2:43 PM > Subject: [AccessD] How to transfer text.. > > >> hi group, >> On a double click on a form I use the follown: >> >> Private Sub AM_DblClick(Cancel As Integer) >> Dim poustia As String >> Dim stdocname As String >> >> stdocname = "MT_basic_char" >> If IsNull(num_mitroou) Then >> DoCmd.OpenForm stdocname >> DoCmd.GoToRecord acDataForm, stdocname, acNewRec >> else >> poustia = Me!num_mitroou >> DoCmd.OpenForm stdocname, , , "num_mitroou= " & poustia >> End If >> End Sub >> >> >> what I want to do is after the new record update and closing the >> stdocname >> the text of AM's field to be tranfered to the AM field of the opened >> form >> >> Many thank's >> /kostas >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> 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 Feb 12 14:35:51 2007 From: pedro at plex.nl (Pedro Janssen) Date: Mon, 12 Feb 2007 21:35:51 +0100 Subject: [AccessD] event procedure code Message-ID: <001501c74ee5$6338e9a0$400aa8c0@qmotionfaa3ad9> Hello Group, in a form that displays pictures that are stored outside the database (in a certain directory), i have a textbox, in which the name of the picturefile is placed. Is it possible to ad code to a button, so that the source file (name of the picturefile) in Windows explorer is presented highlighted. About the same function as the "search target" button in the preferences of a shortcut. Pedro Janssen From Lambert.Heenan at AIG.com Mon Feb 12 14:40:08 2007 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Mon, 12 Feb 2007 14:40:08 -0600 Subject: [AccessD] How to transfer text.. Message-ID: <34C8A2AB1EF3564CB0D64DB6AFFDD5C201201067@xlivmbx35.aig.com> You could to this... Private Sub AM_DblClick(Cancel As Integer) Dim poustia As String Dim stdocname As String stdocname = "MT_basic_char" If IsNull(num_mitroou) Then DoCmd.OpenForm stdocname,,,,,acDialog DoCmd.GoToRecord acDataForm, stdocname, acNewRec Me!AM = Forms(stdocname)!AM DoCmd.Close acForm, stdocname else poustia = Me!num_mitroou DoCmd.OpenForm stdocname, , , "num_mitroou= " & poustia End If End Sub The trick to this is that you open stdocname in dialog mode. That causes the calling code to wait until either the opened form closes, or it is made invisible. So if the MT_basic_char form's "Close" button is modified from DoCmd.Close acFrom, Me.Name To Me.Visible = False Then when the user hits the close button the form will be hidden, the calling code will resume execution, and it can pick up the value entered with the line "Me!AM = Forms(stdocname)!AM", and then you code continues by actually closing the called form. HTH Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas Konstantinidis Sent: Monday, February 12, 2007 2:43 PM To: Access Developers discussion and problem solving Subject: [AccessD] How to transfer text.. hi group, On a double click on a form I use the follown: Private Sub AM_DblClick(Cancel As Integer) Dim poustia As String Dim stdocname As String stdocname = "MT_basic_char" If IsNull(num_mitroou) Then DoCmd.OpenForm stdocname DoCmd.GoToRecord acDataForm, stdocname, acNewRec else poustia = Me!num_mitroou DoCmd.OpenForm stdocname, , , "num_mitroou= " & poustia End If End Sub what I want to do is after the new record update and closing the stdocname the text of AM's field to be tranfered to the AM field of the opened form Many thank's /kostas -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ebairead at gmail.com Mon Feb 12 14:49:50 2007 From: ebairead at gmail.com (=?ISO-8859-1?Q?Eoin_C._Bair=E9ad?=) Date: Mon, 12 Feb 2007 20:49:50 +0000 Subject: [AccessD] Paradigm for Keywords in a database Message-ID: <3d2a5ccc0702121249u6a180552uac0211e3902dabaa@mail.gmail.com> Hi I have a database where each record has a number of Keywords assocciated with it. I can't for the life of me see how to construct either the table or a query to find, say, all records where the keywords "Access" Developers" and "brilliant" can be found. Any ideas ???? Eoin -- -- Eoin C. Bair?ad Dublin, Ireland ?th Cliath, ?ire From jwcolby at colbyconsulting.com Mon Feb 12 15:00:41 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Mon, 12 Feb 2007 16:00:41 -0500 Subject: [AccessD] Paradigm for Keywords in a database In-Reply-To: <3d2a5ccc0702121249u6a180552uac0211e3902dabaa@mail.gmail.com> Message-ID: <003901c74ee8$db9eb8e0$657aa8c0@m6805> LOL, boy is THAT tempting! John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eoin C. Bair?ad Sent: Monday, February 12, 2007 3:50 PM To: Access Developers discussion and problem solving Subject: [AccessD] Paradigm for Keywords in a database Hi I have a database where each record has a number of Keywords assocciated with it. I can't for the life of me see how to construct either the table or a query to find, say, all records where the keywords "Access" Developers" and "brilliant" can be found. Any ideas ???? Eoin -- -- Eoin C. Bair?ad Dublin, Ireland ?th Cliath, ?ire -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mmattys at rochester.rr.com Mon Feb 12 15:08:34 2007 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Mon, 12 Feb 2007 16:08:34 -0500 Subject: [AccessD] Paradigm for Keywords in a database References: <3d2a5ccc0702121249u6a180552uac0211e3902dabaa@mail.gmail.com> Message-ID: <00ea01c74ee9$f89661e0$0202a8c0@default> What day is it? Oh, Monday. Thought it was Friday Humor for a minute. :) Eoin, How are the keywords stored? Are the comma seperated values in their own column? Could you use instr() for the criteria in the query grid? Would it not be better to associate each keyword with a number in a keywords-table and then look it up? Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "Eoin C. Bair?ad" To: "Access Developers discussion and problem solving" Sent: Monday, February 12, 2007 3:49 PM Subject: [AccessD] Paradigm for Keywords in a database Hi I have a database where each record has a number of Keywords assocciated with it. I can't for the life of me see how to construct either the table or a query to find, say, all records where the keywords "Access" Developers" and "brilliant" can be found. Any ideas ???? Eoin -- -- Eoin C. Bair?ad Dublin, Ireland ?th Cliath, ?ire -- 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 Feb 12 15:06:27 2007 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Mon, 12 Feb 2007 15:06:27 -0600 Subject: [AccessD] Paradigm for Keywords in a database Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DE2A5@corp-es01.fleetpride.com> How are the keywords associated to the record? A separate table with a key and a field with the keyword? Multiple fields on the record with one keyword per field? Or one field with a string of keywords? Jim Hale -----Original Message----- From: Eoin C. Bair?ad [mailto:ebairead at gmail.com] Sent: Monday, February 12, 2007 2:50 PM To: Access Developers discussion and problem solving Subject: [AccessD] Paradigm for Keywords in a database Hi I have a database where each record has a number of Keywords assocciated with it. I can't for the life of me see how to construct either the table or a query to find, say, all records where the keywords "Access" Developers" and "brilliant" can be found. Any ideas ???? Eoin -- -- Eoin C. Bair?ad Dublin, Ireland ?th Cliath, ?ire -- 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 rockysmolin at bchacc.com Mon Feb 12 15:21:22 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Mon, 12 Feb 2007 13:21:22 -0800 Subject: [AccessD] Data Not Displaying in Text and Combo Boxes Message-ID: <012a01c74eeb$becf82a0$0201a8c0@HAL9005> Dear List: I call form from another form and in the open event of the called form, if the calling form is open (the called form could also be opened from the switchboard as well), I insert the values into the called form from the calling form: If CurrentProject.AllForms("frmWorkDetail").IsLoaded Then Me.cboEmployer = Forms!frmWorkDetail!cboEmployer.Column(0) Me.txtEmployer = Forms!frmWorkDetail!txtEmployer Me.cboMonth = Forms!frmWorkDetail!cboWorkMonth Me.cboYear.Value = Forms!frmWorkDetail!cboWorkYear Me.cboClass = Forms!frmWorkDetail!cboClass.Column(0) Me.cboEntryMonth = Forms!frmWorkDetail!cboEntryMonth Me.cboEntryYear = Forms!frmWorkDetail!cboEntryYear Me.txtEmployerID = Forms!frmWorkDetail!txtEmployerID End If then base the form's record source on those parameters: Me.RecordSource = "Select * FROM tblAdjustment WHERE " _ & "fldEmployerID = " & Val(Me.txtEmployerID) & " AND fldClassID = " _ & Me.cboClass.Column(0) & " AND fldAdjustmentMonth = " & Me.cboMonth.Column(0) _ & " AND fldAdjustmentYear = " & Me.cboYear & " AND fldAdjustmentEntryMonth = " _ & Me.cboEntryMonth.Column(0) & " AND fldAdjustmentEntryYear = " & Me.cboEntryYear It's working fine except for one thing - the passed values are not displayed in the text and combo boxes. But they are there because the modified record source gets the right records. And I even displayed Me.RecordSource in a MsgBox and it was correct. Here's the weird part (meaning SOP for Access) - if I alt-Tab away from the form then alt-Tab back, the values appear in the text and combo boxes. I tried adding a repaint before the End If but no soap. Any ideas? MTIA, Rocky From jwcolby at colbyconsulting.com Mon Feb 12 15:35:32 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Mon, 12 Feb 2007 16:35:32 -0500 Subject: [AccessD] Data Not Displaying in Text and Combo Boxes In-Reply-To: <012a01c74eeb$becf82a0$0201a8c0@HAL9005> Message-ID: <003a01c74eed$ba450690$657aa8c0@m6805> Let me get this straight, the opening form is bound, the controls are bound, but when the form finishes opening it doesn't display the right data? Is it possible that the opening form is pulling a recordset with more than one record, and the values "pulled in" are not for the record currently being displayed? Why would you set the values in bound controls if the form is going to display the record anyway? Just open the form, tell it to display the specific record being displayed back on the other form, and be done with it. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, February 12, 2007 4:21 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Data Not Displaying in Text and Combo Boxes Dear List: I call form from another form and in the open event of the called form, if the calling form is open (the called form could also be opened from the switchboard as well), I insert the values into the called form from the calling form: If CurrentProject.AllForms("frmWorkDetail").IsLoaded Then Me.cboEmployer = Forms!frmWorkDetail!cboEmployer.Column(0) Me.txtEmployer = Forms!frmWorkDetail!txtEmployer Me.cboMonth = Forms!frmWorkDetail!cboWorkMonth Me.cboYear.Value = Forms!frmWorkDetail!cboWorkYear Me.cboClass = Forms!frmWorkDetail!cboClass.Column(0) Me.cboEntryMonth = Forms!frmWorkDetail!cboEntryMonth Me.cboEntryYear = Forms!frmWorkDetail!cboEntryYear Me.txtEmployerID = Forms!frmWorkDetail!txtEmployerID End If then base the form's record source on those parameters: Me.RecordSource = "Select * FROM tblAdjustment WHERE " _ & "fldEmployerID = " & Val(Me.txtEmployerID) & " AND fldClassID = " _ & Me.cboClass.Column(0) & " AND fldAdjustmentMonth = " & Me.cboMonth.Column(0) _ & " AND fldAdjustmentYear = " & Me.cboYear & " AND fldAdjustmentEntryMonth = " _ & Me.cboEntryMonth.Column(0) & " AND fldAdjustmentEntryYear = " & Me.cboEntryYear It's working fine except for one thing - the passed values are not displayed in the text and combo boxes. But they are there because the modified record source gets the right records. And I even displayed Me.RecordSource in a MsgBox and it was correct. Here's the weird part (meaning SOP for Access) - if I alt-Tab away from the form then alt-Tab back, the values appear in the text and combo boxes. I tried adding a repaint before the End If but no soap. Any ideas? MTIA, Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Mon Feb 12 16:38:21 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Mon, 12 Feb 2007 14:38:21 -0800 Subject: [AccessD] Data Not Displaying in Text and Combo Boxes In-Reply-To: <003a01c74eed$ba450690$657aa8c0@m6805> Message-ID: <014f01c74ef6$80060cf0$0201a8c0@HAL9005> Not quite. The calling form is bound but the values in the calling form that are being passed are unbound. They are in the header and are used to filter data on that form as well as to create records in the table that IS bound to the calling form. In the called form the user enters and edits dollar adjustments (to payroll numbers). The called form can either be opened from a command button on the calling form, or from the main menu (switchboard). When the user opens the adjustments from from the main menu, they select the parameters they want. But when the adjustment form opens from the calling form, those six parameters are already selected in the calling form. So instead of having them re-enter those six parameters, they want them to be passed to the called form so everything is set up to enter the adjustments. So the bit of code down there starting with If CurrentProject.AllForms("frmWorkDetail").IsLoaded Then does that. And it works. The only problem is that the values are not displayed in the unbound boxes on the called form (you can think of these unbound boxes on both forms as filters, I guess). If I do alt-Tab to another open window, and the alt-Tab back, the value are now displayed. The values are there because I monitored the creation of the called form's Record Source based on those values, drawn from the unbound text boxes (and combo boxes) and the values are there. Just not showing in the form. I'm doing this work, BTW, in the Open event of the called form. Maybe I should move it to the Load event? Hey! I just tried that. Moved the code from the Open event to the Load event and it worked! Thanks for kick starting the old branium. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Monday, February 12, 2007 1:36 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Data Not Displaying in Text and Combo Boxes Let me get this straight, the opening form is bound, the controls are bound, but when the form finishes opening it doesn't display the right data? Is it possible that the opening form is pulling a recordset with more than one record, and the values "pulled in" are not for the record currently being displayed? Why would you set the values in bound controls if the form is going to display the record anyway? Just open the form, tell it to display the specific record being displayed back on the other form, and be done with it. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, February 12, 2007 4:21 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Data Not Displaying in Text and Combo Boxes Dear List: I call form from another form and in the open event of the called form, if the calling form is open (the called form could also be opened from the switchboard as well), I insert the values into the called form from the calling form: If CurrentProject.AllForms("frmWorkDetail").IsLoaded Then Me.cboEmployer = Forms!frmWorkDetail!cboEmployer.Column(0) Me.txtEmployer = Forms!frmWorkDetail!txtEmployer Me.cboMonth = Forms!frmWorkDetail!cboWorkMonth Me.cboYear.Value = Forms!frmWorkDetail!cboWorkYear Me.cboClass = Forms!frmWorkDetail!cboClass.Column(0) Me.cboEntryMonth = Forms!frmWorkDetail!cboEntryMonth Me.cboEntryYear = Forms!frmWorkDetail!cboEntryYear Me.txtEmployerID = Forms!frmWorkDetail!txtEmployerID End If then base the form's record source on those parameters: Me.RecordSource = "Select * FROM tblAdjustment WHERE " _ & "fldEmployerID = " & Val(Me.txtEmployerID) & " AND fldClassID = " _ & Me.cboClass.Column(0) & " AND fldAdjustmentMonth = " & Me.cboMonth.Column(0) _ & " AND fldAdjustmentYear = " & Me.cboYear & " AND fldAdjustmentEntryMonth = " _ & Me.cboEntryMonth.Column(0) & " AND fldAdjustmentEntryYear = " & Me.cboEntryYear It's working fine except for one thing - the passed values are not displayed in the text and combo boxes. But they are there because the modified record source gets the right records. And I even displayed Me.RecordSource in a MsgBox and it was correct. Here's the weird part (meaning SOP for Access) - if I alt-Tab away from the form then alt-Tab back, the values appear in the text and combo boxes. I tried adding a repaint before the End If but no soap. Any ideas? MTIA, Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.17.36/681 - Release Date: 2/11/2007 6:50 PM From martyconnelly at shaw.ca Mon Feb 12 17:33:44 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 12 Feb 2007 15:33:44 -0800 Subject: [AccessD] Paradigm for Keywords in a database In-Reply-To: <3d2a5ccc0702121249u6a180552uac0211e3902dabaa@mail.gmail.com> References: <3d2a5ccc0702121249u6a180552uac0211e3902dabaa@mail.gmail.com> Message-ID: <45D0F958.306@shaw.ca> How about? strSQL = "SELECT * FROM tbl1 WHERE (('tbl1!Title LIKE *' & Chr(34) & search1 & Chr(34) & '*') OR ('tbl1!Keyword LIKE *' & Chr(34) & search1 & Chr(34) & '*')); Eoin C. Bair?ad wrote: >Hi > >I have a database where each record has a number of Keywords assocciated >with it. I can't for the life of me see how to construct either the table >or a query to find, say, all records where the keywords "Access" Developers" >and "brilliant" can be found. > >Any ideas ???? > >Eoin > > > -- Marty Connelly Victoria, B.C. Canada From artful at rogers.com Mon Feb 12 17:47:19 2007 From: artful at rogers.com (artful at rogers.com) Date: Mon, 12 Feb 2007 15:47:19 -0800 (PST) Subject: [AccessD] Paradigm for Keywords in a database Message-ID: <445852.57793.qm@web88209.mail.re2.yahoo.com> Let us assume two tables as Michael said, such that table A has Title "ABCDE" and the keywords table has A, B, C, D and E as associated (child) rows. In this scenario, given criterion "A or C" then your query becomes" SELECT Distinct * From ChildTable WHERE Criterion IN('A', 'C'). (Not that IN() is by any means the optimal way to go, but it suffices in this case to demonstrate the How. Arthur ----- Original Message ---- From: Michael R Mattys To: Access Developers discussion and problem solving Sent: Monday, February 12, 2007 4:08:34 PM Subject: Re: [AccessD] Paradigm for Keywords in a database What day is it? Oh, Monday. Thought it was Friday Humor for a minute. :) Eoin, How are the keywords stored? Are the comma seperated values in their own column? Could you use instr() for the criteria in the query grid? Would it not be better to associate each keyword with a number in a keywords-table and then look it up? Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "Eoin C. Bair?ad" To: "Access Developers discussion and problem solving" Sent: Monday, February 12, 2007 3:49 PM Subject: [AccessD] Paradigm for Keywords in a database Hi I have a database where each record has a number of Keywords assocciated with it. I can't for the life of me see how to construct either the table or a query to find, say, all records where the keywords "Access" Developers" and "brilliant" can be found. Any ideas ???? Eoin -- -- Eoin C. Bair?ad Dublin, Ireland ?th Cliath, ?ire -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From darrend at nimble.com.au Mon Feb 12 22:46:36 2007 From: darrend at nimble.com.au (Darren DICK) Date: Tue, 13 Feb 2007 15:46:36 +1100 Subject: [AccessD] How do I refer to controls in an ADP Message-ID: <20070213044640.TVSG14761.oaamta03ps.mx.bigpond.com@DENZILLAP> Hi all Normally in the Criteria for a query I would type something like Forms!frmCoolForm!txtSomeControl What would I type in the criteria of a query to refer to an ADP? Pages!pgCoolPage!txtSomeControl won't work Any suggestions? Thanks DD From artful at rogers.com Tue Feb 13 02:46:13 2007 From: artful at rogers.com (artful at rogers.com) Date: Tue, 13 Feb 2007 00:46:13 -0800 (PST) Subject: [AccessD] How do I refer to controls in an ADP Message-ID: <395702.1350.qm@web88214.mail.re2.yahoo.com> As for me, I don't like queries that refer specifically to a given form's controls, since they cannot be run without that form being open. I like to use static functions for this. JWC prefers to use a class. Either way, you gain the freedom from form-binding and thus can use the query in numerous contexts, without depending on the form. Arthur ----- Original Message ---- From: Darren DICK To: Access Developers discussion and problem solving Sent: Monday, February 12, 2007 11:46:36 PM Subject: [AccessD] How do I refer to controls in an ADP Hi all Normally in the Criteria for a query I would type something like Forms!frmCoolForm!txtSomeControl What would I type in the criteria of a query to refer to an ADP? Pages!pgCoolPage!txtSomeControl won't work Any suggestions? Thanks DD From Erwin.Craps at ithelps.eu Tue Feb 13 03:40:41 2007 From: Erwin.Craps at ithelps.eu (Erwin Craps - IT Helps) Date: Tue, 13 Feb 2007 10:40:41 +0100 Subject: [AccessD] Setting birtday date in Outlook contact to none Message-ID: <430E80531228BA4497C5EB1A7BA786B00241D2@stekelbes.ithelps.local> Hi Group I'm trying to set a Outlook contactperson Birthday or Special date to none (from Access VBA), but for some reason I can't. I cant use null , invalid type setting 0 returns za 30/12/1899 Just cant find a way to set it to none.... Erwin Craps Zaakvoerder Nieuwe internetwinkel op www.ithelps.be/shop www.ithelps.be/onsgezin bezoek ook eens de website van mijn zus www.friedacraps.be 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 darrend at nimble.com.au Tue Feb 13 05:26:01 2007 From: darrend at nimble.com.au (Darren DICK) Date: Tue, 13 Feb 2007 22:26:01 +1100 Subject: [AccessD] How do I refer to controls in an ADP In-Reply-To: <395702.1350.qm@web88214.mail.re2.yahoo.com> Message-ID: <20070213112605.FJAA17816.oaamta02ps.mx.bigpond.com@DENZILLAP> Thanks Arthur I am just 'testing' at the moment - Never done an ADP Basically I have 2 combos. The first has an item selected then the 'query I am speaking about will be come the recordset for the second one - based on what the user selected in the first Simple in VBA Can this be done - I'd just like to know how it is done? If you have a better or more elegant way that allows for re-use I'd love to see it too please How do I bind any recordset from a Static Function to anything on an ADP - Combo, Page etc Anything Many thanks Darren ------------------ T: 0424 696 433 -----Original Message----- From: artful at rogers.com [mailto:artful at rogers.com] Sent: Tuesday, 13 February 2007 7:46 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] How do I refer to controls in an ADP As for me, I don't like queries that refer specifically to a given form's controls, since they cannot be run without that form being open. I like to use static functions for this. JWC prefers to use a class. Either way, you gain the freedom from form-binding and thus can use the query in numerous contexts, without depending on the form. Arthur ----- Original Message ---- From: Darren DICK To: Access Developers discussion and problem solving Sent: Monday, February 12, 2007 11:46:36 PM Subject: [AccessD] How do I refer to controls in an ADP Hi all Normally in the Criteria for a query I would type something like Forms!frmCoolForm!txtSomeControl What would I type in the criteria of a query to refer to an ADP? Pages!pgCoolPage!txtSomeControl won't work Any suggestions? Thanks DD -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Tue Feb 13 05:50:24 2007 From: artful at rogers.com (artful at rogers.com) Date: Tue, 13 Feb 2007 03:50:24 -0800 (PST) Subject: [AccessD] How do I refer to controls in an ADP Message-ID: <155409.36971.qm@web88211.mail.re2.yahoo.com> Hi Darren, There are numerous ways to do what you want. I assume that you already know how to create a static function. (If not, then search the archives; I have written on this several times.) Assuming that you have a static function that can get/set the value of interest, then you have several options: 1. create a stored procedure that accepts a value and supply its name as the rowsource of your second control. Then pass the static function's return value to it, like this: MyControl.RowSource = exec MySproc MyStatic() 2. Create a UDF that does the same thing, in which case the rowSource would be = MyUDF(MyStatic()). In either case, fire the second control immediately after obtaining the value for the first control. You can do this in several ways, too. Typically, I do it be redefining the RowSource, but there are other ways too. I think they are all about equivalent, so it's just a matter of taste how you do it. If you need more precise instructions, hang on a bit and I will supply a simple ADP that illustrates how to do this. (I haven't got SQL 2000 installed at the moment, and A2K3 doesn't support all the cool extensions in SQL 2005, but I'm installing it now so I can whip up the example.) Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Darren DICK To: Access Developers discussion and problem solving Sent: Tuesday, February 13, 2007 6:26:01 AM Subject: Re: [AccessD] How do I refer to controls in an ADP Thanks Arthur I am just 'testing' at the moment - Never done an ADP Basically I have 2 combos. The first has an item selected then the 'query I am speaking about will be come the recordset for the second one - based on what the user selected in the first Simple in VBA Can this be done - I'd just like to know how it is done? If you have a better or more elegant way that allows for re-use I'd love to see it too please How do I bind any recordset from a Static Function to anything on an ADP - Combo, Page etc Anything Many thanks Darren ------------------ T: 0424 696 433 -----Original Message----- From: artful at rogers.com [mailto:artful at rogers.com] Sent: Tuesday, 13 February 2007 7:46 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] How do I refer to controls in an ADP As for me, I don't like queries that refer specifically to a given form's controls, since they cannot be run without that form being open. I like to use static functions for this. JWC prefers to use a class. Either way, you gain the freedom from form-binding and thus can use the query in numerous contexts, without depending on the form. Arthur ----- Original Message ---- From: Darren DICK To: Access Developers discussion and problem solving Sent: Monday, February 12, 2007 11:46:36 PM Subject: [AccessD] How do I refer to controls in an ADP Hi all Normally in the Criteria for a query I would type something like Forms!frmCoolForm!txtSomeControl What would I type in the criteria of a query to refer to an ADP? Pages!pgCoolPage!txtSomeControl won't work Any suggestions? Thanks DD -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From darrend at nimble.com.au Tue Feb 13 06:36:09 2007 From: darrend at nimble.com.au (Darren DICK) Date: Tue, 13 Feb 2007 23:36:09 +1100 Subject: [AccessD] How do I refer to controls in an ADP In-Reply-To: <155409.36971.qm@web88211.mail.re2.yahoo.com> Message-ID: <20070213123613.FUOA19269.omta05ps.mx.bigpond.com@DENZILLAP> Hi Arthur Brilliant I forgot to mention Acc2003 Backend - not SQL Darren ------------------ T: 0424 696 433 -----Original Message----- From: artful at rogers.com [mailto:artful at rogers.com] Sent: Tuesday, 13 February 2007 10:50 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] How do I refer to controls in an ADP Hi Darren, There are numerous ways to do what you want. I assume that you already know how to create a static function. (If not, then search the archives; I have written on this several times.) Assuming that you have a static function that can get/set the value of interest, then you have several options: 1. create a stored procedure that accepts a value and supply its name as the rowsource of your second control. Then pass the static function's return value to it, like this: MyControl.RowSource = exec MySproc MyStatic() 2. Create a UDF that does the same thing, in which case the rowSource would be = MyUDF(MyStatic()). In either case, fire the second control immediately after obtaining the value for the first control. You can do this in several ways, too. Typically, I do it be redefining the RowSource, but there are other ways too. I think they are all about equivalent, so it's just a matter of taste how you do it. If you need more precise instructions, hang on a bit and I will supply a simple ADP that illustrates how to do this. (I haven't got SQL 2000 installed at the moment, and A2K3 doesn't support all the cool extensions in SQL 2005, but I'm installing it now so I can whip up the example.) Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Darren DICK To: Access Developers discussion and problem solving Sent: Tuesday, February 13, 2007 6:26:01 AM Subject: Re: [AccessD] How do I refer to controls in an ADP Thanks Arthur I am just 'testing' at the moment - Never done an ADP Basically I have 2 combos. The first has an item selected then the 'query I am speaking about will be come the recordset for the second one - based on what the user selected in the first Simple in VBA Can this be done - I'd just like to know how it is done? If you have a better or more elegant way that allows for re-use I'd love to see it too please How do I bind any recordset from a Static Function to anything on an ADP - Combo, Page etc Anything Many thanks Darren ------------------ T: 0424 696 433 -----Original Message----- From: artful at rogers.com [mailto:artful at rogers.com] Sent: Tuesday, 13 February 2007 7:46 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] How do I refer to controls in an ADP As for me, I don't like queries that refer specifically to a given form's controls, since they cannot be run without that form being open. I like to use static functions for this. JWC prefers to use a class. Either way, you gain the freedom from form-binding and thus can use the query in numerous contexts, without depending on the form. Arthur ----- Original Message ---- From: Darren DICK To: Access Developers discussion and problem solving Sent: Monday, February 12, 2007 11:46:36 PM Subject: [AccessD] How do I refer to controls in an ADP Hi all Normally in the Criteria for a query I would type something like Forms!frmCoolForm!txtSomeControl What would I type in the criteria of a query to refer to an ADP? Pages!pgCoolPage!txtSomeControl won't work Any suggestions? Thanks DD -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at hotmail.com Tue Feb 13 06:39:05 2007 From: adtp at hotmail.com (A.D.TEJPAL) Date: Tue, 13 Feb 2007 18:09:05 +0530 Subject: [AccessD] Paradigm for Keywords in a database References: <3d2a5ccc0702121249u6a180552uac0211e3902dabaa@mail.gmail.com> Message-ID: Eoin, Apparently, the most intricate scenario would be represented by a table having various key words scattered across various fields, and only those records are required to be displayed where one or more of the specified keywords appear across any of its fields. Sample query Q_Match, as given below, would get you the desired results. It makes use of function Fn_MatchKeyWord(), as given below. KeyString (the first argument required to be passed to this function) is a comma separated string of specified keywords. The order in which these keywords appear in the string, is immaterial. For current illustration, this string is "Brilliant,Access,Developer". In the sample query, T_Data is the name of table, while F1, F2, F3 are names of fields likely to hold any of the keywords. If there are more than three such fields, these can be concatenated suitably in the manner demonstrated. Best wishes, A.D.Tejpal --------------- Q_Match (Sample Query for showing records having any of the matching keywords) ================================= SELECT T_Data.* FROM T_Data WHERE Fn_MatchKeyWord("Brilliant,Access,Developer", [F1] & [F2] & [F3]) > 0; ================================= Function Fn_MatchKeyWord() ================================= Function Fn_MatchKeyWord( _ ByVal KeyString As String, _ ByVal FieldValue As String) As Long ' Returns 1 if there is a match with any ' of the kewords, otherwise 0 ' KeyString is a comma separated string of ' keywords required to be matched Dim Match As Long, Cnt As Long Dim Rtv As Variant Match = 0 ' Default Value Rtv = Split(KeyString, ",") For Cnt = 0 To UBound(Rtv) If InStr(FieldValue, Rtv(Cnt)) > 0 Then Match = 1 Exit For End If Next Fn_MatchKeyWord = Match End Function ================================= ----- Original Message ----- From: Eoin C. Bair?ad To: Access Developers discussion and problem solving Sent: Tuesday, February 13, 2007 02:19 Subject: [AccessD] Paradigm for Keywords in a database Hi I have a database where each record has a number of Keywords assocciated with it. I can't for the life of me see how to construct either the table or a query to find, say, all records where the keywords "Access" Developers" and "brilliant" can be found. Any ideas ???? Eoin From artful at rogers.com Tue Feb 13 06:59:33 2007 From: artful at rogers.com (artful at rogers.com) Date: Tue, 13 Feb 2007 04:59:33 -0800 (PST) Subject: [AccessD] How do I refer to controls in an ADP Message-ID: <35739.92024.qm@web88206.mail.re2.yahoo.com> In an MDB back end the same principle applies, but you won't be calling a sproc, just refreshing the RowSource. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Darren DICK To: Access Developers discussion and problem solving Sent: Tuesday, February 13, 2007 7:36:09 AM Subject: Re: [AccessD] How do I refer to controls in an ADP Hi Arthur Brilliant I forgot to mention Acc2003 Backend - not SQL Darren From askolits at ot.com Tue Feb 13 08:02:35 2007 From: askolits at ot.com (John Skolits) Date: Tue, 13 Feb 2007 09:02:35 -0500 Subject: [AccessD] Access file association switching between Runtime and Full Access In-Reply-To: <35739.92024.qm@web88206.mail.re2.yahoo.com> Message-ID: <004c01c74f77$9fc63ca0$0f01a8c0@officexp> When I open a Runtime version of access, the file association changes so the next time someone runs any MDB file, it tries to run 'Runtime', even though they also have a full version on their PC. I've found two registry settings that I could possibly modify every time I close my Runtime version. Anyone run into this before? Is this the best way to go? Registry entries: HKEY_CLASSES_ROOT\Access.Application.10\shell\Open\command Data: "C:\Program Files\Microsoft Office\Office10\MSACCESS.EXE" /NOSTARTUP "%1" ----- HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Access.Application.10\shell\Open\command Data: "C:\Program Files\Microsoft Office\Office10\MSACCESS.EXE" /NOSTARTUP "%1" Thanks, John From cclenright at yahoo.com Tue Feb 13 09:25:51 2007 From: cclenright at yahoo.com (Chris Enright) Date: Tue, 13 Feb 2007 07:25:51 -0800 (PST) Subject: [AccessD] OT: Excel date import problem Message-ID: <20070213152551.91905.qmail@web34313.mail.mud.yahoo.com> I am having a problem importing dates from a text file into a worksheet due to the UK date system. Every two weeks we download data from 25 banks in the Caribbean. The files come in as text files. Each row in the file is 773 characters long. The rows include amounts and dates. In order to validate the file before doing a data load onto the main system we import each file into Excel as a fixed width file. The purpose is to check for date input errors and this works fine. For example, when a date column is expanded to 20 the result can look like this AA ? 02/06/1943? ? 12/03/1956? ?07/30/1952 ? ? 22/11/1978? The date in row 3 is in US format and we can go to the text file and change it. When the open/import of the text file is done manually this works perfectly, and whilst recording a macro to do it all is well. However run the macro and the result is AA ? 02/06/1943? ? 12/03/1956? ? 30/07/1952? ? 22/11/1978? It has corrected the errors but we don?t know where they are so can?t change them in the text file. This is part of the macro: Sub ImportTextFile() Dim Total As Long ' ImportTextFile Macro ' Macro recorded 31/01/2007 by Chris Enright ' ' Keyboard Shortcut: Ctrl+i ' 'Enter drive and directory you want open dialogue box to default to: ChDrive "S:\" ChDir "S:\TPES\490\07\" myfile = Application.GetOpenFilename("All Files,*.*") If myfile = False Then Exit Sub End If 'Import the selected fixed width file and set the columns Workbooks.OpenText Filename:=myfile, _ Origin:=xlWindows, StartRow:=1, DataType:=xlFixedWidth, FieldInfo:= _ Array(Array(0, 1), Array(10, 1), Array(25, 1), Array(75, 1), Array(125, 1), _ Array(128, 1), Array(148, 1), Array(149, 4), Array(159, 1), Array(162, 1), _ Array(202, 1), Array(206, 1), Array(246, 1), Array(256, 1), Array(296, 1), _ Array(336, 1), Array(376, 1), Array(416, 1), Array(456, 1), Array(486, 1), _ Array(526, 1), Array(566, 1), Array(606, 1), Array(646, 1), Array(686, 1), _ Array(716, 1), Array(726, 1), Array(736, 1), Array(741, 4), Array(751, 4), _ Array(753, 4), Array(763, 4), Array(773, 1)), TrailingMinusNumbers:=True End Sub This is driving me crazy! I would appreciate any help. Chris --------------------------------- Don't pick lemons. See all the new 2007 cars at Yahoo! Autos. From jwcolby at colbyconsulting.com Tue Feb 13 11:40:32 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Tue, 13 Feb 2007 12:40:32 -0500 Subject: [AccessD] Number of users in the DB Message-ID: <001001c74f96$102ad640$657aa8c0@m6805> There was a thread last week regarding the response times of the FE as the number of users in the db went up. Since all users complain about response times, and since I belong to the set of developers with users, I decided to look at this issue at one of my clients. The client runs systems from old 800mhz (I believe) Dells to modern 3ghz Dells. The client recently upgraded all switches to 1gbit. The file server hosting the BEs is a fairly modern (2 GHz?) machine. The FORM being opened is extremely complex. It is bound, with tabs I can get more complete statistics on the hardware. The machine with the fastest access should be thrown out for statistics because she does her work mostly in the early morning when there are no users so the results would be misleading. What I discovered: The Min time to open can be misleading since the time of day when they arrive, and thus how many users are already in the database will vary from user to user. I added the Min() user count and the Max() user count to discover the extremes. The Max time to open though is very instructive, but it needs to be compared to the average as well. The Max in this data appears to be an aberration, which I do not have an answer for, but has never been repeated. This data covers one complete day (yesterday). This specific client had a maximum of 33 connections to the main database BE open at once. The minimum appears to be related to machines left on and in the database overnight. 1) The second fastest user has an average time to open of .90 with a Max time to open of 1.28. Notice though that by the time the user started work, the number of users was quite high. 2) The second slowest user has an average of 4.75 seconds to open with a max of 7.88 seconds. 3) The times between are a pretty smooth gradient as the times climb from slowest to fastest. 4) There is a startling difference between the fastest and slowest. 5) There is a definite correlation between the number of users and the times to open 6) The number of users plays much less of a part than other factors In talking to the client, it appears that the radical speed differences between machines is largely dependent on the age of the machine, which equates to the speed of the processor / memory / disks etc. In summary, I think it is safe to say that even given the small(?) maximum number of concurrent users (33) the number of connections definitely impacts the time to open the form. OTOH, the impact seems to be much less than (in fact dwarfed by) the impact of the age of the hardware. It would be interesting to see how the numbers scale when the number of users climbs up towards 100. I will see if I can emulate that by opening the BE directly over and over in separate instances of Access on my workstation there. Anyone desiring to see the totals query behind my results, please email me offline and I will send it in a spreadsheet. John W. Colby Colby Consulting www.ColbyConsulting.com From dw-murphy at cox.net Tue Feb 13 11:43:15 2007 From: dw-murphy at cox.net (Doug Murphy) Date: Tue, 13 Feb 2007 09:43:15 -0800 Subject: [AccessD] Access file association switching between Runtime andFull Access In-Reply-To: <004c01c74f77$9fc63ca0$0f01a8c0@officexp> Message-ID: <002e01c74f96$708cc1b0$0200a8c0@murphy3234aaf1> This is a reason to use the Sagekey scripts to build runtime installations. The script addresses this issue by opening the runtime database through an intermediary program "runaccess.exe" that takes care of the associated registry settings with the appropriate time delays so they stay set. You could do the same thing, but would probably have to experiment with which settings to work with and when to set them in relation to programs start. There may be more info on the Sagekey site. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Tuesday, February 13, 2007 6:03 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access file association switching between Runtime andFull Access When I open a Runtime version of access, the file association changes so the next time someone runs any MDB file, it tries to run 'Runtime', even though they also have a full version on their PC. I've found two registry settings that I could possibly modify every time I close my Runtime version. Anyone run into this before? Is this the best way to go? Registry entries: HKEY_CLASSES_ROOT\Access.Application.10\shell\Open\command Data: "C:\Program Files\Microsoft Office\Office10\MSACCESS.EXE" /NOSTARTUP "%1" ----- HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Access.Application.10\shell\Open\command Data: "C:\Program Files\Microsoft Office\Office10\MSACCESS.EXE" /NOSTARTUP "%1" Thanks, John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From askolits at ot.com Tue Feb 13 11:59:45 2007 From: askolits at ot.com (John Skolits) Date: Tue, 13 Feb 2007 12:59:45 -0500 Subject: [AccessD] Access file association switching between RuntimeandFull Access In-Reply-To: <002e01c74f96$708cc1b0$0200a8c0@murphy3234aaf1> Message-ID: <003b01c74f98$c217c730$0f01a8c0@officexp> Doug. I'm using Sagekey and Wise. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Tuesday, February 13, 2007 12:43 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access file association switching between RuntimeandFull Access This is a reason to use the Sagekey scripts to build runtime installations. The script addresses this issue by opening the runtime database through an intermediary program "runaccess.exe" that takes care of the associated registry settings with the appropriate time delays so they stay set. You could do the same thing, but would probably have to experiment with which settings to work with and when to set them in relation to programs start. There may be more info on the Sagekey site. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Tuesday, February 13, 2007 6:03 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access file association switching between Runtime andFull Access When I open a Runtime version of access, the file association changes so the next time someone runs any MDB file, it tries to run 'Runtime', even though they also have a full version on their PC. I've found two registry settings that I could possibly modify every time I close my Runtime version. Anyone run into this before? Is this the best way to go? Registry entries: HKEY_CLASSES_ROOT\Access.Application.10\shell\Open\command Data: "C:\Program Files\Microsoft Office\Office10\MSACCESS.EXE" /NOSTARTUP "%1" ----- HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Access.Application.10\shell\Open\command Data: "C:\Program Files\Microsoft Office\Office10\MSACCESS.EXE" /NOSTARTUP "%1" Thanks, John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From askolits at ot.com Tue Feb 13 12:01:04 2007 From: askolits at ot.com (John Skolits) Date: Tue, 13 Feb 2007 13:01:04 -0500 Subject: [AccessD] Access file association switching between RuntimeandFull Access In-Reply-To: <002e01c74f96$708cc1b0$0200a8c0@murphy3234aaf1> Message-ID: <003c01c74f98$f137ae90$0f01a8c0@officexp> I'll find out more about runaccess.exe from sagekey -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Tuesday, February 13, 2007 12:43 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access file association switching between RuntimeandFull Access This is a reason to use the Sagekey scripts to build runtime installations. The script addresses this issue by opening the runtime database through an intermediary program "runaccess.exe" that takes care of the associated registry settings with the appropriate time delays so they stay set. You could do the same thing, but would probably have to experiment with which settings to work with and when to set them in relation to programs start. There may be more info on the Sagekey site. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Tuesday, February 13, 2007 6:03 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access file association switching between Runtime andFull Access When I open a Runtime version of access, the file association changes so the next time someone runs any MDB file, it tries to run 'Runtime', even though they also have a full version on their PC. I've found two registry settings that I could possibly modify every time I close my Runtime version. Anyone run into this before? Is this the best way to go? Registry entries: HKEY_CLASSES_ROOT\Access.Application.10\shell\Open\command Data: "C:\Program Files\Microsoft Office\Office10\MSACCESS.EXE" /NOSTARTUP "%1" ----- HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Access.Application.10\shell\Open\command Data: "C:\Program Files\Microsoft Office\Office10\MSACCESS.EXE" /NOSTARTUP "%1" Thanks, John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at sc.rr.com Tue Feb 13 12:04:13 2007 From: bheid at sc.rr.com (Bobby Heid) Date: Tue, 13 Feb 2007 13:04:13 -0500 Subject: [AccessD] Number of users in the DB In-Reply-To: <001001c74f96$102ad640$657aa8c0@m6805> References: <001001c74f96$102ad640$657aa8c0@m6805> Message-ID: <001001c74f99$5e9e4610$2d01a8c0@bhxp> John, I would also try to measure the total amount of traffic on the network. If many people are using the network (Access program, email, downloads, etc.), it could be that your network is being saturated. Like I said in my earlier mail about this issue, I had a report that had to transfer over 90MB of data for one report. Now, it was a very large report from a large database, but you can see that it would not take too many reports like that being run at one time to bring the network to a crawl. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Tuesday, February 13, 2007 12:41 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Number of users in the DB There was a thread last week regarding the response times of the FE as the number of users in the db went up. Since all users complain about response times, and since I belong to the set of developers with users, I decided to look at this issue at one of my clients. The client runs systems from old 800mhz (I believe) Dells to modern 3ghz Dells. The client recently upgraded all switches to 1gbit. The file server hosting the BEs is a fairly modern (2 GHz?) machine. The FORM being opened is extremely complex. It is bound, with tabs I can get more complete statistics on the hardware. The machine with the fastest access should be thrown out for statistics because she does her work mostly in the early morning when there are no users so the results would be misleading. What I discovered: The Min time to open can be misleading since the time of day when they arrive, and thus how many users are already in the database will vary from user to user. I added the Min() user count and the Max() user count to discover the extremes. The Max time to open though is very instructive, but it needs to be compared to the average as well. The Max in this data appears to be an aberration, which I do not have an answer for, but has never been repeated. This data covers one complete day (yesterday). This specific client had a maximum of 33 connections to the main database BE open at once. The minimum appears to be related to machines left on and in the database overnight. 1) The second fastest user has an average time to open of .90 with a Max time to open of 1.28. Notice though that by the time the user started work, the number of users was quite high. 2) The second slowest user has an average of 4.75 seconds to open with a max of 7.88 seconds. 3) The times between are a pretty smooth gradient as the times climb from slowest to fastest. 4) There is a startling difference between the fastest and slowest. 5) There is a definite correlation between the number of users and the times to open 6) The number of users plays much less of a part than other factors In talking to the client, it appears that the radical speed differences between machines is largely dependent on the age of the machine, which equates to the speed of the processor / memory / disks etc. In summary, I think it is safe to say that even given the small(?) maximum number of concurrent users (33) the number of connections definitely impacts the time to open the form. OTOH, the impact seems to be much less than (in fact dwarfed by) the impact of the age of the hardware. It would be interesting to see how the numbers scale when the number of users climbs up towards 100. I will see if I can emulate that by opening the BE directly over and over in separate instances of Access on my workstation there. Anyone desiring to see the totals query behind my results, please email me offline and I will send it in a spreadsheet. John W. Colby Colby Consulting www.ColbyConsulting.com From dw-murphy at cox.net Tue Feb 13 12:25:43 2007 From: dw-murphy at cox.net (Doug Murphy) Date: Tue, 13 Feb 2007 10:25:43 -0800 Subject: [AccessD] Access file association switching betweenRuntimeandFull Access In-Reply-To: <003c01c74f98$f137ae90$0f01a8c0@officexp> Message-ID: <003801c74f9c$5f16f120$0200a8c0@murphy3234aaf1> John, Make sure your runtime is opened through the shortcut that the scripts install on the user's machine. If that is the case then talk to Sagekey or look in their knowledge base as this should not happen. I have found Sagekey to be very responsive to inquiries on problems. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Tuesday, February 13, 2007 10:01 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access file association switching betweenRuntimeandFull Access I'll find out more about runaccess.exe from sagekey -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Tuesday, February 13, 2007 12:43 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access file association switching between RuntimeandFull Access This is a reason to use the Sagekey scripts to build runtime installations. The script addresses this issue by opening the runtime database through an intermediary program "runaccess.exe" that takes care of the associated registry settings with the appropriate time delays so they stay set. You could do the same thing, but would probably have to experiment with which settings to work with and when to set them in relation to programs start. There may be more info on the Sagekey site. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Tuesday, February 13, 2007 6:03 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access file association switching between Runtime andFull Access When I open a Runtime version of access, the file association changes so the next time someone runs any MDB file, it tries to run 'Runtime', even though they also have a full version on their PC. I've found two registry settings that I could possibly modify every time I close my Runtime version. Anyone run into this before? Is this the best way to go? Registry entries: HKEY_CLASSES_ROOT\Access.Application.10\shell\Open\command Data: "C:\Program Files\Microsoft Office\Office10\MSACCESS.EXE" /NOSTARTUP "%1" ----- HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Access.Application.10\shell\Open\command Data: "C:\Program Files\Microsoft Office\Office10\MSACCESS.EXE" /NOSTARTUP "%1" Thanks, John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Feb 13 12:29:28 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Tue, 13 Feb 2007 13:29:28 -0500 Subject: [AccessD] Number of users in the DB In-Reply-To: <001001c74f99$5e9e4610$2d01a8c0@bhxp> Message-ID: <001501c74f9c$e5da2600$657aa8c0@m6805> In fact this particular client has virtually no reports. I created this capability for one reason only, to allow me to measure the impact on the number of users on the response time of the database. As often happens with a database, once I got in there I was able to see correlations between the workstation and the response times. This may allow troubleshooting (seeing) slow hardware other than the workstation, for example slow legs of a network etc. That would require inside knowledge however. My client is using the report to just be aware of who has the slowest access to the system. In fact, the whole system runs off of a pair of classes and a table to store the data. If there is sufficient interest I will post the entire system to the dba website for download. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Tuesday, February 13, 2007 1:04 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Number of users in the DB John, I would also try to measure the total amount of traffic on the network. If many people are using the network (Access program, email, downloads, etc.), it could be that your network is being saturated. Like I said in my earlier mail about this issue, I had a report that had to transfer over 90MB of data for one report. Now, it was a very large report from a large database, but you can see that it would not take too many reports like that being run at one time to bring the network to a crawl. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Tuesday, February 13, 2007 12:41 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Number of users in the DB There was a thread last week regarding the response times of the FE as the number of users in the db went up. Since all users complain about response times, and since I belong to the set of developers with users, I decided to look at this issue at one of my clients. The client runs systems from old 800mhz (I believe) Dells to modern 3ghz Dells. The client recently upgraded all switches to 1gbit. The file server hosting the BEs is a fairly modern (2 GHz?) machine. The FORM being opened is extremely complex. It is bound, with tabs I can get more complete statistics on the hardware. The machine with the fastest access should be thrown out for statistics because she does her work mostly in the early morning when there are no users so the results would be misleading. What I discovered: The Min time to open can be misleading since the time of day when they arrive, and thus how many users are already in the database will vary from user to user. I added the Min() user count and the Max() user count to discover the extremes. The Max time to open though is very instructive, but it needs to be compared to the average as well. The Max in this data appears to be an aberration, which I do not have an answer for, but has never been repeated. This data covers one complete day (yesterday). This specific client had a maximum of 33 connections to the main database BE open at once. The minimum appears to be related to machines left on and in the database overnight. 1) The second fastest user has an average time to open of .90 with a Max time to open of 1.28. Notice though that by the time the user started work, the number of users was quite high. 2) The second slowest user has an average of 4.75 seconds to open with a max of 7.88 seconds. 3) The times between are a pretty smooth gradient as the times climb from slowest to fastest. 4) There is a startling difference between the fastest and slowest. 5) There is a definite correlation between the number of users and the times to open 6) The number of users plays much less of a part than other factors In talking to the client, it appears that the radical speed differences between machines is largely dependent on the age of the machine, which equates to the speed of the processor / memory / disks etc. In summary, I think it is safe to say that even given the small(?) maximum number of concurrent users (33) the number of connections definitely impacts the time to open the form. OTOH, the impact seems to be much less than (in fact dwarfed by) the impact of the age of the hardware. It would be interesting to see how the numbers scale when the number of users climbs up towards 100. I will see if I can emulate that by opening the BE directly over and over in separate instances of Access on my workstation there. Anyone desiring to see the totals query behind my results, please email me offline and I will send it in a spreadsheet. John W. Colby Colby Consulting www.ColbyConsulting.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 Feb 13 12:47:39 2007 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 13 Feb 2007 12:47:39 -0600 Subject: [AccessD] Number of users in the DB In-Reply-To: <30939061.1171388903327.JavaMail.root@sniper80> References: <30939061.1171388903327.JavaMail.root@sniper80> Message-ID: <009701c74f9f$70013470$0200a8c0@danwaters> John, How did you count the number of connections? Was this equal to the number of users? The local machine age being a strong factor makes sense since the BE machine doesn't do any processing. Great data! Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Tuesday, February 13, 2007 11:41 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Number of users in the DB There was a thread last week regarding the response times of the FE as the number of users in the db went up. Since all users complain about response times, and since I belong to the set of developers with users, I decided to look at this issue at one of my clients. The client runs systems from old 800mhz (I believe) Dells to modern 3ghz Dells. The client recently upgraded all switches to 1gbit. The file server hosting the BEs is a fairly modern (2 GHz?) machine. The FORM being opened is extremely complex. It is bound, with tabs I can get more complete statistics on the hardware. The machine with the fastest access should be thrown out for statistics because she does her work mostly in the early morning when there are no users so the results would be misleading. What I discovered: The Min time to open can be misleading since the time of day when they arrive, and thus how many users are already in the database will vary from user to user. I added the Min() user count and the Max() user count to discover the extremes. The Max time to open though is very instructive, but it needs to be compared to the average as well. The Max in this data appears to be an aberration, which I do not have an answer for, but has never been repeated. This data covers one complete day (yesterday). This specific client had a maximum of 33 connections to the main database BE open at once. The minimum appears to be related to machines left on and in the database overnight. 1) The second fastest user has an average time to open of .90 with a Max time to open of 1.28. Notice though that by the time the user started work, the number of users was quite high. 2) The second slowest user has an average of 4.75 seconds to open with a max of 7.88 seconds. 3) The times between are a pretty smooth gradient as the times climb from slowest to fastest. 4) There is a startling difference between the fastest and slowest. 5) There is a definite correlation between the number of users and the times to open 6) The number of users plays much less of a part than other factors In talking to the client, it appears that the radical speed differences between machines is largely dependent on the age of the machine, which equates to the speed of the processor / memory / disks etc. In summary, I think it is safe to say that even given the small(?) maximum number of concurrent users (33) the number of connections definitely impacts the time to open the form. OTOH, the impact seems to be much less than (in fact dwarfed by) the impact of the age of the hardware. It would be interesting to see how the numbers scale when the number of users climbs up towards 100. I will see if I can emulate that by opening the BE directly over and over in separate instances of Access on my workstation there. Anyone desiring to see the totals query behind my results, please email me offline and I will send it in a spreadsheet. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kost36 at otenet.gr Tue Feb 13 13:04:23 2007 From: kost36 at otenet.gr (Kostas Konstantinidis) Date: Tue, 13 Feb 2007 21:04:23 +0200 Subject: [AccessD] How to transfer text.. References: <34C8A2AB1EF3564CB0D64DB6AFFDD5C201201067@xlivmbx35.aig.com> Message-ID: <005101c74fa1$cb1d4310$6501a8c0@kost36> Michael thank's for your response Labert, thank's you too ... well, with the DoCmd.OpenForm stdocname,,,,,acDialog the form opens but just on the first record and not on a new one and while I am trying to close the form after udate it hungs because with the next line DoCmd.GoToRecord acDataForm, stdocname, acNewRec it answers: he object 'myform' isn't open... am I doing something wrong? many thank's /kostas ----- Original Message ----- From: "Heenan, Lambert" To: "'Access Developers discussion and problem solving'" Sent: Monday, February 12, 2007 10:40 PM Subject: Re: [AccessD] How to transfer text.. > You could to this... > > > Private Sub AM_DblClick(Cancel As Integer) > Dim poustia As String > Dim stdocname As String > > stdocname = "MT_basic_char" > If IsNull(num_mitroou) Then > > DoCmd.OpenForm stdocname,,,,,acDialog > > DoCmd.GoToRecord acDataForm, stdocname, acNewRec > > Me!AM = Forms(stdocname)!AM > DoCmd.Close acForm, stdocname > > else > poustia = Me!num_mitroou > DoCmd.OpenForm stdocname, , , "num_mitroou= " & poustia > End If > End Sub > > The trick to this is that you open stdocname in dialog mode. That causes > the > calling code to wait until either the opened form closes, or it is made > invisible. So if the MT_basic_char form's "Close" button is modified from > DoCmd.Close acFrom, Me.Name > To > Me.Visible = False > > Then when the user hits the close button the form will be hidden, the > calling code will resume execution, and it can pick up the value entered > with the line "Me!AM = Forms(stdocname)!AM", and then you code continues > by > actually closing the called form. > > > HTH > > Lambert > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas > Konstantinidis > Sent: Monday, February 12, 2007 2:43 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] How to transfer text.. > > > hi group, > On a double click on a form I use the follown: > > Private Sub AM_DblClick(Cancel As Integer) > Dim poustia As String > Dim stdocname As String > > stdocname = "MT_basic_char" > If IsNull(num_mitroou) Then > DoCmd.OpenForm stdocname > DoCmd.GoToRecord acDataForm, stdocname, acNewRec > else > poustia = Me!num_mitroou > DoCmd.OpenForm stdocname, , , "num_mitroou= " & poustia > End If > End Sub > > > what I want to do is after the new record update and closing the > stdocname > the text of AM's field to be tranfered to the AM field of the opened form > > Many thank's > /kostas > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Feb 13 13:24:04 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Tue, 13 Feb 2007 14:24:04 -0500 Subject: [AccessD] Number of users in the DB In-Reply-To: <009701c74f9f$70013470$0200a8c0@danwaters> Message-ID: <001701c74fa4$86a8aaa0$657aa8c0@m6805> The number of connections is counted with some code I found somewhere. I modified it (made it slightly more complex) in order to get it to return a string of users in one case and a connection count in another. I really should have (and will likely go back and do it) just created two different functions. The function basically opens the ldb file and parses out the data in that file to find the workstation names, and then counts them. However, it turns out that the number increases according to how many instances of access are connected to the specific be, even if the access instances ARE ON THE SAME MACHINE. IOW, in order to test the response times of my client's users when there are more connections, I simply opened the BE 20 more times on my local machine. Open access / open the BE from within Access / repeat. Thus one single machine (my workstation) is showing up as TWENTY connections. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, February 13, 2007 1:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Number of users in the DB John, How did you count the number of connections? Was this equal to the number of users? The local machine age being a strong factor makes sense since the BE machine doesn't do any processing. Great data! Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Tuesday, February 13, 2007 11:41 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Number of users in the DB There was a thread last week regarding the response times of the FE as the number of users in the db went up. Since all users complain about response times, and since I belong to the set of developers with users, I decided to look at this issue at one of my clients. The client runs systems from old 800mhz (I believe) Dells to modern 3ghz Dells. The client recently upgraded all switches to 1gbit. The file server hosting the BEs is a fairly modern (2 GHz?) machine. The FORM being opened is extremely complex. It is bound, with tabs I can get more complete statistics on the hardware. The machine with the fastest access should be thrown out for statistics because she does her work mostly in the early morning when there are no users so the results would be misleading. What I discovered: The Min time to open can be misleading since the time of day when they arrive, and thus how many users are already in the database will vary from user to user. I added the Min() user count and the Max() user count to discover the extremes. The Max time to open though is very instructive, but it needs to be compared to the average as well. The Max in this data appears to be an aberration, which I do not have an answer for, but has never been repeated. This data covers one complete day (yesterday). This specific client had a maximum of 33 connections to the main database BE open at once. The minimum appears to be related to machines left on and in the database overnight. 1) The second fastest user has an average time to open of .90 with a Max time to open of 1.28. Notice though that by the time the user started work, the number of users was quite high. 2) The second slowest user has an average of 4.75 seconds to open with a max of 7.88 seconds. 3) The times between are a pretty smooth gradient as the times climb from slowest to fastest. 4) There is a startling difference between the fastest and slowest. 5) There is a definite correlation between the number of users and the times to open 6) The number of users plays much less of a part than other factors In talking to the client, it appears that the radical speed differences between machines is largely dependent on the age of the machine, which equates to the speed of the processor / memory / disks etc. In summary, I think it is safe to say that even given the small(?) maximum number of concurrent users (33) the number of connections definitely impacts the time to open the form. OTOH, the impact seems to be much less than (in fact dwarfed by) the impact of the age of the hardware. It would be interesting to see how the numbers scale when the number of users climbs up towards 100. I will see if I can emulate that by opening the BE directly over and over in separate instances of Access on my workstation there. Anyone desiring to see the totals query behind my results, please email me offline and I will send it in a spreadsheet. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Tue Feb 13 13:36:44 2007 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 13 Feb 2007 14:36:44 -0500 Subject: [AccessD] How to transfer text.. Message-ID: <34C8A2AB1EF3564CB0D64DB6AFFDD5C201201095@xlivmbx35.aig.com> Re "the object 'myform' isn't open... " the code behind the form's "Close" button should *not* close the form. Instead it should say "Me.Visible = False", which hides the from and then allows the calling code to continue running... Me!AM = Forms(stdocname)!AM ' <- gets the value from the hidden, but still loaded form DoCmd.Close acForm, stdocname' <- closes the hidden form Re opening on the wrong record. Change the open form code to DoCmd.OpenForm stdocname, , , "num_mitroou= " & poustia,,acDialog That line now includes the where condition that selects the correct record. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas Konstantinidis Sent: Tuesday, February 13, 2007 2:04 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] How to transfer text.. Michael thank's for your response Labert, thank's you too ... well, with the DoCmd.OpenForm stdocname,,,,,acDialog the form opens but just on the first record and not on a new one and while I am trying to close the form after udate it hungs because with the next line DoCmd.GoToRecord acDataForm, stdocname, acNewRec it answers: he object 'myform' isn't open... am I doing something wrong? many thank's /kostas ----- Original Message ----- From: "Heenan, Lambert" To: "'Access Developers discussion and problem solving'" Sent: Monday, February 12, 2007 10:40 PM Subject: Re: [AccessD] How to transfer text.. > You could to this... > > > Private Sub AM_DblClick(Cancel As Integer) > Dim poustia As String > Dim stdocname As String > > stdocname = "MT_basic_char" > If IsNull(num_mitroou) Then > > DoCmd.OpenForm stdocname,,,,,acDialog > > DoCmd.GoToRecord acDataForm, stdocname, acNewRec > > Me!AM = Forms(stdocname)!AM > DoCmd.Close acForm, stdocname > > else > poustia = Me!num_mitroou > DoCmd.OpenForm stdocname, , , "num_mitroou= " & poustia > End If > End Sub > > The trick to this is that you open stdocname in dialog mode. That > causes > the > calling code to wait until either the opened form closes, or it is made > invisible. So if the MT_basic_char form's "Close" button is modified from > DoCmd.Close acFrom, Me.Name > To > Me.Visible = False > > Then when the user hits the close button the form will be hidden, the > calling code will resume execution, and it can pick up the value > entered with the line "Me!AM = Forms(stdocname)!AM", and then you code > continues by actually closing the called form. > > > HTH > > Lambert > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas > Konstantinidis > Sent: Monday, February 12, 2007 2:43 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] How to transfer text.. > > > hi group, > On a double click on a form I use the follown: > > Private Sub AM_DblClick(Cancel As Integer) > Dim poustia As String > Dim stdocname As String > > stdocname = "MT_basic_char" > If IsNull(num_mitroou) Then > DoCmd.OpenForm stdocname > DoCmd.GoToRecord acDataForm, stdocname, acNewRec > else > poustia = Me!num_mitroou > DoCmd.OpenForm stdocname, , , "num_mitroou= " & poustia > End If > End Sub > > > what I want to do is after the new record update and closing the > stdocname > the text of AM's field to be tranfered to the AM field of the opened form > > Many thank's > /kostas > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Tue Feb 13 13:49:53 2007 From: artful at rogers.com (artful at rogers.com) Date: Tue, 13 Feb 2007 11:49:53 -0800 (PST) Subject: [AccessD] Number of users in the DB Message-ID: <204431.55808.qm@web88214.mail.re2.yahoo.com> The number of connections is typically several times the number of users. Of course this would depend on how you design the app, but let's just assume that your forms are bound and that each form contains a few combo-boxes, and that a given user has several forms open simultaneously. You may well get a connection for each combo on a form, plus the RecordSource of the form itself, so a given user might conceivably have 20 connections. I have tried and so far been unsuccessful at deducing the precise number of connections that any given user might have open. That's probably because I always used an existing app rather than one designed to elucidate this question. But one useful thing you might wish to try while running an ADP: Open a window in Query Analyzer and run sp_who. That will list the connections to the selected database at the moment you execute it. You typically will find at least two or three connections per user. Arthur ----- Original Message ---- From: Dan Waters To: Access Developers discussion and problem solving Sent: Tuesday, February 13, 2007 1:47:39 PM Subject: Re: [AccessD] Number of users in the DB John, How did you count the number of connections? Was this equal to the number of users? The local machine age being a strong factor makes sense since the BE machine doesn't do any processing. Great data! Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Tuesday, February 13, 2007 11:41 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Number of users in the DB There was a thread last week regarding the response times of the FE as the number of users in the db went up. Since all users complain about response times, and since I belong to the set of developers with users, I decided to look at this issue at one of my clients. The client runs systems from old 800mhz (I believe) Dells to modern 3ghz Dells. The client recently upgraded all switches to 1gbit. The file server hosting the BEs is a fairly modern (2 GHz?) machine. The FORM being opened is extremely complex. It is bound, with tabs I can get more complete statistics on the hardware. The machine with the fastest access should be thrown out for statistics because she does her work mostly in the early morning when there are no users so the results would be misleading. What I discovered: The Min time to open can be misleading since the time of day when they arrive, and thus how many users are already in the database will vary from user to user. I added the Min() user count and the Max() user count to discover the extremes. The Max time to open though is very instructive, but it needs to be compared to the average as well. The Max in this data appears to be an aberration, which I do not have an answer for, but has never been repeated. This data covers one complete day (yesterday). This specific client had a maximum of 33 connections to the main database BE open at once. The minimum appears to be related to machines left on and in the database overnight. 1) The second fastest user has an average time to open of .90 with a Max time to open of 1.28. Notice though that by the time the user started work, the number of users was quite high. 2) The second slowest user has an average of 4.75 seconds to open with a max of 7.88 seconds. 3) The times between are a pretty smooth gradient as the times climb from slowest to fastest. 4) There is a startling difference between the fastest and slowest. 5) There is a definite correlation between the number of users and the times to open 6) The number of users plays much less of a part than other factors In talking to the client, it appears that the radical speed differences between machines is largely dependent on the age of the machine, which equates to the speed of the processor / memory / disks etc. In summary, I think it is safe to say that even given the small(?) maximum number of concurrent users (33) the number of connections definitely impacts the time to open the form. OTOH, the impact seems to be much less than (in fact dwarfed by) the impact of the age of the hardware. It would be interesting to see how the numbers scale when the number of users climbs up towards 100. I will see if I can emulate that by opening the BE directly over and over in separate instances of Access on my workstation there. Anyone desiring to see the totals query behind my results, please email me offline and I will send it in a spreadsheet. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Feb 13 13:58:09 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Tue, 13 Feb 2007 14:58:09 -0500 Subject: [AccessD] Number of users in the DB In-Reply-To: <204431.55808.qm@web88214.mail.re2.yahoo.com> Message-ID: <001a01c74fa9$49c9ae90$657aa8c0@m6805> Arthur, I assume that you are discussing connections to SQL Server, not connections to an MDB BE? John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Tuesday, February 13, 2007 2:50 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Number of users in the DB The number of connections is typically several times the number of users. Of course this would depend on how you design the app, but let's just assume that your forms are bound and that each form contains a few combo-boxes, and that a given user has several forms open simultaneously. You may well get a connection for each combo on a form, plus the RecordSource of the form itself, so a given user might conceivably have 20 connections. I have tried and so far been unsuccessful at deducing the precise number of connections that any given user might have open. That's probably because I always used an existing app rather than one designed to elucidate this question. But one useful thing you might wish to try while running an ADP: Open a window in Query Analyzer and run sp_who. That will list the connections to the selected database at the moment you execute it. You typically will find at least two or three connections per user. Arthur ----- Original Message ---- From: Dan Waters To: Access Developers discussion and problem solving Sent: Tuesday, February 13, 2007 1:47:39 PM Subject: Re: [AccessD] Number of users in the DB John, How did you count the number of connections? Was this equal to the number of users? The local machine age being a strong factor makes sense since the BE machine doesn't do any processing. Great data! Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Tuesday, February 13, 2007 11:41 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Number of users in the DB There was a thread last week regarding the response times of the FE as the number of users in the db went up. Since all users complain about response times, and since I belong to the set of developers with users, I decided to look at this issue at one of my clients. The client runs systems from old 800mhz (I believe) Dells to modern 3ghz Dells. The client recently upgraded all switches to 1gbit. The file server hosting the BEs is a fairly modern (2 GHz?) machine. The FORM being opened is extremely complex. It is bound, with tabs I can get more complete statistics on the hardware. The machine with the fastest access should be thrown out for statistics because she does her work mostly in the early morning when there are no users so the results would be misleading. What I discovered: The Min time to open can be misleading since the time of day when they arrive, and thus how many users are already in the database will vary from user to user. I added the Min() user count and the Max() user count to discover the extremes. The Max time to open though is very instructive, but it needs to be compared to the average as well. The Max in this data appears to be an aberration, which I do not have an answer for, but has never been repeated. This data covers one complete day (yesterday). This specific client had a maximum of 33 connections to the main database BE open at once. The minimum appears to be related to machines left on and in the database overnight. 1) The second fastest user has an average time to open of .90 with a Max time to open of 1.28. Notice though that by the time the user started work, the number of users was quite high. 2) The second slowest user has an average of 4.75 seconds to open with a max of 7.88 seconds. 3) The times between are a pretty smooth gradient as the times climb from slowest to fastest. 4) There is a startling difference between the fastest and slowest. 5) There is a definite correlation between the number of users and the times to open 6) The number of users plays much less of a part than other factors In talking to the client, it appears that the radical speed differences between machines is largely dependent on the age of the machine, which equates to the speed of the processor / memory / disks etc. In summary, I think it is safe to say that even given the small(?) maximum number of concurrent users (33) the number of connections definitely impacts the time to open the form. OTOH, the impact seems to be much less than (in fact dwarfed by) the impact of the age of the hardware. It would be interesting to see how the numbers scale when the number of users climbs up towards 100. I will see if I can emulate that by opening the BE directly over and over in separate instances of Access on my workstation there. Anyone desiring to see the totals query behind my results, please email me offline and I will send it in a spreadsheet. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Tue Feb 13 14:21:42 2007 From: artful at rogers.com (artful at rogers.com) Date: Tue, 13 Feb 2007 12:21:42 -0800 (PST) Subject: [AccessD] Number of users in the DB Message-ID: <595923.63092.qm@web88203.mail.re2.yahoo.com> I'll bet the number escalates should you choose to open a form with a combo or three. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: JWColby To: Access Developers discussion and problem solving Sent: Tuesday, February 13, 2007 2:24:04 PM Subject: Re: [AccessD] Number of users in the DB The number of connections is counted with some code I found somewhere. I modified it (made it slightly more complex) in order to get it to return a string of users in one case and a connection count in another. I really should have (and will likely go back and do it) just created two different functions. The function basically opens the ldb file and parses out the data in that file to find the workstation names, and then counts them. However, it turns out that the number increases according to how many instances of access are connected to the specific be, even if the access instances ARE ON THE SAME MACHINE. IOW, in order to test the response times of my client's users when there are more connections, I simply opened the BE 20 more times on my local machine. Open access / open the BE from within Access / repeat. Thus one single machine (my workstation) is showing up as TWENTY connections. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, February 13, 2007 1:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Number of users in the DB John, How did you count the number of connections? Was this equal to the number of users? The local machine age being a strong factor makes sense since the BE machine doesn't do any processing. Great data! Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Tuesday, February 13, 2007 11:41 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Number of users in the DB There was a thread last week regarding the response times of the FE as the number of users in the db went up. Since all users complain about response times, and since I belong to the set of developers with users, I decided to look at this issue at one of my clients. The client runs systems from old 800mhz (I believe) Dells to modern 3ghz Dells. The client recently upgraded all switches to 1gbit. The file server hosting the BEs is a fairly modern (2 GHz?) machine. The FORM being opened is extremely complex. It is bound, with tabs I can get more complete statistics on the hardware. The machine with the fastest access should be thrown out for statistics because she does her work mostly in the early morning when there are no users so the results would be misleading. What I discovered: The Min time to open can be misleading since the time of day when they arrive, and thus how many users are already in the database will vary from user to user. I added the Min() user count and the Max() user count to discover the extremes. The Max time to open though is very instructive, but it needs to be compared to the average as well. The Max in this data appears to be an aberration, which I do not have an answer for, but has never been repeated. This data covers one complete day (yesterday). This specific client had a maximum of 33 connections to the main database BE open at once. The minimum appears to be related to machines left on and in the database overnight. 1) The second fastest user has an average time to open of .90 with a Max time to open of 1.28. Notice though that by the time the user started work, the number of users was quite high. 2) The second slowest user has an average of 4.75 seconds to open with a max of 7.88 seconds. 3) The times between are a pretty smooth gradient as the times climb from slowest to fastest. 4) There is a startling difference between the fastest and slowest. 5) There is a definite correlation between the number of users and the times to open 6) The number of users plays much less of a part than other factors In talking to the client, it appears that the radical speed differences between machines is largely dependent on the age of the machine, which equates to the speed of the processor / memory / disks etc. In summary, I think it is safe to say that even given the small(?) maximum number of concurrent users (33) the number of connections definitely impacts the time to open the form. OTOH, the impact seems to be much less than (in fact dwarfed by) the impact of the age of the hardware. It would be interesting to see how the numbers scale when the number of users climbs up towards 100. I will see if I can emulate that by opening the BE directly over and over in separate instances of Access on my workstation there. Anyone desiring to see the totals query behind my results, please email me offline and I will send it in a spreadsheet. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Tue Feb 13 14:28:29 2007 From: artful at rogers.com (artful at rogers.com) Date: Tue, 13 Feb 2007 12:28:29 -0800 (PST) Subject: [AccessD] Number of users in the DB Message-ID: <57899.30185.qm@web88201.mail.re2.yahoo.com> Yes. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: JWColby To: Access Developers discussion and problem solving Sent: Tuesday, February 13, 2007 2:58:09 PM Subject: Re: [AccessD] Number of users in the DB Arthur, I assume that you are discussing connections to SQL Server, not connections to an MDB BE? John W. Colby Colby Consulting www.ColbyConsulting.com From jwcolby at colbyconsulting.com Tue Feb 13 14:49:14 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Tue, 13 Feb 2007 15:49:14 -0500 Subject: [AccessD] Number of users in the DB In-Reply-To: <595923.63092.qm@web88203.mail.re2.yahoo.com> Message-ID: <002201c74fb0$6c404c20$657aa8c0@m6805> >I'll bet the number escalates should you choose to open a form with a combo or three. Nope. In fact the form that I am discussing has a query based on about TEN tables, has TWENTY NINE combos loaded when the form loads (I just counted), and TWENTY tabs, 16 of which have JIT subforms which load when the tab is clicked on and unload when the tab is clicked of off. This ain't your daddy's database! This form is the center of the Call Center Universe for this company. And no, the number is ONE connection for each instance of the FE and one connection each for a handful of "server applications" which upload / download FTP files and email attachments. That is NOT the number of LOCKS as discussed in another email thread last week. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Tuesday, February 13, 2007 3:22 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Number of users in the DB I'll bet the number escalates should you choose to open a form with a combo or three. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: JWColby To: Access Developers discussion and problem solving Sent: Tuesday, February 13, 2007 2:24:04 PM Subject: Re: [AccessD] Number of users in the DB The number of connections is counted with some code I found somewhere. I modified it (made it slightly more complex) in order to get it to return a string of users in one case and a connection count in another. I really should have (and will likely go back and do it) just created two different functions. The function basically opens the ldb file and parses out the data in that file to find the workstation names, and then counts them. However, it turns out that the number increases according to how many instances of access are connected to the specific be, even if the access instances ARE ON THE SAME MACHINE. IOW, in order to test the response times of my client's users when there are more connections, I simply opened the BE 20 more times on my local machine. Open access / open the BE from within Access / repeat. Thus one single machine (my workstation) is showing up as TWENTY connections. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, February 13, 2007 1:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Number of users in the DB John, How did you count the number of connections? Was this equal to the number of users? The local machine age being a strong factor makes sense since the BE machine doesn't do any processing. Great data! Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Tuesday, February 13, 2007 11:41 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Number of users in the DB There was a thread last week regarding the response times of the FE as the number of users in the db went up. Since all users complain about response times, and since I belong to the set of developers with users, I decided to look at this issue at one of my clients. The client runs systems from old 800mhz (I believe) Dells to modern 3ghz Dells. The client recently upgraded all switches to 1gbit. The file server hosting the BEs is a fairly modern (2 GHz?) machine. The FORM being opened is extremely complex. It is bound, with tabs I can get more complete statistics on the hardware. The machine with the fastest access should be thrown out for statistics because she does her work mostly in the early morning when there are no users so the results would be misleading. What I discovered: The Min time to open can be misleading since the time of day when they arrive, and thus how many users are already in the database will vary from user to user. I added the Min() user count and the Max() user count to discover the extremes. The Max time to open though is very instructive, but it needs to be compared to the average as well. The Max in this data appears to be an aberration, which I do not have an answer for, but has never been repeated. This data covers one complete day (yesterday). This specific client had a maximum of 33 connections to the main database BE open at once. The minimum appears to be related to machines left on and in the database overnight. 1) The second fastest user has an average time to open of .90 with a Max time to open of 1.28. Notice though that by the time the user started work, the number of users was quite high. 2) The second slowest user has an average of 4.75 seconds to open with a max of 7.88 seconds. 3) The times between are a pretty smooth gradient as the times climb from slowest to fastest. 4) There is a startling difference between the fastest and slowest. 5) There is a definite correlation between the number of users and the times to open 6) The number of users plays much less of a part than other factors In talking to the client, it appears that the radical speed differences between machines is largely dependent on the age of the machine, which equates to the speed of the processor / memory / disks etc. In summary, I think it is safe to say that even given the small(?) maximum number of concurrent users (33) the number of connections definitely impacts the time to open the form. OTOH, the impact seems to be much less than (in fact dwarfed by) the impact of the age of the hardware. It would be interesting to see how the numbers scale when the number of users climbs up towards 100. I will see if I can emulate that by opening the BE directly over and over in separate instances of Access on my workstation there. Anyone desiring to see the totals query behind my results, please email me offline and I will send it in a spreadsheet. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Tue Feb 13 15:22:42 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 13 Feb 2007 21:22:42 +0000 Subject: [AccessD] Dates As Criteria In-Reply-To: <595923.63092.qm@web88203.mail.re2.yahoo.com> Message-ID: Hello All, In A2K I ahve a form that has 2 unbound date fields...have input masks and formats as SHORT DATE...I have a query that uses these fields as criteria in a BETWEEN statement. The field in the table is a general date. I'm using 2 records to check...if I set the startdate and enddate on the form to the dates that are in the db...they return..but if I use ofther dates...nothing comes back. Example: StartDate:2/6/2007 EndDate: 2/13/2007 2 records: DT=2/9/2007 DT=2/13/2007 Using the above "between startdate and enddate" I return 1 record? If I change the startdate to 2/9/2007 then I return both IF I use 2/6 and2/17 as the start and end...I return NOTHING... Anyone...please help...I'm sure I've done something silly...but this just doesn't make sense??? Thanks, Mark A. Matte _________________________________________________________________ Invite your Hotmail contacts to join your friends list with Windows Live Spaces http://clk.atdmt.com/MSN/go/msnnkwsp0070000001msn/direct/01/?href=http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us From gustav at cactus.dk Tue Feb 13 17:13:12 2007 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 14 Feb 2007 00:13:12 +0100 Subject: [AccessD] Dates As Criteria Message-ID: Hi Mark Show us your query, the SQL. It probably has to do with a missing US format of the date values. /gustav >>> markamatte at hotmail.com 13-02-07 22:22 >>> Hello All, In A2K I ahve a form that has 2 unbound date fields...have input masks and formats as SHORT DATE...I have a query that uses these fields as criteria in a BETWEEN statement. The field in the table is a general date. I'm using 2 records to check...if I set the startdate and enddate on the form to the dates that are in the db...they return..but if I use ofther dates...nothing comes back. Example: StartDate:2/6/2007 EndDate: 2/13/2007 2 records: DT=2/9/2007 DT=2/13/2007 Using the above "between startdate and enddate" I return 1 record? If I change the startdate to 2/9/2007 then I return both IF I use 2/6 and2/17 as the start and end...I return NOTHING... Anyone...please help...I'm sure I've done something silly...but this just doesn't make sense??? Thanks, Mark A. Matte From bheid at sc.rr.com Tue Feb 13 17:14:26 2007 From: bheid at sc.rr.com (Bobby Heid) Date: Tue, 13 Feb 2007 18:14:26 -0500 Subject: [AccessD] Dates As Criteria In-Reply-To: References: <595923.63092.qm@web88203.mail.re2.yahoo.com> Message-ID: <007501c74fc4$b7c87320$2d01a8c0@bhxp> I usually do something like: Where FldDate>=ParmDate1 AND FldDate<=ParmDate2 This makes it explicit exactly what you want to do. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Tuesday, February 13, 2007 4:23 PM To: accessd at databaseadvisors.com Subject: [AccessD] Dates As Criteria Hello All, In A2K I ahve a form that has 2 unbound date fields...have input masks and formats as SHORT DATE...I have a query that uses these fields as criteria in a BETWEEN statement. The field in the table is a general date. I'm using 2 records to check...if I set the startdate and enddate on the form to the dates that are in the db...they return..but if I use ofther dates...nothing comes back. Example: StartDate:2/6/2007 EndDate: 2/13/2007 2 records: DT=2/9/2007 DT=2/13/2007 Using the above "between startdate and enddate" I return 1 record? If I change the startdate to 2/9/2007 then I return both IF I use 2/6 and2/17 as the start and end...I return NOTHING... Anyone...please help...I'm sure I've done something silly...but this just doesn't make sense??? Thanks, Mark A. Matte From bheid at sc.rr.com Tue Feb 13 17:30:27 2007 From: bheid at sc.rr.com (Bobby Heid) Date: Tue, 13 Feb 2007 18:30:27 -0500 Subject: [AccessD] Dates As Criteria In-Reply-To: <007501c74fc4$b7c87320$2d01a8c0@bhxp> References: <595923.63092.qm@web88203.mail.re2.yahoo.com> <007501c74fc4$b7c87320$2d01a8c0@bhxp> Message-ID: <008201c74fc6$f1b972d0$2d01a8c0@bhxp> Actually, if you were building the tring, that would be: "WHERE FldDate>=#" & ParmDate1 & "# AND FldDate<=#" & ParmDate2 & "#" Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Tuesday, February 13, 2007 6:14 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Dates As Criteria I usually do something like: Where FldDate>=ParmDate1 AND FldDate<=ParmDate2 This makes it explicit exactly what you want to do. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Tuesday, February 13, 2007 4:23 PM To: accessd at databaseadvisors.com Subject: [AccessD] Dates As Criteria Hello All, In A2K I ahve a form that has 2 unbound date fields...have input masks and formats as SHORT DATE...I have a query that uses these fields as criteria in a BETWEEN statement. The field in the table is a general date. I'm using 2 records to check...if I set the startdate and enddate on the form to the dates that are in the db...they return..but if I use ofther dates...nothing comes back. Example: StartDate:2/6/2007 EndDate: 2/13/2007 2 records: DT=2/9/2007 DT=2/13/2007 Using the above "between startdate and enddate" I return 1 record? If I change the startdate to 2/9/2007 then I return both IF I use 2/6 and2/17 as the start and end...I return NOTHING... Anyone...please help...I'm sure I've done something silly...but this just doesn't make sense??? Thanks, Mark A. Matte From kost36 at otenet.gr Tue Feb 13 22:28:49 2007 From: kost36 at otenet.gr (Kostas Konstantinidis) Date: Wed, 14 Feb 2007 06:28:49 +0200 Subject: [AccessD] How to transfer text.. References: <34C8A2AB1EF3564CB0D64DB6AFFDD5C201201095@xlivmbx35.aig.com> Message-ID: <009501c74ff0$f85f50d0$6501a8c0@kost36> yes Lambert, now it works perfect thank's a lot /kostas ----- Original Message ----- From: "Heenan, Lambert" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, February 13, 2007 9:36 PM Subject: Re: [AccessD] How to transfer text.. > > Re "the object 'myform' isn't open... " the code behind the form's > "Close" > button should *not* close the form. Instead it should say "Me.Visible = > False", which hides the from and then allows the calling code to continue > running... > > Me!AM = Forms(stdocname)!AM ' <- gets the value from the hidden, but > still loaded form > DoCmd.Close acForm, stdocname' <- closes the hidden form > > Re opening on the wrong record. Change the open form code to > > DoCmd.OpenForm stdocname, , , "num_mitroou= " & poustia,,acDialog > > That line now includes the where condition that selects the correct > record. > > Lambert > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas > Konstantinidis > Sent: Tuesday, February 13, 2007 2:04 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] How to transfer text.. > > > Michael thank's for your response > > Labert, thank's you too > ... > well, with the > DoCmd.OpenForm stdocname,,,,,acDialog > the form opens but just on the first record and not on a new one and while > I > am trying to close the form after udate it hungs because with the next > line > DoCmd.GoToRecord acDataForm, stdocname, acNewRec it answers: he object > 'myform' isn't open... am I doing something wrong? many thank's /kostas > > > ----- Original Message ----- > From: "Heenan, Lambert" > To: "'Access Developers discussion and problem solving'" > > Sent: Monday, February 12, 2007 10:40 PM > Subject: Re: [AccessD] How to transfer text.. > > >> You could to this... >> >> >> Private Sub AM_DblClick(Cancel As Integer) >> Dim poustia As String >> Dim stdocname As String >> >> stdocname = "MT_basic_char" >> If IsNull(num_mitroou) Then >> >> DoCmd.OpenForm stdocname,,,,,acDialog >> >> DoCmd.GoToRecord acDataForm, stdocname, acNewRec >> >> Me!AM = Forms(stdocname)!AM >> DoCmd.Close acForm, stdocname >> >> else >> poustia = Me!num_mitroou >> DoCmd.OpenForm stdocname, , , "num_mitroou= " & poustia >> End If >> End Sub >> >> The trick to this is that you open stdocname in dialog mode. That >> causes >> the >> calling code to wait until either the opened form closes, or it is made >> invisible. So if the MT_basic_char form's "Close" button is modified from >> DoCmd.Close acFrom, Me.Name >> To >> Me.Visible = False >> >> Then when the user hits the close button the form will be hidden, the >> calling code will resume execution, and it can pick up the value >> entered with the line "Me!AM = Forms(stdocname)!AM", and then you code >> continues by actually closing the called form. >> >> >> HTH >> >> Lambert >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas >> Konstantinidis >> Sent: Monday, February 12, 2007 2:43 PM >> To: Access Developers discussion and problem solving >> Subject: [AccessD] How to transfer text.. >> >> >> hi group, >> On a double click on a form I use the follown: >> >> Private Sub AM_DblClick(Cancel As Integer) >> Dim poustia As String >> Dim stdocname As String >> >> stdocname = "MT_basic_char" >> If IsNull(num_mitroou) Then >> DoCmd.OpenForm stdocname >> DoCmd.GoToRecord acDataForm, stdocname, acNewRec >> else >> poustia = Me!num_mitroou >> DoCmd.OpenForm stdocname, , , "num_mitroou= " & poustia >> End If >> End Sub >> >> >> what I want to do is after the new record update and closing the >> stdocname >> the text of AM's field to be tranfered to the AM field of the opened >> form >> >> Many thank's >> /kostas >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From prodevmg at yahoo.com Wed Feb 14 05:18:25 2007 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Wed, 14 Feb 2007 03:18:25 -0800 (PST) Subject: [AccessD] Counting multiple items in a field Message-ID: <549765.98645.qm@web33103.mail.mud.yahoo.com> I have a field that is horribly constructed. It looks like so... RECORDID FIELD1 1 AAA, BBB 2 BBB 3 AAA, BBB, CCC 4 BBB, CCC 5 AAA, CCC 6 CCC, BBB Is there a quick way to count all the AAA's and all the BBB's without reconstructing (normalizing) the table? This would entail redoing their input forms and reports. Time is of the essence. Thanks. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us ____________________________________________________________________________________ Have a burning question? Go to www.Answers.yahoo.com and get answers from real people who know. From Gustav at cactus.dk Wed Feb 14 05:35:47 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 14 Feb 2007 12:35:47 +0100 Subject: [AccessD] Counting multiple items in a field Message-ID: Hi Lonnie You could, in a query, have three expressions: CountA: Abs(Instr(Field1, "AAA") > 0) CountB: Abs(Instr(Field1, "BBB") > 0) CountC: Abs(Instr(Field1, "CCC") > 0) and then find the three sums of CountA to CountC. /gustav >>> prodevmg at yahoo.com 14-02-2007 12:18:25 >>> I have a field that is horribly constructed. It looks like so... RECORDID FIELD1 1 AAA, BBB 2 BBB 3 AAA, BBB, CCC 4 BBB, CCC 5 AAA, CCC 6 CCC, BBB Is there a quick way to count all the AAA's and all the BBB's without reconstructing (normalizing) the table? This would entail redoing their input forms and reports. Time is of the essence. Thanks. From prodevmg at yahoo.com Wed Feb 14 06:58:46 2007 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Wed, 14 Feb 2007 04:58:46 -0800 (PST) Subject: [AccessD] Counting multiple items in a field Message-ID: <945583.31083.qm@web33109.mail.mud.yahoo.com> Thanks for the quick response Gustav. Actually there are about 50 of the AAA type codes and I need them to print out in the footer of a report. That would seem to give me a lot of columns and also would entail modifying it when a new code came into play. I wanted something more dynamic. Thanks again. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us ----- Original Message ---- From: Gustav Brock To: accessd at databaseadvisors.com Sent: Wednesday, February 14, 2007 5:35:47 AM Subject: Re: [AccessD] Counting multiple items in a field Hi Lonnie You could, in a query, have three expressions: CountA: Abs(Instr(Field1, "AAA") > 0) CountB: Abs(Instr(Field1, "BBB") > 0) CountC: Abs(Instr(Field1, "CCC") > 0) and then find the three sums of CountA to CountC. /gustav >>> prodevmg at yahoo.com 14-02-2007 12:18:25 >>> I have a field that is horribly constructed. It looks like so... RECORDID FIELD1 1 AAA, BBB 2 BBB 3 AAA, BBB, CCC 4 BBB, CCC 5 AAA, CCC 6 CCC, BBB Is there a quick way to count all the AAA's and all the BBB's without reconstructing (normalizing) the table? This would entail redoing their input forms and reports. Time is of the essence. Thanks. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ____________________________________________________________________________________ Looking for earth-friendly autos? Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center. http://autos.yahoo.com/green_center/ From Gustav at cactus.dk Wed Feb 14 07:25:43 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 14 Feb 2007 14:25:43 +0100 Subject: [AccessD] Counting multiple items in a field Message-ID: Hi Lonnie I'm not sure I fully understand what you wish to accomplish. Could you provide a sample of data and of your requested output from that sample? /gustav >>> prodevmg at yahoo.com 14-02-2007 13:58:46 >>> Thanks for the quick response Gustav. Actually there are about 50 of the AAA type codes and I need them to print out in the footer of a report. That would seem to give me a lot of columns and also would entail modifying it when a new code came into play. I wanted something more dynamic. Thanks again. ----- Original Message ---- From: Gustav Brock To: accessd at databaseadvisors.com Sent: Wednesday, February 14, 2007 5:35:47 AM Subject: Re: [AccessD] Counting multiple items in a field Hi Lonnie You could, in a query, have three expressions: CountA: Abs(Instr(Field1, "AAA") > 0) CountB: Abs(Instr(Field1, "BBB") > 0) CountC: Abs(Instr(Field1, "CCC") > 0) and then find the three sums of CountA to CountC. /gustav >>> prodevmg at yahoo.com 14-02-2007 12:18:25 >>> I have a field that is horribly constructed. It looks like so... RECORDID FIELD1 1 AAA, BBB 2 BBB 3 AAA, BBB, CCC 4 BBB, CCC 5 AAA, CCC 6 CCC, BBB Is there a quick way to count all the AAA's and all the BBB's without reconstructing (normalizing) the table? This would entail redoing their input forms and reports. Time is of the essence. Thanks. From prodevmg at yahoo.com Wed Feb 14 08:53:07 2007 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Wed, 14 Feb 2007 06:53:07 -0800 (PST) Subject: [AccessD] Counting multiple items in a field Message-ID: <145336.73521.qm@web33109.mail.mud.yahoo.com> Thanks again. I ended up using the InStr function to pick out each code in the field for each record then added them to a temp table as an individual record. This is how they should be stored anyway in a normal inviornment. Then I can just do a grouping query. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us ----- Original Message ---- From: Gustav Brock To: accessd at databaseadvisors.com Sent: Wednesday, February 14, 2007 7:25:43 AM Subject: Re: [AccessD] Counting multiple items in a field Hi Lonnie I'm not sure I fully understand what you wish to accomplish. Could you provide a sample of data and of your requested output from that sample? /gustav >>> prodevmg at yahoo.com 14-02-2007 13:58:46 >>> Thanks for the quick response Gustav. Actually there are about 50 of the AAA type codes and I need them to print out in the footer of a report. That would seem to give me a lot of columns and also would entail modifying it when a new code came into play. I wanted something more dynamic. Thanks again. ----- Original Message ---- From: Gustav Brock To: accessd at databaseadvisors.com Sent: Wednesday, February 14, 2007 5:35:47 AM Subject: Re: [AccessD] Counting multiple items in a field Hi Lonnie You could, in a query, have three expressions: CountA: Abs(Instr(Field1, "AAA") > 0) CountB: Abs(Instr(Field1, "BBB") > 0) CountC: Abs(Instr(Field1, "CCC") > 0) and then find the three sums of CountA to CountC. /gustav >>> prodevmg at yahoo.com 14-02-2007 12:18:25 >>> I have a field that is horribly constructed. It looks like so... RECORDID FIELD1 1 AAA, BBB 2 BBB 3 AAA, BBB, CCC 4 BBB, CCC 5 AAA, CCC 6 CCC, BBB Is there a quick way to count all the AAA's and all the BBB's without reconstructing (normalizing) the table? This would entail redoing their input forms and reports. Time is of the essence. Thanks. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ____________________________________________________________________________________ Don't pick lemons. See all the new 2007 cars at Yahoo! Autos. http://autos.yahoo.com/new_cars.html From markamatte at hotmail.com Wed Feb 14 09:09:43 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 14 Feb 2007 15:09:43 +0000 Subject: [AccessD] Dates As Criteria In-Reply-To: Message-ID: Here she is...This is making NO SENSE to me...at all??? SELECT tblArrests.ArrestDT, tblArrests.ArrestLocation FROM tblArrests WHERE (((Format([ArrestDT],"Short Date")) Between [Forms]![frmReports]![StartDate] And [Forms]![frmReports]![endDate])); >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] Dates As Criteria >Date: Wed, 14 Feb 2007 00:13:12 +0100 > >Hi Mark > >Show us your query, the SQL. >It probably has to do with a missing US format of the date values. > >/gustav > > >>> markamatte at hotmail.com 13-02-07 22:22 >>> >Hello All, > >In A2K I ahve a form that has 2 unbound date fields...have input masks and >formats as SHORT DATE...I have a query that uses these fields as criteria >in >a BETWEEN statement. The field in the table is a general date. I'm using >2 >records to check...if I set the startdate and enddate on the form to the >dates that are in the db...they return..but if I use ofther dates...nothing >comes back. Example: > >StartDate:2/6/2007 >EndDate: 2/13/2007 > >2 records: >DT=2/9/2007 >DT=2/13/2007 > >Using the above "between startdate and enddate" I return 1 record? >If I change the startdate to 2/9/2007 then I return both >IF I use 2/6 and2/17 as the start and end...I return NOTHING... > >Anyone...please help...I'm sure I've done something silly...but this just >doesn't make sense??? > >Thanks, > >Mark A. Matte > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Valentine?s Day -- Shop for gifts that spell L-O-V-E at MSN Shopping http://shopping.msn.com/content/shp/?ctId=8323,ptnrid=37,ptnrdata=24095&tcode=wlmtagline From Gustav at cactus.dk Wed Feb 14 09:30:03 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 14 Feb 2007 16:30:03 +0100 Subject: [AccessD] Dates As Criteria Message-ID: Hi Mark First, I would follow the advice from Arthur. If not possible, then try this: PARAMETERS [Forms]![frmReports]![StartDate] DateTime, [Forms]![frmReports]![EndDate] DateTime; SELECT tblArrests.ArrestDT, tblArrests.ArrestLocation FROM tblArrests WHERE ArrestDT Between [Forms]![frmReports]![StartDate] And [Forms]![frmReports]![EndDate]; /gustav >>> markamatte at hotmail.com 14-02-2007 16:09:43 >>> Here she is...This is making NO SENSE to me...at all??? SELECT tblArrests.ArrestDT, tblArrests.ArrestLocation FROM tblArrests WHERE (((Format([ArrestDT],"Short Date")) Between [Forms]![frmReports]![StartDate] And [Forms]![frmReports]![endDate])); >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] Dates As Criteria >Date: Wed, 14 Feb 2007 00:13:12 +0100 > >Hi Mark > >Show us your query, the SQL. >It probably has to do with a missing US format of the date values. > >/gustav > > >>> markamatte at hotmail.com 13-02-07 22:22 >>> >Hello All, > >In A2K I ahve a form that has 2 unbound date fields...have input masks and >formats as SHORT DATE...I have a query that uses these fields as criteria in >a BETWEEN statement. The field in the table is a general date. I'm using 2 >records to check...if I set the startdate and enddate on the form to the >dates that are in the db...they return..but if I use ofther dates...nothing >comes back. Example: > >StartDate:2/6/2007 >EndDate: 2/13/2007 > >2 records: >DT=2/9/2007 >DT=2/13/2007 > >Using the above "between startdate and enddate" I return 1 record? >If I change the startdate to 2/9/2007 then I return both >IF I use 2/6 and2/17 as the start and end...I return NOTHING... > >Anyone...please help...I'm sure I've done something silly...but this just >doesn't make sense??? > >Thanks, > >Mark A. Matte From markamatte at hotmail.com Wed Feb 14 09:46:08 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 14 Feb 2007 15:46:08 +0000 Subject: [AccessD] Dates As Criteria In-Reply-To: Message-ID: I set the parameters...no change...and the reason I I use the format function is that the field ArrestDT is stored as a general date...with time. So I format to get just the short date. >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] Dates As Criteria >Date: Wed, 14 Feb 2007 16:30:03 +0100 > >Hi Mark > >First, I would follow the advice from Arthur. >If not possible, then try this: > >PARAMETERS > [Forms]![frmReports]![StartDate] DateTime, > [Forms]![frmReports]![EndDate] DateTime; > >SELECT tblArrests.ArrestDT, tblArrests.ArrestLocation >FROM tblArrests >WHERE ArrestDT Between > [Forms]![frmReports]![StartDate] And > [Forms]![frmReports]![EndDate]; > >/gustav > > >>> markamatte at hotmail.com 14-02-2007 16:09:43 >>> >Here she is...This is making NO SENSE to me...at all??? > >SELECT tblArrests.ArrestDT, tblArrests.ArrestLocation >FROM tblArrests >WHERE (((Format([ArrestDT],"Short Date")) Between >[Forms]![frmReports]![StartDate] And [Forms]![frmReports]![endDate])); > > > > >From: "Gustav Brock" > >Reply-To: Access Developers discussion and problem > >solving > >To: > >Subject: Re: [AccessD] Dates As Criteria > >Date: Wed, 14 Feb 2007 00:13:12 +0100 > > > >Hi Mark > > > >Show us your query, the SQL. > >It probably has to do with a missing US format of the date values. > > > >/gustav > > > > >>> markamatte at hotmail.com 13-02-07 22:22 >>> > >Hello All, > > > >In A2K I ahve a form that has 2 unbound date fields...have input masks >and > >formats as SHORT DATE...I have a query that uses these fields as criteria >in > >a BETWEEN statement. The field in the table is a general date. I'm >using 2 > >records to check...if I set the startdate and enddate on the form to the > >dates that are in the db...they return..but if I use ofther >dates...nothing > >comes back. Example: > > > >StartDate:2/6/2007 > >EndDate: 2/13/2007 > > > >2 records: > >DT=2/9/2007 > >DT=2/13/2007 > > > >Using the above "between startdate and enddate" I return 1 record? > >If I change the startdate to 2/9/2007 then I return both > >IF I use 2/6 and2/17 as the start and end...I return NOTHING... > > > >Anyone...please help...I'm sure I've done something silly...but this just > >doesn't make sense??? > > > >Thanks, > > > >Mark A. Matte > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Don?t miss your chance to WIN 10 hours of private jet travel from Microsoft Office Live http://clk.atdmt.com/MRT/go/mcrssaub0540002499mrt/direct/01/ From markamatte at hotmail.com Wed Feb 14 09:48:50 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 14 Feb 2007 15:48:50 +0000 Subject: [AccessD] Dates As Criteria In-Reply-To: Message-ID: Thanks again gustav, I didn't get a responce from Arthur? Thanks, Mark >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] Dates As Criteria >Date: Wed, 14 Feb 2007 16:30:03 +0100 > >Hi Mark > >First, I would follow the advice from Arthur. >If not possible, then try this: > >PARAMETERS > [Forms]![frmReports]![StartDate] DateTime, > [Forms]![frmReports]![EndDate] DateTime; > >SELECT tblArrests.ArrestDT, tblArrests.ArrestLocation >FROM tblArrests >WHERE ArrestDT Between > [Forms]![frmReports]![StartDate] And > [Forms]![frmReports]![EndDate]; > >/gustav > > >>> markamatte at hotmail.com 14-02-2007 16:09:43 >>> >Here she is...This is making NO SENSE to me...at all??? > >SELECT tblArrests.ArrestDT, tblArrests.ArrestLocation >FROM tblArrests >WHERE (((Format([ArrestDT],"Short Date")) Between >[Forms]![frmReports]![StartDate] And [Forms]![frmReports]![endDate])); > > > > >From: "Gustav Brock" > >Reply-To: Access Developers discussion and problem > >solving > >To: > >Subject: Re: [AccessD] Dates As Criteria > >Date: Wed, 14 Feb 2007 00:13:12 +0100 > > > >Hi Mark > > > >Show us your query, the SQL. > >It probably has to do with a missing US format of the date values. > > > >/gustav > > > > >>> markamatte at hotmail.com 13-02-07 22:22 >>> > >Hello All, > > > >In A2K I ahve a form that has 2 unbound date fields...have input masks >and > >formats as SHORT DATE...I have a query that uses these fields as criteria >in > >a BETWEEN statement. The field in the table is a general date. I'm >using 2 > >records to check...if I set the startdate and enddate on the form to the > >dates that are in the db...they return..but if I use ofther >dates...nothing > >comes back. Example: > > > >StartDate:2/6/2007 > >EndDate: 2/13/2007 > > > >2 records: > >DT=2/9/2007 > >DT=2/13/2007 > > > >Using the above "between startdate and enddate" I return 1 record? > >If I change the startdate to 2/9/2007 then I return both > >IF I use 2/6 and2/17 as the start and end...I return NOTHING... > > > >Anyone...please help...I'm sure I've done something silly...but this just > >doesn't make sense??? > > > >Thanks, > > > >Mark A. Matte > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Laugh, share and connect with Windows Live Messenger http://clk.atdmt.com/MSN/go/msnnkwme0020000001msn/direct/01/?href=http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=hmtagline From Gustav at cactus.dk Wed Feb 14 09:57:20 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 14 Feb 2007 16:57:20 +0100 Subject: [AccessD] Dates As Criteria Message-ID: Hi Mark The quick way to remove the time portion is to use Fix: WHERE Fix(ArrestDT) Between The advice from Arthur about using static functions is a couple of days old. /gustav >>> markamatte at hotmail.com 14-02-2007 16:46:08 >>> I set the parameters...no change...and the reason I I use the format function is that the field ArrestDT is stored as a general date...with time. So I format to get just the short date. From markamatte at hotmail.com Wed Feb 14 10:16:16 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 14 Feb 2007 16:16:16 +0000 Subject: [AccessD] Dates As Criteria In-Reply-To: Message-ID: Thanks Gustav, FIX works. I only posted this yesterday...but do you know the subject of the thread containing Arthur's advice? Thanks, Mark A. Matte >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] Dates As Criteria >Date: Wed, 14 Feb 2007 16:57:20 +0100 > >Hi Mark > >The quick way to remove the time portion is to use Fix: > > WHERE Fix(ArrestDT) Between > >The advice from Arthur about using static functions is a couple of days >old. > >/gustav > > >>> markamatte at hotmail.com 14-02-2007 16:46:08 >>> >I set the parameters...no change...and the reason I I use the format >function is that the field ArrestDT is stored as a general date...with >time. > So I format to get just the short date. > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Valentine?s Day -- Shop for gifts that spell L-O-V-E at MSN Shopping http://shopping.msn.com/content/shp/?ctId=8323,ptnrid=37,ptnrdata=24095&tcode=wlmtagline From paul.hartland at fsmail.net Wed Feb 14 10:37:40 2007 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 14 Feb 2007 17:37:40 +0100 (CET) Subject: [AccessD] Open Merged Word Document With VB/VBA Message-ID: <3632552.521541171471060472.JavaMail.www@wwinf3202> To all, I have a Word document which I have linked to a view on SQL Server, and have been racking my brains for about the last hour trying to open the word document (no problem), and run the merge (this is the problem).... Has anyone any sample code on how to do this, I am sure I have done this before but can't for the life of me find my code... Thanks in advance for any help on this. Paul Hartland paul.hartland at fsmail.net 07730 523179 From Gustav at cactus.dk Wed Feb 14 10:37:43 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 14 Feb 2007 17:37:43 +0100 Subject: [AccessD] Dates As Criteria Message-ID: Hi Mark Sorry, that was on another topic but still: http://databaseadvisors.com/pipermail/accessd/2007-February/049571.html /gustav >>> markamatte at hotmail.com 14-02-2007 17:16:16 >>> Thanks Gustav, FIX works. I only posted this yesterday...but do you know the subject of the thread containing Arthur's advice? Thanks, Mark A. Matte From Lambert.Heenan at AIG.com Wed Feb 14 11:35:41 2007 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Wed, 14 Feb 2007 11:35:41 -0600 Subject: [AccessD] Dates As Criteria Message-ID: <34C8A2AB1EF3564CB0D64DB6AFFDD5C2012010B2@xlivmbx35.aig.com> Not only is this a quick way to remove the time [Using Fix()], it returns a Date data type value. Using Format to remove the time *looks* ok, but what you are getting back from the Format() function is a string. That introduces other possible bug sources. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, February 14, 2007 10:57 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Dates As Criteria Hi Mark The quick way to remove the time portion is to use Fix: WHERE Fix(ArrestDT) Between The advice from Arthur about using static functions is a couple of days old. /gustav >>> markamatte at hotmail.com 14-02-2007 16:46:08 >>> I set the parameters...no change...and the reason I I use the format function is that the field ArrestDT is stored as a general date...with time. So I format to get just the short date. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed Feb 14 12:31:03 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 14 Feb 2007 10:31:03 -0800 Subject: [AccessD] Dates As Criteria In-Reply-To: Message-ID: <0JDG00IL0TZM6O41@l-daemon> Hi Mark: The process can be great sped up by just formatting the results like: SELECT Format([ArrestDT],"Short Date") as ArrestDT, tblArrests.ArrestLocation FROM tblArrests WHERE ArrestDT Between [Forms]![frmReports]![StartDate] And [Forms]![frmReports]![EndDate]; That is if I am understanding what you are asking. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Wednesday, February 14, 2007 7:46 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Dates As Criteria I set the parameters...no change...and the reason I I use the format function is that the field ArrestDT is stored as a general date...with time. So I format to get just the short date. >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] Dates As Criteria >Date: Wed, 14 Feb 2007 16:30:03 +0100 > >Hi Mark > >First, I would follow the advice from Arthur. >If not possible, then try this: > >PARAMETERS > [Forms]![frmReports]![StartDate] DateTime, > [Forms]![frmReports]![EndDate] DateTime; > >SELECT tblArrests.ArrestDT, tblArrests.ArrestLocation >FROM tblArrests >WHERE ArrestDT Between > [Forms]![frmReports]![StartDate] And > [Forms]![frmReports]![EndDate]; > >/gustav > > >>> markamatte at hotmail.com 14-02-2007 16:09:43 >>> >Here she is...This is making NO SENSE to me...at all??? > >SELECT tblArrests.ArrestDT, tblArrests.ArrestLocation >FROM tblArrests >WHERE (((Format([ArrestDT],"Short Date")) Between >[Forms]![frmReports]![StartDate] And [Forms]![frmReports]![endDate])); > > > > >From: "Gustav Brock" > >Reply-To: Access Developers discussion and problem > >solving > >To: > >Subject: Re: [AccessD] Dates As Criteria > >Date: Wed, 14 Feb 2007 00:13:12 +0100 > > > >Hi Mark > > > >Show us your query, the SQL. > >It probably has to do with a missing US format of the date values. > > > >/gustav > > > > >>> markamatte at hotmail.com 13-02-07 22:22 >>> > >Hello All, > > > >In A2K I ahve a form that has 2 unbound date fields...have input masks >and > >formats as SHORT DATE...I have a query that uses these fields as criteria >in > >a BETWEEN statement. The field in the table is a general date. I'm >using 2 > >records to check...if I set the startdate and enddate on the form to the > >dates that are in the db...they return..but if I use ofther >dates...nothing > >comes back. Example: > > > >StartDate:2/6/2007 > >EndDate: 2/13/2007 > > > >2 records: > >DT=2/9/2007 > >DT=2/13/2007 > > > >Using the above "between startdate and enddate" I return 1 record? > >If I change the startdate to 2/9/2007 then I return both > >IF I use 2/6 and2/17 as the start and end...I return NOTHING... > > > >Anyone...please help...I'm sure I've done something silly...but this just > >doesn't make sense??? > > > >Thanks, > > > >Mark A. Matte > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Dont miss your chance to WIN 10 hours of private jet travel from Microsoft Office Live http://clk.atdmt.com/MRT/go/mcrssaub0540002499mrt/direct/01/ From markamatte at hotmail.com Wed Feb 14 12:54:03 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 14 Feb 2007 18:54:03 +0000 Subject: [AccessD] Dates As Criteria In-Reply-To: <0JDG00IL0TZM6O41@l-daemon> Message-ID: Thanks Jim...but that would cause a Circular Reference...I think??? And if I named ArrestDT something else...we are back to where I started...not returning the results I wanted. This does disturb me a little be cause I've used FORMAT(DT_Field,"Short Date") a thousands of times...and never had this issue. Using FIX does seem to 'fix' the problem...lol...I'm still confused...but ok. Thanks, Mark >From: Jim Lawrence >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] Dates As Criteria >Date: Wed, 14 Feb 2007 10:31:03 -0800 > >Hi Mark: > >The process can be great sped up by just formatting the results like: > >SELECT Format([ArrestDT],"Short Date") as ArrestDT, >tblArrests.ArrestLocation >FROM tblArrests >WHERE ArrestDT Between > [Forms]![frmReports]![StartDate] And > [Forms]![frmReports]![EndDate]; > >That is if I am understanding what you are asking. > >Jim > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: Wednesday, February 14, 2007 7:46 AM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Dates As Criteria > >I set the parameters...no change...and the reason I I use the format >function is that the field ArrestDT is stored as a general date...with >time. > > So I format to get just the short date. > > > >From: "Gustav Brock" > >Reply-To: Access Developers discussion and problem > >solving > >To: > >Subject: Re: [AccessD] Dates As Criteria > >Date: Wed, 14 Feb 2007 16:30:03 +0100 > > > >Hi Mark > > > >First, I would follow the advice from Arthur. > >If not possible, then try this: > > > >PARAMETERS > > [Forms]![frmReports]![StartDate] DateTime, > > [Forms]![frmReports]![EndDate] DateTime; > > > >SELECT tblArrests.ArrestDT, tblArrests.ArrestLocation > >FROM tblArrests > >WHERE ArrestDT Between > > [Forms]![frmReports]![StartDate] And > > [Forms]![frmReports]![EndDate]; > > > >/gustav > > > > >>> markamatte at hotmail.com 14-02-2007 16:09:43 >>> > >Here she is...This is making NO SENSE to me...at all??? > > > >SELECT tblArrests.ArrestDT, tblArrests.ArrestLocation > >FROM tblArrests > >WHERE (((Format([ArrestDT],"Short Date")) Between > >[Forms]![frmReports]![StartDate] And [Forms]![frmReports]![endDate])); > > > > > > > > >From: "Gustav Brock" > > >Reply-To: Access Developers discussion and problem > > >solving > > >To: > > >Subject: Re: [AccessD] Dates As Criteria > > >Date: Wed, 14 Feb 2007 00:13:12 +0100 > > > > > >Hi Mark > > > > > >Show us your query, the SQL. > > >It probably has to do with a missing US format of the date values. > > > > > >/gustav > > > > > > >>> markamatte at hotmail.com 13-02-07 22:22 >>> > > >Hello All, > > > > > >In A2K I ahve a form that has 2 unbound date fields...have input masks > >and > > >formats as SHORT DATE...I have a query that uses these fields as >criteria > > >in > > >a BETWEEN statement. The field in the table is a general date. I'm > >using 2 > > >records to check...if I set the startdate and enddate on the form to >the > > >dates that are in the db...they return..but if I use ofther > >dates...nothing > > >comes back. Example: > > > > > >StartDate:2/6/2007 > > >EndDate: 2/13/2007 > > > > > >2 records: > > >DT=2/9/2007 > > >DT=2/13/2007 > > > > > >Using the above "between startdate and enddate" I return 1 record? > > >If I change the startdate to 2/9/2007 then I return both > > >IF I use 2/6 and2/17 as the start and end...I return NOTHING... > > > > > >Anyone...please help...I'm sure I've done something silly...but this >just > > >doesn't make sense??? > > > > > >Thanks, > > > > > >Mark A. Matte > > > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > >_________________________________________________________________ >Dont miss your chance to WIN 10 hours of private jet travel from Microsoft >Office Live http://clk.atdmt.com/MRT/go/mcrssaub0540002499mrt/direct/01/ > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Get in the mood for Valentine's Day. View photos, recipes and more on your Live.com page. http://www.live.com/?addTemplate=ValentinesDay&ocid=T001MSN30A0701 From Gustav at cactus.dk Wed Feb 14 13:12:18 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 14 Feb 2007 20:12:18 +0100 Subject: [AccessD] Dates As Criteria Message-ID: Hi Mark As Lambert wrote, just using Format leaves you with a string not a date. If you have to - and I can't see that's the case here - you must use a US formatted string expression for a date value: SELECT Format([ArrestDT],"\#m\/d\/yyyy\#") .. /gustav >>> markamatte at hotmail.com 14-02-2007 19:54:03 >>> Thanks Jim...but that would cause a Circular Reference...I think??? And if I named ArrestDT something else...we are back to where I started...not returning the results I wanted. This does disturb me a little be cause I've used FORMAT(DT_Field,"Short Date") a thousands of times...and never had this issue. Using FIX does seem to 'fix' the problem...lol...I'm still confused...but ok. From jwcolby at colbyconsulting.com Wed Feb 14 13:15:12 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 14 Feb 2007 14:15:12 -0500 Subject: [AccessD] Dates As Criteria In-Reply-To: <0JDG00IL0TZM6O41@l-daemon> Message-ID: <008801c7506c$73c2ba20$657aa8c0@m6805> Yep, this solution needs to give a different alias to ArrestDT or you will get circular references. SELECT Format([ArrestDT],"Short Date") as ArrestDTNew, tblArrests.ArrestLocation FROM tblArrests WHERE ArrestDT Between [Forms]![frmReports]![StartDate] And [Forms]![frmReports]![EndDate]; John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, February 14, 2007 1:31 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Dates As Criteria Hi Mark: The process can be great sped up by just formatting the results like: SELECT Format([ArrestDT],"Short Date") as ArrestDT, tblArrests.ArrestLocation FROM tblArrests WHERE ArrestDT Between [Forms]![frmReports]![StartDate] And [Forms]![frmReports]![EndDate]; That is if I am understanding what you are asking. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Wednesday, February 14, 2007 7:46 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Dates As Criteria I set the parameters...no change...and the reason I I use the format function is that the field ArrestDT is stored as a general date...with time. So I format to get just the short date. >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] Dates As Criteria >Date: Wed, 14 Feb 2007 16:30:03 +0100 > >Hi Mark > >First, I would follow the advice from Arthur. >If not possible, then try this: > >PARAMETERS > [Forms]![frmReports]![StartDate] DateTime, > [Forms]![frmReports]![EndDate] DateTime; > >SELECT tblArrests.ArrestDT, tblArrests.ArrestLocation FROM tblArrests >WHERE ArrestDT Between > [Forms]![frmReports]![StartDate] And > [Forms]![frmReports]![EndDate]; > >/gustav > > >>> markamatte at hotmail.com 14-02-2007 16:09:43 >>> >Here she is...This is making NO SENSE to me...at all??? > >SELECT tblArrests.ArrestDT, tblArrests.ArrestLocation FROM tblArrests >WHERE (((Format([ArrestDT],"Short Date")) Between >[Forms]![frmReports]![StartDate] And [Forms]![frmReports]![endDate])); > > > > >From: "Gustav Brock" > >Reply-To: Access Developers discussion and problem > >solving > >To: > >Subject: Re: [AccessD] Dates As Criteria > >Date: Wed, 14 Feb 2007 00:13:12 +0100 > > > >Hi Mark > > > >Show us your query, the SQL. > >It probably has to do with a missing US format of the date values. > > > >/gustav > > > > >>> markamatte at hotmail.com 13-02-07 22:22 >>> > >Hello All, > > > >In A2K I ahve a form that has 2 unbound date fields...have input > >masks >and > >formats as SHORT DATE...I have a query that uses these fields as > >criteria >in > >a BETWEEN statement. The field in the table is a general date. I'm >using 2 > >records to check...if I set the startdate and enddate on the form to > >the dates that are in the db...they return..but if I use ofther >dates...nothing > >comes back. Example: > > > >StartDate:2/6/2007 > >EndDate: 2/13/2007 > > > >2 records: > >DT=2/9/2007 > >DT=2/13/2007 > > > >Using the above "between startdate and enddate" I return 1 record? > >If I change the startdate to 2/9/2007 then I return both IF I use 2/6 > >and2/17 as the start and end...I return NOTHING... > > > >Anyone...please help...I'm sure I've done something silly...but this > >just doesn't make sense??? > > > >Thanks, > > > >Mark A. Matte > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Dont miss your chance to WIN 10 hours of private jet travel from Microsoft Office Live http://clk.atdmt.com/MRT/go/mcrssaub0540002499mrt/direct/01/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Wed Feb 14 13:25:35 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 14 Feb 2007 19:25:35 +0000 Subject: [AccessD] Dates As Criteria In-Reply-To: Message-ID: Thanks Gustav, I thought If I used Format(ArrestDT,"Short Date") it would be a date...and not a string? Am I confused? Thanks, Mark >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] Dates As Criteria >Date: Wed, 14 Feb 2007 20:12:18 +0100 > >Hi Mark > >As Lambert wrote, just using Format leaves you with a string not a date. >If you have to - and I can't see that's the case here - you must use a US >formatted string expression for a date value: > >SELECT Format([ArrestDT],"\#m\/d\/yyyy\#") .. > >/gustav > > >>> markamatte at hotmail.com 14-02-2007 19:54:03 >>> >Thanks Jim...but that would cause a Circular Reference...I think??? And if >I >named ArrestDT something else...we are back to where I started...not >returning the results I wanted. This does disturb me a little be cause >I've >used FORMAT(DT_Field,"Short Date") a thousands of times...and never had >this >issue. Using FIX does seem to 'fix' the problem...lol...I'm still >confused...but ok. > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Laugh, share and connect with Windows Live Messenger http://clk.atdmt.com/MSN/go/msnnkwme0020000001msn/direct/01/?href=http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=hmtagline From jwcolby at colbyconsulting.com Wed Feb 14 13:30:27 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 14 Feb 2007 14:30:27 -0500 Subject: [AccessD] Dates As Criteria In-Reply-To: Message-ID: <008901c7506e$953a2970$657aa8c0@m6805> AFAIK, Format ALWAYS returns a string data type. It is just that the information in that string may be a valid date, time, currency etc. IOW if you then fed that to cDate(Format(SomeDate,"ShortDate")) cDate would receive a string that is truly a date and can be converted. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Wednesday, February 14, 2007 2:26 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Dates As Criteria Thanks Gustav, I thought If I used Format(ArrestDT,"Short Date") it would be a date...and not a string? Am I confused? Thanks, Mark >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] Dates As Criteria >Date: Wed, 14 Feb 2007 20:12:18 +0100 > >Hi Mark > >As Lambert wrote, just using Format leaves you with a string not a date. >If you have to - and I can't see that's the case here - you must use a >US formatted string expression for a date value: > >SELECT Format([ArrestDT],"\#m\/d\/yyyy\#") .. > >/gustav > > >>> markamatte at hotmail.com 14-02-2007 19:54:03 >>> >Thanks Jim...but that would cause a Circular Reference...I think??? And >if I named ArrestDT something else...we are back to where I >started...not returning the results I wanted. This does disturb me a >little be cause I've used FORMAT(DT_Field,"Short Date") a thousands of >times...and never had this issue. Using FIX does seem to 'fix' the >problem...lol...I'm still confused...but ok. > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Laugh, share and connect with Windows Live Messenger http://clk.atdmt.com/MSN/go/msnnkwme0020000001msn/direct/01/?href=http://ima gine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=hmtagline -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Wed Feb 14 13:36:40 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 14 Feb 2007 20:36:40 +0100 Subject: [AccessD] Dates As Criteria Message-ID: Hi Mark Yes, you are confused. First, "Short Date" can be anything, it is localized. Thus, the strict US format expression I wrote about Second, as you write it, only "2/14/2007" would be returned. JET SQL has no way to know that is a date - it will think you are making two divisions. Thus, you must wrap it in hashmarks to make it string expression for a date value: "#2/14/2007#". /gustav >>> markamatte at hotmail.com 14-02-2007 20:25:35 >>> Thanks Gustav, I thought If I used Format(ArrestDT,"Short Date") it would be a date...and not a string? Am I confused? Thanks, Mark >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] Dates As Criteria >Date: Wed, 14 Feb 2007 20:12:18 +0100 > >Hi Mark > >As Lambert wrote, just using Format leaves you with a string not a date. >If you have to - and I can't see that's the case here - you must use a US >formatted string expression for a date value: > >SELECT Format([ArrestDT],"\#m\/d\/yyyy\#") .. > >/gustav From garykjos at gmail.com Wed Feb 14 13:40:09 2007 From: garykjos at gmail.com (Gary Kjos) Date: Wed, 14 Feb 2007 13:40:09 -0600 Subject: [AccessD] Dates As Criteria In-Reply-To: <008901c7506e$953a2970$657aa8c0@m6805> References: <008901c7506e$953a2970$657aa8c0@m6805> Message-ID: Or just use DateValue([ArrestDT]) GK On 2/14/07, JWColby wrote: > AFAIK, Format ALWAYS returns a string data type. It is just that the > information in that string may be a valid date, time, currency etc. IOW if > you then fed that to cDate(Format(SomeDate,"ShortDate")) cDate would receive > a string that is truly a date and can be converted. > > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > Sent: Wednesday, February 14, 2007 2:26 PM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Dates As Criteria > > > Thanks Gustav, > > I thought If I used Format(ArrestDT,"Short Date") it would be a date...and > not a string? Am I confused? > > Thanks, > > Mark > > >From: "Gustav Brock" > >Reply-To: Access Developers discussion and problem > >solving > >To: > >Subject: Re: [AccessD] Dates As Criteria > >Date: Wed, 14 Feb 2007 20:12:18 +0100 > > > >Hi Mark > > > >As Lambert wrote, just using Format leaves you with a string not a date. > >If you have to - and I can't see that's the case here - you must use a > >US formatted string expression for a date value: > > > >SELECT Format([ArrestDT],"\#m\/d\/yyyy\#") .. > > > >/gustav > > > > >>> markamatte at hotmail.com 14-02-2007 19:54:03 >>> > >Thanks Jim...but that would cause a Circular Reference...I think??? And > >if I named ArrestDT something else...we are back to where I > >started...not returning the results I wanted. This does disturb me a > >little be cause I've used FORMAT(DT_Field,"Short Date") a thousands of > >times...and never had this issue. Using FIX does seem to 'fix' the > >problem...lol...I'm still confused...but ok. > > > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > _________________________________________________________________ > Laugh, share and connect with Windows Live Messenger > http://clk.atdmt.com/MSN/go/msnnkwme0020000001msn/direct/01/?href=http://ima > gine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=hmtagline > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > 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 jwcolby at colbyconsulting.com Wed Feb 14 13:46:26 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 14 Feb 2007 14:46:26 -0500 Subject: [AccessD] Dates As Criteria In-Reply-To: Message-ID: <008a01c75070$d11fcd30$657aa8c0@m6805> >Or just use DateValue([ArrestDT]) Precisely, or some other method - Fix() etc. My point was simply to inform Mark that Format always returns a string, not that format was the correct method of doing what he desired (which I have stayed out of). John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Wednesday, February 14, 2007 2:40 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Dates As Criteria Or just use DateValue([ArrestDT]) GK On 2/14/07, JWColby wrote: > AFAIK, Format ALWAYS returns a string data type. It is just that the > information in that string may be a valid date, time, currency etc. > IOW if you then fed that to cDate(Format(SomeDate,"ShortDate")) cDate > would receive a string that is truly a date and can be converted. > > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A > Matte > Sent: Wednesday, February 14, 2007 2:26 PM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Dates As Criteria > > > Thanks Gustav, > > I thought If I used Format(ArrestDT,"Short Date") it would be a > date...and not a string? Am I confused? > > Thanks, > > Mark > > >From: "Gustav Brock" > >Reply-To: Access Developers discussion and problem > >solving > >To: > >Subject: Re: [AccessD] Dates As Criteria > >Date: Wed, 14 Feb 2007 20:12:18 +0100 > > > >Hi Mark > > > >As Lambert wrote, just using Format leaves you with a string not a date. > >If you have to - and I can't see that's the case here - you must use > >a US formatted string expression for a date value: > > > >SELECT Format([ArrestDT],"\#m\/d\/yyyy\#") .. > > > >/gustav > > > > >>> markamatte at hotmail.com 14-02-2007 19:54:03 >>> > >Thanks Jim...but that would cause a Circular Reference...I think??? > >And if I named ArrestDT something else...we are back to where I > >started...not returning the results I wanted. This does disturb me a > >little be cause I've used FORMAT(DT_Field,"Short Date") a thousands > >of times...and never had this issue. Using FIX does seem to 'fix' > >the problem...lol...I'm still confused...but ok. > > > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > _________________________________________________________________ > Laugh, share and connect with Windows Live Messenger > http://clk.atdmt.com/MSN/go/msnnkwme0020000001msn/direct/01/?href=http > ://ima > gine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=hmtag > line > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Wed Feb 14 13:47:17 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 14 Feb 2007 19:47:17 +0000 Subject: [AccessD] Dates As Criteria In-Reply-To: Message-ID: Ok...that makes sense now. I'll keep that in mind when using dates. Thanks, Mark >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] Dates As Criteria >Date: Wed, 14 Feb 2007 20:36:40 +0100 > >Hi Mark > >Yes, you are confused. > >First, "Short Date" can be anything, it is localized. Thus, the strict US >format expression I wrote about >Second, as you write it, only "2/14/2007" would be returned. JET SQL has no >way to know that is a date - it will think you are making two divisions. >Thus, you must wrap it in hashmarks to make it string expression for a date >value: "#2/14/2007#". > >/gustav > > >>> markamatte at hotmail.com 14-02-2007 20:25:35 >>> > >Thanks Gustav, > >I thought If I used Format(ArrestDT,"Short Date") it would be a date...and >not a string? Am I confused? > >Thanks, > >Mark > > >From: "Gustav Brock" > >Reply-To: Access Developers discussion and problem > >solving > >To: > >Subject: Re: [AccessD] Dates As Criteria > >Date: Wed, 14 Feb 2007 20:12:18 +0100 > > > >Hi Mark > > > >As Lambert wrote, just using Format leaves you with a string not a date. > >If you have to - and I can't see that's the case here - you must use a US > >formatted string expression for a date value: > > > >SELECT Format([ArrestDT],"\#m\/d\/yyyy\#") .. > > > >/gustav > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Check out all that glitters with the MSN Entertainment Guide to the Academy Awards? http://movies.msn.com/movies/oscars2007/?icid=ncoscartagline2 From markamatte at hotmail.com Wed Feb 14 13:49:43 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 14 Feb 2007 19:49:43 +0000 Subject: [AccessD] Textr box on a Report In-Reply-To: Message-ID: Hello All, In A2K I have a report that needs a seperate count of somehting in the DB...non related to the recordsource of the report. It is a single number...but there is a lengthy SQL statement that gets this number...any suggestions on the best approach? I was thinking about creating a query...then using dlookup. Does this sound like a good approach? Thanks, Mark A. Matte _________________________________________________________________ Don?t miss your chance to WIN 10 hours of private jet travel from Microsoft Office Live http://clk.atdmt.com/MRT/go/mcrssaub0540002499mrt/direct/01/ From jwcolby at colbyconsulting.com Wed Feb 14 13:58:00 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 14 Feb 2007 14:58:00 -0500 Subject: [AccessD] Textr box on a Report In-Reply-To: Message-ID: <009c01c75072$6e6adf20$657aa8c0@m6805> Dlookup works. You could also write a function that returns the value. Dlookup is not known for its speed but it is just there, always available (so seductive). John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Wednesday, February 14, 2007 2:50 PM To: accessd at databaseadvisors.com Subject: [AccessD] Textr box on a Report Hello All, In A2K I have a report that needs a seperate count of somehting in the DB...non related to the recordsource of the report. It is a single number...but there is a lengthy SQL statement that gets this number...any suggestions on the best approach? I was thinking about creating a query...then using dlookup. Does this sound like a good approach? Thanks, Mark A. Matte _________________________________________________________________ Dont miss your chance to WIN 10 hours of private jet travel from Microsoft Office Live http://clk.atdmt.com/MRT/go/mcrssaub0540002499mrt/direct/01/ From accessd at shaw.ca Wed Feb 14 16:41:48 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 14 Feb 2007 14:41:48 -0800 Subject: [AccessD] Textr box on a Report In-Reply-To: Message-ID: <0JDH003QB5LITMW1@l-daemon> Mark: Have you considered using a cross-tab query to populate the report? HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Wednesday, February 14, 2007 11:50 AM To: accessd at databaseadvisors.com Subject: [AccessD] Textr box on a Report Hello All, In A2K I have a report that needs a seperate count of somehting in the DB...non related to the recordsource of the report. It is a single number...but there is a lengthy SQL statement that gets this number...any suggestions on the best approach? I was thinking about creating a query...then using dlookup. Does this sound like a good approach? Thanks, Mark A. Matte _________________________________________________________________ Dont miss your chance to WIN 10 hours of private jet travel from Microsoft Office Live http://clk.atdmt.com/MRT/go/mcrssaub0540002499mrt/direct/01/ From martyconnelly at shaw.ca Wed Feb 14 17:59:55 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 14 Feb 2007 15:59:55 -0800 Subject: [AccessD] Open Merged Word Document With VB/VBA In-Reply-To: <3632552.521541171471060472.JavaMail.www@wwinf3202> References: <3632552.521541171471060472.JavaMail.www@wwinf3202> Message-ID: <45D3A27B.1060606@shaw.ca> http://support.microsoft.com/?id=209976 http://word.mvps.org/FAQs/Mailmerge.htm paul.hartland at fsmail.net wrote: >To all, > >I have a Word document which I have linked to a view on SQL Server, and have been racking my brains for about the last hour trying to open the word document (no problem), and run the merge (this is the problem).... > >Has anyone any sample code on how to do this, I am sure I have done this before but can't for the life of me find my code... > >Thanks in advance for any help on this. > > >Paul Hartland >paul.hartland at fsmail.net >07730 523179 > > -- Marty Connelly Victoria, B.C. Canada From artful at rogers.com Wed Feb 14 18:13:34 2007 From: artful at rogers.com (artful at rogers.com) Date: Wed, 14 Feb 2007 16:13:34 -0800 (PST) Subject: [AccessD] Textr box on a Report Message-ID: <926506.28371.qm@web88206.mail.re2.yahoo.com> In all probability it's just a DLookup or DSum but even if the query is complex, it will all resolve down to some such variant. And then you could plonk the whole statement into a saved query and just call that instead. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Jim Lawrence To: Access Developers discussion and problem solving Sent: Wednesday, February 14, 2007 5:41:48 PM Subject: Re: [AccessD] Textr box on a Report Mark: Have you considered using a cross-tab query to populate the report? HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Wednesday, February 14, 2007 11:50 AM To: accessd at databaseadvisors.com Subject: [AccessD] Textr box on a Report Hello All, In A2K I have a report that needs a seperate count of somehting in the DB...non related to the recordsource of the report. It is a single number...but there is a lengthy SQL statement that gets this number...any suggestions on the best approach? I was thinking about creating a query...then using dlookup. Does this sound like a good approach? Thanks, Mark A. Matte _________________________________________________________________ Dont miss your chance to WIN 10 hours of private jet travel from Microsoft Office Live http://clk.atdmt.com/MRT/go/mcrssaub0540002499mrt/direct/01/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Wed Feb 14 20:40:02 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 15 Feb 2007 02:40:02 +0000 Subject: [AccessD] Textr box on a Report In-Reply-To: <0JDH003QB5LITMW1@l-daemon> Message-ID: Thanks Jim, I'm not sure how I would use a crosstab to come up with the single number I'm looking for?...and then reference from the text box on the report? I am curious about your approach. Thanks, Mark >From: Jim Lawrence >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] Textr box on a Report >Date: Wed, 14 Feb 2007 14:41:48 -0800 > >Mark: > >Have you considered using a cross-tab query to populate the report? > >HTH >Jim > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: Wednesday, February 14, 2007 11:50 AM >To: accessd at databaseadvisors.com >Subject: [AccessD] Textr box on a Report > >Hello All, > >In A2K I have a report that needs a seperate count of somehting in the >DB...non related to the recordsource of the report. It is a single >number...but there is a lengthy SQL statement that gets this number...any >suggestions on the best approach? I was thinking about creating a >query...then using dlookup. Does this sound like a good approach? > >Thanks, > >Mark A. Matte > >_________________________________________________________________ >Dont miss your chance to WIN 10 hours of private jet travel from Microsoft >Office Live http://clk.atdmt.com/MRT/go/mcrssaub0540002499mrt/direct/01/ > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Laugh, share and connect with Windows Live Messenger http://clk.atdmt.com/MSN/go/msnnkwme0020000001msn/direct/01/?href=http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=hmtagline From markamatte at hotmail.com Wed Feb 14 20:41:30 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 15 Feb 2007 02:41:30 +0000 Subject: [AccessD] Textr box on a Report In-Reply-To: <926506.28371.qm@web88206.mail.re2.yahoo.com> Message-ID: Hey Arthur, Thats what I did...built the final query...and referenced it via DLookup on the report. Thanks Again, Mark A. Matte >From: artful at rogers.com >Reply-To: Access Developers discussion and problem >solving >To: Access Developers discussion and problem >solving >Subject: Re: [AccessD] Textr box on a Report >Date: Wed, 14 Feb 2007 16:13:34 -0800 (PST) > >In all probability it's just a DLookup or DSum but even if the query is >complex, it will all resolve down to some such variant. And then you could >plonk the whole statement into a saved query and just call that instead. > > >Arthur Fuller >Technical Writer, Data Modeler, SQL Sensei >Artful Databases Organization >www.artfulsoftware.com > > > > >----- Original Message ---- >From: Jim Lawrence >To: Access Developers discussion and problem solving > >Sent: Wednesday, February 14, 2007 5:41:48 PM >Subject: Re: [AccessD] Textr box on a Report > > >Mark: > >Have you considered using a cross-tab query to populate the report? > >HTH >Jim > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: Wednesday, February 14, 2007 11:50 AM >To: accessd at databaseadvisors.com >Subject: [AccessD] Textr box on a Report > >Hello All, > >In A2K I have a report that needs a seperate count of somehting in the >DB...non related to the recordsource of the report. It is a single >number...but there is a lengthy SQL statement that gets this number...any >suggestions on the best approach? I was thinking about creating a >query...then using dlookup. Does this sound like a good approach? > >Thanks, > >Mark A. Matte > >_________________________________________________________________ >Dont miss your chance to WIN 10 hours of private jet travel from Microsoft >Office Live http://clk.atdmt.com/MRT/go/mcrssaub0540002499mrt/direct/01/ > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Invite your Hotmail contacts to join your friends list with Windows Live Spaces http://clk.atdmt.com/MSN/go/msnnkwsp0070000001msn/direct/01/?href=http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us From markamatte at hotmail.com Wed Feb 14 20:45:59 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 15 Feb 2007 02:45:59 +0000 Subject: [AccessD] ALERT ON MAINTENANCE!!!! In-Reply-To: <926506.28371.qm@web88206.mail.re2.yahoo.com> Message-ID: Hello All, I don't know who else monitors the Maintenance List...but I just saw a spam email for cialas on that list...the alarming thing is the subject line is looks like a real message from the list...and sent to list advisor... Just an FYI to the powers that be... Thanks, Mark A. Matte _________________________________________________________________ Turn searches into helpful donations. Make your search count. http://click4thecause.live.com/search/charity/default.aspx?source=hmemtagline_donation&FORM=WLMTAG From darrend at nimble.com.au Thu Feb 15 03:56:33 2007 From: darrend at nimble.com.au (Darren DICK) Date: Thu, 15 Feb 2007 20:56:33 +1100 Subject: [AccessD] WAY OT: Create a network Connection Message-ID: <20070215095635.UFEY6229.oaamta01ps.mx.bigpond.com@DENZILLAP> Hi All Anyone know how to create a VPN connection in code Or how to copy one from my "My Network" connections to the "My Network Connections" on another person's PC I can make and copy the shortcut - but I want to copy the actual VPN Network connection itself - can it be done? So that I can just drop it into their "My Network connections" (need help with that too - anyone know what that folder is called) :-) Any suggestions?? This is way OT so please respond off list Thanks See ya DD From darrend at nimble.com.au Thu Feb 15 04:32:38 2007 From: darrend at nimble.com.au (Darren DICK) Date: Thu, 15 Feb 2007 21:32:38 +1100 Subject: [AccessD] WAY OT: Start a REG file form a batch file Message-ID: <20070215103239.UQYM6229.oaamta01ps.mx.bigpond.com@DENZILLAP> Hi All I have a REG (registry file) that works fine when double clicked What would be the syntax for 'starting' it from a batch file? I have tried regsvr32 MSSSQL.REG and even tried regedit MSSSQL.REG No joy Any suggestions? Thanks DD From stuart at lexacorp.com.pg Thu Feb 15 06:43:26 2007 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 15 Feb 2007 22:43:26 +1000 Subject: [AccessD] WAY OT: Start a REG file form a batch file In-Reply-To: <20070215103239.UQYM6229.oaamta01ps.mx.bigpond.com@DENZILLAP> References: <20070215103239.UQYM6229.oaamta01ps.mx.bigpond.com@DENZILLAP> Message-ID: <45D4556E.22530.6D85F6@stuart.lexacorp.com.pg> If you look in Explorer-Tools-Folder Options-File Types, select Reg and click on Advanced, then click on Merge followed by Edit, you should see something like regedit.exe "%1" If it is that, then you're second version should work. On 15 Feb 2007 at 21:32, Darren DICK wrote: > Hi All > > > > I have a REG (registry file) that works fine when double clicked > > > > What would be the syntax for 'starting' it from a batch file? > > > > I have tried regsvr32 MSSSQL.REG and even tried regedit MSSSQL.REG > > > > No joy > > > > Any suggestions? > > > > Thanks > > > > DD > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- Stuart From darrend at nimble.com.au Thu Feb 15 07:01:24 2007 From: darrend at nimble.com.au (Darren DICK) Date: Fri, 16 Feb 2007 00:01:24 +1100 Subject: [AccessD] WAY OT: Start a REG file form a batch file In-Reply-To: <45D4556E.22530.6D85F6@stuart.lexacorp.com.pg> Message-ID: <200702151301.l1FD1Zi05018@databaseadvisors.com> Hi Stuart Thanks for the reply Yes it is working now Brilliant Darren ------------------ T: 0424 696 433 -----Original Message----- From: Stuart McLachlan [mailto:stuart at lexacorp.com.pg] Sent: Thursday, 15 February 2007 11:43 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] WAY OT: Start a REG file form a batch file If you look in Explorer-Tools-Folder Options-File Types, select Reg and click on Advanced, then click on Merge followed by Edit, you should see something like regedit.exe "%1" If it is that, then you're second version should work. On 15 Feb 2007 at 21:32, Darren DICK wrote: > Hi All > > > > I have a REG (registry file) that works fine when double clicked > > > > What would be the syntax for 'starting' it from a batch file? > > > > I have tried regsvr32 MSSSQL.REG and even tried regedit MSSSQL.REG > > > > No joy > > > > Any suggestions? > > > > Thanks > > > > DD > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- Stuart -- 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 Feb 15 07:26:05 2007 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 15 Feb 2007 23:26:05 +1000 Subject: [AccessD] WAY OT: Create a network Connection In-Reply-To: <20070215095635.UFEY6229.oaamta01ps.mx.bigpond.com@DENZILLAP> References: <20070215095635.UFEY6229.oaamta01ps.mx.bigpond.com@DENZILLAP> Message-ID: <45D45F6D.23632.238061@stuart.lexacorp.com.pg> On 15 Feb 2007 at 20:56, Darren DICK wrote: > Anyone know how to create a VPN connection in code. The only way that I can see to do it would be to create an AutoIt script http://www.autoitscript.com/autoit3/ AutoIt v3 is a freeware BASIC-like scripting language designed for automating the Windows GUI and general scripting. It uses a combination of simulated keystrokes, mouse movement and window/control manipulation in order to automate tasks in a way not possible or reliable with other languages (e.g. VBScript and SendKeys). AutoIt is also very small, self- contained and will run on 95, 98, ME, NT4, 2000, XP, 2003 out of the box with no annoying "runtimes" required! You can even make compiled executable scripts that can run without AutoIt being installed! AutoIt was initially designed for PC "roll out" situations to reliably configure thousands of PCs, but with the arrival of v3 it has become a powerful language able to cope with most scripting needs. > > Or how to copy one from my "My Network" connections to the "My Network > Connections" on another person's PC > > I can make and copy the shortcut - but I want to copy the actual VPN Network > connection itself - can it be done? > > So that I can just drop it into their "My Network connections" (need help > with that too - anyone know what that folder is called) :-) > > Any suggestions?? -- Stuart From artful at rogers.com Thu Feb 15 08:24:34 2007 From: artful at rogers.com (artful at rogers.com) Date: Thu, 15 Feb 2007 06:24:34 -0800 (PST) Subject: [AccessD] WAY OT: Start a REG file form a batch file Message-ID: <823638.31136.qm@web88209.mail.re2.yahoo.com> I know a very cool way to do this. Right click Send To on your start-menu and then add an item, which is equivalent to regsrvr32.exe. Once that is done you can then drop any .REG file on the Send To button and it will execute. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Darren DICK To: Access Developers discussion and problem solving Sent: Thursday, February 15, 2007 5:32:38 AM Subject: [AccessD] WAY OT: Start a REG file form a batch file Hi All I have a REG (registry file) that works fine when double clicked What would be the syntax for 'starting' it from a batch file? I have tried regsvr32 MSSSQL.REG and even tried regedit MSSSQL.REG No joy Any suggestions? Thanks DD From darrend at nimble.com.au Thu Feb 15 09:31:36 2007 From: darrend at nimble.com.au (Darren DICK) Date: Fri, 16 Feb 2007 02:31:36 +1100 Subject: [AccessD] WAY OT: Start a REG file form a batch file In-Reply-To: <823638.31136.qm@web88209.mail.re2.yahoo.com> Message-ID: <20070215153137.NNGM14659.oaamta04ps.mx.bigpond.com@DENZILLAP> Hi Arthur Thanks for the response Yes that is way cool But I wanted to run the "regsvr32 SomeCool.Reg" from a batch file It did end up working after Stuarts promptings Many thanks Darren -----Original Message----- From: artful at rogers.com [mailto:artful at rogers.com] Sent: Friday, 16 February 2007 1:25 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] WAY OT: Start a REG file form a batch file I know a very cool way to do this. Right click Send To on your start-menu and then add an item, which is equivalent to regsrvr32.exe. Once that is done you can then drop any .REG file on the Send To button and it will execute. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Darren DICK To: Access Developers discussion and problem solving Sent: Thursday, February 15, 2007 5:32:38 AM Subject: [AccessD] WAY OT: Start a REG file form a batch file Hi All I have a REG (registry file) that works fine when double clicked What would be the syntax for 'starting' it from a batch file? I have tried regsvr32 MSSSQL.REG and even tried regedit MSSSQL.REG No joy Any suggestions? Thanks DD -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Thu Feb 15 11:54:01 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 15 Feb 2007 17:54:01 +0000 Subject: [AccessD] Missing references In-Reply-To: <20070215153137.NNGM14659.oaamta04ps.mx.bigpond.com@DENZILLAP> Message-ID: Hello All, In A97...how do you handle missing references when distributing a DB ( not a package...just a FE copied to a local machine)? Thanks, Mark A. Matte _________________________________________________________________ >From predictions to trailers, check out the MSN Entertainment Guide to the Academy Awards? http://movies.msn.com/movies/oscars2007/?icid=ncoscartagline1 From jwcolby at colbyconsulting.com Thu Feb 15 11:59:40 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Thu, 15 Feb 2007 12:59:40 -0500 Subject: [AccessD] Missing references In-Reply-To: Message-ID: <00fa01c7512b$111fd190$657aa8c0@m6805> Late binding will fix most of these IME. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Thursday, February 15, 2007 12:54 PM To: accessd at databaseadvisors.com Subject: [AccessD] Missing references Hello All, In A97...how do you handle missing references when distributing a DB ( not a package...just a FE copied to a local machine)? Thanks, Mark A. Matte _________________________________________________________________ >From predictions to trailers, check out the MSN Entertainment Guide to >the Academy Awards. http://movies.msn.com/movies/oscars2007/?icid=ncoscartagline1 From markamatte at hotmail.com Thu Feb 15 13:52:35 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 15 Feb 2007 19:52:35 +0000 Subject: [AccessD] Date() Problem In-Reply-To: <00fa01c7512b$111fd190$657aa8c0@m6805> Message-ID: Hello All, I have had a nightmare with dates lately. I have a query that runs using Date() as criteria because I only want stuff for current date. I was using Format()...but will change to FIX() after the last thread...the problem is on 1 machine neither works with Date() as criteria. Just on this 1 machine(that I know of) when I try to run the query I get the error: "Function isn't available in expressions in query expression ' (((Fix([dt]))=Date()))'." If I switch Date() to an actual date #1/24/07# it runs fine. I even tried FIX(Now())...and this worked...apparently this machine does not like Date()??? Any ideas/suggestions? I need to know if I'm using Date() the wrong way(kinda like FORMAT) or is this something unique to this 1 machine? Thanks Again, Mark A. Matte _________________________________________________________________ Invite your Hotmail contacts to join your friends list with Windows Live Spaces http://clk.atdmt.com/MSN/go/msnnkwsp0070000001msn/direct/01/?href=http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us From Gustav at cactus.dk Thu Feb 15 13:59:28 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 15 Feb 2007 20:59:28 +0100 Subject: [AccessD] Date() Problem Message-ID: Hi Mark That is because you have a missing reference on that machine. /gustav >>> markamatte at hotmail.com 15-02-2007 20:52:35 >>> Hello All, I have had a nightmare with dates lately. I have a query that runs using Date() as criteria because I only want stuff for current date. I was using Format()...but will change to FIX() after the last thread...the problem is on 1 machine neither works with Date() as criteria. Just on this 1 machine(that I know of) when I try to run the query I get the error: "Function isn't available in expressions in query expression ' (((Fix([dt]))=Date()))'." If I switch Date() to an actual date #1/24/07# it runs fine. I even tried FIX(Now())...and this worked...apparently this machine does not like Date()??? Any ideas/suggestions? I need to know if I'm using Date() the wrong way(kinda like FORMAT) or is this something unique to this 1 machine? Thanks Again, Mark A. Matte From markamatte at hotmail.com Thu Feb 15 14:32:49 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 15 Feb 2007 20:32:49 +0000 Subject: [AccessD] Date() Problem In-Reply-To: Message-ID: Gustav, First thing I checked for...on my machine I have: Visual Basic For Applications MS Access 8.0 Object Library MS DAO 3.6 object Library ...and the same on this machine??? <<>> It was the same...so I removed the DAO...and added it back(just to see)...and now it works...Thanks??? I give up...nothing is making sense today... Thanks again, Mark A. Matte >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] Date() Problem >Date: Thu, 15 Feb 2007 20:59:28 +0100 > >Hi Mark > >That is because you have a missing reference on that machine. > >/gustav > > >>> markamatte at hotmail.com 15-02-2007 20:52:35 >>> >Hello All, > >I have had a nightmare with dates lately. I have a query that runs using >Date() as criteria because I only want stuff for current date. I was using >Format()...but will change to FIX() after the last thread...the problem is >on 1 machine neither works with Date() as criteria. Just on this 1 >machine(that I know of) when I try to run the query I get the error: > >"Function isn't available in expressions in query expression ' >(((Fix([dt]))=Date()))'." > >If I switch Date() to an actual date #1/24/07# it runs fine. I even tried >FIX(Now())...and this worked...apparently this machine does not like >Date()??? > >Any ideas/suggestions? I need to know if I'm using Date() the wrong >way(kinda like FORMAT) or is this something unique to this 1 machine? > >Thanks Again, > >Mark A. Matte > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Don?t miss your chance to WIN 10 hours of private jet travel from Microsoft Office Live http://clk.atdmt.com/MRT/go/mcrssaub0540002499mrt/direct/01/ From markamatte at hotmail.com Thu Feb 15 14:35:02 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 15 Feb 2007 20:35:02 +0000 Subject: [AccessD] Missing references In-Reply-To: <00fa01c7512b$111fd190$657aa8c0@m6805> Message-ID: John, Since I'm not versed in Binding(Late or Early) ...I've looked at MS knowledge base...and most of what I found was problems and fixes. Any suggestions for 'crash course READING' in bindings? Thanks, Mark >From: "JWColby" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] Missing references >Date: Thu, 15 Feb 2007 12:59:40 -0500 > >Late binding will fix most of these IME. > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: Thursday, February 15, 2007 12:54 PM >To: accessd at databaseadvisors.com >Subject: [AccessD] Missing references > >Hello All, > >In A97...how do you handle missing references when distributing a DB ( not >a >package...just a FE copied to a local machine)? > >Thanks, > >Mark A. Matte > >_________________________________________________________________ > >From predictions to trailers, check out the MSN Entertainment Guide to > >the >Academy Awards. >http://movies.msn.com/movies/oscars2007/?icid=ncoscartagline1 > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Get in the mood for Valentine's Day. View photos, recipes and more on your Live.com page. http://www.live.com/?addTemplate=ValentinesDay&ocid=T001MSN30A0701 From carbonnb at gmail.com Thu Feb 15 15:38:02 2007 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Thu, 15 Feb 2007 16:38:02 -0500 Subject: [AccessD] Missing references In-Reply-To: References: <00fa01c7512b$111fd190$657aa8c0@m6805> Message-ID: On 2/15/07, Mark A Matte wrote: > Since I'm not versed in Binding(Late or Early) ...I've looked at MS > knowledge base...and most of what I found was problems and fixes. > > Any suggestions for 'crash course READING' in bindings? Here's a quick description that I lifted from an article I wrote http://www.databaseadvisors.com/newsletters/newsletter072002/0207wordautomationlpt1.asp Early Binding Versus Late Binding First you need to decide whether to use Early Binding or Late Binding. Early Binding allows you to dimension variables by their specific data type. For example, the following declarations refer to the Word Application and Document objects rather than declaring both as generic objects: Dim objWord as Word.Application Dim doc as Word.Document Early Binding also enables a few built-in Intelli-sense features: Auto Complete, Auto List Members, and Auto Quick Info. In addition, using early binding allows you to view Word's object model in the Object Browser. The downside to Early Binding is that you have to set a reference to a specific version of Word. Sometimes Access is smart enough to change the reference to the specific version of Word that is installed on the PC you are deploying your application; often it isn't, and you could end up with problems relating to the references. If you decide to use Late Binding, you will have to dimension all of your variables as Objects as follows: Dim objWord as Object Dim doc as Object Consequently, you cannot access any of your variables until you set them to a specific object as shown below: Set objWord = CreateObject("Word.Application") Set doc = objWord.Documents.Open("C:\Path\To\file.doc") In addition, the Intelli-sense features, Auto Complete, Auto List Members, Auto Quick Info and disables viewing of Word's object model in the Object Browser. However, Late Binding doesn't require that you set a reference to any Word Object Library, which can be advantageous if you are deploying run-time versions of your application to mixed OS/Office Version platforms. Instead of choosing one or the other, we suggest you compromise and use both. During the development phase use Early Binding. Once you release the application, remove all specific references and change each to Object?the best of both worlds! Now that the binding issue is resolved, let's roll up our sleeves and dive into writing some code. -- 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 jwcolby at colbyconsulting.com Thu Feb 15 15:56:40 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Thu, 15 Feb 2007 16:56:40 -0500 Subject: [AccessD] Missing references In-Reply-To: Message-ID: <012801c7514c$2c884180$657aa8c0@m6805> BTW, you can use BOTH early binding and late binding by wrapping TWO sets of dim statements in #if statements: #Const EARLYBINDING = True #If EARLYBINDING = -1 Then Private mxlApp As Excel.Application Private mXLWB As Workbook Private mXLWS As Worksheet #Else Private mxlApp As Object Private mXLWB As Object Private mXLWS As Object #End If Now you can simply set EARLYBINDING to TRUE (-1) and the compiler will dim the objects at compile time. Set EARLYBINDING to 0 and the compiler will dim the objects at run time. I do this so that I can use early binding during development, and then just "throw a switch" to use late binding for runtime on the actual user's PC. Of course you have to do that everywhere you want to bind such objects, inside of functions that dim local objects, in the header for global objects etc. Once it is set up though it works very sweet. And Oh By The Way, there is a GLOBAL (to every module in the library) way to do this: In the VB Editor, click Tools / MyContainer Properties (the bottom menu item) In the General tab there is a "Conditional Compilation Arguments" where you could define your EarlyBinding constant. Doing it there causes ALL MODULES that use that constant to switch from early binding to late binding and back. Very handy!!! John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan Carbonnell Sent: Thursday, February 15, 2007 4:38 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing references On 2/15/07, Mark A Matte wrote: > Since I'm not versed in Binding(Late or Early) ...I've looked at MS > knowledge base...and most of what I found was problems and fixes. > > Any suggestions for 'crash course READING' in bindings? Here's a quick description that I lifted from an article I wrote http://www.databaseadvisors.com/newsletters/newsletter072002/0207wordautomat ionlpt1.asp Early Binding Versus Late Binding First you need to decide whether to use Early Binding or Late Binding. Early Binding allows you to dimension variables by their specific data type. For example, the following declarations refer to the Word Application and Document objects rather than declaring both as generic objects: Dim objWord as Word.Application Dim doc as Word.Document Early Binding also enables a few built-in Intelli-sense features: Auto Complete, Auto List Members, and Auto Quick Info. In addition, using early binding allows you to view Word's object model in the Object Browser. The downside to Early Binding is that you have to set a reference to a specific version of Word. Sometimes Access is smart enough to change the reference to the specific version of Word that is installed on the PC you are deploying your application; often it isn't, and you could end up with problems relating to the references. If you decide to use Late Binding, you will have to dimension all of your variables as Objects as follows: Dim objWord as Object Dim doc as Object Consequently, you cannot access any of your variables until you set them to a specific object as shown below: Set objWord = CreateObject("Word.Application") Set doc = objWord.Documents.Open("C:\Path\To\file.doc") In addition, the Intelli-sense features, Auto Complete, Auto List Members, Auto Quick Info and disables viewing of Word's object model in the Object Browser. However, Late Binding doesn't require that you set a reference to any Word Object Library, which can be advantageous if you are deploying run-time versions of your application to mixed OS/Office Version platforms. Instead of choosing one or the other, we suggest you compromise and use both. During the development phase use Early Binding. Once you release the application, remove all specific references and change each to Object-the best of both worlds! Now that the binding issue is resolved, let's roll up our sleeves and dive into writing some code. -- 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 markamatte at hotmail.com Thu Feb 15 15:59:14 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 15 Feb 2007 21:59:14 +0000 Subject: [AccessD] Missing references In-Reply-To: Message-ID: Thanks Bryan, The only reason I asked was that JC suggested using late as a solution to my original post: "In A97...how do you handle missing references when distributing a DB ( not a package...just a FE copied to a local machine)? " I'm not referencing any other app or docs...I was referring to when you are in a module and goto TOOLS---REFERENCES...and there is something missing or incorrect. Is binding relevant at this point? If not...back to the original question:...how to handle the 'missing'??? This has not been my week for thinking...lol...its entirely probable that I'm confused...again. Thanks, Mark A. Matte >From: "Bryan Carbonnell" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Missing references >Date: Thu, 15 Feb 2007 16:38:02 -0500 > >On 2/15/07, Mark A Matte wrote: > > > Since I'm not versed in Binding(Late or Early) ...I've looked at MS > > knowledge base...and most of what I found was problems and fixes. > > > > Any suggestions for 'crash course READING' in bindings? > >Here's a quick description that I lifted from an article I wrote >http://www.databaseadvisors.com/newsletters/newsletter072002/0207wordautomationlpt1.asp > > >Early Binding Versus Late Binding > >First you need to decide whether to use Early Binding or Late Binding. >Early Binding allows you to dimension variables by their specific data >type. For example, the following declarations refer to the Word >Application and Document objects rather than declaring both as generic >objects: > >Dim objWord as Word.Application >Dim doc as Word.Document > >Early Binding also enables a few built-in Intelli-sense features: Auto >Complete, Auto List Members, and Auto Quick Info. In addition, using >early binding allows you to view Word's object model in the Object >Browser. > >The downside to Early Binding is that you have to set a reference to a >specific version of Word. Sometimes Access is smart enough to change >the reference to the specific version of Word that is installed on the >PC you are deploying your application; often it isn't, and you could >end up with problems relating to the references. > >If you decide to use Late Binding, you will have to dimension all of >your variables as Objects as follows: > >Dim objWord as Object >Dim doc as Object > >Consequently, you cannot access any of your variables until you set >them to a specific object as shown below: > >Set objWord = CreateObject("Word.Application") >Set doc = objWord.Documents.Open("C:\Path\To\file.doc") > >In addition, the Intelli-sense features, Auto Complete, Auto List >Members, Auto Quick Info and disables viewing of Word's object model >in the Object Browser. However, Late Binding doesn't require that you >set a reference to any Word Object Library, which can be advantageous >if you are deploying run-time versions of your application to mixed >OS/Office Version platforms. > >Instead of choosing one or the other, we suggest you compromise and >use both. During the development phase use Early Binding. Once you >release the application, remove all specific references and change >each to Object?the best of both worlds! > >Now that the binding issue is resolved, let's roll up our sleeves and >dive into writing some code. > > > >-- >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 _________________________________________________________________ Get in the mood for Valentine's Day. View photos, recipes and more on your Live.com page. http://www.live.com/?addTemplate=ValentinesDay&ocid=T001MSN30A0701 From markamatte at hotmail.com Thu Feb 15 16:02:09 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 15 Feb 2007 22:02:09 +0000 Subject: [AccessD] Missing references In-Reply-To: <012801c7514c$2c884180$657aa8c0@m6805> Message-ID: Thanks John, I'm not referencing any other app or docs...I was referring to when you are in a module and goto TOOLS---REFERENCES...and there is something missing or incorrect. Is binding relevant at this point? If not...back to the original question:...how to handle the 'missing'??? Am I still confused>..lol...??? Thanks, Mark A. Matte >From: "JWColby" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] Missing references >Date: Thu, 15 Feb 2007 16:56:40 -0500 > >BTW, you can use BOTH early binding and late binding by wrapping TWO sets >of >dim statements in #if statements: > >#Const EARLYBINDING = True > >#If EARLYBINDING = -1 Then >Private mxlApp As Excel.Application >Private mXLWB As Workbook >Private mXLWS As Worksheet >#Else >Private mxlApp As Object >Private mXLWB As Object >Private mXLWS As Object >#End If > >Now you can simply set EARLYBINDING to TRUE (-1) and the compiler will dim >the objects at compile time. > >Set EARLYBINDING to 0 and the compiler will dim the objects at run time. > >I do this so that I can use early binding during development, and then just >"throw a switch" to use late binding for runtime on the actual user's PC. >Of course you have to do that everywhere you want to bind such objects, >inside of functions that dim local objects, in the header for global >objects >etc. > >Once it is set up though it works very sweet. > >And Oh By The Way, there is a GLOBAL (to every module in the library) way >to >do this: > >In the VB Editor, click Tools / MyContainer Properties (the bottom menu >item) >In the General tab there is a "Conditional Compilation Arguments" where you >could define your EarlyBinding constant. > >Doing it there causes ALL MODULES that use that constant to switch from >early binding to late binding and back. > >Very handy!!! > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan Carbonnell >Sent: Thursday, February 15, 2007 4:38 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Missing references > >On 2/15/07, Mark A Matte wrote: > > > Since I'm not versed in Binding(Late or Early) ...I've looked at MS > > knowledge base...and most of what I found was problems and fixes. > > > > Any suggestions for 'crash course READING' in bindings? > >Here's a quick description that I lifted from an article I wrote >http://www.databaseadvisors.com/newsletters/newsletter072002/0207wordautomat >ionlpt1.asp > > >Early Binding Versus Late Binding > >First you need to decide whether to use Early Binding or Late Binding. >Early Binding allows you to dimension variables by their specific data >type. >For example, the following declarations refer to the Word Application and >Document objects rather than declaring both as generic >objects: > >Dim objWord as Word.Application >Dim doc as Word.Document > >Early Binding also enables a few built-in Intelli-sense features: Auto >Complete, Auto List Members, and Auto Quick Info. In addition, using early >binding allows you to view Word's object model in the Object Browser. > >The downside to Early Binding is that you have to set a reference to a >specific version of Word. Sometimes Access is smart enough to change the >reference to the specific version of Word that is installed on the PC you >are deploying your application; often it isn't, and you could end up with >problems relating to the references. > >If you decide to use Late Binding, you will have to dimension all of your >variables as Objects as follows: > >Dim objWord as Object >Dim doc as Object > >Consequently, you cannot access any of your variables until you set them to >a specific object as shown below: > >Set objWord = CreateObject("Word.Application") Set doc = >objWord.Documents.Open("C:\Path\To\file.doc") > >In addition, the Intelli-sense features, Auto Complete, Auto List Members, >Auto Quick Info and disables viewing of Word's object model in the Object >Browser. However, Late Binding doesn't require that you set a reference to >any Word Object Library, which can be advantageous if you are deploying >run-time versions of your application to mixed OS/Office Version platforms. > >Instead of choosing one or the other, we suggest you compromise and use >both. During the development phase use Early Binding. Once you release the >application, remove all specific references and change each to Object-the >best of both worlds! > >Now that the binding issue is resolved, let's roll up our sleeves and dive >into writing some code. > > > >-- >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 > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ >From predictions to trailers, check out the MSN Entertainment Guide to the Academy Awards? http://movies.msn.com/movies/oscars2007/?icid=ncoscartagline1 From martyconnelly at shaw.ca Thu Feb 15 16:38:39 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 15 Feb 2007 14:38:39 -0800 Subject: [AccessD] Missing references In-Reply-To: References: Message-ID: <45D4E0EF.7030500@shaw.ca> You could try using Terry Kraft's reference wizard mda Must be run first thing from autoexec I haven't tested beyond 2002 You might look at the code and simplify if you know the missing reference to restated http://www.mvps.org/access/modules/mdl0022.htm Mark A Matte wrote: > Thanks John, > > I'm not referencing any other app or docs...I was referring to when > you are in a module and goto TOOLS---REFERENCES...and there is > something missing or incorrect. > > Is binding relevant at this point? If not...back to the original > question:...how to handle the 'missing'??? > > Am I still confused>..lol...??? > > > Thanks, > > Mark A. Matte > > >> From: "JWColby" >> Reply-To: Access Developers discussion and problem >> solving >> To: "'Access Developers discussion and problem >> solving'" >> Subject: Re: [AccessD] Missing references >> Date: Thu, 15 Feb 2007 16:56:40 -0500 >> >> BTW, you can use BOTH early binding and late binding by wrapping TWO >> sets of >> dim statements in #if statements: >> >> #Const EARLYBINDING = True >> >> #If EARLYBINDING = -1 Then >> Private mxlApp As Excel.Application >> Private mXLWB As Workbook >> Private mXLWS As Worksheet >> #Else >> Private mxlApp As Object >> Private mXLWB As Object >> Private mXLWS As Object >> #End If >> >> Now you can simply set EARLYBINDING to TRUE (-1) and the compiler >> will dim >> the objects at compile time. >> >> Set EARLYBINDING to 0 and the compiler will dim the objects at run time. >> >> I do this so that I can use early binding during development, and >> then just >> "throw a switch" to use late binding for runtime on the actual user's >> PC. >> Of course you have to do that everywhere you want to bind such objects, >> inside of functions that dim local objects, in the header for global >> objects >> etc. >> >> Once it is set up though it works very sweet. >> >> And Oh By The Way, there is a GLOBAL (to every module in the library) >> way to >> do this: >> >> In the VB Editor, click Tools / MyContainer Properties (the bottom menu >> item) >> In the General tab there is a "Conditional Compilation Arguments" >> where you >> could define your EarlyBinding constant. >> >> Doing it there causes ALL MODULES that use that constant to switch from >> early binding to late binding and back. >> >> Very handy!!! >> >> John W. Colby >> Colby Consulting >> www.ColbyConsulting.com >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan >> Carbonnell >> Sent: Thursday, February 15, 2007 4:38 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Missing references >> >> On 2/15/07, Mark A Matte wrote: >> >> > Since I'm not versed in Binding(Late or Early) ...I've looked at MS >> > knowledge base...and most of what I found was problems and fixes. >> > >> > Any suggestions for 'crash course READING' in bindings? >> >> Here's a quick description that I lifted from an article I wrote >> http://www.databaseadvisors.com/newsletters/newsletter072002/0207wordautomat >> >> ionlpt1.asp >> >> >> Early Binding Versus Late Binding >> >> First you need to decide whether to use Early Binding or Late Binding. >> Early Binding allows you to dimension variables by their specific >> data type. >> For example, the following declarations refer to the Word Application >> and >> Document objects rather than declaring both as generic >> objects: >> >> Dim objWord as Word.Application >> Dim doc as Word.Document >> >> Early Binding also enables a few built-in Intelli-sense features: Auto >> Complete, Auto List Members, and Auto Quick Info. In addition, using >> early >> binding allows you to view Word's object model in the Object Browser. >> >> The downside to Early Binding is that you have to set a reference to a >> specific version of Word. Sometimes Access is smart enough to change the >> reference to the specific version of Word that is installed on the PC >> you >> are deploying your application; often it isn't, and you could end up >> with >> problems relating to the references. >> >> If you decide to use Late Binding, you will have to dimension all of >> your >> variables as Objects as follows: >> >> Dim objWord as Object >> Dim doc as Object >> >> Consequently, you cannot access any of your variables until you set >> them to >> a specific object as shown below: >> >> Set objWord = CreateObject("Word.Application") Set doc = >> objWord.Documents.Open("C:\Path\To\file.doc") >> >> In addition, the Intelli-sense features, Auto Complete, Auto List >> Members, >> Auto Quick Info and disables viewing of Word's object model in the >> Object >> Browser. However, Late Binding doesn't require that you set a >> reference to >> any Word Object Library, which can be advantageous if you are deploying >> run-time versions of your application to mixed OS/Office Version >> platforms. >> >> Instead of choosing one or the other, we suggest you compromise and use >> both. During the development phase use Early Binding. Once you >> release the >> application, remove all specific references and change each to >> Object-the >> best of both worlds! >> >> Now that the binding issue is resolved, let's roll up our sleeves and >> dive >> into writing some code. >> >> >> >> -- >> 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 >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > > _________________________________________________________________ > >> From predictions to trailers, check out the MSN Entertainment Guide >> to the > > Academy Awards? > http://movies.msn.com/movies/oscars2007/?icid=ncoscartagline1 > >------------------------------------------------------------------------ > >No virus found in this incoming message. >Checked by AVG Free Edition. >Version: 7.5.441 / Virus Database: 268.17.39/687 - Release Date: 14/02/2007 4:17 PM > > -- Marty Connelly Victoria, B.C. Canada From gustav at cactus.dk Thu Feb 15 17:03:43 2007 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 16 Feb 2007 00:03:43 +0100 Subject: [AccessD] Missing references Message-ID: Hi Mark Some years ago we had a lengthy thread on this. Look up here: http://databaseadvisors.com/pipermail/accessd/2003-July/011034.html /gustav >>> markamatte at hotmail.com 15-02-07 23:02 >>> Thanks John, I'm not referencing any other app or docs...I was referring to when you are in a module and goto TOOLS---REFERENCES...and there is something missing or incorrect. Is binding relevant at this point? If not...back to the original question:...how to handle the 'missing'??? Am I still confused>..lol...??? Thanks, Mark A. Matte From kp at sdsonline.net Thu Feb 15 17:16:02 2007 From: kp at sdsonline.net (Kath Pelletti) Date: Fri, 16 Feb 2007 10:16:02 +1100 Subject: [AccessD] Missing references References: Message-ID: <003601c75157$43878cf0$6401a8c0@office> What the others mean is that if under [Tools], [References] you have a reference to eg. Outlook, then that is early binding to Outlook. And the problem is that those references can suddenly be 'missing' on a given user's machine if their version of that application/file is different to the one you used on your machine. So you can untick the reference permanently and replace that with some code that will create the bind when needed (see previous emails) and that is called late binding. HTH Kath ----- Original Message ----- From: Mark A Matte To: accessd at databaseadvisors.com Sent: Friday, February 16, 2007 9:02 AM Subject: Re: [AccessD] Missing references Thanks John, I'm not referencing any other app or docs...I was referring to when you are in a module and goto TOOLS---REFERENCES...and there is something missing or incorrect. Is binding relevant at this point? If not...back to the original question:...how to handle the 'missing'??? Am I still confused>..lol...??? Thanks, Mark A. Matte >From: "JWColby" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] Missing references >Date: Thu, 15 Feb 2007 16:56:40 -0500 > >BTW, you can use BOTH early binding and late binding by wrapping TWO sets >of >dim statements in #if statements: > >#Const EARLYBINDING = True > >#If EARLYBINDING = -1 Then >Private mxlApp As Excel.Application >Private mXLWB As Workbook >Private mXLWS As Worksheet >#Else >Private mxlApp As Object >Private mXLWB As Object >Private mXLWS As Object >#End If > >Now you can simply set EARLYBINDING to TRUE (-1) and the compiler will dim >the objects at compile time. > >Set EARLYBINDING to 0 and the compiler will dim the objects at run time. > >I do this so that I can use early binding during development, and then just >"throw a switch" to use late binding for runtime on the actual user's PC. >Of course you have to do that everywhere you want to bind such objects, >inside of functions that dim local objects, in the header for global >objects >etc. > >Once it is set up though it works very sweet. > >And Oh By The Way, there is a GLOBAL (to every module in the library) way >to >do this: > >In the VB Editor, click Tools / MyContainer Properties (the bottom menu >item) >In the General tab there is a "Conditional Compilation Arguments" where you >could define your EarlyBinding constant. > >Doing it there causes ALL MODULES that use that constant to switch from >early binding to late binding and back. > >Very handy!!! > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan Carbonnell >Sent: Thursday, February 15, 2007 4:38 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Missing references > >On 2/15/07, Mark A Matte wrote: > > > Since I'm not versed in Binding(Late or Early) ...I've looked at MS > > knowledge base...and most of what I found was problems and fixes. > > > > Any suggestions for 'crash course READING' in bindings? > >Here's a quick description that I lifted from an article I wrote >http://www.databaseadvisors.com/newsletters/newsletter072002/0207wordautomat >ionlpt1.asp > > >Early Binding Versus Late Binding > >First you need to decide whether to use Early Binding or Late Binding. >Early Binding allows you to dimension variables by their specific data >type. >For example, the following declarations refer to the Word Application and >Document objects rather than declaring both as generic >objects: > >Dim objWord as Word.Application >Dim doc as Word.Document > >Early Binding also enables a few built-in Intelli-sense features: Auto >Complete, Auto List Members, and Auto Quick Info. In addition, using early >binding allows you to view Word's object model in the Object Browser. > >The downside to Early Binding is that you have to set a reference to a >specific version of Word. Sometimes Access is smart enough to change the >reference to the specific version of Word that is installed on the PC you >are deploying your application; often it isn't, and you could end up with >problems relating to the references. > >If you decide to use Late Binding, you will have to dimension all of your >variables as Objects as follows: > >Dim objWord as Object >Dim doc as Object > >Consequently, you cannot access any of your variables until you set them to >a specific object as shown below: > >Set objWord = CreateObject("Word.Application") Set doc = >objWord.Documents.Open("C:\Path\To\file.doc") > >In addition, the Intelli-sense features, Auto Complete, Auto List Members, >Auto Quick Info and disables viewing of Word's object model in the Object >Browser. However, Late Binding doesn't require that you set a reference to >any Word Object Library, which can be advantageous if you are deploying >run-time versions of your application to mixed OS/Office Version platforms. > >Instead of choosing one or the other, we suggest you compromise and use >both. During the development phase use Early Binding. Once you release the >application, remove all specific references and change each to Object-the >best of both worlds! > >Now that the binding issue is resolved, let's roll up our sleeves and dive >into writing some code. > > > >-- >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 > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ >From predictions to trailers, check out the MSN Entertainment Guide to the Academy Awards? http://movies.msn.com/movies/oscars2007/?icid=ncoscartagline1 ------------------------------------------------------------------------------ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Thu Feb 15 17:51:54 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 15 Feb 2007 15:51:54 -0800 Subject: [AccessD] Date() Problem In-Reply-To: Message-ID: <0JDJ0082C3I7BGW0@l-daemon> Hi Mark: Have all the appropriate patches been applied to the computer you are trying to migrate your application to? Make sure the destination system has all the current patches. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Thursday, February 15, 2007 12:33 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Date() Problem Gustav, First thing I checked for...on my machine I have: Visual Basic For Applications MS Access 8.0 Object Library MS DAO 3.6 object Library ...and the same on this machine??? <<>> It was the same...so I removed the DAO...and added it back(just to see)...and now it works...Thanks??? I give up...nothing is making sense today... Thanks again, Mark A. Matte >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] Date() Problem >Date: Thu, 15 Feb 2007 20:59:28 +0100 > >Hi Mark > >That is because you have a missing reference on that machine. > >/gustav > > >>> markamatte at hotmail.com 15-02-2007 20:52:35 >>> >Hello All, > >I have had a nightmare with dates lately. I have a query that runs using >Date() as criteria because I only want stuff for current date. I was using >Format()...but will change to FIX() after the last thread...the problem is >on 1 machine neither works with Date() as criteria. Just on this 1 >machine(that I know of) when I try to run the query I get the error: > >"Function isn't available in expressions in query expression ' >(((Fix([dt]))=Date()))'." > >If I switch Date() to an actual date #1/24/07# it runs fine. I even tried >FIX(Now())...and this worked...apparently this machine does not like >Date()??? > >Any ideas/suggestions? I need to know if I'm using Date() the wrong >way(kinda like FORMAT) or is this something unique to this 1 machine? > >Thanks Again, > >Mark A. Matte > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Dont miss your chance to WIN 10 hours of private jet travel from Microsoft Office Live http://clk.atdmt.com/MRT/go/mcrssaub0540002499mrt/direct/01/ From accessd at shaw.ca Thu Feb 15 18:08:21 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 15 Feb 2007 16:08:21 -0800 Subject: [AccessD] Missing references In-Reply-To: Message-ID: <0JDJ0080I49MBHY0@l-daemon> Hi Mark: You could scan through the entire source and then all the destination application references by using a module as follows: This function can be used to first scan for the required references as; CheckReferences ...or check for a specific for a specific references like; ... If CheckReferences("MSWORD10.OLB", False) = False Then ... I traditionally have the 'CheckReferences' auto run when the application is initialized. This should at least direct you to the specific missing reference(s). Public Function CheckReferences(Optional strSpecificReference As String, _ Optional bolAddFlag As Boolean) As Boolean Dim strMessage As String, strFullMessage Dim strTitle As String, strFullPath As String Dim refItem As Reference Dim bolRefExists As Boolean Dim bolBrokenRef As Boolean Dim i As Integer, intStartPosition As Integer On Error Resume Next If IsNull(bolAddFlag) Then bolAddFlag = False If IsNull(strSpecificReference) Then strSpecificReference = "" bolRefExists = False bolBrokenRef = False strFullPath = "" strMessage = "" strFullMessage = "" CheckReferences = False For Each refItem In References With refItem If .IsBroken = True Or InStr(1, .FullPath, "failed") > 0 Then If Len(strSpecificReference) > 0 Then If InStr(1, .FullPath, strSpecificReference) > 0 Then bolBrokenRef = True End If strMessage = "MISSING Reference: " & .Name & vbCrLf _ & "Location: Could not be found!" & vbCrLf Else If Len(strSpecificReference) > 0 Then If InStr(1, .FullPath, strSpecificReference) > 0 Then bolRefExists = True ElseIf bolAddFlag = True Then If .Name = "Access" Then intStartPosition = Len(.FullPath) For i = intStartPosition To 1 Step -1 If InStr(i, .FullPath, "\") > 0 Then strFullPath = Left(.FullPath, i) & strSpecificReference Exit For End If Next i End If End If End If strMessage = "Reference: " & refItem.Name & vbCrLf _ & "Location: " & .FullPath & vbCrLf End If End With If Len(strFullMessage) > 0 Then strFullMessage = strFullMessage & vbCrLf & strMessage Else strFullMessage = strMessage End If strMessage = "" Next refItem If Len(strFullMessage) > 0 Then If Len(strSpecificReference) > 0 Then If bolAddFlag = False Then CheckReferences = bolRefExists Else If bolRefExists = True Then CheckReferences = bolRefExists ElseIf bolBrokenRef = True Then CheckReferences = False Else Set refItem = References.AddFromFile(strFullPath) If Err.Number = 0 Then CheckReferences = True End If End If Else strFullMessage = strFullMessage & vbCrLf & "PLEASE record Information before Exiting." MsgBox strFullMessage, vbInformation End If End If End Function The previous code worked great for resolving remote client installation problems. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Thursday, February 15, 2007 2:02 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Missing references Thanks John, I'm not referencing any other app or docs...I was referring to when you are in a module and goto TOOLS---REFERENCES...and there is something missing or incorrect. Is binding relevant at this point? If not...back to the original question:...how to handle the 'missing'??? Am I still confused>..lol...??? Thanks, Mark A. Matte >From: "JWColby" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] Missing references >Date: Thu, 15 Feb 2007 16:56:40 -0500 > >BTW, you can use BOTH early binding and late binding by wrapping TWO sets >of >dim statements in #if statements: > >#Const EARLYBINDING = True > >#If EARLYBINDING = -1 Then >Private mxlApp As Excel.Application >Private mXLWB As Workbook >Private mXLWS As Worksheet >#Else >Private mxlApp As Object >Private mXLWB As Object >Private mXLWS As Object >#End If > >Now you can simply set EARLYBINDING to TRUE (-1) and the compiler will dim >the objects at compile time. > >Set EARLYBINDING to 0 and the compiler will dim the objects at run time. > >I do this so that I can use early binding during development, and then just >"throw a switch" to use late binding for runtime on the actual user's PC. >Of course you have to do that everywhere you want to bind such objects, >inside of functions that dim local objects, in the header for global >objects >etc. > >Once it is set up though it works very sweet. > >And Oh By The Way, there is a GLOBAL (to every module in the library) way >to >do this: > >In the VB Editor, click Tools / MyContainer Properties (the bottom menu >item) >In the General tab there is a "Conditional Compilation Arguments" where you >could define your EarlyBinding constant. > >Doing it there causes ALL MODULES that use that constant to switch from >early binding to late binding and back. > >Very handy!!! > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan Carbonnell >Sent: Thursday, February 15, 2007 4:38 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Missing references > >On 2/15/07, Mark A Matte wrote: > > > Since I'm not versed in Binding(Late or Early) ...I've looked at MS > > knowledge base...and most of what I found was problems and fixes. > > > > Any suggestions for 'crash course READING' in bindings? > >Here's a quick description that I lifted from an article I wrote >http://www.databaseadvisors.com/newsletters/newsletter072002/0207wordautoma t >ionlpt1.asp > > >Early Binding Versus Late Binding > >First you need to decide whether to use Early Binding or Late Binding. >Early Binding allows you to dimension variables by their specific data >type. >For example, the following declarations refer to the Word Application and >Document objects rather than declaring both as generic >objects: > >Dim objWord as Word.Application >Dim doc as Word.Document > >Early Binding also enables a few built-in Intelli-sense features: Auto >Complete, Auto List Members, and Auto Quick Info. In addition, using early >binding allows you to view Word's object model in the Object Browser. > >The downside to Early Binding is that you have to set a reference to a >specific version of Word. Sometimes Access is smart enough to change the >reference to the specific version of Word that is installed on the PC you >are deploying your application; often it isn't, and you could end up with >problems relating to the references. > >If you decide to use Late Binding, you will have to dimension all of your >variables as Objects as follows: > >Dim objWord as Object >Dim doc as Object > >Consequently, you cannot access any of your variables until you set them to >a specific object as shown below: > >Set objWord = CreateObject("Word.Application") Set doc = >objWord.Documents.Open("C:\Path\To\file.doc") > >In addition, the Intelli-sense features, Auto Complete, Auto List Members, >Auto Quick Info and disables viewing of Word's object model in the Object >Browser. However, Late Binding doesn't require that you set a reference to >any Word Object Library, which can be advantageous if you are deploying >run-time versions of your application to mixed OS/Office Version platforms. > >Instead of choosing one or the other, we suggest you compromise and use >both. During the development phase use Early Binding. Once you release the >application, remove all specific references and change each to Object-the >best of both worlds! > >Now that the binding issue is resolved, let's roll up our sleeves and dive >into writing some code. > > > >-- >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 > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ >From predictions to trailers, check out the MSN Entertainment Guide to the Academy Awards. http://movies.msn.com/movies/oscars2007/?icid=ncoscartagline1 From rockysmolin at bchacc.com Thu Feb 15 18:36:07 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Thu, 15 Feb 2007 16:36:07 -0800 Subject: [AccessD] OT: Excel Message-ID: <00a501c75162$733c1230$0201a8c0@HAL9005> Dear List: Sorry for the OT but I'm in Excel and hit something, some control key or alt-something, who knows? and now when I use the arrow keys the sheet moves instead of the cell with the focus moving. Can't figure out from the menus where this particular switch is. Nothing I put in Help seems to tell me. WHAT HAVE I DONE??!! Better yet, how do I undo it. MMTIA, Rocky From BarbaraRyan at cox.net Thu Feb 15 18:43:44 2007 From: BarbaraRyan at cox.net (Barbara Ryan) Date: Thu, 15 Feb 2007 19:43:44 -0500 Subject: [AccessD] OT: Excel References: <00a501c75162$733c1230$0201a8c0@HAL9005> Message-ID: <015801c75163$83592c60$0a00a8c0@PCRURI35> Is SCROLL LOCK on? ----- Original Message ----- From: "Rocky Smolin at Beach Access Software" To: "'Access Developers discussion and problem solving'" Sent: Thursday, February 15, 2007 7:36 PM Subject: [AccessD] OT: Excel > Dear List: > > Sorry for the OT but I'm in Excel and hit something, some control key or > alt-something, who knows? and now when I use the arrow keys the sheet > moves > instead of the cell with the focus moving. > > Can't figure out from the menus where this particular switch is. Nothing > I > put in Help seems to tell me. > > WHAT HAVE I DONE??!! Better yet, how do I undo it. > > MMTIA, > > Rocky > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From darrend at nimble.com.au Thu Feb 15 18:46:40 2007 From: darrend at nimble.com.au (Darren DICK) Date: Fri, 16 Feb 2007 11:46:40 +1100 Subject: [AccessD] OT: Excel In-Reply-To: <00a501c75162$733c1230$0201a8c0@HAL9005> Message-ID: <200702160046.l1G0kei05861@databaseadvisors.com> Scroll Lock is off Rocky A real PITA this one Simple to fix though Darren ------------------ T: 0424 696 433 -----Original Message----- From: Rocky Smolin at Beach Access Software [mailto:rockysmolin at bchacc.com] Sent: Friday, 16 February 2007 11:36 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT: Excel Dear List: Sorry for the OT but I'm in Excel and hit something, some control key or alt-something, who knows? and now when I use the arrow keys the sheet moves instead of the cell with the focus moving. Can't figure out from the menus where this particular switch is. Nothing I put in Help seems to tell me. WHAT HAVE I DONE??!! Better yet, how do I undo it. MMTIA, Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Thu Feb 15 18:58:20 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Thu, 15 Feb 2007 16:58:20 -0800 Subject: [AccessD] OT: Excel In-Reply-To: <015801c75163$83592c60$0a00a8c0@PCRURI35> Message-ID: <00ad01c75165$8d61eba0$0201a8c0@HAL9005> Barbara and Darren: Scroll Lock. Who knew? Thanks. I still have some hair left. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Barbara Ryan Sent: Thursday, February 15, 2007 4:44 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Excel Is SCROLL LOCK on? ----- Original Message ----- From: "Rocky Smolin at Beach Access Software" To: "'Access Developers discussion and problem solving'" Sent: Thursday, February 15, 2007 7:36 PM Subject: [AccessD] OT: Excel > Dear List: > > Sorry for the OT but I'm in Excel and hit something, some control key or > alt-something, who knows? and now when I use the arrow keys the sheet > moves > instead of the cell with the focus moving. > > Can't figure out from the menus where this particular switch is. Nothing > I > put in Help seems to tell me. > > WHAT HAVE I DONE??!! Better yet, how do I undo it. > > MMTIA, > > Rocky > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.17.39/687 - Release Date: 2/14/2007 4:17 PM From hkotsch at arcor.de Fri Feb 16 01:27:32 2007 From: hkotsch at arcor.de (Helmut Kotsch) Date: Fri, 16 Feb 2007 08:27:32 +0100 Subject: [AccessD] Video Series: SQL Server 2005 Express Edition for Beginners Message-ID: Good morning, for everybody who is still on the early stages of the learning curve like me there is a well made video series available. http://msdn.microsoft.com/vstudio/express/sql/learning/default.aspx The 13 lessons (app. 9 hrs) start with the basics, however lessons 7 to 13 should be interesting to anyone being new to SQL server express. Helmut From Erwin.Craps at ithelps.eu Fri Feb 16 03:23:19 2007 From: Erwin.Craps at ithelps.eu (Erwin Craps - IT Helps) Date: Fri, 16 Feb 2007 10:23:19 +0100 Subject: [AccessD] WAY OT: Create a network Connection References: <20070215095635.UFEY6229.oaamta01ps.mx.bigpond.com@DENZILLAP> <45D45F6D.23632.238061@stuart.lexacorp.com.pg> Message-ID: <430E80531228BA4497C5EB1A7BA786B002420F@stekelbes.ithelps.local> I use to have (long time ago) an OCX that was able to create dial up profile, a Windows PPTP VPN connection is a regular dial-up profile, but I suspect there must be a windows API that is capable to create a dial up profile. That is if you are using the Windows built in VPN connection and not a third party IPSec, like Cisco, Linksys, Netgear or whatever. Search for API guide or API viewer to get a list of API programs with a lis tof API codes. Search for VPN or RAS (Remote Access Service) in an API list program. Maybe someone else can give a good link to such an API viewer. Success Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Thursday, February 15, 2007 2:26 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] WAY OT: Create a network Connection On 15 Feb 2007 at 20:56, Darren DICK wrote: > Anyone know how to create a VPN connection in code. The only way that I can see to do it would be to create an AutoIt script http://www.autoitscript.com/autoit3/ AutoIt v3 is a freeware BASIC-like scripting language designed for automating the Windows GUI and general scripting. It uses a combination of simulated keystrokes, mouse movement and window/control manipulation in order to automate tasks in a way not possible or reliable with other languages (e.g. VBScript and SendKeys). AutoIt is also very small, self- contained and will run on 95, 98, ME, NT4, 2000, XP, 2003 out of the box with no annoying "runtimes" required! You can even make compiled executable scripts that can run without AutoIt being installed! AutoIt was initially designed for PC "roll out" situations to reliably configure thousands of PCs, but with the arrival of v3 it has become a powerful language able to cope with most scripting needs. > > Or how to copy one from my "My Network" connections to the "My Network > Connections" on another person's PC > > I can make and copy the shortcut - but I want to copy the actual VPN > Network connection itself - can it be done? > > So that I can just drop it into their "My Network connections" (need > help with that too - anyone know what that folder is called) :-) > > Any suggestions?? -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.eu Fri Feb 16 03:25:36 2007 From: Erwin.Craps at ithelps.eu (Erwin Craps - IT Helps) Date: Fri, 16 Feb 2007 10:25:36 +0100 Subject: [AccessD] WAY OT: Start a REG file form a batch file References: <20070215153137.NNGM14659.oaamta04ps.mx.bigpond.com@DENZILLAP> Message-ID: <430E80531228BA4497C5EB1A7BA786B0024210@stekelbes.ithelps.local> This is how to do it. regedit KeyboardNumlockAtLogon.reg (KeyboardNumlockAtLogon.reg is the name of the file you wish to merge) But it not silent, it gives forst a warning message asking the user to confirm or deny and afterwards an confirmation. But it works. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Thursday, February 15, 2007 4:32 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] WAY OT: Start a REG file form a batch file Hi Arthur Thanks for the response Yes that is way cool But I wanted to run the "regsvr32 SomeCool.Reg" from a batch file It did end up working after Stuarts promptings Many thanks Darren -----Original Message----- From: artful at rogers.com [mailto:artful at rogers.com] Sent: Friday, 16 February 2007 1:25 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] WAY OT: Start a REG file form a batch file I know a very cool way to do this. Right click Send To on your start-menu and then add an item, which is equivalent to regsrvr32.exe. Once that is done you can then drop any .REG file on the Send To button and it will execute. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Darren DICK To: Access Developers discussion and problem solving Sent: Thursday, February 15, 2007 5:32:38 AM Subject: [AccessD] WAY OT: Start a REG file form a batch file Hi All I have a REG (registry file) that works fine when double clicked What would be the syntax for 'starting' it from a batch file? I have tried regsvr32 MSSSQL.REG and even tried regedit MSSSQL.REG No joy Any suggestions? Thanks DD -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Fri Feb 16 06:41:12 2007 From: wdhindman at dejpolsystems.com (William Hindman) Date: Fri, 16 Feb 2007 07:41:12 -0500 Subject: [AccessD] Video Series: SQL Server 2005 Express Edition forBeginners References: Message-ID: <000d01c751c7$be3ba470$9258eb44@50NM721> ...nice find ...tks :) William Hindman ----- Original Message ----- From: "Helmut Kotsch" To: "Access Developers discussion and problem solving" Sent: Friday, February 16, 2007 2:27 AM Subject: [AccessD] Video Series: SQL Server 2005 Express Edition forBeginners > Good morning, > > for everybody who is still on the early stages of the learning curve like > me > there is a well made video series available. > > http://msdn.microsoft.com/vstudio/express/sql/learning/default.aspx > > The 13 lessons (app. 9 hrs) start with the basics, however lessons 7 to 13 > should be interesting to anyone being new to > SQL server express. > > > Helmut > > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Gustav at cactus.dk Fri Feb 16 08:02:30 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 16 Feb 2007 15:02:30 +0100 Subject: [AccessD] Not that much OT: Friday humour Message-ID: Hi Arthur SQL Sensei? That was new! So what's next (or preceding)? JET Jongleur? Or JETeleer? /gustav >>> artful at rogers.com 15-02-2007 15:24:34 >>> Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com From artful at rogers.com Fri Feb 16 08:12:16 2007 From: artful at rogers.com (artful at rogers.com) Date: Fri, 16 Feb 2007 06:12:16 -0800 (PST) Subject: [AccessD] Not that much OT: Friday humour Message-ID: <20070216141217.97110.qmail@web88204.mail.re2.yahoo.com> But notice how melliflously it flows off the tongue. A. ----- Original Message ---- From: Gustav Brock To: accessd at databaseadvisors.com Sent: Friday, February 16, 2007 9:02:30 AM Subject: [AccessD] Not that much OT: Friday humour Hi Arthur SQL Sensei? That was new! So what's next (or preceding)? JET Jongleur? Or JETeleer? /gustav >>> artful at rogers.com 15-02-2007 15:24:34 >>> Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Feb 16 08:21:29 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Fri, 16 Feb 2007 09:21:29 -0500 Subject: [AccessD] Not that much OT: Friday humour In-Reply-To: Message-ID: <001301c751d5$c0a0dc40$6c7aa8c0@m6805> Ooo Ooo Ooo, can you make one up for me? I like yours Gustav. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, February 16, 2007 9:02 AM To: accessd at databaseadvisors.com Subject: [AccessD] Not that much OT: Friday humour Hi Arthur SQL Sensei? That was new! So what's next (or preceding)? JET Jongleur? Or JETeleer? /gustav >>> artful at rogers.com 15-02-2007 15:24:34 >>> Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.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 Feb 16 08:33:09 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 16 Feb 2007 15:33:09 +0100 Subject: [AccessD] Not that much OT: Friday humour Message-ID: Hi Arthur Sure I did (or at least I think so - once again you forced me to get up and browse my '86 copy of "American Heritage Dictionary" (it's Latin, from mellifluus)). /gustav >>> artful at rogers.com 16-02-2007 15:12:16 >>> But notice how melliflously it flows off the tongue. A. ----- Original Message ---- From: Gustav Brock To: accessd at databaseadvisors.com Sent: Friday, February 16, 2007 9:02:30 AM Subject: [AccessD] Not that much OT: Friday humour Hi Arthur SQL Sensei? That was new! So what's next (or preceding)? JET Jongleur? Or JETeleer? /gustav >>> artful at rogers.com 15-02-2007 15:24:34 >>> Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com From Gustav at cactus.dk Fri Feb 16 08:40:03 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 16 Feb 2007 15:40:03 +0100 Subject: [AccessD] Not that much OT: Friday humour Message-ID: Hi John It's free for you! You could also use some 4-digit abbreviation like JCMM (John Colby Multi-faceted Master). We had some plans putting something like that on our business cards. /gustav >>> jwcolby at colbyconsulting.com 16-02-2007 15:21:29 >>> Ooo Ooo Ooo, can you make one up for me? I like yours Gustav. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, February 16, 2007 9:02 AM To: accessd at databaseadvisors.com Subject: [AccessD] Not that much OT: Friday humour Hi Arthur SQL Sensei? That was new! So what's next (or preceding)? JET Jongleur? Or JETeleer? /gustav >>> artful at rogers.com 15-02-2007 15:24:34 >>> Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com From jimdettman at verizon.net Fri Feb 16 08:49:44 2007 From: jimdettman at verizon.net (Jim Dettman) Date: Fri, 16 Feb 2007 09:49:44 -0500 Subject: [AccessD] Missing references In-Reply-To: References: <00fa01c7512b$111fd190$657aa8c0@m6805> Message-ID: <011b01c751d9$b2ef9fb0$8abea8c0@XPS> Bryan, One thing you didn't mention is the performance hit; late binding costs you 10-15% for every operation perform. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan Carbonnell Sent: Thursday, February 15, 2007 4:38 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing references On 2/15/07, Mark A Matte wrote: > Since I'm not versed in Binding(Late or Early) ...I've looked at MS > knowledge base...and most of what I found was problems and fixes. > > Any suggestions for 'crash course READING' in bindings? Here's a quick description that I lifted from an article I wrote http://www.databaseadvisors.com/newsletters/newsletter072002/0207wordautomat ionlpt1.asp Early Binding Versus Late Binding First you need to decide whether to use Early Binding or Late Binding. Early Binding allows you to dimension variables by their specific data type. For example, the following declarations refer to the Word Application and Document objects rather than declaring both as generic objects: Dim objWord as Word.Application Dim doc as Word.Document Early Binding also enables a few built-in Intelli-sense features: Auto Complete, Auto List Members, and Auto Quick Info. In addition, using early binding allows you to view Word's object model in the Object Browser. The downside to Early Binding is that you have to set a reference to a specific version of Word. Sometimes Access is smart enough to change the reference to the specific version of Word that is installed on the PC you are deploying your application; often it isn't, and you could end up with problems relating to the references. If you decide to use Late Binding, you will have to dimension all of your variables as Objects as follows: Dim objWord as Object Dim doc as Object Consequently, you cannot access any of your variables until you set them to a specific object as shown below: Set objWord = CreateObject("Word.Application") Set doc = objWord.Documents.Open("C:\Path\To\file.doc") In addition, the Intelli-sense features, Auto Complete, Auto List Members, Auto Quick Info and disables viewing of Word's object model in the Object Browser. However, Late Binding doesn't require that you set a reference to any Word Object Library, which can be advantageous if you are deploying run-time versions of your application to mixed OS/Office Version platforms. Instead of choosing one or the other, we suggest you compromise and use both. During the development phase use Early Binding. Once you release the application, remove all specific references and change each to Object-the best of both worlds! Now that the binding issue is resolved, let's roll up our sleeves and dive into writing some code. -- 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 jwcolby at colbyconsulting.com Fri Feb 16 08:56:13 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Fri, 16 Feb 2007 09:56:13 -0500 Subject: [AccessD] Not that much OT: Friday humour In-Reply-To: Message-ID: <002101c751da$9aa89b90$6c7aa8c0@m6805> ROTFL. I particularly liked JETeleer. You have a knack for this! John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, February 16, 2007 9:40 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Not that much OT: Friday humour Hi John It's free for you! You could also use some 4-digit abbreviation like JCMM (John Colby Multi-faceted Master). We had some plans putting something like that on our business cards. /gustav >>> jwcolby at colbyconsulting.com 16-02-2007 15:21:29 >>> Ooo Ooo Ooo, can you make one up for me? I like yours Gustav. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, February 16, 2007 9:02 AM To: accessd at databaseadvisors.com Subject: [AccessD] Not that much OT: Friday humour Hi Arthur SQL Sensei? That was new! So what's next (or preceding)? JET Jongleur? Or JETeleer? /gustav >>> artful at rogers.com 15-02-2007 15:24:34 >>> Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Feb 16 09:02:31 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Fri, 16 Feb 2007 10:02:31 -0500 Subject: [AccessD] Missing references In-Reply-To: <011b01c751d9$b2ef9fb0$8abea8c0@XPS> Message-ID: <002501c751db$7c077660$6c7aa8c0@m6805> I would have to take issue with that statement Jim. The resolution of the object certainly takes longer, but often times that time will be dwarfed by other things. For example suppose I late bind excel objects. Yes, it takes longer to resolve the reference, but How long does it take to Open Excel? To make a new sheet? To insert data from a query into the sheet? To save the sheet back to disk? I do understand your point and I think there are situations where it can be critical, inside a loop executing a million times for example, but many times the effect on overall system operation will be negligible. And then there is the simple matter of "yea, it affects the time, but it simply doesn't matter since I have no idea what version of the library the user will have on their machine". In such a case, the fact that it "just works" outweighs all other considerations. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Friday, February 16, 2007 9:50 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references Bryan, One thing you didn't mention is the performance hit; late binding costs you 10-15% for every operation perform. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan Carbonnell Sent: Thursday, February 15, 2007 4:38 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing references On 2/15/07, Mark A Matte wrote: > Since I'm not versed in Binding(Late or Early) ...I've looked at MS > knowledge base...and most of what I found was problems and fixes. > > Any suggestions for 'crash course READING' in bindings? Here's a quick description that I lifted from an article I wrote http://www.databaseadvisors.com/newsletters/newsletter072002/0207wordautomat ionlpt1.asp Early Binding Versus Late Binding First you need to decide whether to use Early Binding or Late Binding. Early Binding allows you to dimension variables by their specific data type. For example, the following declarations refer to the Word Application and Document objects rather than declaring both as generic objects: Dim objWord as Word.Application Dim doc as Word.Document Early Binding also enables a few built-in Intelli-sense features: Auto Complete, Auto List Members, and Auto Quick Info. In addition, using early binding allows you to view Word's object model in the Object Browser. The downside to Early Binding is that you have to set a reference to a specific version of Word. Sometimes Access is smart enough to change the reference to the specific version of Word that is installed on the PC you are deploying your application; often it isn't, and you could end up with problems relating to the references. If you decide to use Late Binding, you will have to dimension all of your variables as Objects as follows: Dim objWord as Object Dim doc as Object Consequently, you cannot access any of your variables until you set them to a specific object as shown below: Set objWord = CreateObject("Word.Application") Set doc = objWord.Documents.Open("C:\Path\To\file.doc") In addition, the Intelli-sense features, Auto Complete, Auto List Members, Auto Quick Info and disables viewing of Word's object model in the Object Browser. However, Late Binding doesn't require that you set a reference to any Word Object Library, which can be advantageous if you are deploying run-time versions of your application to mixed OS/Office Version platforms. Instead of choosing one or the other, we suggest you compromise and use both. During the development phase use Early Binding. Once you release the application, remove all specific references and change each to Object-the best of both worlds! Now that the binding issue is resolved, let's roll up our sleeves and dive into writing some code. -- 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Fri Feb 16 09:15:45 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 16 Feb 2007 15:15:45 +0000 Subject: [AccessD] Missing references In-Reply-To: <0JDJ0080I49MBHY0@l-daemon> Message-ID: Thanks Everyone, for all of the feedback!!! I'l dive back in now. Thanks Again, Mark A. Matte >From: Jim Lawrence >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] Missing references >Date: Thu, 15 Feb 2007 16:08:21 -0800 > >Hi Mark: > >You could scan through the entire source and then all the destination >application references by using a module as follows: > >This function can be used to first scan for the required references as; > >CheckReferences > >...or check for a specific for a specific references like; > >... > >If CheckReferences("MSWORD10.OLB", False) = False Then > >... > >I traditionally have the 'CheckReferences' auto run when the application is >initialized. This should at least direct you to the specific missing >reference(s). > > >Public Function CheckReferences(Optional strSpecificReference As String, _ > Optional bolAddFlag As Boolean) As Boolean > > Dim strMessage As String, strFullMessage > Dim strTitle As String, strFullPath As String > Dim refItem As Reference > Dim bolRefExists As Boolean > Dim bolBrokenRef As Boolean > Dim i As Integer, intStartPosition As Integer > > On Error Resume Next > > If IsNull(bolAddFlag) Then bolAddFlag = False > If IsNull(strSpecificReference) Then strSpecificReference = "" > bolRefExists = False > bolBrokenRef = False > strFullPath = "" > strMessage = "" > strFullMessage = "" > > CheckReferences = False > > For Each refItem In References > With refItem > If .IsBroken = True Or InStr(1, .FullPath, "failed") > 0 Then > If Len(strSpecificReference) > 0 Then > If InStr(1, .FullPath, strSpecificReference) > 0 Then >bolBrokenRef = True > End If > > strMessage = "MISSING Reference: " & .Name & vbCrLf _ > & "Location: Could not be found!" & vbCrLf > Else > If Len(strSpecificReference) > 0 Then > If InStr(1, .FullPath, strSpecificReference) > 0 Then > bolRefExists = True > ElseIf bolAddFlag = True Then > If .Name = "Access" Then > intStartPosition = Len(.FullPath) > For i = intStartPosition To 1 Step -1 > If InStr(i, .FullPath, "\") > 0 Then > strFullPath = Left(.FullPath, i) & >strSpecificReference > Exit For > End If > Next i > End If > End If > End If > > strMessage = "Reference: " & refItem.Name & vbCrLf _ > & "Location: " & .FullPath & vbCrLf > End If > End With > > If Len(strFullMessage) > 0 Then > strFullMessage = strFullMessage & vbCrLf & strMessage > Else > strFullMessage = strMessage > End If > strMessage = "" > Next refItem > > If Len(strFullMessage) > 0 Then > If Len(strSpecificReference) > 0 Then > If bolAddFlag = False Then > CheckReferences = bolRefExists > Else > If bolRefExists = True Then > CheckReferences = bolRefExists > ElseIf bolBrokenRef = True Then > CheckReferences = False > Else > Set refItem = References.AddFromFile(strFullPath) > If Err.Number = 0 Then CheckReferences = True > End If > End If > Else > strFullMessage = strFullMessage & vbCrLf & "PLEASE record >Information before Exiting." > MsgBox strFullMessage, vbInformation > End If > End If > >End Function > > >The previous code worked great for resolving remote client installation >problems. > >HTH >Jim > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: Thursday, February 15, 2007 2:02 PM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Missing references > >Thanks John, > >I'm not referencing any other app or docs...I was referring to when you are >in a module and goto TOOLS---REFERENCES...and there is something missing or >incorrect. > >Is binding relevant at this point? If not...back to the original >question:...how to handle the 'missing'??? > >Am I still confused>..lol...??? > > >Thanks, > >Mark A. Matte > > > >From: "JWColby" > >Reply-To: Access Developers discussion and problem > >solving > >To: "'Access Developers discussion and problem > >solving'" > >Subject: Re: [AccessD] Missing references > >Date: Thu, 15 Feb 2007 16:56:40 -0500 > > > >BTW, you can use BOTH early binding and late binding by wrapping TWO sets > >of > >dim statements in #if statements: > > > >#Const EARLYBINDING = True > > > >#If EARLYBINDING = -1 Then > >Private mxlApp As Excel.Application > >Private mXLWB As Workbook > >Private mXLWS As Worksheet > >#Else > >Private mxlApp As Object > >Private mXLWB As Object > >Private mXLWS As Object > >#End If > > > >Now you can simply set EARLYBINDING to TRUE (-1) and the compiler will >dim > >the objects at compile time. > > > >Set EARLYBINDING to 0 and the compiler will dim the objects at run time. > > > >I do this so that I can use early binding during development, and then >just > >"throw a switch" to use late binding for runtime on the actual user's PC. > >Of course you have to do that everywhere you want to bind such objects, > >inside of functions that dim local objects, in the header for global > >objects > >etc. > > > >Once it is set up though it works very sweet. > > > >And Oh By The Way, there is a GLOBAL (to every module in the library) way > >to > >do this: > > > >In the VB Editor, click Tools / MyContainer Properties (the bottom menu > >item) > >In the General tab there is a "Conditional Compilation Arguments" where >you > >could define your EarlyBinding constant. > > > >Doing it there causes ALL MODULES that use that constant to switch from > >early binding to late binding and back. > > > >Very handy!!! > > > >John W. Colby > >Colby Consulting > >www.ColbyConsulting.com > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan >Carbonnell > >Sent: Thursday, February 15, 2007 4:38 PM > >To: Access Developers discussion and problem solving > >Subject: Re: [AccessD] Missing references > > > >On 2/15/07, Mark A Matte wrote: > > > > > Since I'm not versed in Binding(Late or Early) ...I've looked at MS > > > knowledge base...and most of what I found was problems and fixes. > > > > > > Any suggestions for 'crash course READING' in bindings? > > > >Here's a quick description that I lifted from an article I wrote > >http://www.databaseadvisors.com/newsletters/newsletter072002/0207wordautoma >t > >ionlpt1.asp > > > > > >Early Binding Versus Late Binding > > > >First you need to decide whether to use Early Binding or Late Binding. > >Early Binding allows you to dimension variables by their specific data > >type. > >For example, the following declarations refer to the Word Application and > >Document objects rather than declaring both as generic > >objects: > > > >Dim objWord as Word.Application > >Dim doc as Word.Document > > > >Early Binding also enables a few built-in Intelli-sense features: Auto > >Complete, Auto List Members, and Auto Quick Info. In addition, using >early > >binding allows you to view Word's object model in the Object Browser. > > > >The downside to Early Binding is that you have to set a reference to a > >specific version of Word. Sometimes Access is smart enough to change the > >reference to the specific version of Word that is installed on the PC you > >are deploying your application; often it isn't, and you could end up with > >problems relating to the references. > > > >If you decide to use Late Binding, you will have to dimension all of your > >variables as Objects as follows: > > > >Dim objWord as Object > >Dim doc as Object > > > >Consequently, you cannot access any of your variables until you set them >to > >a specific object as shown below: > > > >Set objWord = CreateObject("Word.Application") Set doc = > >objWord.Documents.Open("C:\Path\To\file.doc") > > > >In addition, the Intelli-sense features, Auto Complete, Auto List >Members, > >Auto Quick Info and disables viewing of Word's object model in the Object > >Browser. However, Late Binding doesn't require that you set a reference >to > >any Word Object Library, which can be advantageous if you are deploying > >run-time versions of your application to mixed OS/Office Version >platforms. > > > >Instead of choosing one or the other, we suggest you compromise and use > >both. During the development phase use Early Binding. Once you release >the > >application, remove all specific references and change each to Object-the > >best of both worlds! > > > >Now that the binding issue is resolved, let's roll up our sleeves and >dive > >into writing some code. > > > > > > > >-- > >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 > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > >_________________________________________________________________ > >From predictions to trailers, check out the MSN Entertainment Guide to >the >Academy Awards. >http://movies.msn.com/movies/oscars2007/?icid=ncoscartagline1 > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ The average US Credit Score is 675. The cost to see yours: $0 by Experian. http://www.freecreditreport.com/pm/default.aspx?sc=660600&bcd=EMAILFOOTERAVERAGE From artful at rogers.com Fri Feb 16 09:18:35 2007 From: artful at rogers.com (artful at rogers.com) Date: Fri, 16 Feb 2007 07:18:35 -0800 (PST) Subject: [AccessD] Not that much OT: Friday humour Message-ID: <135025.27221.qm@web88213.mail.re2.yahoo.com> How about MailingList Maestro? A. ----- Original Message ---- From: Gustav Brock To: accessd at databaseadvisors.com Sent: Friday, February 16, 2007 9:40:03 AM Subject: Re: [AccessD] Not that much OT: Friday humour Hi John It's free for you! You could also use some 4-digit abbreviation like JCMM (John Colby Multi-faceted Master). We had some plans putting something like that on our business cards. /gustav >>> jwcolby at colbyconsulting.com 16-02-2007 15:21:29 >>> Ooo Ooo Ooo, can you make one up for me? I like yours Gustav. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, February 16, 2007 9:02 AM To: accessd at databaseadvisors.com Subject: [AccessD] Not that much OT: Friday humour Hi Arthur SQL Sensei? That was new! So what's next (or preceding)? JET Jongleur? Or JETeleer? /gustav >>> artful at rogers.com 15-02-2007 15:24:34 >>> Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Fri Feb 16 09:20:44 2007 From: artful at rogers.com (artful at rogers.com) Date: Fri, 16 Feb 2007 07:20:44 -0800 (PST) Subject: [AccessD] Missing references Message-ID: <891940.82217.qm@web88207.mail.re2.yahoo.com> Is this verifiable, Jim? I haven't ever used late-binding, which I admit has caused various installation issues, but I am curious. Is this a thumbnail calculation or can you supply concrete arithmetical evidence? A. ----- Original Message ---- From: Jim Dettman To: Access Developers discussion and problem solving Sent: Friday, February 16, 2007 9:49:44 AM Subject: Re: [AccessD] Missing references Bryan, One thing you didn't mention is the performance hit; late binding costs you 10-15% for every operation perform. Jim. From jwcolby at colbyconsulting.com Fri Feb 16 09:39:01 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Fri, 16 Feb 2007 10:39:01 -0500 Subject: [AccessD] Missing references In-Reply-To: <891940.82217.qm@web88207.mail.re2.yahoo.com> Message-ID: <003401c751e0$95936ee0$6c7aa8c0@m6805> It is quantifiable. I have a class for timing things and you can do late binding vs. early binding in a loop a million times to measure the effects of each. Essentially binding requires the compiler to look up the object in an object table to obtain the pointer to the object as well as the parameters, their types, the return type if any etc. Early binding does that at compile time, once. Late binding does the exact same thing at run time, every time the object is resolved. The question is, how often is it done? For example, if you have a global reference to a word object, at runtime the object has to be resolved, but since it is a global variable, it is only resolved once, and so the hit is a once-off affair. Now take the example of a reference to a word object in the header of a class module. Now this has to be done once, every time the class loads, for each instance of the class loading. Now take the example of a reference to a cell in a spreadsheet dimensioned in a method of a class. The object has to be resolved every time the function is called. That may be once, or it may be hundreds or thousands of times. Notice that in ALL cases, the object is resolved ONCE for each dimension statement. The difference between these three examples is the LOCATION of the dimension statement. It is actually possible in VBA to dimension an object down in code, so you could literally dimension an object inside of a loop. Generally speaking that would be a disaster using late binding. Actually dimensioning a variable of any kind down in the middle of code is considered bad practice anyway. DREW are you listening? Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Friday, February 16, 2007 10:21 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing references Is this verifiable, Jim? I haven't ever used late-binding, which I admit has caused various installation issues, but I am curious. Is this a thumbnail calculation or can you supply concrete arithmetical evidence? A. ----- Original Message ---- From: Jim Dettman To: Access Developers discussion and problem solving Sent: Friday, February 16, 2007 9:49:44 AM Subject: Re: [AccessD] Missing references Bryan, One thing you didn't mention is the performance hit; late binding costs you 10-15% for every operation perform. Jim. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Feb 16 09:44:01 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Fri, 16 Feb 2007 10:44:01 -0500 Subject: [AccessD] Missing references In-Reply-To: <003401c751e0$95936ee0$6c7aa8c0@m6805> Message-ID: <003501c751e1$4882c690$6c7aa8c0@m6805> Excuse me, I misspoke. The reference is resolved at the SET statement, not the dim statement. (flogging self with a cat-o-nines) John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Friday, February 16, 2007 10:39 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references It is quantifiable. I have a class for timing things and you can do late binding vs. early binding in a loop a million times to measure the effects of each. Essentially binding requires the compiler to look up the object in an object table to obtain the pointer to the object as well as the parameters, their types, the return type if any etc. Early binding does that at compile time, once. Late binding does the exact same thing at run time, every time the object is resolved. The question is, how often is it done? For example, if you have a global reference to a word object, at runtime the object has to be resolved, but since it is a global variable, it is only resolved once, and so the hit is a once-off affair. Now take the example of a reference to a word object in the header of a class module. Now this has to be done once, every time the class loads, for each instance of the class loading. Now take the example of a reference to a cell in a spreadsheet dimensioned in a method of a class. The object has to be resolved every time the function is called. That may be once, or it may be hundreds or thousands of times. Notice that in ALL cases, the object is resolved ONCE for each dimension statement. The difference between these three examples is the LOCATION of the dimension statement. It is actually possible in VBA to dimension an object down in code, so you could literally dimension an object inside of a loop. Generally speaking that would be a disaster using late binding. Actually dimensioning a variable of any kind down in the middle of code is considered bad practice anyway. DREW are you listening? Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Friday, February 16, 2007 10:21 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing references Is this verifiable, Jim? I haven't ever used late-binding, which I admit has caused various installation issues, but I am curious. Is this a thumbnail calculation or can you supply concrete arithmetical evidence? A. ----- Original Message ---- From: Jim Dettman To: Access Developers discussion and problem solving Sent: Friday, February 16, 2007 9:49:44 AM Subject: Re: [AccessD] Missing references Bryan, One thing you didn't mention is the performance hit; late binding costs you 10-15% for every operation perform. Jim. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jim.Hale at FleetPride.com Fri Feb 16 09:41:36 2007 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Fri, 16 Feb 2007 09:41:36 -0600 Subject: [AccessD] Not that much OT: Friday humour Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DE2BF@corp-es01.fleetpride.com> JETson? OCXymoron? DLLbert? DOSboot? (wordplay only, not trying to start a flame war) :-) Jim Hale -----Original Message----- From: artful at rogers.com [mailto:artful at rogers.com] Sent: Friday, February 16, 2007 9:19 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Not that much OT: Friday humour How about MailingList Maestro? A. ----- Original Message ---- From: Gustav Brock To: accessd at databaseadvisors.com Sent: Friday, February 16, 2007 9:40:03 AM Subject: Re: [AccessD] Not that much OT: Friday humour Hi John It's free for you! You could also use some 4-digit abbreviation like JCMM (John Colby Multi-faceted Master). We had some plans putting something like that on our business cards. /gustav >>> jwcolby at colbyconsulting.com 16-02-2007 15:21:29 >>> Ooo Ooo Ooo, can you make one up for me? I like yours Gustav. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, February 16, 2007 9:02 AM To: accessd at databaseadvisors.com Subject: [AccessD] Not that much OT: Friday humour Hi Arthur SQL Sensei? That was new! So what's next (or preceding)? JET Jongleur? Or JETeleer? /gustav >>> artful at rogers.com 15-02-2007 15:24:34 >>> Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 jwcolby at colbyconsulting.com Fri Feb 16 10:07:20 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Fri, 16 Feb 2007 11:07:20 -0500 Subject: [AccessD] Not that much OT: Friday humour In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB67727DE2BF@corp-es01.fleetpride.com> Message-ID: <003601c751e4$89ac1ce0$6c7aa8c0@m6805> LOL. I thought for a moment you were calling me names. You're NOT calling me names are you? ;-) John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Friday, February 16, 2007 10:42 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Not that much OT: Friday humour JETson? OCXymoron? DLLbert? DOSboot? (wordplay only, not trying to start a flame war) :-) Jim Hale -----Original Message----- From: artful at rogers.com [mailto:artful at rogers.com] Sent: Friday, February 16, 2007 9:19 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Not that much OT: Friday humour How about MailingList Maestro? A. From Jim.Hale at FleetPride.com Fri Feb 16 10:20:10 2007 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Fri, 16 Feb 2007 10:20:10 -0600 Subject: [AccessD] Not that much OT: Friday humour Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DE2C0@corp-es01.fleetpride.com> Nope, I was just having fun with the words! :-) Jim Hale -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Friday, February 16, 2007 10:07 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Not that much OT: Friday humour LOL. I thought for a moment you were calling me names. You're NOT calling me names are you? ;-) John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Friday, February 16, 2007 10:42 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Not that much OT: Friday humour JETson? OCXymoron? DLLbert? DOSboot? (wordplay only, not trying to start a flame war) :-) Jim Hale *********************************************************************** 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 markamatte at hotmail.com Fri Feb 16 10:23:25 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 16 Feb 2007 16:23:25 +0000 Subject: [AccessD] Missing references In-Reply-To: Message-ID: Thanks Gustav, This is almost embarrassing...I see the code...I know what the code does...I can write VBA...ALL...DAY...LONGGGG...But I don't know how to convert your IF statement back to a macro??? lol...Not sure why but I find this fact amusing, but I do. Here is the VBA/Macro... '------------------------------------------------------------ ' AutoExec ' '------------------------------------------------------------ Function AutoExec() DoCmd.Echo False, "" If (CheckReferences() = False) Then Call VerifyReferences(True) DoCmd.OpenModule "USysReferencesCheck", "" DoCmd.RunCommand acCmdCompileAndSaveAllMod DoCmd.Close , "" End If DoCmd.Echo True, "" End Function I got the echo part...lol...but how do you do the if statement? Thanks, Mark A. Matte >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] Missing references >Date: Fri, 16 Feb 2007 00:03:43 +0100 > >Hi Mark > >Some years ago we had a lengthy thread on this. >Look up here: > >http://databaseadvisors.com/pipermail/accessd/2003-July/011034.html > >/gustav > > >>> markamatte at hotmail.com 15-02-07 23:02 >>> >Thanks John, > >I'm not referencing any other app or docs...I was referring to when you are >in a module and goto TOOLS---REFERENCES...and there is something missing or >incorrect. > >Is binding relevant at this point? If not...back to the original >question:...how to handle the 'missing'??? > >Am I still confused>..lol...??? > > >Thanks, > >Mark A. Matte > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ With tax season right around the corner, make sure to follow these few simple tips. http://articles.moneycentral.msn.com/Taxes/PreparationTips/PreparationTips.aspx?icid=HMFebtagline From wdhindman at dejpolsystems.com Fri Feb 16 10:38:54 2007 From: wdhindman at dejpolsystems.com (William Hindman) Date: Fri, 16 Feb 2007 11:38:54 -0500 Subject: [AccessD] Missing references References: <003501c751e1$4882c690$6c7aa8c0@m6805> Message-ID: <008601c751e8$f3137670$9258eb44@50NM721> DREW, are you listening? :)))) William Hindman ----- Original Message ----- From: "JWColby" To: "'Access Developers discussion and problem solving'" Sent: Friday, February 16, 2007 10:44 AM Subject: Re: [AccessD] Missing references > Excuse me, I misspoke. The reference is resolved at the SET statement, > not > the dim statement. > > (flogging self with a cat-o-nines) > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby > Sent: Friday, February 16, 2007 10:39 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Missing references > > It is quantifiable. I have a class for timing things and you can do late > binding vs. early binding in a loop a million times to measure the effects > of each. Essentially binding requires the compiler to look up the object > in > an object table to obtain the pointer to the object as well as the > parameters, their types, the return type if any etc. Early binding does > that at compile time, once. Late binding does the exact same thing at run > time, every time the object is resolved. > > The question is, how often is it done? For example, if you have a global > reference to a word object, at runtime the object has to be resolved, but > since it is a global variable, it is only resolved once, and so the hit is > a > once-off affair. > > Now take the example of a reference to a word object in the header of a > class module. Now this has to be done once, every time the class loads, > for > each instance of the class loading. > > Now take the example of a reference to a cell in a spreadsheet dimensioned > in a method of a class. The object has to be resolved every time the > function is called. That may be once, or it may be hundreds or thousands > of > times. > > Notice that in ALL cases, the object is resolved ONCE for each dimension > statement. The difference between these three examples is the LOCATION of > the dimension statement. > > It is actually possible in VBA to dimension an object down in code, so you > could literally dimension an object inside of a loop. Generally speaking > that would be a disaster using late binding. > > Actually dimensioning a variable of any kind down in the middle of code is > considered bad practice anyway. > > DREW are you listening? > > Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. > Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. > Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. > Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. > Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. > Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. > Bad Practice. > > > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > artful at rogers.com > Sent: Friday, February 16, 2007 10:21 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Missing references > > Is this verifiable, Jim? I haven't ever used late-binding, which I admit > has > caused various installation issues, but I am curious. Is this a thumbnail > calculation or can you supply concrete arithmetical evidence? > > A. > > > > ----- Original Message ---- > From: Jim Dettman > To: Access Developers discussion and problem solving > > Sent: Friday, February 16, 2007 9:49:44 AM > Subject: Re: [AccessD] Missing references > > > Bryan, > > One thing you didn't mention is the performance hit; late binding costs > you 10-15% for every operation perform. > > Jim. > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Gustav at cactus.dk Fri Feb 16 10:43:20 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 16 Feb 2007 17:43:20 +0100 Subject: [AccessD] Missing references Message-ID: Hi Mark You need to show the two columns for condition etc. However, you can read the full macro in from a file. Cut and paste the text below into a new textfile (Notepad). Version = 131074 ColumnsShown = 3 Begin Action ="Echo" Argument ="0" End Begin Condition ="CheckReferences()=False" Action ="RunCode" Argument ="VerifyReferences(True)" End Begin Condition ="..." Action ="OpenModule" Argument ="USysReferencesCheck" End Begin Condition ="..." Action ="RunCommand" Argument ="126" End Begin Condition ="..." Action ="Close" Argument ="-1" Argument ="" Argument ="0" End Begin Action ="Echo" Argument ="-1" End Then import it in Access with the command in the immediate window: LoadFromText acMacro, "AutoExec", "d:\filename.txt" /gustav >>> markamatte at hotmail.com 16-02-2007 17:23:25 >>> Thanks Gustav, This is almost embarrassing...I see the code...I know what the code does...I can write VBA...ALL...DAY...LONGGGG...But I don't know how to convert your IF statement back to a macro??? lol...Not sure why but I find this fact amusing, but I do. Here is the VBA/Macro... '------------------------------------------------------------ ' AutoExec ' '------------------------------------------------------------ Function AutoExec() DoCmd.Echo False, "" If (CheckReferences() = False) Then Call VerifyReferences(True) DoCmd.OpenModule "USysReferencesCheck", "" DoCmd.RunCommand acCmdCompileAndSaveAllMod DoCmd.Close , "" End If DoCmd.Echo True, "" End Function I got the echo part...lol...but how do you do the if statement? Thanks, Mark A. Matte >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] Missing references >Date: Fri, 16 Feb 2007 00:03:43 +0100 > >Hi Mark > >Some years ago we had a lengthy thread on this. >Look up here: > >http://databaseadvisors.com/pipermail/accessd/2003-July/011034.html > >/gustav > > >>> markamatte at hotmail.com 15-02-07 23:02 >>> >Thanks John, > >I'm not referencing any other app or docs...I was referring to when you are >in a module and goto TOOLS---REFERENCES...and there is something missing or >incorrect. > >Is binding relevant at this point? If not...back to the original >question:...how to handle the 'missing'??? > >Am I still confused>..lol...??? > > >Thanks, > >Mark A. Matte From Lambert.Heenan at AIG.com Fri Feb 16 10:53:21 2007 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Fri, 16 Feb 2007 11:53:21 -0500 Subject: [AccessD] Missing references Message-ID: <34C8A2AB1EF3564CB0D64DB6AFFDD5C2012010E1@xlivmbx35.aig.com> You open the macro in design view, and from the View menu select "Conditions". In the conditions column you can then type CheckReferences() = False If that statement is true all the macro action on that line will execute In other words to convert If SomeCondition() Then DoSomething DoSomethingElse Else DoADiffferentThing Endif To a macro it would look like Condition : Action ===================================== SomeCondition()=True : DoSomething SomeCondition()=True : DoSomethingElse SomeCondition()=False : DoADiffferentThing Note that each statement in the True part of the IF needs a condition, otherwise the DoSomethingElse part would execute every time, regardless of what the result of SomeCondition() was. HTH Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Friday, February 16, 2007 11:23 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Missing references Thanks Gustav, This is almost embarrassing...I see the code...I know what the code does...I can write VBA...ALL...DAY...LONGGGG...But I don't know how to convert your IF statement back to a macro??? lol...Not sure why but I find this fact amusing, but I do. Here is the VBA/Macro... '------------------------------------------------------------ ' AutoExec ' '------------------------------------------------------------ Function AutoExec() DoCmd.Echo False, "" If (CheckReferences() = False) Then Call VerifyReferences(True) DoCmd.OpenModule "USysReferencesCheck", "" DoCmd.RunCommand acCmdCompileAndSaveAllMod DoCmd.Close , "" End If DoCmd.Echo True, "" End Function I got the echo part...lol...but how do you do the if statement? Thanks, Mark A. Matte >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] Missing references >Date: Fri, 16 Feb 2007 00:03:43 +0100 > >Hi Mark > >Some years ago we had a lengthy thread on this. >Look up here: > >http://databaseadvisors.com/pipermail/accessd/2003-July/011034.html > >/gustav > > >>> markamatte at hotmail.com 15-02-07 23:02 >>> >Thanks John, > >I'm not referencing any other app or docs...I was referring to when you >are in a module and goto TOOLS---REFERENCES...and there is something >missing or incorrect. > >Is binding relevant at this point? If not...back to the original >question:...how to handle the 'missing'??? > >Am I still confused>..lol...??? > > >Thanks, > >Mark A. Matte > >-- From artful at rogers.com Fri Feb 16 11:30:53 2007 From: artful at rogers.com (artful at rogers.com) Date: Fri, 16 Feb 2007 09:30:53 -0800 (PST) Subject: [AccessD] Not that much OT: Friday humour Message-ID: <437239.89286.qm@web88214.mail.re2.yahoo.com> The Jet sons-o-bitches. A. ----- Original Message ---- From: JWColby To: Access Developers discussion and problem solving Sent: Friday, February 16, 2007 11:07:20 AM Subject: Re: [AccessD] Not that much OT: Friday humour LOL. I thought for a moment you were calling me names. You're NOT calling me names are you? ;-) From artful at rogers.com Fri Feb 16 11:43:48 2007 From: artful at rogers.com (artful at rogers.com) Date: Fri, 16 Feb 2007 09:43:48 -0800 (PST) Subject: [AccessD] CodeLib Message-ID: <20070216174348.93951.qmail@web88204.mail.re2.yahoo.com> Does anyone use this but me? I've been recreating my CodeLib library this morning, delving into several Access MDBs and ADPs and copying the code for functions, classes and modules into CodeLib. The question arises, how to share it. It is not straightforward how to import a bunch of your code into my CodeLib database. Has anyone done this? If we could do this, it would be a cool way to archive all the collective code that you listers have so generously supplied over the years. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com From markamatte at hotmail.com Fri Feb 16 12:24:04 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 16 Feb 2007 18:24:04 +0000 Subject: [AccessD] Missing references In-Reply-To: Message-ID: Thanks Gustav, 1 last question if I may...I now see where the IF came from in the macro...but how in the macro would I have used an ELSE with that IF? Thanks, Mark A. Matte >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] Missing references >Date: Fri, 16 Feb 2007 17:43:20 +0100 > >Hi Mark > >You need to show the two columns for condition etc. > >However, you can read the full macro in from a file. >Cut and paste the text below into a new textfile (Notepad). > > >Version = 131074 >ColumnsShown = 3 >Begin > Action ="Echo" > Argument ="0" >End >Begin > Condition ="CheckReferences()=False" > Action ="RunCode" > Argument ="VerifyReferences(True)" >End >Begin > Condition ="..." > Action ="OpenModule" > Argument ="USysReferencesCheck" >End >Begin > Condition ="..." > Action ="RunCommand" > Argument ="126" >End >Begin > Condition ="..." > Action ="Close" > Argument ="-1" > Argument ="" > Argument ="0" >End >Begin > Action ="Echo" > Argument ="-1" >End > > >Then import it in Access with the command in the immediate window: > > LoadFromText acMacro, "AutoExec", "d:\filename.txt" > >/gustav > > >>> markamatte at hotmail.com 16-02-2007 17:23:25 >>> >Thanks Gustav, > >This is almost embarrassing...I see the code...I know what the code >does...I >can write VBA...ALL...DAY...LONGGGG...But I don't know how to convert your >IF statement back to a macro??? lol...Not sure why but I find this fact >amusing, but I do. Here is the VBA/Macro... > > > >'------------------------------------------------------------ >' AutoExec >' >'------------------------------------------------------------ >Function AutoExec() > > DoCmd.Echo False, "" > If (CheckReferences() = False) Then > Call VerifyReferences(True) > DoCmd.OpenModule "USysReferencesCheck", "" > DoCmd.RunCommand acCmdCompileAndSaveAllMod > DoCmd.Close , "" > End If > DoCmd.Echo True, "" > >End Function > > > >I got the echo part...lol...but how do you do the if statement? > >Thanks, > >Mark A. Matte > > >From: "Gustav Brock" > >Reply-To: Access Developers discussion and problem > >solving > >To: > >Subject: Re: [AccessD] Missing references > >Date: Fri, 16 Feb 2007 00:03:43 +0100 > > > >Hi Mark > > > >Some years ago we had a lengthy thread on this. > >Look up here: > > > >http://databaseadvisors.com/pipermail/accessd/2003-July/011034.html > > > >/gustav > > > > >>> markamatte at hotmail.com 15-02-07 23:02 >>> > >Thanks John, > > > >I'm not referencing any other app or docs...I was referring to when you >are > >in a module and goto TOOLS---REFERENCES...and there is something missing >or > >incorrect. > > > >Is binding relevant at this point? If not...back to the original > >question:...how to handle the 'missing'??? > > > >Am I still confused>..lol...??? > > > > > >Thanks, > > > >Mark A. Matte > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ With tax season right around the corner, make sure to follow these few simple tips. http://articles.moneycentral.msn.com/Taxes/PreparationTips/PreparationTips.aspx?icid=HMFebtagline From Gustav at cactus.dk Fri Feb 16 12:36:02 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 16 Feb 2007 19:36:02 +0100 Subject: [AccessD] Missing references Message-ID: Hi Mark I don't think you can. That's one of the reasons why you don't use macros. It's better to write code all day long - as you do. Macros have "improved" though in A2007. Sounds scary to me. /gustav >>> markamatte at hotmail.com 16-02-2007 19:24:04 >>> Thanks Gustav, 1 last question if I may...I now see where the IF came from in the macro...but how in the macro would I have used an ELSE with that IF? Thanks, Mark A. Matte From bheid at sc.rr.com Fri Feb 16 12:42:28 2007 From: bheid at sc.rr.com (Bobby Heid) Date: Fri, 16 Feb 2007 13:42:28 -0500 Subject: [AccessD] Missing references In-Reply-To: References: Message-ID: <000001c751fa$35c8bb90$2d01a8c0@bhxp> Mark, I don't use macros, but if you can not use ELSE, then use the same IF statement, but make it negative. That is, instead of the equivalent of: If i=0 then something else something else end if use the equivalent of: If i=0 then something end if if i<>0 then something else end if Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Friday, February 16, 2007 1:24 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Missing references Thanks Gustav, 1 last question if I may...I now see where the IF came from in the macro...but how in the macro would I have used an ELSE with that IF? Thanks, Mark A. Matte From jimdettman at verizon.net Fri Feb 16 12:54:04 2007 From: jimdettman at verizon.net (Jim Dettman) Date: Fri, 16 Feb 2007 13:54:04 -0500 Subject: [AccessD] Missing references In-Reply-To: <891940.82217.qm@web88207.mail.re2.yahoo.com> References: <891940.82217.qm@web88207.mail.re2.yahoo.com> Message-ID: <001e01c751fb$d5a59bf0$8abea8c0@XPS> <> Pretty much yes. As I said to John, it depends on the mix of operations that you are performing. But in all cases it is faster without a doubt. It's just a matter of how much. From past timings that I did, I found as a general rule of thumb that it was a 10% - 15% overall difference in speed. <> I did this years ago and have always used early binding as a result whenever possible. If I use late binding, I put it in the spec and note that it is a performance drain. So I'll use late if I have to, but I don't like it Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Friday, February 16, 2007 10:21 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing references Is this verifiable, Jim? I haven't ever used late-binding, which I admit has caused various installation issues, but I am curious. Is this a thumbnail calculation or can you supply concrete arithmetical evidence? A. ----- Original Message ---- From: Jim Dettman To: Access Developers discussion and problem solving Sent: Friday, February 16, 2007 9:49:44 AM Subject: Re: [AccessD] Missing references Bryan, One thing you didn't mention is the performance hit; late binding costs you 10-15% for every operation perform. Jim. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at verizon.net Fri Feb 16 12:54:04 2007 From: jimdettman at verizon.net (Jim Dettman) Date: Fri, 16 Feb 2007 13:54:04 -0500 Subject: [AccessD] Missing references In-Reply-To: <002501c751db$7c077660$6c7aa8c0@m6805> References: <011b01c751d9$b2ef9fb0$8abea8c0@XPS> <002501c751db$7c077660$6c7aa8c0@m6805> Message-ID: <001f01c751fb$d73d52f0$8abea8c0@XPS> John, <> Well except for the case where there is a loop for a million times. As you say, it is a trade off. My point was that the performance issue was not mentioned and it should be as it's significant enough to make a difference. <> According to Microsoft, the difference is that it is at least twice as fast using early vs. late. See here: http://support.microsoft.com/kb/245115 and read the section "Which Form of Binding Should I Use?" almost at the bottom. In overall time with all operations taken into account, I have found the difference to amount to 10% to 15% between early and late. That is a generalization to a certain extent as I have worked on projects where the manipulation of an Excel spreadsheet for example was almost cut in half when I switched. Then I've worked on other where the difference has been small. As you said, it depends on the mix of operations. But there is no denying that there is a difference and the difference more often then not is significant. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Friday, February 16, 2007 10:03 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references I would have to take issue with that statement Jim. The resolution of the object certainly takes longer, but often times that time will be dwarfed by other things. For example suppose I late bind excel objects. Yes, it takes longer to resolve the reference, but How long does it take to Open Excel? To make a new sheet? To insert data from a query into the sheet? To save the sheet back to disk? I do understand your point and I think there are situations where it can be critical, inside a loop executing a million times for example, but many times the effect on overall system operation will be negligible. And then there is the simple matter of "yea, it affects the time, but it simply doesn't matter since I have no idea what version of the library the user will have on their machine". In such a case, the fact that it "just works" outweighs all other considerations. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Friday, February 16, 2007 9:50 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references Bryan, One thing you didn't mention is the performance hit; late binding costs you 10-15% for every operation perform. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan Carbonnell Sent: Thursday, February 15, 2007 4:38 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing references On 2/15/07, Mark A Matte wrote: > Since I'm not versed in Binding(Late or Early) ...I've looked at MS > knowledge base...and most of what I found was problems and fixes. > > Any suggestions for 'crash course READING' in bindings? Here's a quick description that I lifted from an article I wrote http://www.databaseadvisors.com/newsletters/newsletter072002/0207wordautomat ionlpt1.asp Early Binding Versus Late Binding First you need to decide whether to use Early Binding or Late Binding. Early Binding allows you to dimension variables by their specific data type. For example, the following declarations refer to the Word Application and Document objects rather than declaring both as generic objects: Dim objWord as Word.Application Dim doc as Word.Document Early Binding also enables a few built-in Intelli-sense features: Auto Complete, Auto List Members, and Auto Quick Info. In addition, using early binding allows you to view Word's object model in the Object Browser. The downside to Early Binding is that you have to set a reference to a specific version of Word. Sometimes Access is smart enough to change the reference to the specific version of Word that is installed on the PC you are deploying your application; often it isn't, and you could end up with problems relating to the references. If you decide to use Late Binding, you will have to dimension all of your variables as Objects as follows: Dim objWord as Object Dim doc as Object Consequently, you cannot access any of your variables until you set them to a specific object as shown below: Set objWord = CreateObject("Word.Application") Set doc = objWord.Documents.Open("C:\Path\To\file.doc") In addition, the Intelli-sense features, Auto Complete, Auto List Members, Auto Quick Info and disables viewing of Word's object model in the Object Browser. However, Late Binding doesn't require that you set a reference to any Word Object Library, which can be advantageous if you are deploying run-time versions of your application to mixed OS/Office Version platforms. Instead of choosing one or the other, we suggest you compromise and use both. During the development phase use Early Binding. Once you release the application, remove all specific references and change each to Object-the best of both worlds! Now that the binding issue is resolved, let's roll up our sleeves and dive into writing some code. -- 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Fri Feb 16 13:36:22 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 16 Feb 2007 11:36:22 -0800 Subject: [AccessD] Missing references In-Reply-To: <001e01c751fb$d5a59bf0$8abea8c0@XPS> Message-ID: <0JDK0047CMCYICV0@l-daemon> Hi Jim: The main reason for using late-binding is that an application developer does not know what version of Word or Excel is on the clients' computer until the application is run. By checking the local references a program can then adapt to its' current surroundings; but this requires a late-binding design. Just a comment Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Friday, February 16, 2007 10:54 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references <> Pretty much yes. As I said to John, it depends on the mix of operations that you are performing. But in all cases it is faster without a doubt. It's just a matter of how much. From past timings that I did, I found as a general rule of thumb that it was a 10% - 15% overall difference in speed. <> I did this years ago and have always used early binding as a result whenever possible. If I use late binding, I put it in the spec and note that it is a performance drain. So I'll use late if I have to, but I don't like it Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Friday, February 16, 2007 10:21 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing references Is this verifiable, Jim? I haven't ever used late-binding, which I admit has caused various installation issues, but I am curious. Is this a thumbnail calculation or can you supply concrete arithmetical evidence? A. ----- Original Message ---- From: Jim Dettman To: Access Developers discussion and problem solving Sent: Friday, February 16, 2007 9:49:44 AM Subject: Re: [AccessD] Missing references Bryan, One thing you didn't mention is the performance hit; late binding costs you 10-15% for every operation perform. Jim. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Fri Feb 16 14:43:25 2007 From: artful at rogers.com (artful at rogers.com) Date: Fri, 16 Feb 2007 12:43:25 -0800 (PST) Subject: [AccessD] Missing references Message-ID: <490793.58413.qm@web88202.mail.re2.yahoo.com> Quite right, and insofar as you resolve the late-bind issue asap, then such binding shall not impede the subsequent performance of your app. Having resolved it once, the app will behave as if it were early-bound thereafter. A. ----- Original Message ---- From: Jim Lawrence To: Access Developers discussion and problem solving Sent: Friday, February 16, 2007 2:36:22 PM Subject: Re: [AccessD] Missing references Hi Jim: The main reason for using late-binding is that an application developer does not know what version of Word or Excel is on the clients' computer until the application is run. By checking the local references a program can then adapt to its' current surroundings; but this requires a late-binding design. Just a comment Jim From cfoust at infostatsystems.com Fri Feb 16 15:18:52 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 16 Feb 2007 13:18:52 -0800 Subject: [AccessD] CodeLib In-Reply-To: <20070216174348.93951.qmail@web88204.mail.re2.yahoo.com> References: <20070216174348.93951.qmail@web88204.mail.re2.yahoo.com> Message-ID: I've used it for years. To import an entire library, in the XP version, open CodeLibrarian, click on the Code Librarian menu item and choose Add. The Existing Library option will allow you to browse to a clb file and include it in your Code Librarian project. Alternatively, the toolbar Open icon will let you browse to a clb file. I give my clbs distinct names so I can recall where they came from and distinguish them from the MS provided stuff. It was messy getting from 2000 to XP because the file format changed, IIRC, and you have to specify a version 9.0 Code Library to open it in XP. I've never wanted to copy whole mdoules (except classes) because I'd lose the granularity of the code and it would be hard to find a particular routine. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Friday, February 16, 2007 9:44 AM To: Access Developers discussion and problem solving Subject: [AccessD] CodeLib Does anyone use this but me? I've been recreating my CodeLib library this morning, delving into several Access MDBs and ADPs and copying the code for functions, classes and modules into CodeLib. The question arises, how to share it. It is not straightforward how to import a bunch of your code into my CodeLib database. Has anyone done this? If we could do this, it would be a cool way to archive all the collective code that you listers have so generously supplied over the years. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Patricia.O'Connor at otda.state.ny.us Fri Feb 16 15:40:02 2007 From: Patricia.O'Connor at otda.state.ny.us (O'Connor, Patricia (OTDA)) Date: Fri, 16 Feb 2007 16:40:02 -0500 Subject: [AccessD] Dates As Criteria In-Reply-To: References: Message-ID: <01DBAB52E30A9A4AB3D94EF8029EDBE8021BAD48@EXCNYSM0A1AI.nysemail.nyenet> I stopped using BETWEEN quite awhile ago because of problems I had run into using Access as a front end to Oracle. Even in passthru queries and straight PlSql queries I use the date before and the date after. This way I am guaranteed to get all records with the correct date even if the "time" is 00:00:00. SO if you wanted between March 15, 2004 and July 10, 2004 I would write SELECT tblArrests.ArrestDT, tblArrests.ArrestLocation FROM tblArrests WHERE ArrestDT > '14-MAR-2004' And ArrestDt < '11-JUL-2004' So in your form you could have hidden fields with the day added and subtracted or SELECT tblArrests.ArrestDT, tblArrests.ArrestLocation FROM tblArrests WHERE ArrestDT > DateAdd("D",-1,[Forms]![frmReports]![StartDate] ) And ArrestDt < DateAdd("D",1,[Forms]![frmReports]![EndDate] ) Or something similar ************************************************** * Patricia O'Connor * Associate Computer Programmer Analyst * OTDA - BDMA * (W) mailto:Patricia.O'Connor at otda.state.ny.us * (w) mailto:aa1160 at nysemail.state.ny.us ************************************************** > -------------------------------------------------------- This e-mail, including any attachments, may be confidential, privileged or otherwise legally protected. It is intended only for the addressee. If you received this e-mail in error or from someone who was not authorized to send it to you, do not disseminate, copy or otherwise use this e-mail or its attachments. Please notify the sender immediately by reply e-mail and delete the e-mail from your system. -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Mark A Matte > Sent: Wednesday, February 14, 2007 10:46 AM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Dates As Criteria > > I set the parameters...no change...and the reason I I use the > format function is that the field ArrestDT is stored as a > general date...with time. > So I format to get just the short date. > > > >From: "Gustav Brock" > >Reply-To: Access Developers discussion and problem > >solving > >To: > >Subject: Re: [AccessD] Dates As Criteria > >Date: Wed, 14 Feb 2007 16:30:03 +0100 > > > >Hi Mark > > > >First, I would follow the advice from Arthur. > >If not possible, then try this: > > > >PARAMETERS > > [Forms]![frmReports]![StartDate] DateTime, > > [Forms]![frmReports]![EndDate] DateTime; > > > >SELECT tblArrests.ArrestDT, tblArrests.ArrestLocation > >FROM tblArrests > >WHERE ArrestDT Between > > [Forms]![frmReports]![StartDate] And > > [Forms]![frmReports]![EndDate]; > > > >/gustav > > > > >>> markamatte at hotmail.com 14-02-2007 16:09:43 >>> > >Here she is...This is making NO SENSE to me...at all??? > > > >SELECT tblArrests.ArrestDT, tblArrests.ArrestLocation > >FROM tblArrests > >WHERE (((Format([ArrestDT],"Short Date")) Between > >[Forms]![frmReports]![StartDate] And > [Forms]![frmReports]![endDate])); > > > > > > > > >From: "Gustav Brock" > > >Reply-To: Access Developers discussion and problem > > >solving > > >To: > > >Subject: Re: [AccessD] Dates As Criteria > > >Date: Wed, 14 Feb 2007 00:13:12 +0100 > > > > > >Hi Mark > > > > > >Show us your query, the SQL. > > >It probably has to do with a missing US format of the date values. > > > > > >/gustav > > > > > > >>> markamatte at hotmail.com 13-02-07 22:22 >>> > > >Hello All, > > > > > >In A2K I ahve a form that has 2 unbound date fields...have > input masks > >and > > >formats as SHORT DATE...I have a query that uses these > fields as criteria > >in > > >a BETWEEN statement. The field in the table is a general > date. I'm > >using 2 > > >records to check...if I set the startdate and enddate on > the form to the > > >dates that are in the db...they return..but if I use ofther > >dates...nothing > > >comes back. Example: > > > > > >StartDate:2/6/2007 > > >EndDate: 2/13/2007 > > > > > >2 records: > > >DT=2/9/2007 > > >DT=2/13/2007 > > > > > >Using the above "between startdate and enddate" I return 1 record? > > >If I change the startdate to 2/9/2007 then I return both > > >IF I use 2/6 and2/17 as the start and end...I return NOTHING... > > > > > >Anyone...please help...I'm sure I've done something > silly...but this just > > >doesn't make sense??? > > > > > >Thanks, > > > > > >Mark A. Matte > > > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > _________________________________________________________________ > Don't miss your chance to WIN 10 hours of private jet travel > from Microsoft > Office Live > http://clk.atdmt.com/MRT/go/mcrssaub0540002499mrt/direct/01/ > > From artful at rogers.com Fri Feb 16 16:06:26 2007 From: artful at rogers.com (artful at rogers.com) Date: Fri, 16 Feb 2007 14:06:26 -0800 (PST) Subject: [AccessD] CodeLib Message-ID: <234612.62923.qm@web88207.mail.re2.yahoo.com> Well that makes two of us, Charlotte. I wish there were more, we could build something nice. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Charlotte Foust To: Access Developers discussion and problem solving Sent: Friday, February 16, 2007 4:18:52 PM Subject: Re: [AccessD] CodeLib I've used it for years. To import an entire library, in the XP version, open CodeLibrarian, click on the Code Librarian menu item and choose Add. The Existing Library option will allow you to browse to a clb file and include it in your Code Librarian project. Alternatively, the toolbar Open icon will let you browse to a clb file. I give my clbs distinct names so I can recall where they came from and distinguish them from the MS provided stuff. It was messy getting from 2000 to XP because the file format changed, IIRC, and you have to specify a version 9.0 Code Library to open it in XP. I've never wanted to copy whole mdoules (except classes) because I'd lose the granularity of the code and it would be hard to find a particular routine. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Friday, February 16, 2007 9:44 AM To: Access Developers discussion and problem solving Subject: [AccessD] CodeLib Does anyone use this but me? I've been recreating my CodeLib library this morning, delving into several Access MDBs and ADPs and copying the code for functions, classes and modules into CodeLib. The question arises, how to share it. It is not straightforward how to import a bunch of your code into my CodeLib database. Has anyone done this? If we could do this, it would be a cool way to archive all the collective code that you listers have so generously supplied over the years. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Feb 16 16:44:55 2007 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 16 Feb 2007 23:44:55 +0100 Subject: [AccessD] Dates As Criteria Message-ID: Hi Patricia But that will return 2004-03-14 12:00:00 as well ... /gustav >>> Patricia.O'Connor at otda.state.ny.us 16-02-07 22:40 >>> I stopped using BETWEEN quite awhile ago because of problems I had run into using Access as a front end to Oracle. Even in passthru queries and straight PlSql queries I use the date before and the date after. This way I am guaranteed to get all records with the correct date even if the "time" is 00:00:00. SO if you wanted between March 15, 2004 and July 10, 2004 I would write SELECT tblArrests.ArrestDT, tblArrests.ArrestLocation FROM tblArrests WHERE ArrestDT > '14-MAR-2004' And ArrestDt < '11-JUL-2004' From stuart at lexacorp.com.pg Fri Feb 16 18:08:16 2007 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 17 Feb 2007 10:08:16 +1000 Subject: [AccessD] Missing references In-Reply-To: <003401c751e0$95936ee0$6c7aa8c0@m6805> References: <891940.82217.qm@web88207.mail.re2.yahoo.com>, <003401c751e0$95936ee0$6c7aa8c0@m6805> Message-ID: <45D64770.6934.795CC57@stuart.lexacorp.com.pg> On 16 Feb 2007 at 10:39, JWColby wrote: > Actually dimensioning a variable of any kind down in the middle of code is > considered bad practice anyway. It used to be. There seems to be a growing trend towards "decentralisation" rather than "consolidation" of declarations. Now we have "Block Scoped variables" in VB.Net which *have* to be declared in the middle of code and many MS code examples now declare all variables immediately before first use. Anyone for another round of Bound/Unbound or Surrogate/Natural et al which we're at it? :-) -- Stuart From garykjos at gmail.com Fri Feb 16 18:11:55 2007 From: garykjos at gmail.com (Gary Kjos) Date: Fri, 16 Feb 2007 18:11:55 -0600 Subject: [AccessD] Dates As Criteria In-Reply-To: <01DBAB52E30A9A4AB3D94EF8029EDBE8021BAD48@EXCNYSM0A1AI.nysemail.nyenet> References: <01DBAB52E30A9A4AB3D94EF8029EDBE8021BAD48@EXCNYSM0A1AI.nysemail.nyenet> Message-ID: That will only work if you don't have times in your Oracle based dates. The end date is OK but the start date will get you all the records that have any time other than 00:00:00 for the start date. I put the time into the form that the user uses to enter the date range and tell them to use 00:00:00am for the start date and 11:59:59pm for time in the end date or 23:59:59 for those who prefer the 24 hour clock. Some of our Oracle Dates have times and some don't. Even sometimes the same field will sometimes have times in some records and other records won't, it depends on the program that updated that field in the Oracle Application. By always selecting from the beginning time of the beginning day to the ending time of the last day we get all the records. GK On 2/16/07, O'Connor, Patricia (OTDA) wrote: > I stopped using BETWEEN quite awhile ago because of problems I had run > into using Access as a front end to Oracle. Even in passthru queries and > straight PlSql queries I use the date before and the date after. This > way I am guaranteed to get all records with the correct date even if the > "time" is 00:00:00. > > SO if you wanted between March 15, 2004 and July 10, 2004 I would write > > SELECT tblArrests.ArrestDT, tblArrests.ArrestLocation > FROM tblArrests > WHERE ArrestDT > '14-MAR-2004' > And ArrestDt < '11-JUL-2004' > > So in your form you could have hidden fields with the day added and > subtracted or > > SELECT tblArrests.ArrestDT, tblArrests.ArrestLocation > FROM tblArrests > WHERE ArrestDT > DateAdd("D",-1,[Forms]![frmReports]![StartDate] ) > And ArrestDt < DateAdd("D",1,[Forms]![frmReports]![EndDate] ) > > Or something similar > > ************************************************** > * Patricia O'Connor > * Associate Computer Programmer Analyst > * OTDA - BDMA > * (W) mailto:Patricia.O'Connor at otda.state.ny.us > * (w) mailto:aa1160 at nysemail.state.ny.us > ************************************************** > > > > > -------------------------------------------------------- > This e-mail, including any attachments, may be confidential, privileged or otherwise legally protected. It is intended only for the addressee. If you received this e-mail in error or from someone who was not authorized to send it to you, do not disseminate, copy or otherwise use this e-mail or its attachments. Please notify the sender immediately by reply e-mail and delete the e-mail from your system. > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > Mark A Matte > > Sent: Wednesday, February 14, 2007 10:46 AM > > To: accessd at databaseadvisors.com > > Subject: Re: [AccessD] Dates As Criteria > > > > I set the parameters...no change...and the reason I I use the > > format function is that the field ArrestDT is stored as a > > general date...with time. > > So I format to get just the short date. > > > > > > >From: "Gustav Brock" > > >Reply-To: Access Developers discussion and problem > > >solving > > >To: > > >Subject: Re: [AccessD] Dates As Criteria > > >Date: Wed, 14 Feb 2007 16:30:03 +0100 > > > > > >Hi Mark > > > > > >First, I would follow the advice from Arthur. > > >If not possible, then try this: > > > > > >PARAMETERS > > > [Forms]![frmReports]![StartDate] DateTime, > > > [Forms]![frmReports]![EndDate] DateTime; > > > > > >SELECT tblArrests.ArrestDT, tblArrests.ArrestLocation > > >FROM tblArrests > > >WHERE ArrestDT Between > > > [Forms]![frmReports]![StartDate] And > > > [Forms]![frmReports]![EndDate]; > > > > > >/gustav > > > > > > >>> markamatte at hotmail.com 14-02-2007 16:09:43 >>> > > >Here she is...This is making NO SENSE to me...at all??? > > > > > >SELECT tblArrests.ArrestDT, tblArrests.ArrestLocation > > >FROM tblArrests > > >WHERE (((Format([ArrestDT],"Short Date")) Between > > >[Forms]![frmReports]![StartDate] And > > [Forms]![frmReports]![endDate])); > > > > > > > > > > > > >From: "Gustav Brock" > > > >Reply-To: Access Developers discussion and problem > > > >solving > > > >To: > > > >Subject: Re: [AccessD] Dates As Criteria > > > >Date: Wed, 14 Feb 2007 00:13:12 +0100 > > > > > > > >Hi Mark > > > > > > > >Show us your query, the SQL. > > > >It probably has to do with a missing US format of the date values. > > > > > > > >/gustav > > > > > > > > >>> markamatte at hotmail.com 13-02-07 22:22 >>> > > > >Hello All, > > > > > > > >In A2K I ahve a form that has 2 unbound date fields...have > > input masks > > >and > > > >formats as SHORT DATE...I have a query that uses these > > fields as criteria > > >in > > > >a BETWEEN statement. The field in the table is a general > > date. I'm > > >using 2 > > > >records to check...if I set the startdate and enddate on > > the form to the > > > >dates that are in the db...they return..but if I use ofther > > >dates...nothing > > > >comes back. Example: > > > > > > > >StartDate:2/6/2007 > > > >EndDate: 2/13/2007 > > > > > > > >2 records: > > > >DT=2/9/2007 > > > >DT=2/13/2007 > > > > > > > >Using the above "between startdate and enddate" I return 1 record? > > > >If I change the startdate to 2/9/2007 then I return both > > > >IF I use 2/6 and2/17 as the start and end...I return NOTHING... > > > > > > > >Anyone...please help...I'm sure I've done something > > silly...but this just > > > >doesn't make sense??? > > > > > > > >Thanks, > > > > > > > >Mark A. Matte > > > > > > > > >-- > > >AccessD mailing list > > >AccessD at databaseadvisors.com > > >http://databaseadvisors.com/mailman/listinfo/accessd > > >Website: http://www.databaseadvisors.com > > > > _________________________________________________________________ > > Don't miss your chance to WIN 10 hours of private jet travel > > from Microsoft > > Office Live > > http://clk.atdmt.com/MRT/go/mcrssaub0540002499mrt/direct/01/ > > > > > -- > 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 wdhindman at dejpolsystems.com Fri Feb 16 18:46:16 2007 From: wdhindman at dejpolsystems.com (William Hindman) Date: Fri, 16 Feb 2007 19:46:16 -0500 Subject: [AccessD] CodeLib References: <234612.62923.qm@web88207.mail.re2.yahoo.com> Message-ID: <001501c7522d$08b0f810$9258eb44@50NM721> ...I've tried CL a couple of times and found it bloated and unnecessarily complicated to use ...I now use TreePad which I keep on a gig-stick on a neck chain ...no matter where I am I have full access to a text version of my entire code library and TreePad makes it very easy to find what I need. William Hindman ----- Original Message ----- From: To: "Access Developers discussion and problem solving" Sent: Friday, February 16, 2007 5:06 PM Subject: Re: [AccessD] CodeLib > Well that makes two of us, Charlotte. I wish there were more, we could > build something nice. > > > Arthur Fuller > Technical Writer, Data Modeler, SQL Sensei > Artful Databases Organization > www.artfulsoftware.com > > > > > ----- Original Message ---- > From: Charlotte Foust > To: Access Developers discussion and problem solving > > Sent: Friday, February 16, 2007 4:18:52 PM > Subject: Re: [AccessD] CodeLib > > > I've used it for years. To import an entire library, in the XP version, > open CodeLibrarian, click on the Code Librarian menu item and choose > Add. The Existing Library option will allow you to browse to a clb file > and include it in your Code Librarian project. Alternatively, the > toolbar Open icon will let you browse to a clb file. I give my clbs > distinct names so I can recall where they came from and distinguish them > from the MS provided stuff. > > It was messy getting from 2000 to XP because the file format changed, > IIRC, and you have to specify a version 9.0 Code Library to open it in > XP. I've never wanted to copy whole mdoules (except classes) because > I'd lose the granularity of the code and it would be hard to find a > particular routine. > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > artful at rogers.com > Sent: Friday, February 16, 2007 9:44 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] CodeLib > > Does anyone use this but me? I've been recreating my CodeLib library > this morning, delving into several Access MDBs and ADPs and copying the > code for functions, classes and modules into CodeLib. > > The question arises, how to share it. It is not straightforward how to > import a bunch of your code into my CodeLib database. Has anyone done > this? If we could do this, it would be a cool way to archive all the > collective code that you listers have so generously supplied over the > years. > > Arthur Fuller > Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization > www.artfulsoftware.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Fri Feb 16 18:56:44 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Fri, 16 Feb 2007 19:56:44 -0500 Subject: [AccessD] Missing references In-Reply-To: <45D64770.6934.795CC57@stuart.lexacorp.com.pg> Message-ID: <006401c7522e$7f119360$6c7aa8c0@m6805> >and many MS code examples now declare all variables immediately before first use. Don't get me started on Microsoft's summer interns "best practices" examples. Anyone for the trading database as a way to demonstrate correct normalization. It doesn't help their cause that they foist such monstrosities on us. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, February 16, 2007 7:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing references On 16 Feb 2007 at 10:39, JWColby wrote: > Actually dimensioning a variable of any kind down in the middle of > code is considered bad practice anyway. It used to be. There seems to be a growing trend towards "decentralisation" rather than "consolidation" of declarations. Now we have "Block Scoped variables" in VB.Net which *have* to be declared in the middle of code and many MS code examples now declare all variables immediately before first use. Anyone for another round of Bound/Unbound or Surrogate/Natural et al which we're at it? :-) -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at gmail.com Fri Feb 16 19:11:29 2007 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Fri, 16 Feb 2007 20:11:29 -0500 Subject: [AccessD] Missing references In-Reply-To: References: <012801c7514c$2c884180$657aa8c0@m6805> Message-ID: On 2/15/07, Mark A Matte wrote: > I'm not referencing any other app or docs...I was referring to when you are > in a module and goto TOOLS---REFERENCES...and there is something missing or > incorrect. > > Is binding relevant at this point? If not...back to the original > question:...how to handle the 'missing'??? Late to the party again. :( If you aren't referencing any other app, they why are you concerned about missing refs? -- 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 carbonnb at gmail.com Fri Feb 16 19:12:58 2007 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Fri, 16 Feb 2007 20:12:58 -0500 Subject: [AccessD] Missing references In-Reply-To: <011b01c751d9$b2ef9fb0$8abea8c0@XPS> References: <00fa01c7512b$111fd190$657aa8c0@m6805> <011b01c751d9$b2ef9fb0$8abea8c0@XPS> Message-ID: On 2/16/07, Jim Dettman wrote: > Bryan, > > One thing you didn't mention is the performance hit; late binding costs > you 10-15% for every operation perform. Didn't know that. Never been an issue for what I have done. -- 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 carbonnb at gmail.com Fri Feb 16 19:17:20 2007 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Fri, 16 Feb 2007 20:17:20 -0500 Subject: [AccessD] Design Question In-Reply-To: <0JD3007U9WK6DVM1@l-daemon> References: <0JD3007U9WK6DVM1@l-daemon> Message-ID: On 2/7/07, Jim Lawrence wrote: > > The only particular about this type of table is that you as the programmer > > would most likely have to maintain it with your code.... sorry not bound. > > This system works great and I have used it to resolve many similar issues. > > In this case, I doubt it's gonna happen. He's not a programmer. Just a > manager :) > > That is why there is programmer at your office. If the manager who I assume Nope. No programmers here. Just us lowly managers :) > has no programming experience, wishes to do it himself then it is not > possible. (Had a similar situation at a office; the manager, a Systems > Architect fooled around with a similar problem for 3 weeks before finally > asking me to do it... it took 3 hours to solve and code.) Surprising how that works, eh? :) It'd probably take me a week to do what he wants, but since I don't work for him, I'll just guide him. -- 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 wdhindman at dejpolsystems.com Fri Feb 16 19:26:36 2007 From: wdhindman at dejpolsystems.com (William Hindman) Date: Fri, 16 Feb 2007 20:26:36 -0500 Subject: [AccessD] Missing references References: <006401c7522e$7f119360$6c7aa8c0@m6805> Message-ID: <005301c75232$aabc5460$9258eb44@50NM721> ...you're preaching to the choir JC :( William Hindman ----- Original Message ----- From: "JWColby" To: "'Access Developers discussion and problem solving'" Sent: Friday, February 16, 2007 7:56 PM Subject: Re: [AccessD] Missing references > >and many MS code examples now declare all variables immediately before > first use. > > Don't get me started on Microsoft's summer interns "best practices" > examples. Anyone for the trading database as a way to demonstrate correct > normalization. > > It doesn't help their cause that they foist such monstrosities on us. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > McLachlan > Sent: Friday, February 16, 2007 7:08 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Missing references > > On 16 Feb 2007 at 10:39, JWColby wrote: > >> Actually dimensioning a variable of any kind down in the middle of >> code is considered bad practice anyway. > > It used to be. There seems to be a growing trend towards > "decentralisation" > rather than "consolidation" of declarations. > > Now we have "Block Scoped variables" in VB.Net which *have* to be > declared > in the middle of code and many MS code examples now declare all variables > immediately before first use. > > Anyone for another round of Bound/Unbound or Surrogate/Natural et al which > we're at it? :-) > > > > > > -- > 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 martyconnelly at shaw.ca Fri Feb 16 19:53:10 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 16 Feb 2007 17:53:10 -0800 Subject: [AccessD] Missing references In-Reply-To: <45D64770.6934.795CC57@stuart.lexacorp.com.pg> References: <891940.82217.qm@web88207.mail.re2.yahoo.com> <003401c751e0$95936ee0$6c7aa8c0@m6805> <45D64770.6934.795CC57@stuart.lexacorp.com.pg> Message-ID: <45D66006.2050006@shaw.ca> Bring back Fortran II "Labeled Common Areas" Stuart McLachlan wrote: >On 16 Feb 2007 at 10:39, JWColby wrote: > > > >>Actually dimensioning a variable of any kind down in the middle of code is >>considered bad practice anyway. >> >> > >It used to be. There seems to be a growing trend towards >"decentralisation" rather than "consolidation" of declarations. > >Now we have "Block Scoped variables" in VB.Net which *have* to be declared >in the middle of code and many MS code examples now declare all variables >immediately before first use. > >Anyone for another round of Bound/Unbound or Surrogate/Natural et al which >we're at it? :-) > > > > > > > -- Marty Connelly Victoria, B.C. Canada From DorisH3 at aol.com Fri Feb 16 22:16:54 2007 From: DorisH3 at aol.com (DorisH3 at aol.com) Date: Fri, 16 Feb 2007 23:16:54 EST Subject: [AccessD] Macro for Excel Message-ID: Does anyone know how to write a macro to move query records to MS Excel....thanks in advance. Doris From martyconnelly at shaw.ca Fri Feb 16 23:23:48 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 16 Feb 2007 21:23:48 -0800 Subject: [AccessD] Macro for Excel In-Reply-To: References: Message-ID: <45D69164.3040706@shaw.ca> Just replace tblExcelNew with a query Sub ExportExcelToAccess() Dim sqlString As String Dim dbs As Database Set dbs = CurrentDb ' Here are some other syntax methods using ADO ' http://support.microsoft.com/kb/295646/EN-US/ ' http://support.microsoft.com/kb/257819/EN-US/ 'export to Excel 'sqlString = " INSERT INTO [Excel 8.0;Database=C:\temp\MyWorkbook.xls;].[MySheet1$E6:G65536]" & _ ' " SELECT * FROM tblExcelNew WHERE MyKeyCol = 99" sqlString = "SELECT * INTO [Sheet1] IN '' [Excel 8.0;Database=" & _ "C:\Excel\ExcelADO\book2.xls]" & " FROM tblExcelNew" Debug.Print sqlString dbs.Execute sqlString End Sub DorisH3 at aol.com wrote: >Does anyone know how to write a macro to move query records to MS >Excel....thanks in advance. > >Doris > > -- Marty Connelly Victoria, B.C. Canada From artful at rogers.com Sat Feb 17 07:37:30 2007 From: artful at rogers.com (artful at rogers.com) Date: Sat, 17 Feb 2007 05:37:30 -0800 (PST) Subject: [AccessD] Missing references Message-ID: <482793.81822.qm@web88203.mail.re2.yahoo.com> The MS folks seem to have moved to this convention largely due to the work of Steve McConnell (Code Complete), where he argues that copying and pasting code is much easier when you don't have to hunt around for the declarations. A. ----- Original Message ---- From: Stuart McLachlan To: Access Developers discussion and problem solving Sent: Friday, February 16, 2007 7:08:16 PM Subject: Re: [AccessD] Missing references On 16 Feb 2007 at 10:39, JWColby wrote: > Actually dimensioning a variable of any kind down in the middle of code is > considered bad practice anyway. It used to be. There seems to be a growing trend towards "decentralisation" rather than "consolidation" of declarations. Now we have "Block Scoped variables" in VB.Net which *have* to be declared in the middle of code and many MS code examples now declare all variables immediately before first use. Anyone for another round of Bound/Unbound or Surrogate/Natural et al which we're at it? :-) -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sat Feb 17 08:34:45 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Sat, 17 Feb 2007 09:34:45 -0500 Subject: [AccessD] Missing references In-Reply-To: <482793.81822.qm@web88203.mail.re2.yahoo.com> Message-ID: <000401c752a0$c59d8bf0$657aa8c0@m6805> The whole point of reusable code is NOT to cut and paste, so to say I am unimpressed with his logic would be an understatement. I have a function. Cool function, 100 lines of code. Statistics tell us that every 20 lines of code there is a bug. 5 bugs in that code. I now cut and paste that code 47 different places. I now fix ONE bug.... I now have to FIND (where did I use that again?) and fix 47 different places, to fix one bug. Understand that I use my framework for EVERY project I do. Thus I would not only have to search THIS project but every other project. Oh yea, I am a HUGE fan of cut and paste. I also LOVE to be stretched on the rack, flogged with a whip, waterboarded by the CIA and all the other lovely means of torture man can conceive of. However if you like self flagellation I urge you to cut and paste. It does have one plus though, job security fixing all your bugs. Until the boss discovers I only have to fix bugs in ONE place and then I will have your job. Not that I WANT your job, having to find and replace all that cut and pasted code. CUT AND PASTE? Steve MUST be my hero. NOT. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Saturday, February 17, 2007 8:38 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing references The MS folks seem to have moved to this convention largely due to the work of Steve McConnell (Code Complete), where he argues that copying and pasting code is much easier when you don't have to hunt around for the declarations. A. ----- Original Message ---- From: Stuart McLachlan To: Access Developers discussion and problem solving Sent: Friday, February 16, 2007 7:08:16 PM Subject: Re: [AccessD] Missing references On 16 Feb 2007 at 10:39, JWColby wrote: > Actually dimensioning a variable of any kind down in the middle of > code is considered bad practice anyway. It used to be. There seems to be a growing trend towards "decentralisation" rather than "consolidation" of declarations. Now we have "Block Scoped variables" in VB.Net which *have* to be declared in the middle of code and many MS code examples now declare all variables immediately before first use. Anyone for another round of Bound/Unbound or Surrogate/Natural et al which we're at it? :-) -- 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 shamil at users.mns.ru Sat Feb 17 08:43:27 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Sat, 17 Feb 2007 17:43:27 +0300 Subject: [AccessD] Missing references In-Reply-To: <482793.81822.qm@web88203.mail.re2.yahoo.com> Message-ID: <000901c752a1$fc14c3a0$6401a8c0@nant> <<< you don't have to hunt around for the declarations >>> Arthur, I'd suppose this is more influence of code refactoring and eXtreme Programming techniques (Ward Cunningham, Kent Beck, Martin Fawler)... Just my 2 kopecks... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Saturday, February 17, 2007 4:38 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing references The MS folks seem to have moved to this convention largely due to the work of Steve McConnell (Code Complete), where he argues that copying and pasting code is much easier when you don't have to hunt around for the declarations. A. ----- Original Message ---- From: Stuart McLachlan To: Access Developers discussion and problem solving Sent: Friday, February 16, 2007 7:08:16 PM Subject: Re: [AccessD] Missing references On 16 Feb 2007 at 10:39, JWColby wrote: > Actually dimensioning a variable of any kind down in the middle of code is > considered bad practice anyway. It used to be. There seems to be a growing trend towards "decentralisation" rather than "consolidation" of declarations. Now we have "Block Scoped variables" in VB.Net which *have* to be declared in the middle of code and many MS code examples now declare all variables immediately before first use. Anyone for another round of Bound/Unbound or Surrogate/Natural et al which we're at it? :-) -- 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 robert at servicexp.com Sat Feb 17 08:54:47 2007 From: robert at servicexp.com (Robert) Date: Sat, 17 Feb 2007 09:54:47 -0500 Subject: [AccessD] Missing references In-Reply-To: <490793.58413.qm@web88202.mail.re2.yahoo.com> References: <490793.58413.qm@web88202.mail.re2.yahoo.com> Message-ID: <000f01c752a3$929ce090$6501a8c0@roberts> Interesting thread.. I have not seen it mentioned that if you early bind to an early version, Access will "re-reference" to any later installed version. This of course this does not work if the user has an earlier version or no version at all installed ;-) Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Friday, February 16, 2007 3:43 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing references Quite right, and insofar as you resolve the late-bind issue asap, then such binding shall not impede the subsequent performance of your app. Having resolved it once, the app will behave as if it were early-bound thereafter. A. ----- Original Message ---- From: Jim Lawrence To: Access Developers discussion and problem solving Sent: Friday, February 16, 2007 2:36:22 PM Subject: Re: [AccessD] Missing references Hi Jim: The main reason for using late-binding is that an application developer does not know what version of Word or Excel is on the clients' computer until the application is run. By checking the local references a program can then adapt to its' current surroundings; but this requires a late-binding design. Just a comment Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From robert at servicexp.com Sat Feb 17 09:10:17 2007 From: robert at servicexp.com (Robert) Date: Sat, 17 Feb 2007 10:10:17 -0500 Subject: [AccessD] Riddle me this, Riddle me that.. In-Reply-To: <000901c752a1$fc14c3a0$6401a8c0@nant> References: <482793.81822.qm@web88203.mail.re2.yahoo.com> <000901c752a1$fc14c3a0$6401a8c0@nant> Message-ID: <001001c752a5$bc903f80$6501a8c0@roberts> Ok, I have a front end AXP .mde that weighs in at about 27 megs. When I use Wise to compile a new install with a few other objects, it compresses the entire install down to about 8 megs. Now.... If I take ANY other database, even one created from the objects from this FE, the .mde does not compress down. Does anyone have any idea why THIS one FE compresses down, and other will not...?? Robert From shamil at users.mns.ru Sat Feb 17 09:22:43 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Sat, 17 Feb 2007 18:22:43 +0300 Subject: [AccessD] Missing references In-Reply-To: <000f01c752a3$929ce090$6501a8c0@roberts> Message-ID: <000301c752a7$78a7afe0$6401a8c0@nant> <<< Having resolved it once, the app will behave as if it were early-bound thereafter. >>> Arthur, You probably meant VBA's/VB6's or VB.NET's With ==== Operator? For "With" operator - yes, it was written somewhere that if you use e.g. Dim wapp as object Set wapp = CreateObject("Word.Application") Dim wdoc as object Set wdoc = wapp.OpenDocument(....) ... With wapp.Selection.Font .Size = ... .Bold = ... .Italic = ... ... Then wapp.Selection.Font will be saved as internal object reference and it will not be recalculated for wapp.Selection.Font.Size, wapp.Selection.Font.Bold, wapp.Selection.Font.Italic, ... etc. Although the next usage in the code of With wapp.Selection.Font Code construct, even in the same function will result in several late-bound "round-trips" via IDispatch COM interface proxy-stub boundaries to dynamically recalculate actual target object reference... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Sent: Saturday, February 17, 2007 5:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references Interesting thread.. I have not seen it mentioned that if you early bind to an early version, Access will "re-reference" to any later installed version. This of course this does not work if the user has an earlier version or no version at all installed ;-) Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Friday, February 16, 2007 3:43 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing references Quite right, and insofar as you resolve the late-bind issue asap, then such binding shall not impede the subsequent performance of your app. Having resolved it once, the app will behave as if it were early-bound thereafter. A. ----- Original Message ---- From: Jim Lawrence To: Access Developers discussion and problem solving Sent: Friday, February 16, 2007 2:36:22 PM Subject: Re: [AccessD] Missing references Hi Jim: The main reason for using late-binding is that an application developer does not know what version of Word or Excel is on the clients' computer until the application is run. By checking the local references a program can then adapt to its' current surroundings; but this requires a late-binding design. Just a comment Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Sat Feb 17 10:13:33 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Sat, 17 Feb 2007 08:13:33 -0800 Subject: [AccessD] Missing references In-Reply-To: <45D64770.6934.795CC57@stuart.lexacorp.com.pg> Message-ID: <002201c752ae$92408ec0$0201a8c0@HAL9005> I haven't thought about this much but I'll cast a vote anyway. Seems like sometimes when I declared variable in a procedure I got into some kind of scoping problem. So I always Dim everything at the top of the module, group them by type, and never use a variable for more than one specific purpose. There easy to find(Ctrl-Home), easy to see. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, February 16, 2007 4:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing references On 16 Feb 2007 at 10:39, JWColby wrote: > Actually dimensioning a variable of any kind down in the middle of > code is considered bad practice anyway. It used to be. There seems to be a growing trend towards "decentralisation" rather than "consolidation" of declarations. Now we have "Block Scoped variables" in VB.Net which *have* to be declared in the middle of code and many MS code examples now declare all variables immediately before first use. Anyone for another round of Bound/Unbound or Surrogate/Natural et al which we're at it? :-) -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.0/689 - Release Date: 2/15/2007 5:40 PM From jwcolby at colbyconsulting.com Sat Feb 17 10:20:07 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Sat, 17 Feb 2007 11:20:07 -0500 Subject: [AccessD] Riddle me this, Riddle me that.. In-Reply-To: <001001c752a5$bc903f80$6501a8c0@roberts> Message-ID: <000b01c752af$7de2d2c0$657aa8c0@m6805> It wasn't compacted / repaired before changing to an MDE? John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Sent: Saturday, February 17, 2007 10:10 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Riddle me this, Riddle me that.. Ok, I have a front end AXP .mde that weighs in at about 27 megs. When I use Wise to compile a new install with a few other objects, it compresses the entire install down to about 8 megs. Now.... If I take ANY other database, even one created from the objects from this FE, the .mde does not compress down. Does anyone have any idea why THIS one FE compresses down, and other will not...?? Robert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From robert at servicexp.com Sat Feb 17 10:27:55 2007 From: robert at servicexp.com (Robert) Date: Sat, 17 Feb 2007 11:27:55 -0500 Subject: [AccessD] Riddle me this, Riddle me that.. In-Reply-To: <000b01c752af$7de2d2c0$657aa8c0@m6805> References: <001001c752a5$bc903f80$6501a8c0@roberts> <000b01c752af$7de2d2c0$657aa8c0@m6805> Message-ID: <001101c752b0$94f2a480$6501a8c0@roberts> Yes, in both cases, makes no difference.. Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Saturday, February 17, 2007 11:20 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Riddle me this, Riddle me that.. It wasn't compacted / repaired before changing to an MDE? John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Sent: Saturday, February 17, 2007 10:10 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Riddle me this, Riddle me that.. Ok, I have a front end AXP .mde that weighs in at about 27 megs. When I use Wise to compile a new install with a few other objects, it compresses the entire install down to about 8 megs. Now.... If I take ANY other database, even one created from the objects from this FE, the .mde does not compress down. Does anyone have any idea why THIS one FE compresses down, and other will not...?? 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 From kp at sdsonline.net Sat Feb 17 18:32:21 2007 From: kp at sdsonline.net (Kath Pelletti) Date: Sun, 18 Feb 2007 11:32:21 +1100 Subject: [AccessD] Riddle me this, Riddle me that.. References: <001001c752a5$bc903f80$6501a8c0@roberts><000b01c752af$7de2d2c0$657aa8c0@m6805> <001101c752b0$94f2a480$6501a8c0@roberts> Message-ID: <004401c752f4$41e9aec0$6401a8c0@office> I have found that too. I have also found that when importing all objects into a new clean mdb that the size can (sometimes) be reduced dramatically. I wonder if you put both of yours into new mdbs and THEN used wise to create mde's, would they reduce down much at all? Kath ----- Original Message ----- From: Robert To: 'Access Developers discussion and problem solving' Sent: Sunday, February 18, 2007 3:27 AM Subject: Re: [AccessD] Riddle me this, Riddle me that.. Yes, in both cases, makes no difference.. Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Saturday, February 17, 2007 11:20 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Riddle me this, Riddle me that.. It wasn't compacted / repaired before changing to an MDE? John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Sent: Saturday, February 17, 2007 10:10 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Riddle me this, Riddle me that.. Ok, I have a front end AXP .mde that weighs in at about 27 megs. When I use Wise to compile a new install with a few other objects, it compresses the entire install down to about 8 megs. Now.... If I take ANY other database, even one created from the objects from this FE, the .mde does not compress down. Does anyone have any idea why THIS one FE compresses down, and other will not...?? 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Sat Feb 17 22:53:31 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Sat, 17 Feb 2007 20:53:31 -0800 Subject: [AccessD] OT Could not save this until Friday In-Reply-To: <45D69164.3040706@shaw.ca> Message-ID: <0JDN002NZ6TCUTZ1@l-daemon> OT This is either a late Friday or an early Friday... Hi All: Training is always fun: http://www.youtube.com/watch?v=eRjVeRbhtRU Regards Jim From markamatte at hotmail.com Sun Feb 18 00:00:35 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Sun, 18 Feb 2007 06:00:35 +0000 Subject: [AccessD] Missing references In-Reply-To: Message-ID: Hey Bryan, Moved app to new machine...and had to goto TOOLS---REFERENCES...and to correct missing references...trying to avoid this step for end users. This I got it with some code from Gustave. Thanks, Mark A. Matte >From: "Bryan Carbonnell" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Missing references >Date: Fri, 16 Feb 2007 20:11:29 -0500 > >On 2/15/07, Mark A Matte wrote: > > > I'm not referencing any other app or docs...I was referring to when you >are > > in a module and goto TOOLS---REFERENCES...and there is something missing >or > > incorrect. > > > > Is binding relevant at this point? If not...back to the original > > question:...how to handle the 'missing'??? > >Late to the party again. :( > >If you aren't referencing any other app, they why are you concerned >about missing refs? > >-- >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 _________________________________________________________________ With tax season right around the corner, make sure to follow these few simple tips. http://articles.moneycentral.msn.com/Taxes/PreparationTips/PreparationTips.aspx?icid=HMFebtagline From kp at sdsonline.net Sun Feb 18 00:16:34 2007 From: kp at sdsonline.net (Kath Pelletti) Date: Sun, 18 Feb 2007 17:16:34 +1100 Subject: [AccessD] OT Could not save this until Friday References: <0JDN002NZ6TCUTZ1@l-daemon> Message-ID: <000c01c75324$578ec190$6401a8c0@office> pure gold..... Kath ----- Original Message ----- From: Jim Lawrence To: 'Access Developers discussion and problem solving' Sent: Sunday, February 18, 2007 3:53 PM Subject: [AccessD] OT Could not save this until Friday OT This is either a late Friday or an early Friday... Hi All: Training is always fun: http://www.youtube.com/watch?v=eRjVeRbhtRU Regards Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mmattys at rochester.rr.com Sun Feb 18 05:50:22 2007 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Sun, 18 Feb 2007 06:50:22 -0500 Subject: [AccessD] Missing references References: <000401c752a0$c59d8bf0$657aa8c0@m6805> Message-ID: <002701c75352$f9a5e110$0202a8c0@default> Er ... I haven't read Code Complete but ... Isn't it the case that the declarations and type-defs of the Windows API are what is being cut and pasted because there are so many that don't apply to the project at hand? That there is no way to compile or run the code unless and until it conforms to the Windows 'framework?' Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "JWColby" To: "'Access Developers discussion and problem solving'" Sent: Saturday, February 17, 2007 9:34 AM Subject: Re: [AccessD] Missing references > The whole point of reusable code is NOT to cut and paste, so to say I am > unimpressed with his logic would be an understatement. > > I have a function. Cool function, 100 lines of code. Statistics tell us > that every 20 lines of code there is a bug. 5 bugs in that code. I now > cut > and paste that code 47 different places. I now fix ONE bug.... I now > have > to FIND (where did I use that again?) and fix 47 different places, to fix > one bug. > > Understand that I use my framework for EVERY project I do. Thus I would > not > only have to search THIS project but every other project. > > Oh yea, I am a HUGE fan of cut and paste. I also LOVE to be stretched on > the rack, flogged with a whip, waterboarded by the CIA and all the other > lovely means of torture man can conceive of. > > However if you like self flagellation I urge you to cut and paste. It > does > have one plus though, job security fixing all your bugs. Until the boss > discovers I only have to fix bugs in ONE place and then I will have your > job. Not that I WANT your job, having to find and replace all that cut > and > pasted code. > > CUT AND PASTE? Steve MUST be my hero. > > NOT. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > artful at rogers.com > Sent: Saturday, February 17, 2007 8:38 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Missing references > > The MS folks seem to have moved to this convention largely due to the work > of Steve McConnell (Code Complete), where he argues that copying and > pasting > code is much easier when you don't have to hunt around for the > declarations. > > > A. > > > > ----- Original Message ---- > From: Stuart McLachlan > To: Access Developers discussion and problem solving > > Sent: Friday, February 16, 2007 7:08:16 PM > Subject: Re: [AccessD] Missing references > > > On 16 Feb 2007 at 10:39, JWColby wrote: > >> Actually dimensioning a variable of any kind down in the middle of >> code is considered bad practice anyway. > > It used to be. There seems to be a growing trend towards > "decentralisation" > rather than "consolidation" of declarations. > > Now we have "Block Scoped variables" in VB.Net which *have* to be > declared > in the middle of code and many MS code examples now declare all variables > immediately before first use. > > Anyone for another round of Bound/Unbound or Surrogate/Natural et al which > we're at it? :-) > > > > > > -- > 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 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sun Feb 18 07:07:02 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Sun, 18 Feb 2007 08:07:02 -0500 Subject: [AccessD] Missing references In-Reply-To: Message-ID: <000801c7535d$ae8600b0$6c7aa8c0@m6805> I don't think you have ever mentioned what reference was missing? John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Sunday, February 18, 2007 1:01 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Missing references Hey Bryan, Moved app to new machine...and had to goto TOOLS---REFERENCES...and to correct missing references...trying to avoid this step for end users. This I got it with some code from Gustave. Thanks, Mark A. Matte >From: "Bryan Carbonnell" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Missing references >Date: Fri, 16 Feb 2007 20:11:29 -0500 > >On 2/15/07, Mark A Matte wrote: > > > I'm not referencing any other app or docs...I was referring to when > > you >are > > in a module and goto TOOLS---REFERENCES...and there is something > > missing >or > > incorrect. > > > > Is binding relevant at this point? If not...back to the original > > question:...how to handle the 'missing'??? > >Late to the party again. :( > >If you aren't referencing any other app, they why are you concerned >about missing refs? > >-- >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 _________________________________________________________________ With tax season right around the corner, make sure to follow these few simple tips. http://articles.moneycentral.msn.com/Taxes/PreparationTips/PreparationTips.a spx?icid=HMFebtagline -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sun Feb 18 07:16:16 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Sun, 18 Feb 2007 08:16:16 -0500 Subject: [AccessD] Missing references In-Reply-To: <002701c75352$f9a5e110$0202a8c0@default> Message-ID: <000901c7535e$f8d5f070$6c7aa8c0@m6805> LOL, I haven't read it either. However CodeLib and the like are about having code that is available to "paste" in to your project. I suppose that as long as you are just pasting it into your library module so that it is available in only one place, then no harm done. Cutting and pasting code throughout a project is just verboten. In any event, the implication here: > The MS folks seem to have moved to this convention largely due to the work of Steve McConnell (Code Complete), where he argues that copying and > pasting code is much easier when you don't have to hunt around for the declarations. Is that cutting and pasting is an everyday occurrence, and by inference that it is a good thing to do. In which case, it would be much better for the software industry if we simply had the CIA render him off to Egypt or somewhere where he could come to understand the effects of torture and perhaps make an informed decision not to do that anymore. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys Sent: Sunday, February 18, 2007 6:50 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing references Er ... I haven't read Code Complete but ... Isn't it the case that the declarations and type-defs of the Windows API are what is being cut and pasted because there are so many that don't apply to the project at hand? That there is no way to compile or run the code unless and until it conforms to the Windows 'framework?' Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "JWColby" To: "'Access Developers discussion and problem solving'" Sent: Saturday, February 17, 2007 9:34 AM Subject: Re: [AccessD] Missing references > The whole point of reusable code is NOT to cut and paste, so to say I am > unimpressed with his logic would be an understatement. > > I have a function. Cool function, 100 lines of code. Statistics tell us > that every 20 lines of code there is a bug. 5 bugs in that code. I now > cut > and paste that code 47 different places. I now fix ONE bug.... I now > have > to FIND (where did I use that again?) and fix 47 different places, to fix > one bug. > > Understand that I use my framework for EVERY project I do. Thus I would > not > only have to search THIS project but every other project. > > Oh yea, I am a HUGE fan of cut and paste. I also LOVE to be stretched on > the rack, flogged with a whip, waterboarded by the CIA and all the other > lovely means of torture man can conceive of. > > However if you like self flagellation I urge you to cut and paste. It > does > have one plus though, job security fixing all your bugs. Until the boss > discovers I only have to fix bugs in ONE place and then I will have your > job. Not that I WANT your job, having to find and replace all that cut > and > pasted code. > > CUT AND PASTE? Steve MUST be my hero. > > NOT. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > artful at rogers.com > Sent: Saturday, February 17, 2007 8:38 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Missing references > > The MS folks seem to have moved to this convention largely due to the work > of Steve McConnell (Code Complete), where he argues that copying and > pasting > code is much easier when you don't have to hunt around for the > declarations. > > > A. > > > > ----- Original Message ---- > From: Stuart McLachlan > To: Access Developers discussion and problem solving > > Sent: Friday, February 16, 2007 7:08:16 PM > Subject: Re: [AccessD] Missing references > > > On 16 Feb 2007 at 10:39, JWColby wrote: > >> Actually dimensioning a variable of any kind down in the middle of >> code is considered bad practice anyway. > > It used to be. There seems to be a growing trend towards > "decentralisation" > rather than "consolidation" of declarations. > > Now we have "Block Scoped variables" in VB.Net which *have* to be > declared > in the middle of code and many MS code examples now declare all variables > immediately before first use. > > Anyone for another round of Bound/Unbound or Surrogate/Natural et al which > we're at it? :-) > > > > > > -- > 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 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 setel.com Sun Feb 18 18:12:37 2007 From: ssharkins at setel.com (Susan Harkins) Date: Sun, 18 Feb 2007 19:12:37 -0500 Subject: [AccessD] Value verses OldValue Message-ID: <000001c753ba$aaadfc60$7bb62ad1@SUSANONE> I ran into something interesting with the following expression: If ctl.Value <> ctl.OldValue Then It appears that unless you've changed the value, ctl.Value is empty. If there's been no change, shouldn't Value and OldValue been the same? Why is Value empty? This is in a form's Before Update event, which might matter. Susan H. From rockysmolin at bchacc.com Sun Feb 18 20:09:23 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Sun, 18 Feb 2007 18:09:23 -0800 Subject: [AccessD] OT: Rocky On The Radio Message-ID: <00b101c753ca$f9640790$0201a8c0@HAL9005> What's more exciting than looking at manufacturing software? Why, listening to someone talk about it! Now you get a chance to do just that. I was interviewed on CRM Talk Radio (internet based talk radio show) a few days ago about manufacturing systems and E-Z-MRP. You can hear it here: http://www.wsradio.com/internet-talk-radio.cfm/shows/The-CRM-Talk-Radio-Show .html Unless you have a life. Rocky From kp at sdsonline.net Sun Feb 18 21:33:02 2007 From: kp at sdsonline.net (Kath Pelletti) Date: Mon, 19 Feb 2007 14:33:02 +1100 Subject: [AccessD] OT: Rocky On The Radio References: <00b101c753ca$f9640790$0201a8c0@HAL9005> Message-ID: <003801c753d6$a9a7ed50$6401a8c0@office> Great to hear your 'real' voice, Rocky! Kath ----- Original Message ----- From: Rocky Smolin at Beach Access Software To: 'Access Developers discussion and problem solving' Sent: Monday, February 19, 2007 1:09 PM Subject: [AccessD] OT: Rocky On The Radio What's more exciting than looking at manufacturing software? Why, listening to someone talk about it! Now you get a chance to do just that. I was interviewed on CRM Talk Radio (internet based talk radio show) a few days ago about manufacturing systems and E-Z-MRP. You can hear it here: http://www.wsradio.com/internet-talk-radio.cfm/shows/The-CRM-Talk-Radio-Show .html Unless you have a life. Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Mon Feb 19 02:11:36 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 19 Feb 2007 09:11:36 +0100 Subject: [AccessD] Value verses OldValue Message-ID: Hi Susan You mean OldValue is empty, right? As far as I know it's empty until an update has happened. /gustav >>> ssharkins at setel.com 19-02-2007 01:12:37 >>> I ran into something interesting with the following expression: If ctl.Value <> ctl.OldValue Then It appears that unless you've changed the value, ctl.Value is empty. If there's been no change, shouldn't Value and OldValue been the same? Why is Value empty? This is in a form's Before Update event, which might matter. Susan H. From jimdettman at verizon.net Mon Feb 19 07:41:07 2007 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 19 Feb 2007 08:41:07 -0500 Subject: [AccessD] Missing references In-Reply-To: <0JDK0047CMCYICV0@l-daemon> References: <001e01c751fb$d5a59bf0$8abea8c0@XPS> <0JDK0047CMCYICV0@l-daemon> Message-ID: <044801c7542b$9c406020$8abea8c0@XPS> Jim, <> How so? If your dimming something as an object, you using late binding. I don't know of anyway of changing from late to early without re-compiling the program. And if you use late binding, your carrying the performance hit all the time. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Friday, February 16, 2007 2:36 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references Hi Jim: The main reason for using late-binding is that an application developer does not know what version of Word or Excel is on the clients' computer until the application is run. By checking the local references a program can then adapt to its' current surroundings; but this requires a late-binding design. Just a comment Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Friday, February 16, 2007 10:54 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references <> Pretty much yes. As I said to John, it depends on the mix of operations that you are performing. But in all cases it is faster without a doubt. It's just a matter of how much. From past timings that I did, I found as a general rule of thumb that it was a 10% - 15% overall difference in speed. <> I did this years ago and have always used early binding as a result whenever possible. If I use late binding, I put it in the spec and note that it is a performance drain. So I'll use late if I have to, but I don't like it Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Friday, February 16, 2007 10:21 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing references Is this verifiable, Jim? I haven't ever used late-binding, which I admit has caused various installation issues, but I am curious. Is this a thumbnail calculation or can you supply concrete arithmetical evidence? A. ----- Original Message ---- From: Jim Dettman To: Access Developers discussion and problem solving Sent: Friday, February 16, 2007 9:49:44 AM Subject: Re: [AccessD] Missing references Bryan, One thing you didn't mention is the performance hit; late binding costs you 10-15% for every operation perform. Jim. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Mon Feb 19 07:55:14 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 19 Feb 2007 14:55:14 +0100 Subject: [AccessD] Missing references Message-ID: Hi Jim et al Also, don't forget that by verifying the references at launch, you have the option to catch and resolve possible errors before the user at some later point - while using your app - gets a bad experience with annoying error messages he/she can't handle at the spot anyway. /gustav >>> jimdettman at verizon.net 19-02-2007 14:41:07 >>> Jim, <> How so? If your dimming something as an object, you using late binding. I don't know of anyway of changing from late to early without re-compiling the program. And if you use late binding, your carrying the performance hit all the time. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Friday, February 16, 2007 2:36 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references Hi Jim: The main reason for using late-binding is that an application developer does not know what version of Word or Excel is on the clients' computer until the application is run. By checking the local references a program can then adapt to its' current surroundings; but this requires a late-binding design. Just a comment Jim From jwcolby at colbyconsulting.com Mon Feb 19 08:01:53 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Mon, 19 Feb 2007 09:01:53 -0500 Subject: [AccessD] Missing references In-Reply-To: <044801c7542b$9c406020$8abea8c0@XPS> Message-ID: <000901c7542e$82d22f30$657aa8c0@m6805> I think Jim Lawrence meant use / not use outlook, use / not use Excel etc. when he said "adapt to it's surroundings". You are correct, you cannot go from late to early binding or v.v. at run time. I THINK it is possible to perform reference checking with early binding, you just have to be careful not to use any syntax stored out in a lib (only built-in vba commands allowed) because as soon as the first reference to a lib occurs then the (missing) is discovered and an error occurs. I just punt. If the client has a unified install - all the same version of office everywhere, then I go with that version and use early reference. Even this has been known to bite me when the user upgraded (without informing me of course!!!) and uninstalled the old version. Otherwise I just use late binding. I have learned to bracket ALL object dim / set statements with the conditional compilation stuff and so can switch from early to late by changing a single conditional compilation constant. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, February 19, 2007 8:41 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references Jim, <> How so? If your dimming something as an object, you using late binding. I don't know of anyway of changing from late to early without re-compiling the program. And if you use late binding, your carrying the performance hit all the time. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Friday, February 16, 2007 2:36 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references Hi Jim: The main reason for using late-binding is that an application developer does not know what version of Word or Excel is on the clients' computer until the application is run. By checking the local references a program can then adapt to its' current surroundings; but this requires a late-binding design. Just a comment Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Friday, February 16, 2007 10:54 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references <> Pretty much yes. As I said to John, it depends on the mix of operations that you are performing. But in all cases it is faster without a doubt. It's just a matter of how much. From past timings that I did, I found as a general rule of thumb that it was a 10% - 15% overall difference in speed. <> I did this years ago and have always used early binding as a result whenever possible. If I use late binding, I put it in the spec and note that it is a performance drain. So I'll use late if I have to, but I don't like it Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Friday, February 16, 2007 10:21 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing references Is this verifiable, Jim? I haven't ever used late-binding, which I admit has caused various installation issues, but I am curious. Is this a thumbnail calculation or can you supply concrete arithmetical evidence? A. ----- Original Message ---- From: Jim Dettman To: Access Developers discussion and problem solving Sent: Friday, February 16, 2007 9:49:44 AM Subject: Re: [AccessD] Missing references Bryan, One thing you didn't mention is the performance hit; late binding costs you 10-15% for every operation perform. Jim. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Mon Feb 19 08:25:33 2007 From: artful at rogers.com (artful at rogers.com) Date: Mon, 19 Feb 2007 06:25:33 -0800 (PST) Subject: [AccessD] Missing references Message-ID: <484926.92918.qm@web88213.mail.re2.yahoo.com> You may be right, but it flies in the face of what little I know about Access. I was under the impression that code sitting in the MDB would be loaded on first call and thereafter reside in memory. Is that not true when you do something like create a Word object? Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Jim Dettman To: Access Developers discussion and problem solving Sent: Monday, February 19, 2007 8:41:07 AM Subject: Re: [AccessD] Missing references Jim, <> How so? If your dimming something as an object, you using late binding. I don't know of anyway of changing from late to early without re-compiling the program. And if you use late binding, your carrying the performance hit all the time. Jim. From jwcolby at colbyconsulting.com Mon Feb 19 09:06:17 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Mon, 19 Feb 2007 10:06:17 -0500 Subject: [AccessD] Missing references In-Reply-To: <484926.92918.qm@web88213.mail.re2.yahoo.com> Message-ID: <000d01c75437$8204de00$657aa8c0@m6805> As I attempted to explain in my earlier discourse on binding, using an "as object" syntax is late binding. The IMPACT of late binding is not as simple as "the code is loaded" but rather is determined by a myriad of things, but you can essentially boil it down to "how often is the set statement encountered". Early binding performs the LOOKUP of all the data about the object at COMPILE TIME. Thus there is NO IMPACT at run time, all the lookup of the object information has already been done. Late binding performs the LOOKUP of all the data about the object at RUN TIME, but more specifically at the instant that the SET statement is executed. Late binding will ALWAYS have some impact (assuming that the set statement is run) because the lookup must occur. I make the disclaimer "assuming the set statement is run" simply because, for example. I could have an EXCEL class or module in my project. It matters not whether it is in the FE or out in a library, what matter is, whether any code ever tries to ACTUALLY EXECUTE a SET STATEMENT to set a variable dimensioned as object. Thus one of my users may use the application for days and weeks and never experience the impact of late binding because his job never entails using that EXCEL code. Another user may experience the impact of late binding all day every day because his job requires using the code that executes the set statement, i.e. he uses Excel and I am late binding excel objects. NOW... How severe is the impact for that user? It may be very little or it may be extreme. What determines the impact to this user is HOW OFTEN the set statement is executed, how LONG does it take to perform the binding, and what % of the total code execution time is taken up by the binding. Let's take an example. The code does nothing more than load excel and open a worksheet. That would be at least two objects late bound, the Excel Application, and the worksheet. The time to bind the object that holds the pointer to Excel is completely DWARFED by the time to actually load Excel off the disk. We are talking a few milliseconds to do the binding and probably seconds to load excel. So the user would never even feel the difference between early and late binding. The same goes for loading the spreadsheet itself. Again, the binding itself takes a few milliseconds, but loading the worksheet would take a second or two. The user would never even feel the difference. Take another example however. This user has to load a spreadsheet, and the code is going to load and manipulate 10 thousand cells, placing data, formatting it, setting up formulas etc. NOW the time to reference each cell may take a few milliseconds but the time to actually manipulate the cells might well be sub-millisecond. So late binding in this case could slow down the app by orders of magnitude. It could do the whole thing in a second if early bound but take 10 seconds, 100 seconds etc if late bound. The DIFFERENCE is simply that the time to do the binding is occurring thousands or tens of thousands of times as the program manipulates the contents of the spreadsheet. Suddenly milliseconds start to add up. As you can see, this is a complex subject and one where the answer "is late binding costing me much" changes radically depending on what the code is doing. And it really has nothing to do with when it is loaded and whether it is sitting in memory. It is all about how many times the set statements execute, and how much of the total time those set statements use. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Monday, February 19, 2007 9:26 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing references You may be right, but it flies in the face of what little I know about Access. I was under the impression that code sitting in the MDB would be loaded on first call and thereafter reside in memory. Is that not true when you do something like create a Word object? Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Jim Dettman To: Access Developers discussion and problem solving Sent: Monday, February 19, 2007 8:41:07 AM Subject: Re: [AccessD] Missing references Jim, <> How so? If your dimming something as an object, you using late binding. I don't know of anyway of changing from late to early without re-compiling the program. And if you use late binding, your carrying the performance hit all the time. Jim. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at verizon.net Mon Feb 19 09:18:29 2007 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 19 Feb 2007 10:18:29 -0500 Subject: [AccessD] Missing references In-Reply-To: <000d01c75437$8204de00$657aa8c0@m6805> References: <484926.92918.qm@web88213.mail.re2.yahoo.com> <000d01c75437$8204de00$657aa8c0@m6805> Message-ID: <001201c75439$369b3980$8abea8c0@XPS> John, <> It's worse then that; it's a lookup at every property or method call to the object. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Monday, February 19, 2007 10:06 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references As I attempted to explain in my earlier discourse on binding, using an "as object" syntax is late binding. The IMPACT of late binding is not as simple as "the code is loaded" but rather is determined by a myriad of things, but you can essentially boil it down to "how often is the set statement encountered". Early binding performs the LOOKUP of all the data about the object at COMPILE TIME. Thus there is NO IMPACT at run time, all the lookup of the object information has already been done. Late binding performs the LOOKUP of all the data about the object at RUN TIME, but more specifically at the instant that the SET statement is executed. Late binding will ALWAYS have some impact (assuming that the set statement is run) because the lookup must occur. I make the disclaimer "assuming the set statement is run" simply because, for example. I could have an EXCEL class or module in my project. It matters not whether it is in the FE or out in a library, what matter is, whether any code ever tries to ACTUALLY EXECUTE a SET STATEMENT to set a variable dimensioned as object. Thus one of my users may use the application for days and weeks and never experience the impact of late binding because his job never entails using that EXCEL code. Another user may experience the impact of late binding all day every day because his job requires using the code that executes the set statement, i.e. he uses Excel and I am late binding excel objects. NOW... How severe is the impact for that user? It may be very little or it may be extreme. What determines the impact to this user is HOW OFTEN the set statement is executed, how LONG does it take to perform the binding, and what % of the total code execution time is taken up by the binding. Let's take an example. The code does nothing more than load excel and open a worksheet. That would be at least two objects late bound, the Excel Application, and the worksheet. The time to bind the object that holds the pointer to Excel is completely DWARFED by the time to actually load Excel off the disk. We are talking a few milliseconds to do the binding and probably seconds to load excel. So the user would never even feel the difference between early and late binding. The same goes for loading the spreadsheet itself. Again, the binding itself takes a few milliseconds, but loading the worksheet would take a second or two. The user would never even feel the difference. Take another example however. This user has to load a spreadsheet, and the code is going to load and manipulate 10 thousand cells, placing data, formatting it, setting up formulas etc. NOW the time to reference each cell may take a few milliseconds but the time to actually manipulate the cells might well be sub-millisecond. So late binding in this case could slow down the app by orders of magnitude. It could do the whole thing in a second if early bound but take 10 seconds, 100 seconds etc if late bound. The DIFFERENCE is simply that the time to do the binding is occurring thousands or tens of thousands of times as the program manipulates the contents of the spreadsheet. Suddenly milliseconds start to add up. As you can see, this is a complex subject and one where the answer "is late binding costing me much" changes radically depending on what the code is doing. And it really has nothing to do with when it is loaded and whether it is sitting in memory. It is all about how many times the set statements execute, and how much of the total time those set statements use. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Monday, February 19, 2007 9:26 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing references You may be right, but it flies in the face of what little I know about Access. I was under the impression that code sitting in the MDB would be loaded on first call and thereafter reside in memory. Is that not true when you do something like create a Word object? Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Jim Dettman To: Access Developers discussion and problem solving Sent: Monday, February 19, 2007 8:41:07 AM Subject: Re: [AccessD] Missing references Jim, <> How so? If your dimming something as an object, you using late binding. I don't know of anyway of changing from late to early without re-compiling the program. And if you use late binding, your carrying the performance hit all the time. Jim. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Mon Feb 19 09:35:37 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 19 Feb 2007 15:35:37 +0000 Subject: [AccessD] Missing references In-Reply-To: <000801c7535d$ae8600b0$6c7aa8c0@m6805> Message-ID: John, Moved app to new machine...and had to goto TOOLS---REFERENCES...and to correct missing references...trying to avoid this step for end users. Since I was asking in general about references...I didn't name one. In this case... the DAU reference was the problem. It was not missing...but once removed and replaced...everything worked as designed. This I got it with some code from Gustave. Thanks, Mark A. Matte >From: "JWColby" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] Missing references >Date: Sun, 18 Feb 2007 08:07:02 -0500 > >I don't think you have ever mentioned what reference was missing? > > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: Sunday, February 18, 2007 1:01 AM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Missing references > >Hey Bryan, > >Moved app to new machine...and had to goto TOOLS---REFERENCES...and to >correct missing references...trying to avoid this step for end users. > >This I got it with some code from Gustave. > >Thanks, > >Mark A. Matte > > > >From: "Bryan Carbonnell" > >Reply-To: Access Developers discussion and problem > >solving > >To: "Access Developers discussion and problem > >solving" > >Subject: Re: [AccessD] Missing references > >Date: Fri, 16 Feb 2007 20:11:29 -0500 > > > >On 2/15/07, Mark A Matte wrote: > > > > > I'm not referencing any other app or docs...I was referring to when > > > you > >are > > > in a module and goto TOOLS---REFERENCES...and there is something > > > missing > >or > > > incorrect. > > > > > > Is binding relevant at this point? If not...back to the original > > > question:...how to handle the 'missing'??? > > > >Late to the party again. :( > > > >If you aren't referencing any other app, they why are you concerned > >about missing refs? > > > >-- > >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 > >_________________________________________________________________ >With tax season right around the corner, make sure to follow these few >simple tips. >http://articles.moneycentral.msn.com/Taxes/PreparationTips/PreparationTips.a >spx?icid=HMFebtagline > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Play Flexicon: the crossword game that feeds your brain. PLAY now for FREE.? http://zone.msn.com/en/flexicon/default.htm?icid=flexicon_hmtagline From jwcolby at colbyconsulting.com Mon Feb 19 09:36:10 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Mon, 19 Feb 2007 10:36:10 -0500 Subject: [AccessD] Missing references In-Reply-To: <001201c75439$369b3980$8abea8c0@XPS> Message-ID: <000001c7543b$aea0b5c0$657aa8c0@m6805> Jim, > It's worse then that; it's a lookup at every property or method call to the object. I don't believe so. The set statement essentially loads all that stuff into memory and is a one time affair (per execution of the set statement). I think you are thinking of the syntax dim MyObject = NEW XXX In this case the dim and the set statement have been merged into one line of code and IIRC with this syntax you are correct. However if you break it out into a separate dim and set statement: Dim MyObj as object set MyOpject = ... Then the set statement permanently loads the object information for as long as the object stays in scope. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, February 19, 2007 10:18 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references John, <> It's worse then that; it's a lookup at every property or method call to the object. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Monday, February 19, 2007 10:06 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references As I attempted to explain in my earlier discourse on binding, using an "as object" syntax is late binding. The IMPACT of late binding is not as simple as "the code is loaded" but rather is determined by a myriad of things, but you can essentially boil it down to "how often is the set statement encountered". Early binding performs the LOOKUP of all the data about the object at COMPILE TIME. Thus there is NO IMPACT at run time, all the lookup of the object information has already been done. Late binding performs the LOOKUP of all the data about the object at RUN TIME, but more specifically at the instant that the SET statement is executed. Late binding will ALWAYS have some impact (assuming that the set statement is run) because the lookup must occur. I make the disclaimer "assuming the set statement is run" simply because, for example. I could have an EXCEL class or module in my project. It matters not whether it is in the FE or out in a library, what matter is, whether any code ever tries to ACTUALLY EXECUTE a SET STATEMENT to set a variable dimensioned as object. Thus one of my users may use the application for days and weeks and never experience the impact of late binding because his job never entails using that EXCEL code. Another user may experience the impact of late binding all day every day because his job requires using the code that executes the set statement, i.e. he uses Excel and I am late binding excel objects. NOW... How severe is the impact for that user? It may be very little or it may be extreme. What determines the impact to this user is HOW OFTEN the set statement is executed, how LONG does it take to perform the binding, and what % of the total code execution time is taken up by the binding. Let's take an example. The code does nothing more than load excel and open a worksheet. That would be at least two objects late bound, the Excel Application, and the worksheet. The time to bind the object that holds the pointer to Excel is completely DWARFED by the time to actually load Excel off the disk. We are talking a few milliseconds to do the binding and probably seconds to load excel. So the user would never even feel the difference between early and late binding. The same goes for loading the spreadsheet itself. Again, the binding itself takes a few milliseconds, but loading the worksheet would take a second or two. The user would never even feel the difference. Take another example however. This user has to load a spreadsheet, and the code is going to load and manipulate 10 thousand cells, placing data, formatting it, setting up formulas etc. NOW the time to reference each cell may take a few milliseconds but the time to actually manipulate the cells might well be sub-millisecond. So late binding in this case could slow down the app by orders of magnitude. It could do the whole thing in a second if early bound but take 10 seconds, 100 seconds etc if late bound. The DIFFERENCE is simply that the time to do the binding is occurring thousands or tens of thousands of times as the program manipulates the contents of the spreadsheet. Suddenly milliseconds start to add up. As you can see, this is a complex subject and one where the answer "is late binding costing me much" changes radically depending on what the code is doing. And it really has nothing to do with when it is loaded and whether it is sitting in memory. It is all about how many times the set statements execute, and how much of the total time those set statements use. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Monday, February 19, 2007 9:26 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing references You may be right, but it flies in the face of what little I know about Access. I was under the impression that code sitting in the MDB would be loaded on first call and thereafter reside in memory. Is that not true when you do something like create a Word object? Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Jim Dettman To: Access Developers discussion and problem solving Sent: Monday, February 19, 2007 8:41:07 AM Subject: Re: [AccessD] Missing references Jim, <> How so? If your dimming something as an object, you using late binding. I don't know of anyway of changing from late to early without re-compiling the program. And if you use late binding, your carrying the performance hit all the time. Jim. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Mon Feb 19 09:48:10 2007 From: wdhindman at dejpolsystems.com (William Hindman) Date: Mon, 19 Feb 2007 10:48:10 -0500 Subject: [AccessD] Missing references References: <000001c7543b$aea0b5c0$657aa8c0@m6805> Message-ID: <006701c7543d$5bb1ddb0$9258eb44@50NM721> ...give me a break, eh ...my head hurts ...too much information too early for a Monday morning :( William Hindman ----- Original Message ----- From: "JWColby" To: "'Access Developers discussion and problem solving'" Sent: Monday, February 19, 2007 10:36 AM Subject: Re: [AccessD] Missing references > Jim, > > >> It's worse then that; it's a lookup at every property or method call to > the object. > > I don't believe so. The set statement essentially loads all that stuff > into > memory and is a one time affair (per execution of the set statement). > > I think you are thinking of the syntax > > dim MyObject = NEW XXX > > In this case the dim and the set statement have been merged into one line > of > code and IIRC with this syntax you are correct. > > However if you break it out into a separate dim and set statement: > > Dim MyObj as object > set MyOpject = ... > > Then the set statement permanently loads the object information for as > long > as the object stays in scope. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman > Sent: Monday, February 19, 2007 10:18 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Missing references > > John, > > < TIME, but more specifically at the instant that the SET statement is > executed. >> > > It's worse then that; it's a lookup at every property or method call to > the object. > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby > Sent: Monday, February 19, 2007 10:06 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Missing references > > As I attempted to explain in my earlier discourse on binding, using an "as > object" syntax is late binding. The IMPACT of late binding is not as > simple > as "the code is loaded" but rather is determined by a myriad of things, > but > you can essentially boil it down to "how often is the set statement > encountered". > > Early binding performs the LOOKUP of all the data about the object at > COMPILE TIME. Thus there is NO IMPACT at run time, all the lookup of the > object information has already been done. > > Late binding performs the LOOKUP of all the data about the object at RUN > TIME, but more specifically at the instant that the SET statement is > executed. Late binding will ALWAYS have some impact (assuming that the > set > statement is run) because the lookup must occur. > > I make the disclaimer "assuming the set statement is run" simply because, > for example. I could have an EXCEL class or module in my project. It > matters not whether it is in the FE or out in a library, what matter is, > whether any code ever tries to ACTUALLY EXECUTE a SET STATEMENT to set a > variable dimensioned as object. Thus one of my users may use the > application for days and weeks and never experience the impact of late > binding because his job never entails using that EXCEL code. Another user > may experience the impact of late binding all day every day because his > job > requires using the code that executes the set statement, i.e. he uses > Excel > and I am late binding excel objects. > > NOW... How severe is the impact for that user? It may be very little or > it > may be extreme. What determines the impact to this user is HOW OFTEN the > set statement is executed, how LONG does it take to perform the binding, > and > what % of the total code execution time is taken up by the binding. > > Let's take an example. The code does nothing more than load excel and > open > a worksheet. That would be at least two objects late bound, the Excel > Application, and the worksheet. The time to bind the object that holds > the > pointer to Excel is completely DWARFED by the time to actually load Excel > off the disk. We are talking a few milliseconds to do the binding and > probably seconds to load excel. So the user would never even feel the > difference between early and late binding. The same goes for loading the > spreadsheet itself. Again, the binding itself takes a few milliseconds, > but > loading the worksheet would take a second or two. The user would never > even > feel the difference. > > Take another example however. This user has to load a spreadsheet, and > the > code is going to load and manipulate 10 thousand cells, placing data, > formatting it, setting up formulas etc. NOW the time to reference each > cell > may take a few milliseconds but the time to actually manipulate the cells > might well be sub-millisecond. So late binding in this case could slow > down > the app by orders of magnitude. It could do the whole thing in a second > if > early bound but take 10 seconds, 100 seconds etc if late bound. > > The DIFFERENCE is simply that the time to do the binding is occurring > thousands or tens of thousands of times as the program manipulates the > contents of the spreadsheet. Suddenly milliseconds start to add up. > > As you can see, this is a complex subject and one where the answer "is > late > binding costing me much" changes radically depending on what the code is > doing. > > And it really has nothing to do with when it is loaded and whether it is > sitting in memory. It is all about how many times the set statements > execute, and how much of the total time those set statements use. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > artful at rogers.com > Sent: Monday, February 19, 2007 9:26 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Missing references > > You may be right, but it flies in the face of what little I know about > Access. I was under the impression that code sitting in the MDB would be > loaded on first call and thereafter reside in memory. Is that not true > when > you do something like create a Word object? > > > Arthur Fuller > Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization > www.artfulsoftware.com > > > > > ----- Original Message ---- > From: Jim Dettman > To: Access Developers discussion and problem solving > > Sent: Monday, February 19, 2007 8:41:07 AM > Subject: Re: [AccessD] Missing references > > > Jim, > > < current > surroundings; but this requires a late-binding design.>> > > How so? If your dimming something as an object, you using late binding. > I don't know of anyway of changing from late to early without re-compiling > the program. And if you use late binding, your carrying the performance > hit all the time. > > Jim. > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From hollisvj at pgdp.usec.com Mon Feb 19 10:11:36 2007 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Mon, 19 Feb 2007 10:11:36 -0600 Subject: [AccessD] Multiple Tables Message-ID: <703BDA18A87DFA4CB265A86F42E4178D01E764C3@c2k3exchange.pgdp.corp.usec.com> I always have trouble with this. I have to set up a form for updating 3 different tables, Type, Model, and Manufacturer. tbl_Manufacturer tbl_Model tbl_type tbl_Main (this would be a table that contains all the information) Would I put ModelID, TypeID, etc into this table? So do I create another table that joins them together? At first I put the fields all as ModelID, TypeID in the main table & added each field to the main form & when they selected the Model I used a Select query to update the matching Type & Manuf. I need to create a form where the user can update the fields across for each Model & complete the Type and Manuf. If they are 3 separate tables how do they join together? How do they join to the main table? Ex: Model: F, Type: Truck, Manuf: Ford Model: Silverado, Type: Truck, Manuf: Chevy Virginia From artful at rogers.com Mon Feb 19 10:34:09 2007 From: artful at rogers.com (artful at rogers.com) Date: Mon, 19 Feb 2007 08:34:09 -0800 (PST) Subject: [AccessD] Multiple Tables Message-ID: <65569.94874.qm@web88202.mail.re2.yahoo.com> I don't see the usefulness of tblMain. I would model this: tbl_Manufacturer (PK ManufacturerID, ...) tbl_Model (PK ModelID, FK ManufacturerID, FK TypeID, ...) tbl_Type (PK TypeID, ...) As for UI, there are dozens of ways you could go. You could present a main form with a subform for models. Code a double-click in the subform to invoke a data-entry style form to make it easier to update. You could create a pair of listboxes on the main form, one for Manufacturer and the other for Model. A single-click on the Manufacturer list refreshes the Model list. A double-click on either invokes the data-entry form. Finally, I think the sample data you presented is inside out. You ought to begin with the manufacturer, then look at the models, and finally the type. (Admittedly, it might go Type first and then Model. I can see that, in some situations. Ford makes lots of trucks, for example, so the Type be be higher in the order of things than the Model.) hth, Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: "Hollis, Virginia" To: accessD at databaseadvisors.com Sent: Monday, February 19, 2007 11:11:36 AM Subject: [AccessD] Multiple Tables I always have trouble with this. I have to set up a form for updating 3 different tables, Type, Model, and Manufacturer. tbl_Manufacturer tbl_Model tbl_type tbl_Main (this would be a table that contains all the information) Would I put ModelID, TypeID, etc into this table? So do I create another table that joins them together? At first I put the fields all as ModelID, TypeID in the main table & added each field to the main form & when they selected the Model I used a Select query to update the matching Type & Manuf. I need to create a form where the user can update the fields across for each Model & complete the Type and Manuf. If they are 3 separate tables how do they join together? How do they join to the main table? Ex: Model: F, Type: Truck, Manuf: Ford Model: Silverado, Type: Truck, Manuf: Chevy Virginia -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From hollisvj at pgdp.usec.com Mon Feb 19 10:50:19 2007 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Mon, 19 Feb 2007 10:50:19 -0600 Subject: [AccessD] Multiple Tables Message-ID: <703BDA18A87DFA4CB265A86F42E4178D01E764D1@c2k3exchange.pgdp.corp.usec.com> Tbl_Main is just where most of the other fields are, the data. Anyway.... So would tbl_Model have all the ID fields (FKs?) from each of the other tables and a description of the Model? All the other tables would just have their own PK & description? ************************ I don't see the usefulness of tblMain. I would model this: tbl_Manufacturer (PK ManufacturerID, ...) tbl_Model (PK ModelID, FK ManufacturerID, FK TypeID, ...) tbl_Type (PK TypeID, ...) As for UI, there are dozens of ways you could go. You could present a main form with a subform for models. Code a double-click in the subform to invoke a data-entry style form to make it easier to update. You could create a pair of listboxes on the main form, one for Manufacturer and the other for Model. A single-click on the Manufacturer list refreshes the Model list. A double-click on either invokes the data-entry form. Finally, I think the sample data you presented is inside out. You ought to begin with the manufacturer, then look at the models, and finally the type. (Admittedly, it might go Type first and then Model. I can see that, in some situations. Ford makes lots of trucks, for example, so the Type be be higher in the order of things than the Model.) hth, Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization From jimdettman at verizon.net Mon Feb 19 10:51:25 2007 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 19 Feb 2007 11:51:25 -0500 Subject: [AccessD] Missing references In-Reply-To: <000001c7543b$aea0b5c0$657aa8c0@m6805> References: <001201c75439$369b3980$8abea8c0@XPS> <000001c7543b$aea0b5c0$657aa8c0@m6805> Message-ID: <004201c75446$31dd0240$8abea8c0@XPS> Jim, From what I've been told/read in the past, the set statement merely gives you a pointer to the object and its address lookup table. With late binding, VBA does not know the address of the property/method call before hand, so it must execute a GetIDsOfNames and Invoke call with each property/method it encounters at runtime. With early binding, it already knows the address, so it just needs the invoke call. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Monday, February 19, 2007 10:36 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references Jim, > It's worse then that; it's a lookup at every property or method call to the object. I don't believe so. The set statement essentially loads all that stuff into memory and is a one time affair (per execution of the set statement). I think you are thinking of the syntax dim MyObject = NEW XXX In this case the dim and the set statement have been merged into one line of code and IIRC with this syntax you are correct. However if you break it out into a separate dim and set statement: Dim MyObj as object set MyOpject = ... Then the set statement permanently loads the object information for as long as the object stays in scope. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, February 19, 2007 10:18 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references John, <> It's worse then that; it's a lookup at every property or method call to the object. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Monday, February 19, 2007 10:06 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references As I attempted to explain in my earlier discourse on binding, using an "as object" syntax is late binding. The IMPACT of late binding is not as simple as "the code is loaded" but rather is determined by a myriad of things, but you can essentially boil it down to "how often is the set statement encountered". Early binding performs the LOOKUP of all the data about the object at COMPILE TIME. Thus there is NO IMPACT at run time, all the lookup of the object information has already been done. Late binding performs the LOOKUP of all the data about the object at RUN TIME, but more specifically at the instant that the SET statement is executed. Late binding will ALWAYS have some impact (assuming that the set statement is run) because the lookup must occur. I make the disclaimer "assuming the set statement is run" simply because, for example. I could have an EXCEL class or module in my project. It matters not whether it is in the FE or out in a library, what matter is, whether any code ever tries to ACTUALLY EXECUTE a SET STATEMENT to set a variable dimensioned as object. Thus one of my users may use the application for days and weeks and never experience the impact of late binding because his job never entails using that EXCEL code. Another user may experience the impact of late binding all day every day because his job requires using the code that executes the set statement, i.e. he uses Excel and I am late binding excel objects. NOW... How severe is the impact for that user? It may be very little or it may be extreme. What determines the impact to this user is HOW OFTEN the set statement is executed, how LONG does it take to perform the binding, and what % of the total code execution time is taken up by the binding. Let's take an example. The code does nothing more than load excel and open a worksheet. That would be at least two objects late bound, the Excel Application, and the worksheet. The time to bind the object that holds the pointer to Excel is completely DWARFED by the time to actually load Excel off the disk. We are talking a few milliseconds to do the binding and probably seconds to load excel. So the user would never even feel the difference between early and late binding. The same goes for loading the spreadsheet itself. Again, the binding itself takes a few milliseconds, but loading the worksheet would take a second or two. The user would never even feel the difference. Take another example however. This user has to load a spreadsheet, and the code is going to load and manipulate 10 thousand cells, placing data, formatting it, setting up formulas etc. NOW the time to reference each cell may take a few milliseconds but the time to actually manipulate the cells might well be sub-millisecond. So late binding in this case could slow down the app by orders of magnitude. It could do the whole thing in a second if early bound but take 10 seconds, 100 seconds etc if late bound. The DIFFERENCE is simply that the time to do the binding is occurring thousands or tens of thousands of times as the program manipulates the contents of the spreadsheet. Suddenly milliseconds start to add up. As you can see, this is a complex subject and one where the answer "is late binding costing me much" changes radically depending on what the code is doing. And it really has nothing to do with when it is loaded and whether it is sitting in memory. It is all about how many times the set statements execute, and how much of the total time those set statements use. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Monday, February 19, 2007 9:26 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing references You may be right, but it flies in the face of what little I know about Access. I was under the impression that code sitting in the MDB would be loaded on first call and thereafter reside in memory. Is that not true when you do something like create a Word object? Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Jim Dettman To: Access Developers discussion and problem solving Sent: Monday, February 19, 2007 8:41:07 AM Subject: Re: [AccessD] Missing references Jim, <> How so? If your dimming something as an object, you using late binding. I don't know of anyway of changing from late to early without re-compiling the program. And if you use late binding, your carrying the performance hit all the time. Jim. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Mon Feb 19 11:00:04 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 19 Feb 2007 11:00:04 -0600 Subject: [AccessD] WAY OT: Create a network Connection In-Reply-To: <20070215095635.UFEY6229.oaamta01ps.mx.bigpond.com@DENZILLAP> Message-ID: Ya, you can shell out and start a VPN. I'll go look to find the command for it... rasdial nameofyourvpn username password /domain:domainname to disconnect: rasdial nameofyourvpn /disconnect There are 'ShellWait' functions out there, so that your code can pause until the vpn connection is made. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Thursday, February 15, 2007 3:57 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] WAY OT: Create a network Connection Hi All Anyone know how to create a VPN connection in code Or how to copy one from my "My Network" connections to the "My Network Connections" on another person's PC I can make and copy the shortcut - but I want to copy the actual VPN Network connection itself - can it be done? So that I can just drop it into their "My Network connections" (need help with that too - anyone know what that folder is called) :-) Any suggestions?? This is way OT so please respond off list Thanks See ya DD -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Feb 19 11:02:19 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Mon, 19 Feb 2007 12:02:19 -0500 Subject: [AccessD] Missing references In-Reply-To: <004201c75446$31dd0240$8abea8c0@XPS> Message-ID: <000a01c75447$b7761990$657aa8c0@m6805> Jim, >so it must execute a GetIDsOfNames and Invoke call with each property/method it encounters at runtime. This makes no sense. The SET statement does the lookup and gets the pointer. Every reference to any property / method etc AFTER the set statement does not need to do that lookup again because the set statement did it already. AFAIK, late binding and early binding do EXACTLY the same thing, they bind a dimensioned variable to the object being referenced. Once that binding occurs there is no further penalty. The thing to keep in mind though is that as soon as the object variable loses scope, the binding is lost and must be re-established if used again. Can you point us to anything that says that late bound objects continue to incur a penalty AFTER the set statement? John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, February 19, 2007 11:51 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references Jim, From what I've been told/read in the past, the set statement merely gives you a pointer to the object and its address lookup table. With late binding, VBA does not know the address of the property/method call before hand, so it must execute a GetIDsOfNames and Invoke call with each property/method it encounters at runtime. With early binding, it already knows the address, so it just needs the invoke call. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Monday, February 19, 2007 10:36 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references Jim, > It's worse then that; it's a lookup at every property or method call > to the object. I don't believe so. The set statement essentially loads all that stuff into memory and is a one time affair (per execution of the set statement). I think you are thinking of the syntax dim MyObject = NEW XXX In this case the dim and the set statement have been merged into one line of code and IIRC with this syntax you are correct. However if you break it out into a separate dim and set statement: Dim MyObj as object set MyOpject = ... Then the set statement permanently loads the object information for as long as the object stays in scope. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, February 19, 2007 10:18 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references John, <> It's worse then that; it's a lookup at every property or method call to the object. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Monday, February 19, 2007 10:06 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references As I attempted to explain in my earlier discourse on binding, using an "as object" syntax is late binding. The IMPACT of late binding is not as simple as "the code is loaded" but rather is determined by a myriad of things, but you can essentially boil it down to "how often is the set statement encountered". Early binding performs the LOOKUP of all the data about the object at COMPILE TIME. Thus there is NO IMPACT at run time, all the lookup of the object information has already been done. Late binding performs the LOOKUP of all the data about the object at RUN TIME, but more specifically at the instant that the SET statement is executed. Late binding will ALWAYS have some impact (assuming that the set statement is run) because the lookup must occur. I make the disclaimer "assuming the set statement is run" simply because, for example. I could have an EXCEL class or module in my project. It matters not whether it is in the FE or out in a library, what matter is, whether any code ever tries to ACTUALLY EXECUTE a SET STATEMENT to set a variable dimensioned as object. Thus one of my users may use the application for days and weeks and never experience the impact of late binding because his job never entails using that EXCEL code. Another user may experience the impact of late binding all day every day because his job requires using the code that executes the set statement, i.e. he uses Excel and I am late binding excel objects. NOW... How severe is the impact for that user? It may be very little or it may be extreme. What determines the impact to this user is HOW OFTEN the set statement is executed, how LONG does it take to perform the binding, and what % of the total code execution time is taken up by the binding. Let's take an example. The code does nothing more than load excel and open a worksheet. That would be at least two objects late bound, the Excel Application, and the worksheet. The time to bind the object that holds the pointer to Excel is completely DWARFED by the time to actually load Excel off the disk. We are talking a few milliseconds to do the binding and probably seconds to load excel. So the user would never even feel the difference between early and late binding. The same goes for loading the spreadsheet itself. Again, the binding itself takes a few milliseconds, but loading the worksheet would take a second or two. The user would never even feel the difference. Take another example however. This user has to load a spreadsheet, and the code is going to load and manipulate 10 thousand cells, placing data, formatting it, setting up formulas etc. NOW the time to reference each cell may take a few milliseconds but the time to actually manipulate the cells might well be sub-millisecond. So late binding in this case could slow down the app by orders of magnitude. It could do the whole thing in a second if early bound but take 10 seconds, 100 seconds etc if late bound. The DIFFERENCE is simply that the time to do the binding is occurring thousands or tens of thousands of times as the program manipulates the contents of the spreadsheet. Suddenly milliseconds start to add up. As you can see, this is a complex subject and one where the answer "is late binding costing me much" changes radically depending on what the code is doing. And it really has nothing to do with when it is loaded and whether it is sitting in memory. It is all about how many times the set statements execute, and how much of the total time those set statements use. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Monday, February 19, 2007 9:26 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing references You may be right, but it flies in the face of what little I know about Access. I was under the impression that code sitting in the MDB would be loaded on first call and thereafter reside in memory. Is that not true when you do something like create a Word object? Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Jim Dettman To: Access Developers discussion and problem solving Sent: Monday, February 19, 2007 8:41:07 AM Subject: Re: [AccessD] Missing references Jim, <> How so? If your dimming something as an object, you using late binding. I don't know of anyway of changing from late to early without re-compiling the program. And if you use late binding, your carrying the performance hit all the time. Jim. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Mon Feb 19 11:08:10 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 19 Feb 2007 11:08:10 -0600 Subject: [AccessD] Missing references In-Reply-To: <003401c751e0$95936ee0$6c7aa8c0@m6805> Message-ID: Yes, I'm listening...been sick since last Wednesday...just coughed and sneezed in envelope for ya, what's your mailing address? All this binding early/late of Excel, haven't ya all figured out how to use ADO to modify excel files? Admittedly, it doesn't do formatting, but for data transfers it rocks! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Friday, February 16, 2007 9:39 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references It is quantifiable. I have a class for timing things and you can do late binding vs. early binding in a loop a million times to measure the effects of each. Essentially binding requires the compiler to look up the object in an object table to obtain the pointer to the object as well as the parameters, their types, the return type if any etc. Early binding does that at compile time, once. Late binding does the exact same thing at run time, every time the object is resolved. The question is, how often is it done? For example, if you have a global reference to a word object, at runtime the object has to be resolved, but since it is a global variable, it is only resolved once, and so the hit is a once-off affair. Now take the example of a reference to a word object in the header of a class module. Now this has to be done once, every time the class loads, for each instance of the class loading. Now take the example of a reference to a cell in a spreadsheet dimensioned in a method of a class. The object has to be resolved every time the function is called. That may be once, or it may be hundreds or thousands of times. Notice that in ALL cases, the object is resolved ONCE for each dimension statement. The difference between these three examples is the LOCATION of the dimension statement. It is actually possible in VBA to dimension an object down in code, so you could literally dimension an object inside of a loop. Generally speaking that would be a disaster using late binding. Actually dimensioning a variable of any kind down in the middle of code is considered bad practice anyway. DREW are you listening? Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Friday, February 16, 2007 10:21 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing references Is this verifiable, Jim? I haven't ever used late-binding, which I admit has caused various installation issues, but I am curious. Is this a thumbnail calculation or can you supply concrete arithmetical evidence? A. ----- Original Message ---- From: Jim Dettman To: Access Developers discussion and problem solving Sent: Friday, February 16, 2007 9:49:44 AM Subject: Re: [AccessD] Missing references Bryan, One thing you didn't mention is the performance hit; late binding costs you 10-15% for every operation perform. Jim. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Mon Feb 19 11:09:33 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 19 Feb 2007 11:09:33 -0600 Subject: [AccessD] Missing references In-Reply-To: Message-ID: Why not make a function, and just use RunCode in the AutoExec macro.... Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Friday, February 16, 2007 10:23 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Missing references Thanks Gustav, This is almost embarrassing...I see the code...I know what the code does...I can write VBA...ALL...DAY...LONGGGG...But I don't know how to convert your IF statement back to a macro??? lol...Not sure why but I find this fact amusing, but I do. Here is the VBA/Macro... '------------------------------------------------------------ ' AutoExec ' '------------------------------------------------------------ Function AutoExec() DoCmd.Echo False, "" If (CheckReferences() = False) Then Call VerifyReferences(True) DoCmd.OpenModule "USysReferencesCheck", "" DoCmd.RunCommand acCmdCompileAndSaveAllMod DoCmd.Close , "" End If DoCmd.Echo True, "" End Function I got the echo part...lol...but how do you do the if statement? Thanks, Mark A. Matte >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] Missing references >Date: Fri, 16 Feb 2007 00:03:43 +0100 > >Hi Mark > >Some years ago we had a lengthy thread on this. >Look up here: > >http://databaseadvisors.com/pipermail/accessd/2003-July/011034.html > >/gustav > > >>> markamatte at hotmail.com 15-02-07 23:02 >>> >Thanks John, > >I'm not referencing any other app or docs...I was referring to when you are >in a module and goto TOOLS---REFERENCES...and there is something missing or >incorrect. > >Is binding relevant at this point? If not...back to the original >question:...how to handle the 'missing'??? > >Am I still confused>..lol...??? > > >Thanks, > >Mark A. Matte > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ With tax season right around the corner, make sure to follow these few simple tips. http://articles.moneycentral.msn.com/Taxes/PreparationTips/PreparationTi ps.aspx?icid=HMFebtagline -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Mon Feb 19 11:10:31 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 19 Feb 2007 11:10:31 -0600 Subject: [AccessD] Missing references In-Reply-To: <008601c751e8$f3137670$9258eb44@50NM721> Message-ID: I was letting him slide on that one....being a recent convert to the unbound side, we cut our members some slack here and there.... ;) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Friday, February 16, 2007 10:39 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing references DREW, are you listening? :)))) William Hindman ----- Original Message ----- From: "JWColby" To: "'Access Developers discussion and problem solving'" Sent: Friday, February 16, 2007 10:44 AM Subject: Re: [AccessD] Missing references > Excuse me, I misspoke. The reference is resolved at the SET statement, > not > the dim statement. > > (flogging self with a cat-o-nines) > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby > Sent: Friday, February 16, 2007 10:39 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Missing references > > It is quantifiable. I have a class for timing things and you can do late > binding vs. early binding in a loop a million times to measure the effects > of each. Essentially binding requires the compiler to look up the object > in > an object table to obtain the pointer to the object as well as the > parameters, their types, the return type if any etc. Early binding does > that at compile time, once. Late binding does the exact same thing at run > time, every time the object is resolved. > > The question is, how often is it done? For example, if you have a global > reference to a word object, at runtime the object has to be resolved, but > since it is a global variable, it is only resolved once, and so the hit is > a > once-off affair. > > Now take the example of a reference to a word object in the header of a > class module. Now this has to be done once, every time the class loads, > for > each instance of the class loading. > > Now take the example of a reference to a cell in a spreadsheet dimensioned > in a method of a class. The object has to be resolved every time the > function is called. That may be once, or it may be hundreds or thousands > of > times. > > Notice that in ALL cases, the object is resolved ONCE for each dimension > statement. The difference between these three examples is the LOCATION of > the dimension statement. > > It is actually possible in VBA to dimension an object down in code, so you > could literally dimension an object inside of a loop. Generally speaking > that would be a disaster using late binding. > > Actually dimensioning a variable of any kind down in the middle of code is > considered bad practice anyway. > > DREW are you listening? > > Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. > Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. > Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. > Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. > Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. > Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. > Bad Practice. > > > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > artful at rogers.com > Sent: Friday, February 16, 2007 10:21 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Missing references > > Is this verifiable, Jim? I haven't ever used late-binding, which I admit > has > caused various installation issues, but I am curious. Is this a thumbnail > calculation or can you supply concrete arithmetical evidence? > > A. > > > > ----- Original Message ---- > From: Jim Dettman > To: Access Developers discussion and problem solving > > Sent: Friday, February 16, 2007 9:49:44 AM > Subject: Re: [AccessD] Missing references > > > Bryan, > > One thing you didn't mention is the performance hit; late binding costs > you 10-15% for every operation perform. > > Jim. > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Mon Feb 19 11:14:03 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 19 Feb 2007 11:14:03 -0600 Subject: [AccessD] Missing references In-Reply-To: <45D64770.6934.795CC57@stuart.lexacorp.com.pg> Message-ID: As long as VB keeps realizing that 'strTemp' and 'strtemp' are the SAME variable, I'm happy.... ;) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, February 16, 2007 6:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing references On 16 Feb 2007 at 10:39, JWColby wrote: > Actually dimensioning a variable of any kind down in the middle of code is > considered bad practice anyway. It used to be. There seems to be a growing trend towards "decentralisation" rather than "consolidation" of declarations. Now we have "Block Scoped variables" in VB.Net which *have* to be declared in the middle of code and many MS code examples now declare all variables immediately before first use. Anyone for another round of Bound/Unbound or Surrogate/Natural et al which we're at it? :-) -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From prodevmg at yahoo.com Mon Feb 19 11:18:35 2007 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Mon, 19 Feb 2007 09:18:35 -0800 (PST) Subject: [AccessD] Value verses OldValue Message-ID: <248137.34282.qm@web33105.mail.mud.yahoo.com> Susan, Did you find anything else about this? Actually I did not know the property existed. I have always used variables or the tag property to store this. I was going to start using it and an associate says there are also problems with checkbox booleans and comboxes. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us ----- Original Message ---- From: Susan Harkins To: Access Developers discussion and problem solving Sent: Sunday, February 18, 2007 6:12:37 PM Subject: [AccessD] Value verses OldValue I ran into something interesting with the following expression: If ctl.Value <> ctl.OldValue Then It appears that unless you've changed the value, ctl.Value is empty. If there's been no change, shouldn't Value and OldValue been the same? Why is Value empty? This is in a form's Before Update event, which might matter. Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ____________________________________________________________________________________ Now that's room service! Choose from over 150,000 hotels in 45,000 destinations on Yahoo! Travel to find your fit. http://farechase.yahoo.com/promo-generic-14795097 From Chester_Kaup at kindermorgan.com Mon Feb 19 11:30:05 2007 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Mon, 19 Feb 2007 11:30:05 -0600 Subject: [AccessD] Join expression not supported Message-ID: I an getting a join expression not supported error from the following query. I am not seeing the problem. Thanks SELECT dbo_DSS_CompletionMaster.PID, Right(ConfigMaster.PID,Len(ConfigMaster.PID)-4) AS WellName FROM ConfigMaster, dbo_DSS_CompletionMaster LEFT JOIN ConfigMaster ON Right([ConfigMaster].[PID],Len([ConfigMaster].[PID])-4))= dbo_DSS_CompletionMaster.Well_Number WHERE (((ConfigMaster.PID) Like "PAT*") AND ((Right([ConfigMaster].[PID],Len([ConfigMaster].[PID])-4)) Not Like "*GAP") GROUP BY dbo_DSS_CompletionMaster.PID, Right(ConfigMaster.PID,Len(ConfigMaster.PID)-4); Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 ? No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. From artful at rogers.com Mon Feb 19 11:39:22 2007 From: artful at rogers.com (artful at rogers.com) Date: Mon, 19 Feb 2007 09:39:22 -0800 (PST) Subject: [AccessD] Multiple Tables Message-ID: <208688.42313.qm@web88201.mail.re2.yahoo.com> Yep. If you insist on tbl_Main, make it a query not a table, but I still don't see how it benefits you. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: "Hollis, Virginia" To: accessd at databaseadvisors.com Sent: Monday, February 19, 2007 11:50:19 AM Subject: [AccessD] Multiple Tables Tbl_Main is just where most of the other fields are, the data. Anyway.... So would tbl_Model have all the ID fields (FKs?) from each of the other tables and a description of the Model? All the other tables would just have their own PK & description? From DWUTKA at Marlow.com Mon Feb 19 11:39:38 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 19 Feb 2007 11:39:38 -0600 Subject: [AccessD] Join expression not supported In-Reply-To: Message-ID: Does it run? You just can't view a join like this in the query builder in Access. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Monday, February 19, 2007 11:30 AM To: Access Developers discussion and problem solving Subject: [AccessD] Join expression not supported I an getting a join expression not supported error from the following query. I am not seeing the problem. Thanks SELECT dbo_DSS_CompletionMaster.PID, Right(ConfigMaster.PID,Len(ConfigMaster.PID)-4) AS WellName FROM ConfigMaster, dbo_DSS_CompletionMaster LEFT JOIN ConfigMaster ON Right([ConfigMaster].[PID],Len([ConfigMaster].[PID])-4))= dbo_DSS_CompletionMaster.Well_Number WHERE (((ConfigMaster.PID) Like "PAT*") AND ((Right([ConfigMaster].[PID],Len([ConfigMaster].[PID])-4)) Not Like "*GAP") GROUP BY dbo_DSS_CompletionMaster.PID, Right(ConfigMaster.PID,Len(ConfigMaster.PID)-4); Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 ? 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 Chester_Kaup at kindermorgan.com Mon Feb 19 12:21:48 2007 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Mon, 19 Feb 2007 12:21:48 -0600 Subject: [AccessD] Join expression not supported In-Reply-To: References: Message-ID: No it does not run. Just returns error message. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Monday, February 19, 2007 11:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Join expression not supported Does it run? You just can't view a join like this in the query builder in Access. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Monday, February 19, 2007 11:30 AM To: Access Developers discussion and problem solving Subject: [AccessD] Join expression not supported I an getting a join expression not supported error from the following query. I am not seeing the problem. Thanks SELECT dbo_DSS_CompletionMaster.PID, Right(ConfigMaster.PID,Len(ConfigMaster.PID)-4) AS WellName FROM ConfigMaster, dbo_DSS_CompletionMaster LEFT JOIN ConfigMaster ON Right([ConfigMaster].[PID],Len([ConfigMaster].[PID])-4))= dbo_DSS_CompletionMaster.Well_Number WHERE (((ConfigMaster.PID) Like "PAT*") AND ((Right([ConfigMaster].[PID],Len([ConfigMaster].[PID])-4)) Not Like "*GAP") GROUP BY dbo_DSS_CompletionMaster.PID, Right(ConfigMaster.PID,Len(ConfigMaster.PID)-4); Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 ? 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 martyconnelly at shaw.ca Mon Feb 19 12:19:32 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 19 Feb 2007 10:19:32 -0800 Subject: [AccessD] Missing references In-Reply-To: References: Message-ID: <45D9EA34.9050109@shaw.ca> I don't think this type of code line will work DoCmd.Echo False, "" You haven't disambiguated the call so it will force a reference check and any missing reference at that point will fail. You have to add Access. or VBA. to your code Should be Access.DoCmd.Echo False, "" See Kaplan's Musings on this Subject: INFO: How to guarantee that references will work in your applications http://www.trigeminal.com/usenet/usenet026.asp?1033 Drew Wutka wrote: >Why not make a function, and just use RunCode in the AutoExec macro.... > >Drew > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: Friday, February 16, 2007 10:23 AM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Missing references > >Thanks Gustav, > >This is almost embarrassing...I see the code...I know what the code >does...I >can write VBA...ALL...DAY...LONGGGG...But I don't know how to convert >your >IF statement back to a macro??? lol...Not sure why but I find this fact > >amusing, but I do. Here is the VBA/Macro... > > > >'------------------------------------------------------------ >' AutoExec >' >'------------------------------------------------------------ >Function AutoExec() > > DoCmd.Echo False, "" > If (CheckReferences() = False) Then > Call VerifyReferences(True) > DoCmd.OpenModule "USysReferencesCheck", "" > DoCmd.RunCommand acCmdCompileAndSaveAllMod > DoCmd.Close , "" > End If > DoCmd.Echo True, "" > >End Function > > > >I got the echo part...lol...but how do you do the if statement? > >Thanks, > >Mark A. Matte > > > >>From: "Gustav Brock" >>Reply-To: Access Developers discussion and problem >>solving >>To: >>Subject: Re: [AccessD] Missing references >>Date: Fri, 16 Feb 2007 00:03:43 +0100 >> >>Hi Mark >> >>Some years ago we had a lengthy thread on this. >>Look up here: >> >>http://databaseadvisors.com/pipermail/accessd/2003-July/011034.html >> >>/gustav >> >> >> >>>>>markamatte at hotmail.com 15-02-07 23:02 >>> >>>>> >>>>> >>Thanks John, >> >>I'm not referencing any other app or docs...I was referring to when you >> >> >are > > >>in a module and goto TOOLS---REFERENCES...and there is something >> >> >missing or > > >>incorrect. >> >>Is binding relevant at this point? If not...back to the original >>question:...how to handle the 'missing'??? >> >>Am I still confused>..lol...??? >> >> >>Thanks, >> >>Mark A. Matte >> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >> > >_________________________________________________________________ >With tax season right around the corner, make sure to follow these few >simple tips. >http://articles.moneycentral.msn.com/Taxes/PreparationTips/PreparationTi >ps.aspx?icid=HMFebtagline > > > -- Marty Connelly Victoria, B.C. Canada From artful at rogers.com Mon Feb 19 12:48:35 2007 From: artful at rogers.com (artful at rogers.com) Date: Mon, 19 Feb 2007 10:48:35 -0800 (PST) Subject: [AccessD] Value verses OldValue Message-ID: <20070219184835.67439.qmail@web88205.mail.re2.yahoo.com> I posted a zipped Access file demonstrating how this works. It was only 14k as a zip but apparently it's being held up by the anti-terrorist squad. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Lonnie Johnson To: Access Developers discussion and problem solving Sent: Monday, February 19, 2007 12:18:35 PM Subject: Re: [AccessD] Value verses OldValue Susan, Did you find anything else about this? Actually I did not know the property existed. I have always used variables or the tag property to store this. I was going to start using it and an associate says there are also problems with checkbox booleans and comboxes. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us ----- Original Message ---- From: Susan Harkins To: Access Developers discussion and problem solving Sent: Sunday, February 18, 2007 6:12:37 PM Subject: [AccessD] Value verses OldValue I ran into something interesting with the following expression: If ctl.Value <> ctl.OldValue Then It appears that unless you've changed the value, ctl.Value is empty. If there's been no change, shouldn't Value and OldValue been the same? Why is Value empty? This is in a form's Before Update event, which might matter. Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ____________________________________________________________________________________ Now that's room service! Choose from over 150,000 hotels in 45,000 destinations on Yahoo! Travel to find your fit. http://farechase.yahoo.com/promo-generic-14795097 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at gmail.com Mon Feb 19 12:52:07 2007 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Mon, 19 Feb 2007 13:52:07 -0500 Subject: [AccessD] Value verses OldValue In-Reply-To: <20070219184835.67439.qmail@web88205.mail.re2.yahoo.com> References: <20070219184835.67439.qmail@web88205.mail.re2.yahoo.com> Message-ID: On 2/19/07, artful at rogers.com wrote: > I posted a zipped Access file demonstrating how this works. It was only 14k as a zip but apparently it's being held up by the anti-terrorist squad. Attachments are a no-no on the list. They have to go off-list. -- 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 jwcolby at colbyconsulting.com Mon Feb 19 12:53:17 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Mon, 19 Feb 2007 13:53:17 -0500 Subject: [AccessD] Value verses OldValue In-Reply-To: <20070219184835.67439.qmail@web88205.mail.re2.yahoo.com> Message-ID: <001601c75457$387cf630$657aa8c0@m6805> LOL, yep. No attachments allowed, as I discovered the other day. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Monday, February 19, 2007 1:49 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Value verses OldValue I posted a zipped Access file demonstrating how this works. It was only 14k as a zip but apparently it's being held up by the anti-terrorist squad. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Lonnie Johnson To: Access Developers discussion and problem solving Sent: Monday, February 19, 2007 12:18:35 PM Subject: Re: [AccessD] Value verses OldValue Susan, Did you find anything else about this? Actually I did not know the property existed. I have always used variables or the tag property to store this. I was going to start using it and an associate says there are also problems with checkbox booleans and comboxes. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us ----- Original Message ---- From: Susan Harkins To: Access Developers discussion and problem solving Sent: Sunday, February 18, 2007 6:12:37 PM Subject: [AccessD] Value verses OldValue I ran into something interesting with the following expression: If ctl.Value <> ctl.OldValue Then It appears that unless you've changed the value, ctl.Value is empty. If there's been no change, shouldn't Value and OldValue been the same? Why is Value empty? This is in a form's Before Update event, which might matter. Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ____________________________________________________________________________ ________ Now that's room service! Choose from over 150,000 hotels in 45,000 destinations on Yahoo! Travel to find your fit. http://farechase.yahoo.com/promo-generic-14795097 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Feb 19 13:05:04 2007 From: artful at rogers.com (artful at rogers.com) Date: Mon, 19 Feb 2007 11:05:04 -0800 (PST) Subject: [AccessD] Value v. OldValue demo Message-ID: <984009.17477.qm@web88211.mail.re2.yahoo.com> The list rejected my upload. So if anyone wants to see this tiny demo of value v. oldvalue, e me off list and I will send it. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com From artful at rogers.com Mon Feb 19 13:11:27 2007 From: artful at rogers.com (artful at rogers.com) Date: Mon, 19 Feb 2007 11:11:27 -0800 (PST) Subject: [AccessD] Join expression not supported Message-ID: <658124.20820.qm@web88211.mail.re2.yahoo.com> Try opening it in SQL view instead of design view. Offhand, I don't see the problem, but this will enable you to inspect the syntax closely, and running it from there might give you a better error message. I would also try creating a query for each table that creates a calculated column encompassing your Right() expression, etc. This might be the problem. With a calculated column the join would be straightforward and more amenable to Access's syntax checker. Also your WHERE seems unncecessarily complex. I might consider creating a calculated column for it as well. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: "Kaup, Chester" To: Access Developers discussion and problem solving Sent: Monday, February 19, 2007 1:21:48 PM Subject: Re: [AccessD] Join expression not supported No it does not run. Just returns error message. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Monday, February 19, 2007 11:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Join expression not supported Does it run? You just can't view a join like this in the query builder in Access. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Monday, February 19, 2007 11:30 AM To: Access Developers discussion and problem solving Subject: [AccessD] Join expression not supported I an getting a join expression not supported error from the following query. I am not seeing the problem. Thanks SELECT dbo_DSS_CompletionMaster.PID, Right(ConfigMaster.PID,Len(ConfigMaster.PID)-4) AS WellName FROM ConfigMaster, dbo_DSS_CompletionMaster LEFT JOIN ConfigMaster ON Right([ConfigMaster].[PID],Len([ConfigMaster].[PID])-4))= dbo_DSS_CompletionMaster.Well_Number WHERE (((ConfigMaster.PID) Like "PAT*") AND ((Right([ConfigMaster].[PID],Len([ConfigMaster].[PID])-4)) Not Like "*GAP") GROUP BY dbo_DSS_CompletionMaster.PID, Right(ConfigMaster.PID,Len(ConfigMaster.PID)-4); Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Chester_Kaup at kindermorgan.com Mon Feb 19 13:22:15 2007 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Mon, 19 Feb 2007 13:22:15 -0600 Subject: [AccessD] Join expression not supported In-Reply-To: <658124.20820.qm@web88211.mail.re2.yahoo.com> References: <658124.20820.qm@web88211.mail.re2.yahoo.com> Message-ID: The query posted below is from SQL view and unfortunately it gives no good error message. I am thinking it is just a little to complex for Access to evaluate all at one time. I am going to break it into more than one query. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Monday, February 19, 2007 1:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Join expression not supported Try opening it in SQL view instead of design view. Offhand, I don't see the problem, but this will enable you to inspect the syntax closely, and running it from there might give you a better error message. I would also try creating a query for each table that creates a calculated column encompassing your Right() expression, etc. This might be the problem. With a calculated column the join would be straightforward and more amenable to Access's syntax checker. Also your WHERE seems unncecessarily complex. I might consider creating a calculated column for it as well. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: "Kaup, Chester" To: Access Developers discussion and problem solving Sent: Monday, February 19, 2007 1:21:48 PM Subject: Re: [AccessD] Join expression not supported No it does not run. Just returns error message. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Monday, February 19, 2007 11:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Join expression not supported Does it run? You just can't view a join like this in the query builder in Access. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Monday, February 19, 2007 11:30 AM To: Access Developers discussion and problem solving Subject: [AccessD] Join expression not supported I an getting a join expression not supported error from the following query. I am not seeing the problem. Thanks SELECT dbo_DSS_CompletionMaster.PID, Right(ConfigMaster.PID,Len(ConfigMaster.PID)-4) AS WellName FROM ConfigMaster, dbo_DSS_CompletionMaster LEFT JOIN ConfigMaster ON Right([ConfigMaster].[PID],Len([ConfigMaster].[PID])-4))= dbo_DSS_CompletionMaster.Well_Number WHERE (((ConfigMaster.PID) Like "PAT*") AND ((Right([ConfigMaster].[PID],Len([ConfigMaster].[PID])-4)) Not Like "*GAP") GROUP BY dbo_DSS_CompletionMaster.PID, Right(ConfigMaster.PID,Len(ConfigMaster.PID)-4); Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Mon Feb 19 13:41:17 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 19 Feb 2007 19:41:17 +0000 Subject: [AccessD] Join expression not supported In-Reply-To: Message-ID: I had something similar last week...and it turned out to be a references issue. The functions I was using would not allow the query to run. Mine was the DATE() function in the query. I removed all references...and then 'selected' them again(note: nothing showed missing...just query would not run). I then compiled and the query ran fine. My error was very similar, and it was the functions in the SQL that was my thorn, not the SQL or the joins/criteria...worth a look??? Thanks, Mark A. Matte >From: "Kaup, Chester" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Join expression not supported >Date: Mon, 19 Feb 2007 13:22:15 -0600 > >The query posted below is from SQL view and unfortunately it gives no >good error message. I am thinking it is just a little to complex for >Access to evaluate all at one time. I am going to break it into more >than one query. > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >artful at rogers.com >Sent: Monday, February 19, 2007 1:11 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Join expression not supported > >Try opening it in SQL view instead of design view. Offhand, I don't see >the problem, but this will enable you to inspect the syntax closely, and >running it from there might give you a better error message. I would >also try creating a query for each table that creates a calculated >column encompassing your Right() expression, etc. This might be the >problem. With a calculated column the join would be straightforward and >more amenable to Access's syntax checker. > >Also your WHERE seems unncecessarily complex. I might consider creating >a calculated column for it as well. > >Arthur Fuller >Technical Writer, Data Modeler, SQL Sensei >Artful Databases Organization >www.artfulsoftware.com > > > > >----- Original Message ---- >From: "Kaup, Chester" >To: Access Developers discussion and problem solving > >Sent: Monday, February 19, 2007 1:21:48 PM >Subject: Re: [AccessD] Join expression not supported > > >No it does not run. Just returns error message. > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka >Sent: Monday, February 19, 2007 11:40 AM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Join expression not supported > >Does it run? You just can't view a join like this in the query builder >in Access. > >Drew > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester >Sent: Monday, February 19, 2007 11:30 AM >To: Access Developers discussion and problem solving >Subject: [AccessD] Join expression not supported > >I an getting a join expression not supported error from the following >query. I am not seeing the problem. Thanks > >SELECT dbo_DSS_CompletionMaster.PID, >Right(ConfigMaster.PID,Len(ConfigMaster.PID)-4) AS WellName >FROM ConfigMaster, dbo_DSS_CompletionMaster >LEFT JOIN ConfigMaster ON >Right([ConfigMaster].[PID],Len([ConfigMaster].[PID])-4))= >dbo_DSS_CompletionMaster.Well_Number >WHERE (((ConfigMaster.PID) Like "PAT*") AND >((Right([ConfigMaster].[PID],Len([ConfigMaster].[PID])-4)) Not Like >"*GAP") >GROUP BY dbo_DSS_CompletionMaster.PID, >Right(ConfigMaster.PID,Len(ConfigMaster.PID)-4); > >Chester Kaup >Engineering Technician >Kinder Morgan CO2 Company, LLP >Office (432) 688-3797 >FAX (432) 688-3799 > > >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 > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Find what you need at prices you?ll love. Compare products and save at MSN? Shopping. http://shopping.msn.com/default/shp/?ptnrid=37,ptnrdata=24102&tcode=T001MSN20A0701 From artful at rogers.com Mon Feb 19 13:43:45 2007 From: artful at rogers.com (artful at rogers.com) Date: Mon, 19 Feb 2007 11:43:45 -0800 (PST) Subject: [AccessD] Value verses OldValue Message-ID: <20070219194345.41178.qmail@web88210.mail.re2.yahoo.com> Recognized and offered off-list. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Bryan Carbonnell To: Access Developers discussion and problem solving Sent: Monday, February 19, 2007 1:52:07 PM Subject: Re: [AccessD] Value verses OldValue On 2/19/07, artful at rogers.com wrote: > I posted a zipped Access file demonstrating how this works. It was only 14k as a zip but apparently it's being held up by the anti-terrorist squad. Attachments are a no-no on the list. They have to go off-list. From jwcolby at colbyconsulting.com Mon Feb 19 13:44:15 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Mon, 19 Feb 2007 14:44:15 -0500 Subject: [AccessD] Join expression not supported In-Reply-To: Message-ID: <001a01c7545e$56e8e0f0$657aa8c0@m6805> Join expression not supported often means that the data types on the two sides of the join are not the same. I would do as you are suggesting, and break it down into several queries. Create a base query for: Right(ConfigMaster.PID,Len(ConfigMaster.PID)-4) AS WellName FROM ConfigMaster So that the alias has been evaluated and valid values are being returned (strings it appears). Once that is in a query as a simple string value, you can join that to another query or table on a string field. It appears that the where clause is also on the configMaster table and could be moved out to that base query as well. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Monday, February 19, 2007 2:22 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Join expression not supported The query posted below is from SQL view and unfortunately it gives no good error message. I am thinking it is just a little to complex for Access to evaluate all at one time. I am going to break it into more than one query. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Monday, February 19, 2007 1:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Join expression not supported Try opening it in SQL view instead of design view. Offhand, I don't see the problem, but this will enable you to inspect the syntax closely, and running it from there might give you a better error message. I would also try creating a query for each table that creates a calculated column encompassing your Right() expression, etc. This might be the problem. With a calculated column the join would be straightforward and more amenable to Access's syntax checker. Also your WHERE seems unncecessarily complex. I might consider creating a calculated column for it as well. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: "Kaup, Chester" To: Access Developers discussion and problem solving Sent: Monday, February 19, 2007 1:21:48 PM Subject: Re: [AccessD] Join expression not supported No it does not run. Just returns error message. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Monday, February 19, 2007 11:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Join expression not supported Does it run? You just can't view a join like this in the query builder in Access. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Monday, February 19, 2007 11:30 AM To: Access Developers discussion and problem solving Subject: [AccessD] Join expression not supported I an getting a join expression not supported error from the following query. I am not seeing the problem. Thanks SELECT dbo_DSS_CompletionMaster.PID, Right(ConfigMaster.PID,Len(ConfigMaster.PID)-4) AS WellName FROM ConfigMaster, dbo_DSS_CompletionMaster LEFT JOIN ConfigMaster ON Right([ConfigMaster].[PID],Len([ConfigMaster].[PID])-4))= dbo_DSS_CompletionMaster.Well_Number WHERE (((ConfigMaster.PID) Like "PAT*") AND ((Right([ConfigMaster].[PID],Len([ConfigMaster].[PID])-4)) Not Like "*GAP") GROUP BY dbo_DSS_CompletionMaster.PID, Right(ConfigMaster.PID,Len(ConfigMaster.PID)-4); Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Feb 19 13:48:55 2007 From: artful at rogers.com (artful at rogers.com) Date: Mon, 19 Feb 2007 11:48:55 -0800 (PST) Subject: [AccessD] Join expression not supported Message-ID: <896930.91520.qm@web88209.mail.re2.yahoo.com> I think that's a good idea. I have run into this sort of problem more than once with Access when designing a lengthy and complex query. Use the KISS principle. Incidentally, I have no benchmarks of consequence to substantiate my take on this, but rather the simplicity and reusability factors. I call my take on this "atomic and molecular queries". An atomic query draws data from exactly one table. A molecular query combines several atomic queries to deliver the desired results. I have occasionally read that there is a performance hit for this approach, but have seen no benchmarks to prove it. Your particular query is not especially complex, but the join requirements are. I am guessing that a calculated column will solve this problem. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: "Kaup, Chester" To: Access Developers discussion and problem solving Sent: Monday, February 19, 2007 2:22:15 PM Subject: Re: [AccessD] Join expression not supported The query posted below is from SQL view and unfortunately it gives no good error message. I am thinking it is just a little to complex for Access to evaluate all at one time. I am going to break it into more than one query. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Monday, February 19, 2007 1:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Join expression not supported Try opening it in SQL view instead of design view. Offhand, I don't see the problem, but this will enable you to inspect the syntax closely, and running it from there might give you a better error message. I would also try creating a query for each table that creates a calculated column encompassing your Right() expression, etc. This might be the problem. With a calculated column the join would be straightforward and more amenable to Access's syntax checker. Also your WHERE seems unncecessarily complex. I might consider creating a calculated column for it as well. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: "Kaup, Chester" To: Access Developers discussion and problem solving Sent: Monday, February 19, 2007 1:21:48 PM Subject: Re: [AccessD] Join expression not supported No it does not run. Just returns error message. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Monday, February 19, 2007 11:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Join expression not supported Does it run? You just can't view a join like this in the query builder in Access. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Monday, February 19, 2007 11:30 AM To: Access Developers discussion and problem solving Subject: [AccessD] Join expression not supported I an getting a join expression not supported error from the following query. I am not seeing the problem. Thanks SELECT dbo_DSS_CompletionMaster.PID, Right(ConfigMaster.PID,Len(ConfigMaster.PID)-4) AS WellName FROM ConfigMaster, dbo_DSS_CompletionMaster LEFT JOIN ConfigMaster ON Right([ConfigMaster].[PID],Len([ConfigMaster].[PID])-4))= dbo_DSS_CompletionMaster.Well_Number WHERE (((ConfigMaster.PID) Like "PAT*") AND ((Right([ConfigMaster].[PID],Len([ConfigMaster].[PID])-4)) Not Like "*GAP") GROUP BY dbo_DSS_CompletionMaster.PID, Right(ConfigMaster.PID,Len(ConfigMaster.PID)-4); Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 setel.com Mon Feb 19 14:20:13 2007 From: ssharkins at setel.com (Susan Harkins) Date: Mon, 19 Feb 2007 15:20:13 -0500 Subject: [AccessD] combo from multiple sources Message-ID: <000001c75463$62013410$aab62ad1@SUSANONE> I made a mistake on an article title "How to populate combo box with data from multiple sources" I meant something entirely different, but now I'm wondering -- do any of you use such a technique? Doing it isn't a problem. I just can't see how it would be useful, but if there's a good excuse, I'm always game. Susan H. From ssharkins at setel.com Mon Feb 19 14:20:14 2007 From: ssharkins at setel.com (Susan Harkins) Date: Mon, 19 Feb 2007 15:20:14 -0500 Subject: [AccessD] Value verses OldValue In-Reply-To: Message-ID: <001a01c75463$80948120$aab62ad1@SUSANONE> Gustav, as usual... that wasn't even the problem. :) Susan H. Hi Susan You mean OldValue is empty, right? As far as I know it's empty until an update has happened. From ssharkins at setel.com Mon Feb 19 14:32:52 2007 From: ssharkins at setel.com (Susan Harkins) Date: Mon, 19 Feb 2007 15:32:52 -0500 Subject: [AccessD] Value verses OldValue In-Reply-To: <248137.34282.qm@web33105.mail.mud.yahoo.com> Message-ID: <002a01c75465$218d31c0$aab62ad1@SUSANONE> Only that I wasn't paying close enough attention. The properties were working just fine. :) Look up the form Before update event in Help -- there's just a smidge in there about they maintain their values in this event, which is where you'll probably use them. Susan H. Susan, Did you find anything else about this? Actually I did not know the property existed. I have always used variables or the tag property to store this. I was going to start using it and an associate says there are also problems with checkbox booleans and comboxes. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us ----- Original Message ---- From: Susan Harkins To: Access Developers discussion and problem solving Sent: Sunday, February 18, 2007 6:12:37 PM Subject: [AccessD] Value verses OldValue I ran into something interesting with the following expression: If ctl.Value <> ctl.OldValue Then It appears that unless you've changed the value, ctl.Value is empty. If there's been no change, shouldn't Value and OldValue been the same? Why is Value empty? This is in a form's Before Update event, which might matter. Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ____________________________________________________________________________ ________ Now that's room service! Choose from over 150,000 hotels in 45,000 destinations on Yahoo! Travel to find your fit. http://farechase.yahoo.com/promo-generic-14795097 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.17.39/687 - Release Date: 2/14/2007 4:17 PM From shamil at users.mns.ru Mon Feb 19 15:03:46 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Tue, 20 Feb 2007 00:03:46 +0300 Subject: [AccessD] Missing references In-Reply-To: <000a01c75447$b7761990$657aa8c0@m6805> Message-ID: <003201c75469$72a406c0$6401a8c0@nant> Hi Everyone, Please have a look here: http://www.fredshack.com/docs/com.html << - Objects can be accessed in two modes: Early bound (the EXE can compile direct function calls by looking up the address of the method in the vtable array of pointers to functions), or late bound (the EXE go through the IDispatch interface to locate functions). Early binding is recommended for performance reasons, since calls are made directly to the ad hoc interface, while with late binding, calls are made through the IDispatch interface which can determine the methods and properties of the object at runtime. - Marshaling is the process of collecting the necessary information for an EXE to call a COM object that lives outside of the memory space of the calling EXE, since 32-bit versions of Windows keep the two processes separate - Marshaling isn't required if the COM server lives in the same address space as the calling EXE, but is required if the COM server is itself an EXE, and, thus, lives in a different address space. The COM EXE can run on either the same computer as the caller EXE, or on a remote computer, in which case the technology called Distributed Component Object Model (DCOM) is used - In Visual Basic you can implement early binding by adding a reference to an object via the references dialog box, then declaring a variable using the specific object type instead of As Object. This can substantially reduce the time it takes to access methods and properties in the object - Late binding occurs in Visual Basic when you dimension an object variable to be As Object. An object variable can hold any type of object. Since the variable can reference any object and must support whatever methods or properties that object may implement, it clearly can have no way of knowing until runtime what those methods and properties may be. Without late binding and the IDispatch Interface, the As Object type of variable would not be possible - OLE Automation ("Automation" for short) is the late-bound way of calling an object, and thus, relies on the existence of an IDispatch for this interface - The IDispatch interface consists of the following functions: GetTypeInfoCount(), GetTypeInfo(), GetIDsOfNames(), Invoke() Each method or property supported by an interface has a dispatch ID - a number that identifies that method or property. Thus, while each method has its own dispatch ID, the function to set a property and the function to retrieve that same property will share the same dispatch ID >> -- Shamil From artful at rogers.com Mon Feb 19 15:08:42 2007 From: artful at rogers.com (artful at rogers.com) Date: Mon, 19 Feb 2007 13:08:42 -0800 (PST) Subject: [AccessD] combo from multiple sources Message-ID: <556369.23253.qm@web88212.mail.re2.yahoo.com> I tend perhaps a little toward the academic on this, Susan, but I strongly discourage stopping one's normalization at 3NF, which leads to constructions such as (in an address table) CityID, StateID and CountryID. This IMO is nonsense. There is only one New York and it resides in New York State, which in turn resides in exactly one country. Therefore in my designs the only column I carry in the addresses table is CityID -- the rest is inferred. However, there are numerous Springfields in the USA (which, incidentally, is why the name was selected for The Simpsons). And thus the combo-box that uses a query drawing from three tables -- Cites, States and Countries. The actual query would look something like: Select CityID, CityName + ', ' + States.StateName + ', ' + Countries.CountryName FROM Cities Inner Join States on Cities.StateID = States.StateID Inner Join Countries on States.CountryID = Countries.CountryID (Substitute double-quotes for Access. Out of habit I write in SQL.) Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Susan Harkins To: Access Developers discussion and problem solving Sent: Monday, February 19, 2007 3:20:13 PM Subject: [AccessD] combo from multiple sources I made a mistake on an article title "How to populate combo box with data from multiple sources" I meant something entirely different, but now I'm wondering -- do any of you use such a technique? Doing it isn't a problem. I just can't see how it would be useful, but if there's a good excuse, I'm always game. Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Mon Feb 19 15:59:22 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 19 Feb 2007 21:59:22 +0000 Subject: [AccessD] combo from multiple sources In-Reply-To: <000001c75463$62013410$aab62ad1@SUSANONE> Message-ID: Hi Susan, I recently built, and donated, a db for the New Orleans Police department. One aspect was suspect info. I had to create another section to accomodate multiple aliases. I could have used a combo to list names from both tables...I ended up using a more detailed form to search...but a combo to list names and aliases could have been used...I would have just used a UNION query as the source. Thanks, Mark >From: "Susan Harkins" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: [AccessD] combo from multiple sources >Date: Mon, 19 Feb 2007 15:20:13 -0500 > >I made a mistake on an article title "How to populate combo box with data >from multiple sources" > >I meant something entirely different, but now I'm wondering -- do any of >you >use such a technique? Doing it isn't a problem. I just can't see how it >would be useful, but if there's a good excuse, I'm always game. > >Susan H. > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Refi Now: Rates near 39yr lows! $430,000 Mortgage for $1,399/mo - Calculate new payment http://www.lowermybills.com/lre/index.jsp?sourceid=lmb-9632-17727&moid=7581 From ssharkins at setel.com Mon Feb 19 16:15:49 2007 From: ssharkins at setel.com (Susan Harkins) Date: Mon, 19 Feb 2007 17:15:49 -0500 Subject: [AccessD] combo from multiple sources In-Reply-To: Message-ID: <001a01c75473$83a80f70$fcb82ad1@SUSANONE> I recently built, and donated, a db for the New Orleans Police department. One aspect was suspect info. I had to create another section to accomodate multiple aliases. I could have used a combo to list names from both tables...I ended up using a more detailed form to search...but a combo to list names and aliases could have been used...I would have just used a UNION query as the source. ===========Donated? You're a good guy. Bill spent a few weeks down there right after Katrina and he promised a few of the cops that we'd come back for a vacation and spend money. ;) So, if you created such a combo, what would you use it for? Susan H. From DWUTKA at Marlow.com Mon Feb 19 17:17:24 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 19 Feb 2007 17:17:24 -0600 Subject: [AccessD] combo from multiple sources In-Reply-To: <000001c75463$62013410$aab62ad1@SUSANONE> Message-ID: I've done it with listboxes, where I'm building the list from a callback, which is getting it's data from a collection class, which has data coming from all over. Could it be done from a query? Probably....but there's other advantages to the way I have it setup. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Monday, February 19, 2007 2:20 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] combo from multiple sources I made a mistake on an article title "How to populate combo box with data from multiple sources" I meant something entirely different, but now I'm wondering -- do any of you use such a technique? Doing it isn't a problem. I just can't see how it would be useful, but if there's a good excuse, I'm always game. Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Mon Feb 19 17:45:30 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 19 Feb 2007 15:45:30 -0800 Subject: [AccessD] OT: Rocky On The Radio In-Reply-To: <00b101c753ca$f9640790$0201a8c0@HAL9005> Message-ID: <0JDQ00AJ2HW51L14@l-daemon> Hi All: A link to Rocky's three part web-casts have been added to the DBA web site (http://www.databaseadvisors.com) if any of the list members did not notice quiet announcement. Congratulations, Rocky (If you need any help handling all your new business; just give me a call.) Regards Jim From wdhindman at dejpolsystems.com Mon Feb 19 18:23:05 2007 From: wdhindman at dejpolsystems.com (William Hindman) Date: Mon, 19 Feb 2007 19:23:05 -0500 Subject: [AccessD] combo from multiple sources References: <556369.23253.qm@web88212.mail.re2.yahoo.com> Message-ID: <008b01c75485$4aff7e30$9258eb44@50NM721> ...I've gone a step further Art ...I now have a tblGeo in my templates which holds unique info relevant to a geographical location including GeoID, PostCode, CityID, Prime, CountyID, StateID, NationID, RegionID, longitude, and latitude ...I moved to this format to resolve differences in worldwide postal addressing and then added long/lat to be able to target addresses within circular references when that need cropped up ...the GeoID becomes the fk in any query requiring address/location info. William Hindman ----- Original Message ----- From: To: "Access Developers discussion and problem solving" Sent: Monday, February 19, 2007 4:08 PM Subject: Re: [AccessD] combo from multiple sources >I tend perhaps a little toward the academic on this, Susan, but I strongly >discourage stopping one's normalization at 3NF, which leads to >constructions such as (in an address table) CityID, StateID and CountryID. >This IMO is nonsense. There is only one New York and it resides in New York >State, which in turn resides in exactly one country. Therefore in my >designs the only column I carry in the addresses table is CityID -- the >rest is inferred. > > However, there are numerous Springfields in the USA (which, incidentally, > is why the name was selected for The Simpsons). And thus the combo-box > that uses a query drawing from three tables -- Cites, States and > Countries. The actual query would look something like: > > Select CityID, CityName + ', ' + States.StateName + ', ' + > Countries.CountryName > FROM Cities Inner Join States on Cities.StateID = States.StateID > Inner Join Countries on States.CountryID = Countries.CountryID > > (Substitute double-quotes for Access. Out of habit I write in SQL.) > > > Arthur Fuller > Technical Writer, Data Modeler, SQL Sensei > Artful Databases Organization > www.artfulsoftware.com > > > > > ----- Original Message ---- > From: Susan Harkins > To: Access Developers discussion and problem solving > > Sent: Monday, February 19, 2007 3:20:13 PM > Subject: [AccessD] combo from multiple sources > > > I made a mistake on an article title "How to populate combo box with data > from multiple sources" > > I meant something entirely different, but now I'm wondering -- do any of > you > use such a technique? Doing it isn't a problem. I just can't see how it > would be useful, but if there's a good excuse, I'm always game. > > 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 newsgrps at dalyn.co.nz Mon Feb 19 18:31:30 2007 From: newsgrps at dalyn.co.nz (David Emerson) Date: Tue, 20 Feb 2007 13:31:30 +1300 Subject: [AccessD] Automating email Message-ID: <20070220004505.YMFB25916.fep04.xtra.co.nz@Dalyn.dalyn.co.nz> Group, I have the following code to create an email message: Public Function basSendEmail() Dim outApp As Outlook.Application, outMsg As MailItem Set outApp = CreateObject("Outlook.Application") Set outMsg = outApp.CreateItem(olMailItem) With outMsg .To = "newsgrps at dalyn.co.nz" .Subject = "Test egas email" .Body = "Test message" .Send End With Set outApp = Nothing Set outMsg = Nothing End Function This works fine but only puts the message into my Outlook outbox - it doesn't send it. This may be because although I have outlook installed I do not use it (and it has not been set up). However, my clients use outlook. Will the above code automatically send out emails? Another question - My client would prefer not to have copies in their outbox of the email being sent out (ultimately it will be to email out accounts and they don't want thousands of emails generated each month). Is there a way for the messages not to appear in outlook? From artful at rogers.com Mon Feb 19 18:51:42 2007 From: artful at rogers.com (artful at rogers.com) Date: Mon, 19 Feb 2007 16:51:42 -0800 (PST) Subject: [AccessD] combo from multiple sources Message-ID: <20070220005142.6577.qmail@web88210.mail.re2.yahoo.com> Well done. But the next time you call me Art, I shall send some 18th street gangers to drive by your house. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: William Hindman To: Access Developers discussion and problem solving Sent: Monday, February 19, 2007 7:23:05 PM Subject: Re: [AccessD] combo from multiple sources ...I've gone a step further Art ...I now have a tblGeo in my templates which holds unique info relevant to a geographical location including GeoID, PostCode, CityID, Prime, CountyID, StateID, NationID, RegionID, longitude, and latitude ...I moved to this format to resolve differences in worldwide postal addressing and then added long/lat to be able to target addresses within circular references when that need cropped up ...the GeoID becomes the fk in any query requiring address/location info. William Hindman From kp at sdsonline.net Mon Feb 19 18:57:38 2007 From: kp at sdsonline.net (Kath Pelletti) Date: Tue, 20 Feb 2007 11:57:38 +1100 Subject: [AccessD] Automating email References: <20070220004505.YMFB25916.fep04.xtra.co.nz@Dalyn.dalyn.co.nz> Message-ID: <005201c7548a$1e9d8c10$6401a8c0@office> Hi David - I only use the .Display option in my apps so that the users can add some text to the email if they want to before it is sent, but .send WILL send the email depending on their Outlook preferences. ie. if they have [tools] [options] [mail delivery] 'Send immediately when connected' turned on, then yes, it will send. I haven;t found any way of that email not going into sent items though. Kath ----- Original Message ----- From: David Emerson To: accessd at databaseadvisors.com Sent: Tuesday, February 20, 2007 11:31 AM Subject: [AccessD] Automating email Group, I have the following code to create an email message: Public Function basSendEmail() Dim outApp As Outlook.Application, outMsg As MailItem Set outApp = CreateObject("Outlook.Application") Set outMsg = outApp.CreateItem(olMailItem) With outMsg .To = "newsgrps at dalyn.co.nz" .Subject = "Test egas email" .Body = "Test message" .Send End With Set outApp = Nothing Set outMsg = Nothing End Function This works fine but only puts the message into my Outlook outbox - it doesn't send it. This may be because although I have outlook installed I do not use it (and it has not been set up). However, my clients use outlook. Will the above code automatically send out emails? Another question - My client would prefer not to have copies in their outbox of the email being sent out (ultimately it will be to email out accounts and they don't want thousands of emails generated each month). Is there a way for the messages not to appear in outlook? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From darrend at nimble.com.au Mon Feb 19 19:26:42 2007 From: darrend at nimble.com.au (Darren DICK) Date: Tue, 20 Feb 2007 12:26:42 +1100 Subject: [AccessD] OT: Batch File variable Message-ID: <200702200126.l1K1Qki13686@databaseadvisors.com> Hi All I realise this is OT so please respond off list to darrend at nimble.com.au I have many lines in a batch file - just moves downloaded local files to a network drive - simple The folders on the network drives are divided in to Current Year and Current Month EG \\SomeServer\SomeCoolFolder\SomeCoolFileFolder\200702 - For Feb this year - Rocket Science 'eh? On my local machine the files are stored in the second lowest level EG \\SomeServer\SomeCoolFolder\SomeCoolFileFilder - IE = without the Year Month At the beginning of each month I edit the Month (in this case 200702) in the batch file - many lines and is a real PITA if I stuff it up Is there a way to declare a variable in a batch file? EG varMonthYear = 200702 and then just 'tack' that to the end EG \\SomeServer\SomeCoolFolder\SomeCoolFileFilder\ & varmonthYear That way I only have to edit the variable I realise this is OT so feel free to respond off list please to darrend at nimble.com.au Many thanks See ya Darren From Andrew.Curtis at wapl.com.au Mon Feb 19 19:48:35 2007 From: Andrew.Curtis at wapl.com.au (Curtis, Andrew (WAPL)) Date: Tue, 20 Feb 2007 10:48:35 +0900 Subject: [AccessD] Riddle me this, Riddle me that.. In-Reply-To: <001001c752a5$bc903f80$6501a8c0@roberts> References: <482793.81822.qm@web88203.mail.re2.yahoo.com><000901c752a1$fc14c3a0$6401a8c0@nant> <001001c752a5$bc903f80$6501a8c0@roberts> Message-ID: Compression of databases, mde or not relies on the amount of temporary space used to run queries and other temporary objects. If an mde uses large temporary objects, compression will be considerable, simple non-intensive mdes will not, because there is little temp space to be reclaimed. More on this here http://support.microsoft.com/kb/q208285/ --andrew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Sent: Sunday, 18 February 2007 12:10 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Riddle me this, Riddle me that.. Ok, I have a front end AXP .mde that weighs in at about 27 megs. When I use Wise to compile a new install with a few other objects, it compresses the entire install down to about 8 megs. Now.... If I take ANY other database, even one created from the objects from this FE, the .mde does not compress down. Does anyone have any idea why THIS one FE compresses down, and other will not...?? Robert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This message and any attached files may contain information that is confidential and/or subject of legal privilege intended only for use by the intended recipient. If you are not the intended recipient or the person responsible for delivering the message to the intended recipient, be advised that you have received this message in error and that any dissemination, copying or use of this message or attachment is strictly forbidden, as is the disclosure of the information therein. If you have received this message in error please notify the sender immediately and delete the message. From stuart at lexacorp.com.pg Mon Feb 19 19:54:36 2007 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 20 Feb 2007 11:54:36 +1000 Subject: [AccessD] OT: Batch File variable In-Reply-To: <200702200126.l1K1Qki13686@databaseadvisors.com> References: <200702200126.l1K1Qki13686@databaseadvisors.com> Message-ID: <45DAE17C.26487.1F9F709E@stuart.lexacorp.com.pg> On 20 Feb 2007 at 12:26, Darren DICK wrote: > Is there a way to declare a variable in a batch file? > > EG varMonthYear = 200702 and then just 'tack' that to the end > > EG \\SomeServer\SomeCoolFolder\SomeCoolFileFilder\ > & varmonthYear > > That way I only have to edit the variable > Environment variables. To set it: SET varmonthyear = "200702" to use it: .... + %varmonthyear% From wdhindman at dejpolsystems.com Mon Feb 19 21:07:44 2007 From: wdhindman at dejpolsystems.com (William Hindman) Date: Mon, 19 Feb 2007 22:07:44 -0500 Subject: [AccessD] combo from multiple sources References: <20070220005142.6577.qmail@web88210.mail.re2.yahoo.com> Message-ID: <000a01c7549c$4b730910$9258eb44@50NM721> ...you did that the last time, eh ...wrapped them up and sent them back c.o.d I did :) William Hindman ----- Original Message ----- From: To: "Access Developers discussion and problem solving" Sent: Monday, February 19, 2007 7:51 PM Subject: Re: [AccessD] combo from multiple sources > Well done. But the next time you call me Art, I shall send some 18th > street gangers to drive by your house. > > > Arthur Fuller > Technical Writer, Data Modeler, SQL Sensei > Artful Databases Organization > www.artfulsoftware.com > > > > > ----- Original Message ---- > From: William Hindman > To: Access Developers discussion and problem solving > > Sent: Monday, February 19, 2007 7:23:05 PM > Subject: Re: [AccessD] combo from multiple sources > > > ...I've gone a step further Art ...I now have a tblGeo in my templates > which > holds unique info relevant to a geographical location including GeoID, > PostCode, CityID, Prime, CountyID, StateID, NationID, RegionID, longitude, > and latitude ...I moved to this format to resolve differences in worldwide > postal addressing and then added long/lat to be able to target addresses > within circular references when that need cropped up ...the GeoID becomes > the fk in any query requiring address/location info. > > William Hindman > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From DWUTKA at Marlow.com Tue Feb 20 00:11:56 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 20 Feb 2007 00:11:56 -0600 Subject: [AccessD] combo from multiple sources In-Reply-To: <20070220005142.6577.qmail@web88210.mail.re2.yahoo.com> Message-ID: You'd be going easy on ol' Billie boy there... ;) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Monday, February 19, 2007 6:52 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] combo from multiple sources Well done. But the next time you call me Art, I shall send some 18th street gangers to drive by your house. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: William Hindman To: Access Developers discussion and problem solving Sent: Monday, February 19, 2007 7:23:05 PM Subject: Re: [AccessD] combo from multiple sources ...I've gone a step further Art ...I now have a tblGeo in my templates which holds unique info relevant to a geographical location including GeoID, PostCode, CityID, Prime, CountyID, StateID, NationID, RegionID, longitude, and latitude ...I moved to this format to resolve differences in worldwide postal addressing and then added long/lat to be able to target addresses within circular references when that need cropped up ...the GeoID becomes the fk in any query requiring address/location info. William Hindman -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Tue Feb 20 01:50:09 2007 From: artful at rogers.com (artful at rogers.com) Date: Mon, 19 Feb 2007 23:50:09 -0800 (PST) Subject: [AccessD] OT: Batch File variable Message-ID: <905034.32493.qm@web88207.mail.re2.yahoo.com> If you wish you can also pass it from the command line. Call the batch file like this: myBatch 200702 and substitute %1 for every occurrence of 200702 EG \\SomeServer\SomeCoolFolder\SomeCoolFileFilder\ file:///\\SomeServer\SomeCoolFolder\SomeCoolFileFilder\%1 Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Stuart McLachlan To: Darren DICK ; Access Developers discussion and problem solving Sent: Monday, February 19, 2007 8:54:36 PM Subject: Re: [AccessD] OT: Batch File variable On 20 Feb 2007 at 12:26, Darren DICK wrote: > Is there a way to declare a variable in a batch file? > > EG varMonthYear = 200702 and then just 'tack' that to the end > > EG \\SomeServer\SomeCoolFolder\SomeCoolFileFilder\ > & varmonthYear > > That way I only have to edit the variable > Environment variables. To set it: SET varmonthyear = "200702" to use it: .... + %varmonthyear% -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.eu Tue Feb 20 02:49:49 2007 From: Erwin.Craps at ithelps.eu (Erwin Craps - IT Helps) Date: Tue, 20 Feb 2007 09:49:49 +0100 Subject: [AccessD] Automating email References: <20070220004505.YMFB25916.fep04.xtra.co.nz@Dalyn.dalyn.co.nz> <005201c7548a$1e9d8c10$6401a8c0@office> Message-ID: <430E80531228BA4497C5EB1A7BA786B002427A@stekelbes.ithelps.local> If you are not using Exchange server but a internet account and did not specified a valid smtp server, it is normal that your e-mail stays queded in the outbox. However, I seen it before in my programming that e-mails don't get send in one situation I believe it was a Outlook bug (thats solved in the meanwhile but since then I always also do this. I stronly suggest to resolve the recipients before sending. With outMsg .To = "newsgrps at dalyn.co.nz" .Subject = "Test egas email" strHTMLOriginalEmailBody = .HTMLBody strHTMLBody =" Hi this is my text in the e-mailbody" .HTMLBody = strHTMLBody & strHTMLOriginalEmailBody .Display .Recipients.ResolveAll .Send End with The .Display is no longer needed because the Outlook bug display/resolve is solved when you are fully updated. The reason why you need to display first (when bug is present) is that the resolve does not work when the message is hidden. Resolving the recipients will check if all e-mailaddresses are correct formatted and or exisisting in the contacts. Please also note that if the user has a E-mail footer it will disapear when simply dooing .body = "message" You need to store the body from the newly created mailitem and add it afterwards. Because Outlook is using by default, and most people do, HTML based e-mail you need to work with the .HTMLbody instead of the .body. If you mix both you gonna get some mish mash body :-) Hope this helps Greets -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Tuesday, February 20, 2007 1:58 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Automating email Hi David - I only use the .Display option in my apps so that the users can add some text to the email if they want to before it is sent, but .send WILL send the email depending on their Outlook preferences. ie. if they have [tools] [options] [mail delivery] 'Send immediately when connected' turned on, then yes, it will send. I haven;t found any way of that email not going into sent items though. Kath ----- Original Message ----- From: David Emerson To: accessd at databaseadvisors.com Sent: Tuesday, February 20, 2007 11:31 AM Subject: [AccessD] Automating email Group, I have the following code to create an email message: Public Function basSendEmail() Dim outApp As Outlook.Application, outMsg As MailItem Set outApp = CreateObject("Outlook.Application") Set outMsg = outApp.CreateItem(olMailItem) With outMsg .To = "newsgrps at dalyn.co.nz" .Subject = "Test egas email" .Body = "Test message" .Send End With Set outApp = Nothing Set outMsg = Nothing End Function This works fine but only puts the message into my Outlook outbox - it doesn't send it. This may be because although I have outlook installed I do not use it (and it has not been set up). However, my clients use outlook. Will the above code automatically send out emails? Another question - My client would prefer not to have copies in their outbox of the email being sent out (ultimately it will be to email out accounts and they don't want thousands of emails generated each month). Is there a way for the messages not to appear in outlook? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Feb 20 04:30:37 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 20 Feb 2007 11:30:37 +0100 Subject: [AccessD] Join expression not supported Message-ID: Hi Chester Maybe Well_Number is not a string? Thus: LEFT JOIN ConfigMaster ON Right([ConfigMaster].[PID],Len([ConfigMaster].[PID])-4))= CStr(dbo_DSS_CompletionMaster.Well_Number) /gustav >>> Chester_Kaup at kindermorgan.com 19-02-2007 18:30:05 >>> I an getting a join expression not supported error from the following query. I am not seeing the problem. Thanks SELECT dbo_DSS_CompletionMaster.PID, Right(ConfigMaster.PID,Len(ConfigMaster.PID)-4) AS WellName FROM ConfigMaster, dbo_DSS_CompletionMaster LEFT JOIN ConfigMaster ON Right([ConfigMaster].[PID],Len([ConfigMaster].[PID])-4))= dbo_DSS_CompletionMaster.Well_Number WHERE (((ConfigMaster.PID) Like "PAT*") AND ((Right([ConfigMaster].[PID],Len([ConfigMaster].[PID])-4)) Not Like "*GAP") GROUP BY dbo_DSS_CompletionMaster.PID, Right(ConfigMaster.PID,Len(ConfigMaster.PID)-4); Chester Kaup From Gustav at cactus.dk Tue Feb 20 06:06:35 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 20 Feb 2007 13:06:35 +0100 Subject: [AccessD] Missing references Message-ID: Hi Shamil Great site! Lots of info if you browse a little and many valuable links. /gustav >>> shamil at users.mns.ru 19-02-2007 22:03:46 >>> Hi Everyone, Please have a look here: http://www.fredshack.com/docs/com.html << - Objects can be accessed in two modes: Early bound (the EXE can compile direct function calls by looking up the address of the method in the vtable array of pointers to functions), or late bound (the EXE go through the IDispatch interface to locate functions). Early binding is recommended for performance reasons, since calls are made directly to the ad hoc interface, while with late binding, calls are made through the IDispatch interface which can determine the methods and properties of the object at runtime. - Marshaling is the process of collecting the necessary information for an EXE to call a COM object that lives outside of the memory space of the calling EXE, since 32-bit versions of Windows keep the two processes separate - Marshaling isn't required if the COM server lives in the same address space as the calling EXE, but is required if the COM server is itself an EXE, and, thus, lives in a different address space. The COM EXE can run on either the same computer as the caller EXE, or on a remote computer, in which case the technology called Distributed Component Object Model (DCOM) is used - In Visual Basic you can implement early binding by adding a reference to an object via the references dialog box, then declaring a variable using the specific object type instead of As Object. This can substantially reduce the time it takes to access methods and properties in the object - Late binding occurs in Visual Basic when you dimension an object variable to be As Object. An object variable can hold any type of object. Since the variable can reference any object and must support whatever methods or properties that object may implement, it clearly can have no way of knowing until runtime what those methods and properties may be. Without late binding and the IDispatch Interface, the As Object type of variable would not be possible - OLE Automation ("Automation" for short) is the late-bound way of calling an object, and thus, relies on the existence of an IDispatch for this interface - The IDispatch interface consists of the following functions: GetTypeInfoCount(), GetTypeInfo(), GetIDsOfNames(), Invoke() Each method or property supported by an interface has a dispatch ID - a number that identifies that method or property. Thus, while each method has its own dispatch ID, the function to set a property and the function to retrieve that same property will share the same dispatch ID >> -- Shamil From BarbaraRyan at cox.net Tue Feb 20 06:42:17 2007 From: BarbaraRyan at cox.net (Barbara Ryan) Date: Tue, 20 Feb 2007 07:42:17 -0500 Subject: [AccessD] Code Library, Sample Database, Etc. Message-ID: <007701c754ec$8eafcf10$0a00a8c0@PCRURI35> I have been using DAO in my Access databases but now am trying to learn ADO. I have found "snippets" of code on various websites, but was hoping to find a sample database showing how to "tie it all together". In your opinion, what is the best "Best Access Practices" list? (e.g., white papers, etc.) If anyone has a "code library" that they would like to share, I would be more than happy to see it! I have learned SO much from all of you --- even if many of the discussions have been "over my head" ---- Thanks! Thanks! Barb Ryan From jimdettman at verizon.net Tue Feb 20 09:11:23 2007 From: jimdettman at verizon.net (Jim Dettman) Date: Tue, 20 Feb 2007 10:11:23 -0500 Subject: [AccessD] Missing references In-Reply-To: <003201c75469$72a406c0$6401a8c0@nant> References: <000a01c75447$b7761990$657aa8c0@m6805> <003201c75469$72a406c0$6401a8c0@nant> Message-ID: <001401c75501$634c9500$8abea8c0@XPS> Shamil, <> Thanks for that site. I tried hunting for a bit yesterday to find something that specifically stated that when you create an object with a SET statement, the only thing that happens is that you get a pointer to the COM object. The above statement from the site you pointed out states exactly that. It's as I remembered it; each property/method reference must make a call to lookup the functions address. Those may be cached somewhere, but the calls are made each and every time. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Monday, February 19, 2007 4:04 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references Hi Everyone, Please have a look here: http://www.fredshack.com/docs/com.html << - Objects can be accessed in two modes: Early bound (the EXE can compile direct function calls by looking up the address of the method in the vtable array of pointers to functions), or late bound (the EXE go through the IDispatch interface to locate functions). Early binding is recommended for performance reasons, since calls are made directly to the ad hoc interface, while with late binding, calls are made through the IDispatch interface which can determine the methods and properties of the object at runtime. - Marshaling is the process of collecting the necessary information for an EXE to call a COM object that lives outside of the memory space of the calling EXE, since 32-bit versions of Windows keep the two processes separate - Marshaling isn't required if the COM server lives in the same address space as the calling EXE, but is required if the COM server is itself an EXE, and, thus, lives in a different address space. The COM EXE can run on either the same computer as the caller EXE, or on a remote computer, in which case the technology called Distributed Component Object Model (DCOM) is used - In Visual Basic you can implement early binding by adding a reference to an object via the references dialog box, then declaring a variable using the specific object type instead of As Object. This can substantially reduce the time it takes to access methods and properties in the object - Late binding occurs in Visual Basic when you dimension an object variable to be As Object. An object variable can hold any type of object. Since the variable can reference any object and must support whatever methods or properties that object may implement, it clearly can have no way of knowing until runtime what those methods and properties may be. Without late binding and the IDispatch Interface, the As Object type of variable would not be possible - OLE Automation ("Automation" for short) is the late-bound way of calling an object, and thus, relies on the existence of an IDispatch for this interface - The IDispatch interface consists of the following functions: GetTypeInfoCount(), GetTypeInfo(), GetIDsOfNames(), Invoke() Each method or property supported by an interface has a dispatch ID - a number that identifies that method or property. Thus, while each method has its own dispatch ID, the function to set a property and the function to retrieve that same property will share the same dispatch ID >> -- Shamil -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Tue Feb 20 09:28:27 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 20 Feb 2007 15:28:27 +0000 Subject: [AccessD] combo from multiple sources In-Reply-To: <001a01c75473$83a80f70$fcb82ad1@SUSANONE> Message-ID: I'm originally from Lafayette, LA...and last month a good friend called for a favor, for her friend, who happened to be a cop. The favor was Access Related(go figure)...so I looked at the db she was working on. She had done well with how the form looked and had most of the fields needed in some table somewhere...but 1 PK for all the tables...and it didn't play well with itself. After hearing how they got to this point(here's a little history): This is to track arrests, drugs, and weapons. Right now they write it down in a notebook...and then go through the book and count the points of interest to report up. They have no budget...so she was trying to build it herself. The officers take up a collection each week to have their 'Port-O-Jon" emptied. This kinda ticked me off. I mean how long has it been...and the cops have to pay for their own toilet? What other service is local government supposed to be providing, but can't because of lack of equipment/software? How does social services know they need to go check on little mary or bobby to make sure their getting fed??? Anyway, they just wanted a little 'shove' in the right direction with the db...but it seemed more like pushing them off a cliff...so I built the data model, all of the forms, and the logic needed to get the reports at the end...and some reports...but I left the db open for her to change the labels, colors, whatever...and to write additional queries as needed. I couldn't charge them. OK>>>Stepping down from podium<<<<< Sorry about the rant... At one point I wanted to show every name associated with a case in a combo to identify which name was used. This included alias's which were in a different table. So I needed data displayed from 2 different tables...and I just used a UNION query as the source. Does this address your question? Thanks, Mark A. Matte >From: "Susan Harkins" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] combo from multiple sources >Date: Mon, 19 Feb 2007 17:15:49 -0500 > > >I recently built, and donated, a db for the New Orleans Police department. >One aspect was suspect info. I had to create another section to accomodate >multiple aliases. I could have used a combo to list names from both >tables...I ended up using a more detailed form to search...but a combo to >list names and aliases could have been used...I would have just used a >UNION > >query as the source. > >===========Donated? You're a good guy. Bill spent a few weeks down there >right after Katrina and he promised a few of the cops that we'd come back >for a vacation and spend money. ;) > >So, if you created such a combo, what would you use it for? > >Susan H. > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Find a local pizza place, movie theater, and more?.then map the best route! http://maps.live.com/?icid=hmtag1&FORM=MGAC01 From ssharkins at setel.com Tue Feb 20 10:01:53 2007 From: ssharkins at setel.com (Susan Harkins) Date: Tue, 20 Feb 2007 11:01:53 -0500 Subject: [AccessD] combo from multiple sources In-Reply-To: Message-ID: <001a01c75508$73635ee0$3432fad1@SUSANONE> At one point I wanted to show every name associated with a case in a combo to identify which name was used. This included alias's which were in a different table. So I needed data displayed from 2 different tables...and I just used a UNION query as the source. Does this address your question? ==========About the rant? Nicely done. :) As for the combo box -- it would be for display? You weren't using it to filter other data? Sounds like an interesting project btw. :) Susan H. From artful at rogers.com Tue Feb 20 10:35:47 2007 From: artful at rogers.com (artful at rogers.com) Date: Tue, 20 Feb 2007 08:35:47 -0800 (PST) Subject: [AccessD] combo from multiple sources Message-ID: <400911.58344.qm@web88208.mail.re2.yahoo.com> Personally, I wouldn't keep the aliases in a separate table, for exactly one reason. Suppose that during my criminal career I had the following aliases: Arthur Harkins Arthur Hindman Alphonse Carbonnell Arthur W Colby Arthur G Brock Arturo Francisco Tapia etc. Presumably all these are tied to the birthname of the malfeasant Arthur Fuller. I would keep them all in a single table, with a column in it called OriginalPK, that was based on some unique identifier such as SSN or SIN (in Canada). For police applications, I think this is permitted. At any rate, I don't care that Arthur Hindman uses the alias Arthur Colby; what I care about is that Arthur Fuller has many aliases. This could be achieved with separate tables, but I don't really see the advantage to doing so. There is also the (potential) issue that the miscreant in question stopped using a particular alias at some point. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Susan Harkins To: Access Developers discussion and problem solving Sent: Tuesday, February 20, 2007 11:01:53 AM Subject: Re: [AccessD] combo from multiple sources At one point I wanted to show every name associated with a case in a combo to identify which name was used. This included alias's which were in a different table. So I needed data displayed from 2 different tables...and I just used a UNION query as the source. Does this address your question? ==========About the rant? Nicely done. :) As for the combo box -- it would be for display? You weren't using it to filter other data? Sounds like an interesting project btw. :) 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 Feb 20 10:56:38 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 20 Feb 2007 08:56:38 -0800 Subject: [AccessD] Code Library, Sample Database, Etc. In-Reply-To: <007701c754ec$8eafcf10$0a00a8c0@PCRURI35> References: <007701c754ec$8eafcf10$0a00a8c0@PCRURI35> Message-ID: I have several sample databases on Rogers' Access site that use ADO. http://www.rogersaccesslibrary.com/OtherLibraries.asp#Foust,%20Charlotte There were several books published by Wrox that covered ADO 2.5, but I haven't kept up with later publications. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Barbara Ryan Sent: Tuesday, February 20, 2007 4:42 AM To: Access List Subject: [AccessD] Code Library, Sample Database, Etc. I have been using DAO in my Access databases but now am trying to learn ADO. I have found "snippets" of code on various websites, but was hoping to find a sample database showing how to "tie it all together". In your opinion, what is the best "Best Access Practices" list? (e.g., white papers, etc.) If anyone has a "code library" that they would like to share, I would be more than happy to see it! I have learned SO much from all of you --- even if many of the discussions have been "over my head" ---- Thanks! Thanks! Barb Ryan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Tue Feb 20 11:00:02 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 20 Feb 2007 11:00:02 -0600 Subject: [AccessD] Code Library, Sample Database, Etc. In-Reply-To: <007701c754ec$8eafcf10$0a00a8c0@PCRURI35> Message-ID: ADO is very similar to DAO, here's the big differences: Connecting. In DAO, you have to create a workspace, then a database, then connect with a recordset, so you have three objects you are dealing with. In Access, you can just use CurrentDB, which already has it's own workspace. In ADO, you have a connection object then a recordset object. Just connect the connection object and you're off and running. The nice thing is that ADO can connect to all sorts of stuff, text files, excel files, word docs, .mdbs, ODBC connections, etc. One trick when dealing with Access, use the following: Function DBConnect(byref cnn as ADODB.Connection) Set cnn=new ADODB.Connection Cnn.provider="Microsoft.Jet.OLEDB.4.0" Cnn.Open "PathToYourDatabase" End function Almost every one of my projects uses the above function. Most of them have the db path hardcoded as I show above. When working within Access, you don't need to create a connection object, just use CurrentProject.Connection Wildcards. ADO doesn't use * (or the other wildcard symbols). In ADO, you use %. Which can be confusing within Access, because the querries in access will use *, but running SQL against an ADO recordset will require %. Recordset types. When opening a recordset, you have to set the cursor type and the lock type. Personally I use adOpenKeyset for ALL of my recordsets, and then adLockOptimistic or adLockReadOnly (if you only need to read data, it's better to only put a read lock on the recordset). Directly to a table. In ADO, if you are going to just open a table, instead of opening an SQL statement, at the end, you add adcmdTableDirect. Our old version of Oracle requires that even with an SQL statement. Go figure. There's obviously more to learn with ADO, but these are the biggies, IMO. Once these are under your belt, you'll find ADO to be just as easy as using DAO (sometimes easier). On connecting to different datasources, I used to have a website in my favorites that listed a ton of connection strings and provider strings, I looked, it's not there anymore.... sorry. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Barbara Ryan Sent: Tuesday, February 20, 2007 6:42 AM To: Access List Subject: [AccessD] Code Library, Sample Database, Etc. I have been using DAO in my Access databases but now am trying to learn ADO. I have found "snippets" of code on various websites, but was hoping to find a sample database showing how to "tie it all together". In your opinion, what is the best "Best Access Practices" list? (e.g., white papers, etc.) If anyone has a "code library" that they would like to share, I would be more than happy to see it! I have learned SO much from all of you --- even if many of the discussions have been "over my head" ---- Thanks! Thanks! Barb Ryan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Tue Feb 20 11:06:15 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 20 Feb 2007 11:06:15 -0600 Subject: [AccessD] combo from multiple sources In-Reply-To: <400911.58344.qm@web88208.mail.re2.yahoo.com> Message-ID: Right, but it is a potential many to many. Ie, There may be an Arthur Harkins by birth, and one by alias, there also may be 2 different people that both use Arthur Colby as an alias. So your people table would have every person listed once, your alias table would have every Alias name listed once (regardless of how many people go by Arthur Colby, or John Doe). Then you'd have a many to many table, one column being the ID of the people table, and the other the ID from the alias table. When they need to find Alphonse Cabonnell, the query would be a UNION query between the name field of the people table, and the join of the alias/many to many table. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Tuesday, February 20, 2007 10:36 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] combo from multiple sources Personally, I wouldn't keep the aliases in a separate table, for exactly one reason. Suppose that during my criminal career I had the following aliases: Arthur Harkins Arthur Hindman Alphonse Carbonnell Arthur W Colby Arthur G Brock Arturo Francisco Tapia etc. Presumably all these are tied to the birthname of the malfeasant Arthur Fuller. I would keep them all in a single table, with a column in it called OriginalPK, that was based on some unique identifier such as SSN or SIN (in Canada). For police applications, I think this is permitted. At any rate, I don't care that Arthur Hindman uses the alias Arthur Colby; what I care about is that Arthur Fuller has many aliases. This could be achieved with separate tables, but I don't really see the advantage to doing so. There is also the (potential) issue that the miscreant in question stopped using a particular alias at some point. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Susan Harkins To: Access Developers discussion and problem solving Sent: Tuesday, February 20, 2007 11:01:53 AM Subject: Re: [AccessD] combo from multiple sources At one point I wanted to show every name associated with a case in a combo to identify which name was used. This included alias's which were in a different table. So I needed data displayed from 2 different tables...and I just used a UNION query as the source. Does this address your question? ==========About the rant? Nicely done. :) As for the combo box -- it would be for display? You weren't using it to filter other data? Sounds like an interesting project btw. :) 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 cfoust at infostatsystems.com Tue Feb 20 11:11:07 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 20 Feb 2007 09:11:07 -0800 Subject: [AccessD] Code Library, Sample Database, Etc. In-Reply-To: References: <007701c754ec$8eafcf10$0a00a8c0@PCRURI35> Message-ID: One HUGE difference is that the object model of ADO contains relatively few objects, unlike DAO which contains a ton of them. ADO is like a Swiss Army Knife! You can do just about everything you can with a sophisticated toolkit, but you have to be more creative in doing so. LOL Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, February 20, 2007 8:57 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Library, Sample Database, Etc. I have several sample databases on Rogers' Access site that use ADO. http://www.rogersaccesslibrary.com/OtherLibraries.asp#Foust,%20Charlotte There were several books published by Wrox that covered ADO 2.5, but I haven't kept up with later publications. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Barbara Ryan Sent: Tuesday, February 20, 2007 4:42 AM To: Access List Subject: [AccessD] Code Library, Sample Database, Etc. I have been using DAO in my Access databases but now am trying to learn ADO. I have found "snippets" of code on various websites, but was hoping to find a sample database showing how to "tie it all together". In your opinion, what is the best "Best Access Practices" list? (e.g., white papers, etc.) If anyone has a "code library" that they would like to share, I would be more than happy to see it! I have learned SO much from all of you --- even if many of the discussions have been "over my head" ---- Thanks! Thanks! Barb Ryan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Tue Feb 20 11:44:19 2007 From: artful at rogers.com (artful at rogers.com) Date: Tue, 20 Feb 2007 09:44:19 -0800 (PST) Subject: [AccessD] Code Library, Sample Database, Etc. Message-ID: <898630.97480.qm@web88201.mail.re2.yahoo.com> Well phrased, Charlotte. The moment I saw the ADO model I dumped DAO and have seldom looked back. Arthur ----- Original Message ---- From: Charlotte Foust To: Access Developers discussion and problem solving Sent: Tuesday, February 20, 2007 12:11:07 PM Subject: Re: [AccessD] Code Library, Sample Database, Etc. One HUGE difference is that the object model of ADO contains relatively few objects, unlike DAO which contains a ton of them. ADO is like a Swiss Army Knife! You can do just about everything you can with a sophisticated toolkit, but you have to be more creative in doing so. LOL Charlotte From mmattys at rochester.rr.com Tue Feb 20 12:06:03 2007 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Tue, 20 Feb 2007 13:06:03 -0500 Subject: [AccessD] combo from multiple sources References: Message-ID: <005101c75519$d11c88c0$0202a8c0@default> Hi Mark, If those folks can use a wall map, they can download the map of New Orleans here: http://www.mattysconsulting.com/GalleryFrameset.htm I made a map of each state also (click on North America) and the click the image-map for Louisiana. Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "Mark A Matte" To: Sent: Tuesday, February 20, 2007 10:28 AM Subject: Re: [AccessD] combo from multiple sources > I'm originally from Lafayette, LA...and last month a good friend called > for > a favor, for her friend, who happened to be a cop. The favor was Access > Related(go figure)...so I looked at the db she was working on. She had > done > well with how the form looked and had most of the fields needed in some > table somewhere...but 1 PK for all the tables...and it didn't play well > with > itself. > > After hearing how they got to this point(here's a little history): This > is > to track arrests, drugs, and weapons. Right now they write it down in a > notebook...and then go through the book and count the points of interest > to > report up. They have no budget...so she was trying to build it herself. > The officers take up a collection each week to have their 'Port-O-Jon" > emptied. > > This kinda ticked me off. I mean how long has it been...and the cops have > to pay for their own toilet? What other service is local government > supposed to be providing, but can't because of lack of equipment/software? > How does social services know they need to go check on little mary or > bobby > to make sure their getting fed??? > > > Anyway, they just wanted a little 'shove' in the right direction with the > db...but it seemed more like pushing them off a cliff...so I built the > data > model, all of the forms, and the logic needed to get the reports at the > end...and some reports...but I left the db open for her to change the > labels, colors, whatever...and to write additional queries as needed. > > I couldn't charge them. OK>>>Stepping down from podium<<<<< > > Sorry about the rant... > > At one point I wanted to show every name associated with a case in a combo > to identify which name was used. This included alias's which were in a > different table. So I needed data displayed from 2 different tables...and > I > just used a UNION query as the source. > > Does this address your question? > > Thanks, > > Mark A. Matte From BarbaraRyan at cox.net Tue Feb 20 12:04:57 2007 From: BarbaraRyan at cox.net (Barbara Ryan) Date: Tue, 20 Feb 2007 13:04:57 -0500 Subject: [AccessD] Code Library, Sample Database, Etc. References: <898630.97480.qm@web88201.mail.re2.yahoo.com> Message-ID: <016001c75519$a1d913d0$0a00a8c0@PCRURI35> Thanks for the help! ....and I will check out your databases, Charlotte. Looks like there's LOTS of good stuff on Roger's site....Barb ----- Original Message ----- From: To: "Access Developers discussion and problem solving" Sent: Tuesday, February 20, 2007 12:44 PM Subject: Re: [AccessD] Code Library, Sample Database, Etc. > Well phrased, Charlotte. The moment I saw the ADO model I dumped DAO and > have seldom looked back. > > > Arthur > > > > ----- Original Message ---- > From: Charlotte Foust > To: Access Developers discussion and problem solving > > Sent: Tuesday, February 20, 2007 12:11:07 PM > Subject: Re: [AccessD] Code Library, Sample Database, Etc. > > > One HUGE difference is that the object model of ADO contains relatively > few objects, unlike DAO which contains a ton of them. ADO is like a > Swiss Army Knife! You can do just about everything you can with a > sophisticated toolkit, but you have to be more creative in doing so. LOL > > Charlotte > -- > 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 Feb 20 12:03:38 2007 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Tue, 20 Feb 2007 12:03:38 -0600 Subject: [AccessD] OT: Batch File variable In-Reply-To: References: Message-ID: <200702201805.l1KI5Zi04072@databaseadvisors.com> Take a look at WinBatch to do this kind of stuff. I believe you can pass the year and month into the batch file created with it. Robert At 12:00 PM 2/20/2007, you wrote: >Date: Tue, 20 Feb 2007 12:26:42 +1100 >From: "Darren DICK" >Subject: [AccessD] OT: Batch File variable >To: "'Access Developers discussion and problem solving'" > >Message-ID: <200702200126.l1K1Qki13686 at databaseadvisors.com> >Content-Type: text/plain; charset="us-ascii" > >Hi All > > > >I realise this is OT so please respond off list to darrend at nimble.com.au > > > >I have many lines in a batch file - just moves downloaded local files to a >network drive - simple > > > >The folders on the network drives are divided in to Current Year and Current >Month > > > >EG \\SomeServer\SomeCoolFolder\SomeCoolFileFolder\200702 > - >For Feb this >year - Rocket Science 'eh? > > > >On my local machine the files are stored in the second lowest level > >EG \\SomeServer\SomeCoolFolder\SomeCoolFileFilder > - IE = without the >Year Month > > > >At the beginning of each month I edit the Month (in this case 200702) in the >batch file - many lines and is a real PITA if I stuff it up > > > >Is there a way to declare a variable in a batch file? > > > >EG varMonthYear = 200702 and then just 'tack' that to the end > >EG \\SomeServer\SomeCoolFolder\SomeCoolFileFilder\ > & varmonthYear > > > >That way I only have to edit the variable > > > >I realise this is OT so feel free to respond off list please to >darrend at nimble.com.au > > > >Many thanks > > > >See ya > > > >Darren From rl_stewart at highstream.net Tue Feb 20 12:09:06 2007 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Tue, 20 Feb 2007 12:09:06 -0600 Subject: [AccessD] Code Library, Sample Database, Etc. In-Reply-To: References: Message-ID: <200702201810.l1KIAXi06195@databaseadvisors.com> Barb, I think the only way to completely "tie it all together" is to use SQL Server and an ADP. Behind the forms and such it s completely ADO. MDEs are not if you use a bound form. Robert P.S. Besides, I would never use Access for the database any way. SQL Server is much better at storing it and being stable. At 12:00 PM 2/20/2007, you wrote: >Date: Tue, 20 Feb 2007 07:42:17 -0500 >From: "Barbara Ryan" >Subject: [AccessD] Code Library, Sample Database, Etc. >To: "Access List" >Message-ID: <007701c754ec$8eafcf10$0a00a8c0 at PCRURI35> >Content-Type: text/plain; charset="iso-8859-1" > >I have been using DAO in my Access databases but now am trying to >learn ADO. I have found "snippets" of code on various websites, but >was hoping to find a sample database showing how to "tie it all together". > >In your opinion, what is the best "Best Access Practices" >list? (e.g., white papers, etc.) > >If anyone has a "code library" that they would like to share, I >would be more than happy to see it! > >I have learned SO much from all of you --- even if many of the >discussions have been "over my head" ---- Thanks! > >Thanks! >Barb Ryan From artful at rogers.com Tue Feb 20 12:21:36 2007 From: artful at rogers.com (artful at rogers.com) Date: Tue, 20 Feb 2007 10:21:36 -0800 (PST) Subject: [AccessD] combo from multiple sources Message-ID: <20070220182137.69482.qmail@web88210.mail.re2.yahoo.com> So you're the mastermind behind Google Maps? ----- Original Message ---- From: Michael R Mattys To: Access Developers discussion and problem solving Sent: Tuesday, February 20, 2007 1:06:03 PM Subject: Re: [AccessD] combo from multiple sources Hi Mark, If those folks can use a wall map, they can download the map of New Orleans here: http://www.mattysconsulting.com/GalleryFrameset.htm I made a map of each state also (click on North America) and the click the image-map for Louisiana. Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com From markamatte at hotmail.com Tue Feb 20 12:28:42 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 20 Feb 2007 18:28:42 +0000 Subject: [AccessD] combo from multiple sources In-Reply-To: <001a01c75508$73635ee0$3432fad1@SUSANONE> Message-ID: >==========About the rant? Nicely done. :) Thank you... >As for the combo box -- it would be for display? You weren't using it to >filter other data? Sounds like an interesting project btw. :) We changed the approach and didn't need it...but the names and aliases were related via a Person_ID...and the combo wasn't just for viewing...it was to select what name was used at that time. The db maintains all suspect info for lookup later...so if Bob Menard(his real name) was arrested and used the alias( John Boudreaux). He may have had 3 other known aliases. On the case the Person_ID would be used and the name Bob Menard shows...the combo comes in when they wanted to know what alias was used in this instance(but he could have used his real name). We didn't use it in the end...but this was the reason why. I probably would have structured the tables differently...but being short on time...it was the quickest fix storing aliases in different tables than the names. Thanks, Mark A. Matte >From: "Susan Harkins" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] combo from multiple sources >Date: Tue, 20 Feb 2007 11:01:53 -0500 > >At one point I wanted to show every name associated with a case in a combo >to identify which name was used. This included alias's which were in a >different table. So I needed data displayed from 2 different tables...and >I > >just used a UNION query as the source. > >Does this address your question? > >==========About the rant? Nicely done. :) > >As for the combo box -- it would be for display? You weren't using it to >filter other data? Sounds like an interesting project btw. :) > >Susan H. > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Find what you need at prices you?ll love. Compare products and save at MSN? Shopping. http://shopping.msn.com/default/shp/?ptnrid=37,ptnrdata=24102&tcode=T001MSN20A0701 From artful at rogers.com Tue Feb 20 12:31:27 2007 From: artful at rogers.com (artful at rogers.com) Date: Tue, 20 Feb 2007 10:31:27 -0800 (PST) Subject: [AccessD] CodeLib Message-ID: <20070220183128.22951.qmail@web88204.mail.re2.yahoo.com> I think that my copy of CodeLib came with my installation of VS Studio 6, but I may have installed more recent updates. The salient question is, is this freely downloadable from any MS site, or must one install VS6 in order to use it? Arthur Fuller Technical Writer, Data Modeler, SQL Sensei www.artfulsoftware.com From markamatte at hotmail.com Tue Feb 20 12:32:48 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 20 Feb 2007 18:32:48 +0000 Subject: [AccessD] combo from multiple sources In-Reply-To: <005101c75519$d11c88c0$0202a8c0@default> Message-ID: Thanks Michael, I think they have that covered...but i will forward it on. Thanks, Mark A. Matte >From: "Michael R Mattys" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] combo from multiple sources >Date: Tue, 20 Feb 2007 13:06:03 -0500 > >Hi Mark, > >If those folks can use a wall map, they can download the >map of New Orleans here: >http://www.mattysconsulting.com/GalleryFrameset.htm > >I made a map of each state also (click on North America) >and the click the image-map for Louisiana. > >Michael R. Mattys >MapPoint & Access Dev >www.mattysconsulting.com > >----- Original Message ----- >From: "Mark A Matte" >To: >Sent: Tuesday, February 20, 2007 10:28 AM >Subject: Re: [AccessD] combo from multiple sources > > > > I'm originally from Lafayette, LA...and last month a good friend called > > for > > a favor, for her friend, who happened to be a cop. The favor was Access > > Related(go figure)...so I looked at the db she was working on. She had > > done > > well with how the form looked and had most of the fields needed in some > > table somewhere...but 1 PK for all the tables...and it didn't play well > > with > > itself. > > > > After hearing how they got to this point(here's a little history): This > > is > > to track arrests, drugs, and weapons. Right now they write it down in a > > notebook...and then go through the book and count the points of interest > > to > > report up. They have no budget...so she was trying to build it herself. > > The officers take up a collection each week to have their 'Port-O-Jon" > > emptied. > > > > This kinda ticked me off. I mean how long has it been...and the cops >have > > to pay for their own toilet? What other service is local government > > supposed to be providing, but can't because of lack of >equipment/software? > > How does social services know they need to go check on little mary or > > bobby > > to make sure their getting fed??? > > > > > > Anyway, they just wanted a little 'shove' in the right direction with >the > > db...but it seemed more like pushing them off a cliff...so I built the > > data > > model, all of the forms, and the logic needed to get the reports at the > > end...and some reports...but I left the db open for her to change the > > labels, colors, whatever...and to write additional queries as needed. > > > > I couldn't charge them. OK>>>Stepping down from podium<<<<< > > > > Sorry about the rant... > > > > At one point I wanted to show every name associated with a case in a >combo > > to identify which name was used. This included alias's which were in a > > different table. So I needed data displayed from 2 different >tables...and > > I > > just used a UNION query as the source. > > > > Does this address your question? > > > > Thanks, > > > > Mark A. Matte > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Find a local pizza place, movie theater, and more?.then map the best route! http://maps.live.com/?icid=hmtag1&FORM=MGAC01 From newsgrps at dalyn.co.nz Tue Feb 20 12:38:21 2007 From: newsgrps at dalyn.co.nz (David Emerson) Date: Wed, 21 Feb 2007 07:38:21 +1300 Subject: [AccessD] Automating email In-Reply-To: <005201c7548a$1e9d8c10$6401a8c0@office> References: <20070220004505.YMFB25916.fep04.xtra.co.nz@Dalyn.dalyn.co.nz> <005201c7548a$1e9d8c10$6401a8c0@office> Message-ID: <20070220183803.KUO26198.fep06.xtra.co.nz@Dalyn.dalyn.co.nz> Thanks Kath and Erwin, I eventually found some code that doesn't rely on outlook but uses another file called CDOEx.dll. It doesn't leave any items in outlook. In references you need to set the reference to Microsoft CDO for Exchange 2000 Library Public Function SendCdoMsg() On Error GoTo Err_SendCdoMsg Dim msg As Message Set msg = CreateObject("CDO.Message") With msg With .Configuration.Fields .Item(cdoSMTPAuthenticate) = cdoAnonymous .Item(cdoSendUsingMethod) = cdoSendUsingPort .Item(cdoSMTPServer) = "smtp.xtra.co.nz" .Item(cdoSMTPConnectionTimeout) = 10 .Item(cdoSMTPServerPort) = 25 .Update End With .Organization = "my" .To = "you at yourprovider" .Subject = "Example subject" .TextBody = "Example body" .From = "me at myprovider" .AddAttachment ("d:\aaaatemp\accarch135.zip") .Send End With Set msg = Nothing Exit_SendCdoMsg: Exit Function Err_SendCdoMsg: Select Case Err Case 0 MsgBox "0 error", vbCritical, "Error heading" Case Else Call basErrorMsg("SendCdoMsg") End Select Resume Exit_SendCdoMsg End Function At 20/02/2007, you wrote: >Hi David - I only use the .Display option in my apps so that the >users can add some text to the email if they want to before it is >sent, but .send WILL send the email depending on their Outlook preferences. > >ie. if they have [tools] [options] [mail delivery] 'Send immediately >when connected' turned on, then yes, it will send. > >I haven;t found any way of that email not going into sent items though. > >Kath > > ----- Original Message ----- > From: David Emerson > To: accessd at databaseadvisors.com > Sent: Tuesday, February 20, 2007 11:31 AM > Subject: [AccessD] Automating email > > > Group, > > I have the following code to create an email message: > > Public Function basSendEmail() > > Dim outApp As Outlook.Application, outMsg As MailItem > > Set outApp = CreateObject("Outlook.Application") > Set outMsg = outApp.CreateItem(olMailItem) > > With outMsg > .To = "newsgrps at dalyn.co.nz" > .Subject = "Test egas email" > .Body = "Test message" > .Send > End With > > Set outApp = Nothing > Set outMsg = Nothing > > End Function > > This works fine but only puts the message into my Outlook outbox - it > doesn't send it. This may be because although I have outlook > installed I do not use it (and it has not been set up). > > However, my clients use outlook. Will the above code automatically > send out emails? > > Another question - My client would prefer not to have copies in their > outbox of the email being sent out (ultimately it will be to email > out accounts and they don't want thousands of emails generated each > month). Is there a way for the messages not to appear in outlook? > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Feb 20 12:38:37 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 20 Feb 2007 10:38:37 -0800 Subject: [AccessD] Code Library, Sample Database, Etc. In-Reply-To: <200702201810.l1KIAXi06195@databaseadvisors.com> References: <200702201810.l1KIAXi06195@databaseadvisors.com> Message-ID: >>P.S. Besides, I would never use Access for the database any way. SQL Server is much better at storing it and being stable. Heresy!! Get out the boiling oil! LOL Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Tuesday, February 20, 2007 10:09 AM To: accessd at databaseadvisors.com Cc: BarbaraRyan at cox.net Subject: Re: [AccessD] Code Library, Sample Database, Etc. Barb, I think the only way to completely "tie it all together" is to use SQL Server and an ADP. Behind the forms and such it s completely ADO. MDEs are not if you use a bound form. Robert P.S. Besides, I would never use Access for the database any way. SQL Server is much better at storing it and being stable. From artful at rogers.com Tue Feb 20 12:41:15 2007 From: artful at rogers.com (artful at rogers.com) Date: Tue, 20 Feb 2007 10:41:15 -0800 (PST) Subject: [AccessD] Code Library, Sample Database, Etc. Message-ID: <192199.96210.qm@web88202.mail.re2.yahoo.com> While I agree with you, I also fear that you will be flamed from numerous devotees to the MDB BE concept. I have my flame extinguisher ready in case you need it. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Robert L. Stewart To: accessd at databaseadvisors.com Cc: BarbaraRyan at cox.net Sent: Tuesday, February 20, 2007 1:09:06 PM Subject: Re: [AccessD] Code Library, Sample Database, Etc. Barb, I think the only way to completely "tie it all together" is to use SQL Server and an ADP. Behind the forms and such it s completely ADO. MDEs are not if you use a bound form. Robert P.S. Besides, I would never use Access for the database any way. SQL Server is much better at storing it and being stable. From mmattys at rochester.rr.com Tue Feb 20 12:44:40 2007 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Tue, 20 Feb 2007 13:44:40 -0500 Subject: [AccessD] combo from multiple sources References: <20070220182137.69482.qmail@web88210.mail.re2.yahoo.com> Message-ID: <008601c7551f$313bd3a0$0202a8c0@default> Hi Arthur, No ... :) Anyway, that's Microsoft MapPoint / Street & Trips. I'm just making my website galleries. Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: To: "Access Developers discussion and problem solving" Sent: Tuesday, February 20, 2007 1:21 PM Subject: Re: [AccessD] combo from multiple sources > So you're the mastermind behind Google Maps? > ----- Original Message ---- > From: Michael R Mattys > To: Access Developers discussion and problem solving > > Sent: Tuesday, February 20, 2007 1:06:03 PM > Subject: Re: [AccessD] combo from multiple sources > > > Hi Mark, > > If those folks can use a wall map, they can download the > map of New Orleans here: > http://www.mattysconsulting.com/GalleryFrameset.htm > > I made a map of each state also (click on North America) > and the click the image-map for Louisiana. > > Michael R. Mattys > MapPoint & Access Dev > www.mattysconsulting.com From cfoust at infostatsystems.com Tue Feb 20 12:40:52 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 20 Feb 2007 10:40:52 -0800 Subject: [AccessD] CodeLib In-Reply-To: <20070220183128.22951.qmail@web88204.mail.re2.yahoo.com> References: <20070220183128.22951.qmail@web88204.mail.re2.yahoo.com> Message-ID: It was part of the Office Developer tools in XP and 2000, not just VS 6. I don't think it's freely downloadable, but it may be in the 2007 developer extensions. I haven't looked. There is a viewer that is theoretically redistributable. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Tuesday, February 20, 2007 10:31 AM To: Access Developers discussion and problem solving Subject: [AccessD] CodeLib I think that my copy of CodeLib came with my installation of VS Studio 6, but I may have installed more recent updates. The salient question is, is this freely downloadable from any MS site, or must one install VS6 in order to use it? Arthur Fuller Technical Writer, Data Modeler, SQL Sensei www.artfulsoftware.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 Feb 20 13:08:24 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 20 Feb 2007 11:08:24 -0800 Subject: [AccessD] Code Library, Sample Database, Etc. In-Reply-To: <192199.96210.qm@web88202.mail.re2.yahoo.com> References: <192199.96210.qm@web88202.mail.re2.yahoo.com> Message-ID: LOL! Not flamed, Arthur, deep fried! ;o> Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Tuesday, February 20, 2007 10:41 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Library, Sample Database, Etc. While I agree with you, I also fear that you will be flamed from numerous devotees to the MDB BE concept. I have my flame extinguisher ready in case you need it. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Robert L. Stewart To: accessd at databaseadvisors.com Cc: BarbaraRyan at cox.net Sent: Tuesday, February 20, 2007 1:09:06 PM Subject: Re: [AccessD] Code Library, Sample Database, Etc. Barb, I think the only way to completely "tie it all together" is to use SQL Server and an ADP. Behind the forms and such it s completely ADO. MDEs are not if you use a bound form. Robert P.S. Besides, I would never use Access for the database any way. SQL Server is much better at storing it and being stable. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at users.mns.ru Tue Feb 20 13:21:29 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Tue, 20 Feb 2007 22:21:29 +0300 Subject: [AccessD] Missing references In-Reply-To: <001401c75501$634c9500$8abea8c0@XPS> Message-ID: <000001c75524$52b9a430$6401a8c0@nant> <<< each property/method reference must make a call to lookup the functions address. >>> Yes, Jim, that's how VBA works internally for late binding. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Tuesday, February 20, 2007 6:11 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references Shamil, <> Thanks for that site. I tried hunting for a bit yesterday to find something that specifically stated that when you create an object with a SET statement, the only thing that happens is that you get a pointer to the COM object. The above statement from the site you pointed out states exactly that. It's as I remembered it; each property/method reference must make a call to lookup the functions address. Those may be cached somewhere, but the calls are made each and every time. Jim. From DorisH3 at aol.com Tue Feb 20 13:22:17 2007 From: DorisH3 at aol.com (DorisH3 at aol.com) Date: Tue, 20 Feb 2007 14:22:17 EST Subject: [AccessD] Macro to export query records to Excel Message-ID: Does anyone know how to write a macro to export query records to MS Excel and have the Access macro open the Excel file? I know I've asked this question once before but I got VB code and I don't know VB, so please excuse the fact that I am a novice at this....I thank you in advance for any help that this list extents me. Doris


**************************************
Check out free AOL at http://free.aol.com/thenewaol/index.adp. Most comprehensive set of free safety and security tools, millions of free high-quality videos from across the web, free AOL Mail and much more. From wdhindman at dejpolsystems.com Tue Feb 20 13:23:44 2007 From: wdhindman at dejpolsystems.com (William Hindman) Date: Tue, 20 Feb 2007 14:23:44 -0500 Subject: [AccessD] Code Library, Sample Database, Etc. References: <192199.96210.qm@web88202.mail.re2.yahoo.com> Message-ID: <001701c75524$a3de0a90$9258eb44@50NM721> Arthur ...its not a matter of agreeing or disagreeing ...if you work in an environment where SS is available and the notwork resources are available to support it, of course you would use SS in most applications. ...but if you are a consultant working with many small businesses where you are it, then a well designed dao mdb fe/be can be highly stable and work every bit as well as an adp/SS combo ...in point of fact with up to at least 15 users a well designed dao based mdb will normally out perform an ado based fe. ...and with A'07 it appears that MS itself is moving back to the dao model ...what irks me is people declaring that their favorite model is best for everyone ...or casting unwarranted aspersions on Access be's and dao when they really don't work in an environment where that model functions best. William Hindman ----- Original Message ----- From: To: "Access Developers discussion and problem solving" Sent: Tuesday, February 20, 2007 1:41 PM Subject: Re: [AccessD] Code Library, Sample Database, Etc. > While I agree with you, I also fear that you will be flamed from numerous > devotees to the MDB BE concept. I have my flame extinguisher ready in case > you need it. > > > Arthur Fuller > Technical Writer, Data Modeler, SQL Sensei > Artful Databases Organization > www.artfulsoftware.com > > > > > ----- Original Message ---- > From: Robert L. Stewart > To: accessd at databaseadvisors.com > Cc: BarbaraRyan at cox.net > Sent: Tuesday, February 20, 2007 1:09:06 PM > Subject: Re: [AccessD] Code Library, Sample Database, Etc. > > > Barb, > > I think the only way to completely "tie it all together" > is to use SQL Server and an ADP. Behind the forms and such > it s completely ADO. MDEs are not if you use a bound form. > > Robert > > P.S. Besides, I would never use Access for the database any way. > SQL Server is much better at storing it and being stable. > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From BarbaraRyan at cox.net Tue Feb 20 13:56:01 2007 From: BarbaraRyan at cox.net (Barbara Ryan) Date: Tue, 20 Feb 2007 14:56:01 -0500 Subject: [AccessD] Code Library, Sample Database, Etc. References: <192199.96210.qm@web88202.mail.re2.yahoo.com> <001701c75524$a3de0a90$9258eb44@50NM721> Message-ID: <01ba01c75529$257dccd0$0a00a8c0@PCRURI35> > ...and with A'07 it appears that MS itself is moving back to the dao model I thought that Microsoft was moving away from DAO (i.e., no updates on it etc.)??.... that's why I decided I needed to learn ADO to keep up with the times. Barb From markamatte at hotmail.com Tue Feb 20 14:17:38 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 20 Feb 2007 20:17:38 +0000 Subject: [AccessD] Macro to export query records to Excel In-Reply-To: Message-ID: Doris, I think you can use the 'TransferSpreadsheet' in a macro and just fill out the info at the bottom. On the next line of the macro use 'RUNAPP' and at the bottom(command line) enter: excel.exe C:\temp\myspreadsheet.xls replace the path with the path to your file you created. Good Luck, Mark A. Matte >From: DorisH3 at aol.com >Reply-To: Access Developers discussion and problem >solving >To: accessd at databaseadvisors.com >Subject: [AccessD] Macro to export query records to Excel >Date: Tue, 20 Feb 2007 14:22:17 EST > >Does anyone know how to write a macro to export query records to MS Excel >and have the Access macro open the Excel file? I know I've asked this >question once before but I got VB code and I don't know VB, so please >excuse the >fact that I am a novice at this....I thank you in advance for any help >that this >list extents me. > >Doris >


**************************************
Check out free AOL >at >http://free.aol.com/thenewaol/index.adp. Most comprehensive set of free >safety and security tools, millions of free high-quality videos from across >the >web, free AOL Mail and much more. >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Find a local pizza place, movie theater, and more?.then map the best route! http://maps.live.com/?icid=hmtag1&FORM=MGAC01 From martyconnelly at shaw.ca Tue Feb 20 14:19:35 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 20 Feb 2007 12:19:35 -0800 Subject: [AccessD] Automating email In-Reply-To: <20070220183803.KUO26198.fep06.xtra.co.nz@Dalyn.dalyn.co.nz> References: <20070220004505.YMFB25916.fep04.xtra.co.nz@Dalyn.dalyn.co.nz> <005201c7548a$1e9d8c10$6401a8c0@office> <20070220183803.KUO26198.fep06.xtra.co.nz@Dalyn.dalyn.co.nz> Message-ID: <45DB57D7.3000209@shaw.ca> A couple of notes on this method ' You probably wont have your mail server full expanded smtp address 'If you go into netscape mail or outlook and look for the smtp name 'It will look like mine, "shawmail" or "shawnews" this dns resolves 'to "shawmail.cg.shawcable.net" CDO doesn't resolve this short name 'The quickest way to get this actual address without using the registry 'is run cmd and ping "shawmail" to return full qualified smtp address. 'This code wont run exactly unless you are on cable or LAN and signed 'onto the Shaw ISP or whatever is your domain, your cable modem 'is a node inside the ISP domain. This wont run on a dialup 'If you have illegal or wrong smtp address here code will run for 30- ' 60 seconds and finally give a transport error Your ISP may squawk if you send more than 100 Emails an hour This code runs for me via a cable modem Sub SendCDO() ' This example use late binding of CDOSys, you don't have to set a reference ' You must be online to net when you run the sub ' You must be running WinXP or Win2000 Dim cdoMessage As Object Dim objCDOMail As Object Dim strschema As String On Error GoTo ErrorHandler ' Enable error-handling routine. ' Set cdoMessage = CreateObject("CDO.Message") Set objCDOMail = CreateObject("CDO.Configuration") strschema = "http://schemas.microsoft.com/cdo/configuration/" objCDOMail.Load -1 ' CDO Source Default 'If you have illegal or wrong smtp address here it will run for 30- 60 seconds and finally give transport error With objCDOMail.Fields .Item(strschema & "sendusing") = 2 ' cdoSendUsingPort .Item(strschema & "smtpserver")= "shawmail.cg.shawcable.net" ' "Your SMTP server address here" .Item(strschema & "smtpserverport") = 25 'specify port number .Update End With With cdoMessage Set .Configuration = objCDOMail .to = "macon at g..." .From = "Winnie The Pooh " .CC = "" .BCC = "" .Subject = "This is another test from marty" .TextBody = "This is the text in the body just cdo defaults" .AddAttachment "C:\temp2\rptSampleCount.rtf" .AddAttachment "C:\temp2\frontimage.jpeg" .send End With Set cdoMessage = Nothing Set objCDOMail = Nothing Exit Sub ' Exit to avoid handler. ErrorHandler: ' Error-handling routine. Debug.Print Err.Number & "-" & Err.Description Set cdoMessage = Nothing Set objCDOMail = Nothing Exit Sub End Sub David Emerson wrote: >Thanks Kath and Erwin, > >I eventually found some code that doesn't rely on outlook but uses >another file called CDOEx.dll. It doesn't leave any items in outlook. > >In references you need to set the reference to Microsoft CDO for >Exchange 2000 Library > >Public Function SendCdoMsg() > > On Error GoTo Err_SendCdoMsg > > Dim msg As Message > > Set msg = CreateObject("CDO.Message") > > With msg > With .Configuration.Fields > .Item(cdoSMTPAuthenticate) = cdoAnonymous > .Item(cdoSendUsingMethod) = cdoSendUsingPort > .Item(cdoSMTPServer) = "smtp.xtra.co.nz" > .Item(cdoSMTPConnectionTimeout) = 10 > .Item(cdoSMTPServerPort) = 25 > .Update > End With > .Organization = "my" > .To = "you at yourprovider" > .Subject = "Example subject" > .TextBody = "Example body" > .From = "me at myprovider" > .AddAttachment ("d:\aaaatemp\accarch135.zip") > .Send > End With > > Set msg = Nothing > >Exit_SendCdoMsg: > Exit Function > >Err_SendCdoMsg: > Select Case Err > Case 0 > MsgBox "0 error", vbCritical, "Error heading" > Case Else > Call basErrorMsg("SendCdoMsg") > End Select > Resume Exit_SendCdoMsg > >End Function > > >At 20/02/2007, you wrote: > > >>Hi David - I only use the .Display option in my apps so that the >>users can add some text to the email if they want to before it is >>sent, but .send WILL send the email depending on their Outlook preferences. >> >>ie. if they have [tools] [options] [mail delivery] 'Send immediately >>when connected' turned on, then yes, it will send. >> >>I haven;t found any way of that email not going into sent items though. >> >>Kath >> >> ----- Original Message ----- >> From: David Emerson >> To: accessd at databaseadvisors.com >> Sent: Tuesday, February 20, 2007 11:31 AM >> Subject: [AccessD] Automating email >> >> >> Group, >> >> I have the following code to create an email message: >> >> Public Function basSendEmail() >> >> Dim outApp As Outlook.Application, outMsg As MailItem >> >> Set outApp = CreateObject("Outlook.Application") >> Set outMsg = outApp.CreateItem(olMailItem) >> >> With outMsg >> .To = "newsgrps at dalyn.co.nz" >> .Subject = "Test egas email" >> .Body = "Test message" >> .Send >> End With >> >> Set outApp = Nothing >> Set outMsg = Nothing >> >> End Function >> >> This works fine but only puts the message into my Outlook outbox - it >> doesn't send it. This may be because although I have outlook >> installed I do not use it (and it has not been set up). >> >> However, my clients use outlook. Will the above code automatically >> send out emails? >> >> Another question - My client would prefer not to have copies in their >> outbox of the email being sent out (ultimately it will be to email >> out accounts and they don't want thousands of emails generated each >> month). Is there a way for the messages not to appear in outlook? >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/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 artful at rogers.com Tue Feb 20 14:37:50 2007 From: artful at rogers.com (artful at rogers.com) Date: Tue, 20 Feb 2007 12:37:50 -0800 (PST) Subject: [AccessD] Code Library, Sample Database, Etc. Message-ID: <166730.83041.qm@web88201.mail.re2.yahoo.com> I didn't mean to irk you, or to assert that ADO/SQL is better. All I meant was that having discovered this path several years back, I narrowed my focus to it. Given the requirements of the apps I was working on (~70 users in 4 branch offices hooked together via a WAN, and about 50K customers with multiple orders and payments each), it proved the best way to go. I have nothing at all against the MDB approach, except that it postpones the changes required in the event of dramatic success. Should employees multiply by 10 and sales go through the roof, that's a bad time to make the change. One could do it sooner rather than at the moment of crisis, by using SQL Express as the BE now. Then the change in the event that you have to go to SQL is trivial. That's all I intended to say and infer. No slight upon DAO+MDB solutions was intended. Where they work well, they provide the best available Windows solution. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: William Hindman To: Access Developers discussion and problem solving Sent: Tuesday, February 20, 2007 2:23:44 PM Subject: Re: [AccessD] Code Library, Sample Database, Etc. Arthur ...its not a matter of agreeing or disagreeing ...if you work in an environment where SS is available and the notwork resources are available to support it, of course you would use SS in most applications. ...but if you are a consultant working with many small businesses where you are it, then a well designed dao mdb fe/be can be highly stable and work every bit as well as an adp/SS combo ...in point of fact with up to at least 15 users a well designed dao based mdb will normally out perform an ado based fe. ...and with A'07 it appears that MS itself is moving back to the dao model ...what irks me is people declaring that their favorite model is best for everyone ...or casting unwarranted aspersions on Access be's and dao when they really don't work in an environment where that model functions best. William Hindman ----- Original Message ----- From: To: "Access Developers discussion and problem solving" Sent: Tuesday, February 20, 2007 1:41 PM Subject: Re: [AccessD] Code Library, Sample Database, Etc. > While I agree with you, I also fear that you will be flamed from numerous > devotees to the MDB BE concept. I have my flame extinguisher ready in case > you need it. > > > Arthur Fuller > Technical Writer, Data Modeler, SQL Sensei > Artful Databases Organization > www.artfulsoftware.com > > > > > ----- Original Message ---- > From: Robert L. Stewart > To: accessd at databaseadvisors.com > Cc: BarbaraRyan at cox.net > Sent: Tuesday, February 20, 2007 1:09:06 PM > Subject: Re: [AccessD] Code Library, Sample Database, Etc. > > > Barb, > > I think the only way to completely "tie it all together" > is to use SQL Server and an ADP. Behind the forms and such > it s completely ADO. MDEs are not if you use a bound form. > > Robert > > P.S. Besides, I would never use Access for the database any way. > SQL Server is much better at storing it and being stable. > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From newsgrps at dalyn.co.nz Tue Feb 20 14:42:10 2007 From: newsgrps at dalyn.co.nz (David Emerson) Date: Wed, 21 Feb 2007 09:42:10 +1300 Subject: [AccessD] Automating email In-Reply-To: <45DB57D7.3000209@shaw.ca> References: <20070220004505.YMFB25916.fep04.xtra.co.nz@Dalyn.dalyn.co.nz> <005201c7548a$1e9d8c10$6401a8c0@office> <20070220183803.KUO26198.fep06.xtra.co.nz@Dalyn.dalyn.co.nz> <45DB57D7.3000209@shaw.ca> Message-ID: <20070220204141.RKBX24836.fep05.xtra.co.nz@Dalyn.dalyn.co.nz> At 21/02/2007, Marty Wrote wrote: >Your ISP may squawk if you send more than 100 Emails an hour Can you expand on this - Is it because they will think it is spam, or is there another reason? Regards David Emerson Dalyn Software Ltd Wellington, New Zealand From wdhindman at dejpolsystems.com Tue Feb 20 15:00:43 2007 From: wdhindman at dejpolsystems.com (William Hindman) Date: Tue, 20 Feb 2007 16:00:43 -0500 Subject: [AccessD] Code Library, Sample Database, Etc. References: <192199.96210.qm@web88202.mail.re2.yahoo.com><001701c75524$a3de0a90$9258eb44@50NM721> <01ba01c75529$257dccd0$0a00a8c0@PCRURI35> Message-ID: <006f01c75532$303342a0$9258eb44@50NM721> ...read the Access team blogs ...and look at A'07 itself. William Hindman ----- Original Message ----- From: "Barbara Ryan" To: "Access Developers discussion and problem solving" Sent: Tuesday, February 20, 2007 2:56 PM Subject: Re: [AccessD] Code Library, Sample Database, Etc. >> ...and with A'07 it appears that MS itself is moving back to the dao >> model > > I thought that Microsoft was moving away from DAO (i.e., no updates on it > etc.)??.... that's why I decided I needed to learn ADO to keep up with the > times. > > Barb > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From cfoust at infostatsystems.com Tue Feb 20 15:02:34 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 20 Feb 2007 13:02:34 -0800 Subject: [AccessD] Code Library, Sample Database, Etc. In-Reply-To: <001701c75524$a3de0a90$9258eb44@50NM721> References: <192199.96210.qm@web88202.mail.re2.yahoo.com> <001701c75524$a3de0a90$9258eb44@50NM721> Message-ID: I don't think anyone is casting aspersions, William. But the simple truth is that without user security in Access mdbs, they become less than useful for multiuser solutions. That doesn't depend on object model, it depends on having a mechanism for controlling who gets into the application and keeping track of who's there. Without that capability, Access 2007 becomes a desktop database for power users or a RAD frontend for SQL Server. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Tuesday, February 20, 2007 11:24 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Library, Sample Database, Etc. Arthur ...its not a matter of agreeing or disagreeing ...if you work in an environment where SS is available and the notwork resources are available to support it, of course you would use SS in most applications. ...but if you are a consultant working with many small businesses where you are it, then a well designed dao mdb fe/be can be highly stable and work every bit as well as an adp/SS combo ...in point of fact with up to at least 15 users a well designed dao based mdb will normally out perform an ado based fe. ...and with A'07 it appears that MS itself is moving back to the dao model ...what irks me is people declaring that their favorite model is best for everyone ...or casting unwarranted aspersions on Access be's and dao when they really don't work in an environment where that model functions best. William Hindman ----- Original Message ----- From: To: "Access Developers discussion and problem solving" Sent: Tuesday, February 20, 2007 1:41 PM Subject: Re: [AccessD] Code Library, Sample Database, Etc. > While I agree with you, I also fear that you will be flamed from numerous > devotees to the MDB BE concept. I have my flame extinguisher ready in case > you need it. > > > Arthur Fuller > Technical Writer, Data Modeler, SQL Sensei > Artful Databases Organization > www.artfulsoftware.com > > > > > ----- Original Message ---- > From: Robert L. Stewart > To: accessd at databaseadvisors.com > Cc: BarbaraRyan at cox.net > Sent: Tuesday, February 20, 2007 1:09:06 PM > Subject: Re: [AccessD] Code Library, Sample Database, Etc. > > > Barb, > > I think the only way to completely "tie it all together" > is to use SQL Server and an ADP. Behind the forms and such > it s completely ADO. MDEs are not if you use a bound form. > > Robert > > P.S. Besides, I would never use Access for the database any way. > SQL Server is much better at storing it and being stable. > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Tue Feb 20 15:06:50 2007 From: wdhindman at dejpolsystems.com (William Hindman) Date: Tue, 20 Feb 2007 16:06:50 -0500 Subject: [AccessD] Code Library, Sample Database, Etc. References: <192199.96210.qm@web88202.mail.re2.yahoo.com><001701c75524$a3de0a90$9258eb44@50NM721> <01ba01c75529$257dccd0$0a00a8c0@PCRURI35> Message-ID: <000301c75533$0b2fbf00$9258eb44@50NM721> http://www.utteraccess.com/forums/access/access109948.html ...further to my point. William Hindman ----- Original Message ----- From: "Barbara Ryan" To: "Access Developers discussion and problem solving" Sent: Tuesday, February 20, 2007 2:56 PM Subject: Re: [AccessD] Code Library, Sample Database, Etc. >> ...and with A'07 it appears that MS itself is moving back to the dao >> model > > I thought that Microsoft was moving away from DAO (i.e., no updates on it > etc.)??.... that's why I decided I needed to learn ADO to keep up with the > times. > > Barb > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From martyconnelly at shaw.ca Tue Feb 20 15:34:27 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 20 Feb 2007 13:34:27 -0800 Subject: [AccessD] Automating email In-Reply-To: <20070220204141.RKBX24836.fep05.xtra.co.nz@Dalyn.dalyn.co.nz> References: <20070220004505.YMFB25916.fep04.xtra.co.nz@Dalyn.dalyn.co.nz> <005201c7548a$1e9d8c10$6401a8c0@office> <20070220183803.KUO26198.fep06.xtra.co.nz@Dalyn.dalyn.co.nz> <45DB57D7.3000209@shaw.ca> <20070220204141.RKBX24836.fep05.xtra.co.nz@Dalyn.dalyn.co.nz> Message-ID: <45DB6963.9070604@shaw.ca> Depends on your ISP's Terms of Agreement or Acceptable Use Policy But ISP's worry about Bots and Zombie PC's sending out Spam It is not just the ISP but I believe Outlook and I know my AntiVirus AVG squawks if you send the same message or more than 10 messages a minute. Some of these limits are reset able. You will have to find by trial and error. There maybe some more info on your ISP in the FAQ or forums at http://www.dslreports.com David Emerson wrote: >At 21/02/2007, Marty Wrote wrote: > > >>Your ISP may squawk if you send more than 100 Emails an hour >> >> > >Can you expand on this - Is it because they will think it is spam, or >is there another reason? > >Regards > >David Emerson >Dalyn Software Ltd >Wellington, New Zealand > > > -- Marty Connelly Victoria, B.C. Canada From wdhindman at dejpolsystems.com Tue Feb 20 15:54:07 2007 From: wdhindman at dejpolsystems.com (William Hindman) Date: Tue, 20 Feb 2007 16:54:07 -0500 Subject: [AccessD] Code Library, Sample Database, Etc. References: <192199.96210.qm@web88202.mail.re2.yahoo.com><001701c75524$a3de0a90$9258eb44@50NM721> Message-ID: <000301c75539$a5afd7d0$9258eb44@50NM721> ...again Charlotte, that is heavily dependent upon the environment in which you work ...Access based user security has been a farce since '95 ...you cannot build an Access mdb to which I cannot gain access with readily available tools, both free and inexpensive ...so you build your own, a number of which are discussed in our archives, or you depend on XP security in small business environments ...so the decision by the Access development team to remove it from A'07 really has no bearing on its continued use in those environments. William Hindman ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Tuesday, February 20, 2007 4:02 PM Subject: Re: [AccessD] Code Library, Sample Database, Etc. >I don't think anyone is casting aspersions, William. But the simple > truth is that without user security in Access mdbs, they become less > than useful for multiuser solutions. That doesn't depend on object > model, it depends on having a mechanism for controlling who gets into > the application and keeping track of who's there. Without that > capability, Access 2007 becomes a desktop database for power users or a > RAD frontend for SQL Server. > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William > Hindman > Sent: Tuesday, February 20, 2007 11:24 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Code Library, Sample Database, Etc. > > Arthur > > ...its not a matter of agreeing or disagreeing ...if you work in an > environment where SS is available and the notwork resources are > available to support it, of course you would use SS in most > applications. > > ...but if you are a consultant working with many small businesses where > you are it, then a well designed dao mdb fe/be can be highly stable and > work every bit as well as an adp/SS combo ...in point of fact with up to > at least > 15 users a well designed dao based mdb will normally out perform an ado > based fe. > > ...and with A'07 it appears that MS itself is moving back to the dao > model ...what irks me is people declaring that their favorite model is > best for everyone ...or casting unwarranted aspersions on Access be's > and dao when they really don't work in an environment where that model > functions best. > > William Hindman > > ----- Original Message ----- > From: > To: "Access Developers discussion and problem solving" > > Sent: Tuesday, February 20, 2007 1:41 PM > Subject: Re: [AccessD] Code Library, Sample Database, Etc. > > >> While I agree with you, I also fear that you will be flamed from > numerous >> devotees to the MDB BE concept. I have my flame extinguisher ready in > case >> you need it. >> >> >> Arthur Fuller >> Technical Writer, Data Modeler, SQL Sensei >> Artful Databases Organization >> www.artfulsoftware.com >> >> >> >> >> ----- Original Message ---- >> From: Robert L. Stewart >> To: accessd at databaseadvisors.com >> Cc: BarbaraRyan at cox.net >> Sent: Tuesday, February 20, 2007 1:09:06 PM >> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >> >> >> Barb, >> >> I think the only way to completely "tie it all together" >> is to use SQL Server and an ADP. Behind the forms and such >> it s completely ADO. MDEs are not if you use a bound form. >> >> Robert >> >> P.S. Besides, I would never use Access for the database any way. >> SQL Server is much better at storing it and being stable. >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Tue Feb 20 16:06:45 2007 From: artful at rogers.com (artful at rogers.com) Date: Tue, 20 Feb 2007 14:06:45 -0800 (PST) Subject: [AccessD] Code Library, Sample Database, Etc. Message-ID: <3752.87025.qm@web88209.mail.re2.yahoo.com> Well, then. ADO proved yet another sidetrack. What none of the messages that I read mentioned is the future of the ADP file format. I have a heavy investment in this mode, in learning, and several clients have spent a lot of money hiring me to develop ADP apps. I shudder to think that an Office upgrade will have to be isolated from their Access app. Arthur ----- Original Message ---- From: William Hindman To: Access Developers discussion and problem solving Sent: Tuesday, February 20, 2007 4:06:50 PM Subject: Re: [AccessD] Code Library, Sample Database, Etc. http://www.utteraccess.com/forums/access/access109948.html ...further to my point. William Hindman From jwelz at hotmail.com Tue Feb 20 16:14:38 2007 From: jwelz at hotmail.com (Jurgen Welz) Date: Tue, 20 Feb 2007 15:14:38 -0700 Subject: [AccessD] combo from multiple sources In-Reply-To: <000001c75463$62013410$aab62ad1@SUSANONE> Message-ID: I use a callback to fill a list with files related to records. The files that can be seen depend on the users rights and are stored in different folders. For example, only certain people have rights to the estimate take off files, others have rights to general correspondence and then there are confidential documents relating to a record. Some confidential documents are payroll related, others are medical or disciplinary. All types of documents, regardless of location, are displayed in a filterable list where the list source depends on the particular user's rights to the file system and the filter they choose. An alternative example is to union All in a combo that allows a user to select between offices or province. A selection in the combo pulls from the table of offices by city or groups of offices by province. One of the columns contains a constant depending on the source table. ie: Select 0, 'All' from usystbl... Union select 1, CityName from tblOffice (joined by CityID to the City table actually) Union select 2, from tblProvince (all the offices joined thru city table via Province table). The first column constant in a hidden column in the combo tells the after update procedure which table provides the source of the selection to allow a select case procedure to adjust to the source chosen. This is useful to my users since they work on an office by office basis but frequentlly need data on a provincial basis. It allows the particular level of management using the system to see data in the way most pertinent to them. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: "Susan Harkins" >I made a mistake on an article title "How to populate combo box with data >from multiple sources" > >I meant something entirely different, but now I'm wondering -- do any of >you >use such a technique? Doing it isn't a problem. I just can't see how it >would be useful, but if there's a good excuse, I'm always game. > >Susan H. _________________________________________________________________ http://local.live.com/default.aspx?v=2&cp=43.658648~-79.383962&style=r&lvl=15&tilt=-90&dir=0&alt=-1000&scene=3702663&cid=7ABE80D1746919B4!1329 From rl_stewart at highstream.net Tue Feb 20 16:11:46 2007 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Tue, 20 Feb 2007 16:11:46 -0600 Subject: [AccessD] Code Library, Sample Database, Etc. In-Reply-To: References: Message-ID: <200702202215.l1KMFVi26656@databaseadvisors.com> William, PERSONAL OPINION FOLLOWING... With the advent of MSDE and SQL Express, Access as a BE should have disappeared. Even if you use an MDE against it. I have used Access since 1.0, co-authored a book on it for Access 97, and taught a Special Interest Group since 1.0. Yes, with an extremely well designed front end and back end Access will work wonders. However, with the members of this group excluded, I have yet to see a really well designed combination of the two. There are simply too many people that think that is they can spell "Access Programmer," they are one. ADO and DAO are irrelevant. Pick your poison and use it. Where I work now, we use both. In my special interest group, we do not use Access for a BE. I have stopped teaching the use of it and only showing SQL Server. Biased, you bet. Too many corrupt data files over the years in Access. Never had one in SQL Server. And I have been using it since 3.21. :-) Robert P.S. Charlotte, I had my asbestos long johns on before I wrote it. :-) Fried or flamed, no problem. At 03:35 PM 2/20/2007, you wrote: >Date: Tue, 20 Feb 2007 14:23:44 -0500 >From: "William Hindman" >Subject: Re: [AccessD] Code Library, Sample Database, Etc. >To: "Access Developers discussion and problem solving" > >Message-ID: <001701c75524$a3de0a90$9258eb44 at 50NM721> >Content-Type: text/plain; format=flowed; charset="Windows-1252"; > reply-type=original > >Arthur > >...its not a matter of agreeing or disagreeing ...if you work in an >environment where SS is available and the notwork resources are available to >support it, of course you would use SS in most applications. > >...but if you are a consultant working with many small businesses where you >are it, then a well designed dao mdb fe/be can be highly stable and work >every bit as well as an adp/SS combo ...in point of fact with up to at least >15 users a well designed dao based mdb will normally out perform an ado >based fe. > >...and with A'07 it appears that MS itself is moving back to the dao model >...what irks me is people declaring that their favorite model is best for >everyone ...or casting unwarranted aspersions on Access be's and dao when >they really don't work in an environment where that model functions best. > >William Hindman From DWUTKA at Marlow.com Tue Feb 20 16:26:32 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 20 Feb 2007 16:26:32 -0600 Subject: [AccessD] Code Library, Sample Database, Etc. In-Reply-To: <200702202215.l1KMFVi26656@databaseadvisors.com> Message-ID: Just an FYI, I have never had a corrupt .mdb where the interface was strictly web based. (that would be lots of .mdbs...probably 50+), used in various frequencies (most mutli-user almost all the time within working hours), and most have been online for at least 3 years.... Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Tuesday, February 20, 2007 4:12 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Code Library, Sample Database, Etc. William, PERSONAL OPINION FOLLOWING... With the advent of MSDE and SQL Express, Access as a BE should have disappeared. Even if you use an MDE against it. I have used Access since 1.0, co-authored a book on it for Access 97, and taught a Special Interest Group since 1.0. Yes, with an extremely well designed front end and back end Access will work wonders. However, with the members of this group excluded, I have yet to see a really well designed combination of the two. There are simply too many people that think that is they can spell "Access Programmer," they are one. ADO and DAO are irrelevant. Pick your poison and use it. Where I work now, we use both. In my special interest group, we do not use Access for a BE. I have stopped teaching the use of it and only showing SQL Server. Biased, you bet. Too many corrupt data files over the years in Access. Never had one in SQL Server. And I have been using it since 3.21. :-) Robert P.S. Charlotte, I had my asbestos long johns on before I wrote it. :-) Fried or flamed, no problem. At 03:35 PM 2/20/2007, you wrote: >Date: Tue, 20 Feb 2007 14:23:44 -0500 >From: "William Hindman" >Subject: Re: [AccessD] Code Library, Sample Database, Etc. >To: "Access Developers discussion and problem solving" > >Message-ID: <001701c75524$a3de0a90$9258eb44 at 50NM721> >Content-Type: text/plain; format=flowed; charset="Windows-1252"; > reply-type=original > >Arthur > >...its not a matter of agreeing or disagreeing ...if you work in an >environment where SS is available and the notwork resources are available to >support it, of course you would use SS in most applications. > >...but if you are a consultant working with many small businesses where you >are it, then a well designed dao mdb fe/be can be highly stable and work >every bit as well as an adp/SS combo ...in point of fact with up to at least >15 users a well designed dao based mdb will normally out perform an ado >based fe. > >...and with A'07 it appears that MS itself is moving back to the dao model >...what irks me is people declaring that their favorite model is best for >everyone ...or casting unwarranted aspersions on Access be's and dao when >they really don't work in an environment where that model functions best. > >William Hindman -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Tue Feb 20 16:30:22 2007 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 20 Feb 2007 16:30:22 -0600 Subject: [AccessD] Code Library, Sample Database, Etc. In-Reply-To: <29230126.1172009988624.JavaMail.root@Sniper26> References: <29230126.1172009988624.JavaMail.root@Sniper26> Message-ID: <002301c7553e$b66df020$0200a8c0@danwaters> Robert, With A2007, what will you tell people to use for a security mechanism. Granted, the Access security model in previous versions was nominal, but for me it worked well enough for my small business customers. Thanks! Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Tuesday, February 20, 2007 4:12 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Code Library, Sample Database, Etc. William, PERSONAL OPINION FOLLOWING... With the advent of MSDE and SQL Express, Access as a BE should have disappeared. Even if you use an MDE against it. I have used Access since 1.0, co-authored a book on it for Access 97, and taught a Special Interest Group since 1.0. Yes, with an extremely well designed front end and back end Access will work wonders. However, with the members of this group excluded, I have yet to see a really well designed combination of the two. There are simply too many people that think that is they can spell "Access Programmer," they are one. ADO and DAO are irrelevant. Pick your poison and use it. Where I work now, we use both. In my special interest group, we do not use Access for a BE. I have stopped teaching the use of it and only showing SQL Server. Biased, you bet. Too many corrupt data files over the years in Access. Never had one in SQL Server. And I have been using it since 3.21. :-) Robert P.S. Charlotte, I had my asbestos long johns on before I wrote it. :-) Fried or flamed, no problem. At 03:35 PM 2/20/2007, you wrote: >Date: Tue, 20 Feb 2007 14:23:44 -0500 >From: "William Hindman" >Subject: Re: [AccessD] Code Library, Sample Database, Etc. >To: "Access Developers discussion and problem solving" > >Message-ID: <001701c75524$a3de0a90$9258eb44 at 50NM721> >Content-Type: text/plain; format=flowed; charset="Windows-1252"; > reply-type=original > >Arthur > >...its not a matter of agreeing or disagreeing ...if you work in an >environment where SS is available and the notwork resources are available to >support it, of course you would use SS in most applications. > >...but if you are a consultant working with many small businesses where you >are it, then a well designed dao mdb fe/be can be highly stable and work >every bit as well as an adp/SS combo ...in point of fact with up to at least >15 users a well designed dao based mdb will normally out perform an ado >based fe. > >...and with A'07 it appears that MS itself is moving back to the dao model >...what irks me is people declaring that their favorite model is best for >everyone ...or casting unwarranted aspersions on Access be's and dao when >they really don't work in an environment where that model functions best. > >William Hindman -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Tue Feb 20 17:09:36 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 20 Feb 2007 15:09:36 -0800 Subject: [AccessD] Code Library, Sample Database, Etc. In-Reply-To: <000301c75539$a5afd7d0$9258eb44@50NM721> References: <192199.96210.qm@web88202.mail.re2.yahoo.com><001701c75524$a3de0a90$9258eb44@50NM721> <000301c75539$a5afd7d0$9258eb44@50NM721> Message-ID: The primary role of user security IMO has been to allow you to limit ordinary users to working with the interface. It has never been robust enough to keep out knowledgeable tamperers. However, I do NOT want Joe User going in and mucking about with the interface or code I built just because he now has full permissions to do so. I have never been wiling to roll my own security system for Access because I object to reinventing the wheel, even if the wheel is a bit crooked and flat on one side. XP security in small business environments?? You MUST be joking! I've never seen a small business environment with any security that hadn't been added on by a paranoid programmer or systems guy! ;o> Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Tuesday, February 20, 2007 1:54 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Library, Sample Database, Etc. ...again Charlotte, that is heavily dependent upon the environment in which you work ...Access based user security has been a farce since '95 ...you cannot build an Access mdb to which I cannot gain access with readily available tools, both free and inexpensive ...so you build your own, a number of which are discussed in our archives, or you depend on XP security in small business environments ...so the decision by the Access development team to remove it from A'07 really has no bearing on its continued use in those environments. William Hindman ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Tuesday, February 20, 2007 4:02 PM Subject: Re: [AccessD] Code Library, Sample Database, Etc. >I don't think anyone is casting aspersions, William. But the simple > truth is that without user security in Access mdbs, they become less > than useful for multiuser solutions. That doesn't depend on object > model, it depends on having a mechanism for controlling who gets into > the application and keeping track of who's there. Without that > capability, Access 2007 becomes a desktop database for power users or a > RAD frontend for SQL Server. > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William > Hindman > Sent: Tuesday, February 20, 2007 11:24 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Code Library, Sample Database, Etc. > > Arthur > > ...its not a matter of agreeing or disagreeing ...if you work in an > environment where SS is available and the notwork resources are > available to support it, of course you would use SS in most > applications. > > ...but if you are a consultant working with many small businesses where > you are it, then a well designed dao mdb fe/be can be highly stable and > work every bit as well as an adp/SS combo ...in point of fact with up to > at least > 15 users a well designed dao based mdb will normally out perform an ado > based fe. > > ...and with A'07 it appears that MS itself is moving back to the dao > model ...what irks me is people declaring that their favorite model is > best for everyone ...or casting unwarranted aspersions on Access be's > and dao when they really don't work in an environment where that model > functions best. > > William Hindman > > ----- Original Message ----- > From: > To: "Access Developers discussion and problem solving" > > Sent: Tuesday, February 20, 2007 1:41 PM > Subject: Re: [AccessD] Code Library, Sample Database, Etc. > > >> While I agree with you, I also fear that you will be flamed from > numerous >> devotees to the MDB BE concept. I have my flame extinguisher ready in > case >> you need it. >> >> >> Arthur Fuller >> Technical Writer, Data Modeler, SQL Sensei >> Artful Databases Organization >> www.artfulsoftware.com >> >> >> >> >> ----- Original Message ---- >> From: Robert L. Stewart >> To: accessd at databaseadvisors.com >> Cc: BarbaraRyan at cox.net >> Sent: Tuesday, February 20, 2007 1:09:06 PM >> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >> >> >> Barb, >> >> I think the only way to completely "tie it all together" >> is to use SQL Server and an ADP. Behind the forms and such >> it s completely ADO. MDEs are not if you use a bound form. >> >> Robert >> >> P.S. Besides, I would never use Access for the database any way. >> SQL Server is much better at storing it and being stable. >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Tue Feb 20 17:09:44 2007 From: wdhindman at dejpolsystems.com (William Hindman) Date: Tue, 20 Feb 2007 18:09:44 -0500 Subject: [AccessD] Code Library, Sample Database, Etc. References: <200702202215.l1KMFVi26656@databaseadvisors.com> Message-ID: <001801c75544$35d81840$9258eb44@50NM721> Robert ...msde's proved impractical because of scaling limitations MS built in ...so you're really only talking about SQL Express which is what, months old? ...and if your only problem with an Access be is corruption, then sorry, but with the exception of cheap NICS I've not seen a corrupted mdb since A95 ...except in client's I took over from other developers and had to rebuild ...and thus corruption is not, in my environment, sufficient cause to spend the time and money to convert to a non-JET be ...but I'll grant you that I'm getting long in the tooth and damned reluctant to learn every new db wonder cure that comes along. ...and while I'm at it, I'll also admit that I'm developing a commercial app based on a current client that will use a non-JET be because it needs to scale to at least 50 users ...what that will be depends on some testing yet to be accomplished but I'm not at all convinced that SQL Express isn't a one-off dog & pony show for MS. William Hindman ----- Original Message ----- From: "Robert L. Stewart" To: Sent: Tuesday, February 20, 2007 5:11 PM Subject: Re: [AccessD] Code Library, Sample Database, Etc. > William, > > PERSONAL OPINION FOLLOWING... > > With the advent of MSDE and SQL Express, Access as a BE > should have disappeared. Even if you use an MDE against > it. I have used Access since 1.0, co-authored a book on > it for Access 97, and taught a Special Interest Group since > 1.0. Yes, with an extremely well designed front end and > back end Access will work wonders. However, with the members > of this group excluded, I have yet to see a really well > designed combination of the two. There are simply too many > people that think that is they can spell "Access Programmer," > they are one. > > ADO and DAO are irrelevant. Pick your poison and use it. > Where I work now, we use both. > > In my special interest group, we do not use Access for a BE. > I have stopped teaching the use of it and only showing SQL > Server. > > Biased, you bet. Too many corrupt data files over the years > in Access. Never had one in SQL Server. And I have been > using it since 3.21. :-) > > Robert > > P.S. > > Charlotte, I had my asbestos long johns on before I wrote it. :-) > Fried or flamed, no problem. > > > At 03:35 PM 2/20/2007, you wrote: >>Date: Tue, 20 Feb 2007 14:23:44 -0500 >>From: "William Hindman" >>Subject: Re: [AccessD] Code Library, Sample Database, Etc. >>To: "Access Developers discussion and problem solving" >> >>Message-ID: <001701c75524$a3de0a90$9258eb44 at 50NM721> >>Content-Type: text/plain; format=flowed; charset="Windows-1252"; >> reply-type=original >> >>Arthur >> >>...its not a matter of agreeing or disagreeing ...if you work in an >>environment where SS is available and the notwork resources are available >>to >>support it, of course you would use SS in most applications. >> >>...but if you are a consultant working with many small businesses where >>you >>are it, then a well designed dao mdb fe/be can be highly stable and work >>every bit as well as an adp/SS combo ...in point of fact with up to at >>least >>15 users a well designed dao based mdb will normally out perform an ado >>based fe. >> >>...and with A'07 it appears that MS itself is moving back to the dao model >>...what irks me is people declaring that their favorite model is best for >>everyone ...or casting unwarranted aspersions on Access be's and dao when >>they really don't work in an environment where that model functions best. >> >>William Hindman > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From wdhindman at dejpolsystems.com Tue Feb 20 17:25:14 2007 From: wdhindman at dejpolsystems.com (William Hindman) Date: Tue, 20 Feb 2007 18:25:14 -0500 Subject: [AccessD] Code Library, Sample Database, Etc. References: <192199.96210.qm@web88202.mail.re2.yahoo.com><001701c75524$a3de0a90$9258eb44@50NM721><000301c75539$a5afd7d0$9258eb44@50NM721> Message-ID: <003301c75546$60660980$9258eb44@50NM721> ...I'm left dazed by your disparagement of XP security! :) ...pray tell why in a 12 user office where no personal information is available in the app, the xp user logon should not be sufficient to determine access rights to forms needing restricted access based upon user roles? William Hindman ...apparently a paranoid programmer ...who knew? :) ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Tuesday, February 20, 2007 6:09 PM Subject: Re: [AccessD] Code Library, Sample Database, Etc. > The primary role of user security IMO has been to allow you to limit > ordinary users to working with the interface. It has never been robust > enough to keep out knowledgeable tamperers. However, I do NOT want Joe > User going in and mucking about with the interface or code I built just > because he now has full permissions to do so. I have never been wiling > to roll my own security system for Access because I object to > reinventing the wheel, even if the wheel is a bit crooked and flat on > one side. XP security in small business environments?? You MUST be > joking! I've never seen a small business environment with any security > that hadn't been added on by a paranoid programmer or systems guy! ;o> > > Charlotte > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William > Hindman > Sent: Tuesday, February 20, 2007 1:54 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Code Library, Sample Database, Etc. > > ...again Charlotte, that is heavily dependent upon the environment in > which you work ...Access based user security has been a farce since '95 > ...you cannot build an Access mdb to which I cannot gain access with > readily available tools, both free and inexpensive ...so you build your > own, a number of which are discussed in our archives, or you depend on > XP security in small business environments ...so the decision by the > Access development team to remove it from A'07 really has no bearing on > its continued use in those environments. > > William Hindman > > ----- Original Message ----- > From: "Charlotte Foust" > To: "Access Developers discussion and problem solving" > > Sent: Tuesday, February 20, 2007 4:02 PM > Subject: Re: [AccessD] Code Library, Sample Database, Etc. > > >>I don't think anyone is casting aspersions, William. But the simple >> truth is that without user security in Access mdbs, they become less >> than useful for multiuser solutions. That doesn't depend on object >> model, it depends on having a mechanism for controlling who gets into >> the application and keeping track of who's there. Without that >> capability, Access 2007 becomes a desktop database for power users or > a >> RAD frontend for SQL Server. >> >> Charlotte Foust >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William >> Hindman >> Sent: Tuesday, February 20, 2007 11:24 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >> >> Arthur >> >> ...its not a matter of agreeing or disagreeing ...if you work in an >> environment where SS is available and the notwork resources are >> available to support it, of course you would use SS in most >> applications. >> >> ...but if you are a consultant working with many small businesses > where >> you are it, then a well designed dao mdb fe/be can be highly stable > and >> work every bit as well as an adp/SS combo ...in point of fact with up > to >> at least >> 15 users a well designed dao based mdb will normally out perform an > ado >> based fe. >> >> ...and with A'07 it appears that MS itself is moving back to the dao >> model ...what irks me is people declaring that their favorite model is >> best for everyone ...or casting unwarranted aspersions on Access be's >> and dao when they really don't work in an environment where that model >> functions best. >> >> William Hindman >> >> ----- Original Message ----- >> From: >> To: "Access Developers discussion and problem solving" >> >> Sent: Tuesday, February 20, 2007 1:41 PM >> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >> >> >>> While I agree with you, I also fear that you will be flamed from >> numerous >>> devotees to the MDB BE concept. I have my flame extinguisher ready in >> case >>> you need it. >>> >>> >>> Arthur Fuller >>> Technical Writer, Data Modeler, SQL Sensei >>> Artful Databases Organization >>> www.artfulsoftware.com >>> >>> >>> >>> >>> ----- Original Message ---- >>> From: Robert L. Stewart >>> To: accessd at databaseadvisors.com >>> Cc: BarbaraRyan at cox.net >>> Sent: Tuesday, February 20, 2007 1:09:06 PM >>> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >>> >>> >>> Barb, >>> >>> I think the only way to completely "tie it all together" >>> is to use SQL Server and an ADP. Behind the forms and such >>> it s completely ADO. MDEs are not if you use a bound form. >>> >>> Robert >>> >>> P.S. Besides, I would never use Access for the database any way. >>> SQL Server is much better at storing it and being stable. >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From martyconnelly at shaw.ca Tue Feb 20 17:34:41 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 20 Feb 2007 15:34:41 -0800 Subject: [AccessD] Code Library, Sample Database, Etc. In-Reply-To: <001801c75544$35d81840$9258eb44@50NM721> References: <200702202215.l1KMFVi26656@databaseadvisors.com> <001801c75544$35d81840$9258eb44@50NM721> Message-ID: <45DB8591.1070809@shaw.ca> Oracle and DB2 offer free similar scaled down products. William Hindman wrote: >Robert > >...msde's proved impractical because of scaling limitations MS built in >...so you're really only talking about SQL Express which is what, months >old? > >...and if your only problem with an Access be is corruption, then sorry, but >with the exception of cheap NICS I've not seen a corrupted mdb since A95 >...except in client's I took over from other developers and had to rebuild >...and thus corruption is not, in my environment, sufficient cause to spend >the time and money to convert to a non-JET be ...but I'll grant you that I'm >getting long in the tooth and damned reluctant to learn every new db wonder >cure that comes along. > >...and while I'm at it, I'll also admit that I'm developing a commercial app >based on a current client that will use a non-JET be because it needs to >scale to at least 50 users ...what that will be depends on some testing yet >to be accomplished but I'm not at all convinced that SQL Express isn't a >one-off dog & pony show for MS. > >William Hindman > >----- Original Message ----- >From: "Robert L. Stewart" >To: >Sent: Tuesday, February 20, 2007 5:11 PM >Subject: Re: [AccessD] Code Library, Sample Database, Etc. > > > > >>William, >> >>PERSONAL OPINION FOLLOWING... >> >>With the advent of MSDE and SQL Express, Access as a BE >>should have disappeared. Even if you use an MDE against >>it. I have used Access since 1.0, co-authored a book on >>it for Access 97, and taught a Special Interest Group since >>1.0. Yes, with an extremely well designed front end and >>back end Access will work wonders. However, with the members >>of this group excluded, I have yet to see a really well >>designed combination of the two. There are simply too many >>people that think that is they can spell "Access Programmer," >>they are one. >> >>ADO and DAO are irrelevant. Pick your poison and use it. >>Where I work now, we use both. >> >>In my special interest group, we do not use Access for a BE. >>I have stopped teaching the use of it and only showing SQL >>Server. >> >>Biased, you bet. Too many corrupt data files over the years >>in Access. Never had one in SQL Server. And I have been >>using it since 3.21. :-) >> >>Robert >> >>P.S. >> >>Charlotte, I had my asbestos long johns on before I wrote it. :-) >>Fried or flamed, no problem. >> >> >>At 03:35 PM 2/20/2007, you wrote: >> >> >>>Date: Tue, 20 Feb 2007 14:23:44 -0500 >>>From: "William Hindman" >>>Subject: Re: [AccessD] Code Library, Sample Database, Etc. >>>To: "Access Developers discussion and problem solving" >>> >>>Message-ID: <001701c75524$a3de0a90$9258eb44 at 50NM721> >>>Content-Type: text/plain; format=flowed; charset="Windows-1252"; >>> reply-type=original >>> >>>Arthur >>> >>>...its not a matter of agreeing or disagreeing ...if you work in an >>>environment where SS is available and the notwork resources are available >>>to >>>support it, of course you would use SS in most applications. >>> >>>...but if you are a consultant working with many small businesses where >>>you >>>are it, then a well designed dao mdb fe/be can be highly stable and work >>>every bit as well as an adp/SS combo ...in point of fact with up to at >>>least >>>15 users a well designed dao based mdb will normally out perform an ado >>>based fe. >>> >>>...and with A'07 it appears that MS itself is moving back to the dao model >>>...what irks me is people declaring that their favorite model is best for >>>everyone ...or casting unwarranted aspersions on Access be's and dao when >>>they really don't work in an environment where that model functions best. >>> >>>William Hindman >>> >>> >>-- >>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 Tue Feb 20 17:35:57 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 20 Feb 2007 17:35:57 -0600 Subject: [AccessD] Code Library, Sample Database, Etc. In-Reply-To: <003301c75546$60660980$9258eb44@50NM721> Message-ID: If you aren't using User Level security, what's the point in any 'security' within the db anyhow? Let's say you have a form that only Mr. X should be able to use. This form edits tblXYZ. Sure, from the .mde interface only Mr. X would get the form, if you design it that way. But any Joe Schmoe can link to ALL the tables in the .mde, and do whatever they want to the data..... Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Tuesday, February 20, 2007 5:25 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Library, Sample Database, Etc. ...I'm left dazed by your disparagement of XP security! :) ...pray tell why in a 12 user office where no personal information is available in the app, the xp user logon should not be sufficient to determine access rights to forms needing restricted access based upon user roles? William Hindman ...apparently a paranoid programmer ...who knew? :) ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Tuesday, February 20, 2007 6:09 PM Subject: Re: [AccessD] Code Library, Sample Database, Etc. > The primary role of user security IMO has been to allow you to limit > ordinary users to working with the interface. It has never been robust > enough to keep out knowledgeable tamperers. However, I do NOT want Joe > User going in and mucking about with the interface or code I built just > because he now has full permissions to do so. I have never been wiling > to roll my own security system for Access because I object to > reinventing the wheel, even if the wheel is a bit crooked and flat on > one side. XP security in small business environments?? You MUST be > joking! I've never seen a small business environment with any security > that hadn't been added on by a paranoid programmer or systems guy! ;o> > > Charlotte > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William > Hindman > Sent: Tuesday, February 20, 2007 1:54 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Code Library, Sample Database, Etc. > > ...again Charlotte, that is heavily dependent upon the environment in > which you work ...Access based user security has been a farce since '95 > ...you cannot build an Access mdb to which I cannot gain access with > readily available tools, both free and inexpensive ...so you build your > own, a number of which are discussed in our archives, or you depend on > XP security in small business environments ...so the decision by the > Access development team to remove it from A'07 really has no bearing on > its continued use in those environments. > > William Hindman > > ----- Original Message ----- > From: "Charlotte Foust" > To: "Access Developers discussion and problem solving" > > Sent: Tuesday, February 20, 2007 4:02 PM > Subject: Re: [AccessD] Code Library, Sample Database, Etc. > > >>I don't think anyone is casting aspersions, William. But the simple >> truth is that without user security in Access mdbs, they become less >> than useful for multiuser solutions. That doesn't depend on object >> model, it depends on having a mechanism for controlling who gets into >> the application and keeping track of who's there. Without that >> capability, Access 2007 becomes a desktop database for power users or > a >> RAD frontend for SQL Server. >> >> Charlotte Foust >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William >> Hindman >> Sent: Tuesday, February 20, 2007 11:24 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >> >> Arthur >> >> ...its not a matter of agreeing or disagreeing ...if you work in an >> environment where SS is available and the notwork resources are >> available to support it, of course you would use SS in most >> applications. >> >> ...but if you are a consultant working with many small businesses > where >> you are it, then a well designed dao mdb fe/be can be highly stable > and >> work every bit as well as an adp/SS combo ...in point of fact with up > to >> at least >> 15 users a well designed dao based mdb will normally out perform an > ado >> based fe. >> >> ...and with A'07 it appears that MS itself is moving back to the dao >> model ...what irks me is people declaring that their favorite model is >> best for everyone ...or casting unwarranted aspersions on Access be's >> and dao when they really don't work in an environment where that model >> functions best. >> >> William Hindman >> >> ----- Original Message ----- >> From: >> To: "Access Developers discussion and problem solving" >> >> Sent: Tuesday, February 20, 2007 1:41 PM >> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >> >> >>> While I agree with you, I also fear that you will be flamed from >> numerous >>> devotees to the MDB BE concept. I have my flame extinguisher ready in >> case >>> you need it. >>> >>> >>> Arthur Fuller >>> Technical Writer, Data Modeler, SQL Sensei >>> Artful Databases Organization >>> www.artfulsoftware.com >>> >>> >>> >>> >>> ----- Original Message ---- >>> From: Robert L. Stewart >>> To: accessd at databaseadvisors.com >>> Cc: BarbaraRyan at cox.net >>> Sent: Tuesday, February 20, 2007 1:09:06 PM >>> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >>> >>> >>> Barb, >>> >>> I think the only way to completely "tie it all together" >>> is to use SQL Server and an ADP. Behind the forms and such >>> it s completely ADO. MDEs are not if you use a bound form. >>> >>> Robert >>> >>> P.S. Besides, I would never use Access for the database any way. >>> SQL Server is much better at storing it and being stable. >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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.eu Tue Feb 20 17:54:22 2007 From: Erwin.Craps at ithelps.eu (Erwin Craps - IT Helps) Date: Wed, 21 Feb 2007 00:54:22 +0100 Subject: [AccessD] Automating email References: <20070220004505.YMFB25916.fep04.xtra.co.nz@Dalyn.dalyn.co.nz><005201c7548a$1e9d8c10$6401a8c0@office> <20070220183803.KUO26198.fep06.xtra.co.nz@Dalyn.dalyn.co.nz> Message-ID: <430E80531228BA4497C5EB1A7BA786B0024292@stekelbes.ithelps.local> Euh, Maybe I'm wrong with this but isn't CDO only available on a server running Exchange Server? -----Oorspronkelijk bericht----- Van: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] Namens David Emerson Verzonden: dinsdag 20 februari 2007 19:38 Aan: Access Developers discussion and problem solving Onderwerp: Re: [AccessD] Automating email Thanks Kath and Erwin, I eventually found some code that doesn't rely on outlook but uses another file called CDOEx.dll. It doesn't leave any items in outlook. In references you need to set the reference to Microsoft CDO for Exchange 2000 Library Public Function SendCdoMsg() On Error GoTo Err_SendCdoMsg Dim msg As Message Set msg = CreateObject("CDO.Message") With msg With .Configuration.Fields .Item(cdoSMTPAuthenticate) = cdoAnonymous .Item(cdoSendUsingMethod) = cdoSendUsingPort .Item(cdoSMTPServer) = "smtp.xtra.co.nz" .Item(cdoSMTPConnectionTimeout) = 10 .Item(cdoSMTPServerPort) = 25 .Update End With .Organization = "my" .To = "you at yourprovider" .Subject = "Example subject" .TextBody = "Example body" .From = "me at myprovider" .AddAttachment ("d:\aaaatemp\accarch135.zip") .Send End With Set msg = Nothing Exit_SendCdoMsg: Exit Function Err_SendCdoMsg: Select Case Err Case 0 MsgBox "0 error", vbCritical, "Error heading" Case Else Call basErrorMsg("SendCdoMsg") End Select Resume Exit_SendCdoMsg End Function At 20/02/2007, you wrote: >Hi David - I only use the .Display option in my apps so that the users >can add some text to the email if they want to before it is sent, but >.send WILL send the email depending on their Outlook preferences. > >ie. if they have [tools] [options] [mail delivery] 'Send immediately >when connected' turned on, then yes, it will send. > >I haven;t found any way of that email not going into sent items though. > >Kath > > ----- Original Message ----- > From: David Emerson > To: accessd at databaseadvisors.com > Sent: Tuesday, February 20, 2007 11:31 AM > Subject: [AccessD] Automating email > > > Group, > > I have the following code to create an email message: > > Public Function basSendEmail() > > Dim outApp As Outlook.Application, outMsg As MailItem > > Set outApp = CreateObject("Outlook.Application") > Set outMsg = outApp.CreateItem(olMailItem) > > With outMsg > .To = "newsgrps at dalyn.co.nz" > .Subject = "Test egas email" > .Body = "Test message" > .Send > End With > > Set outApp = Nothing > Set outMsg = Nothing > > End Function > > This works fine but only puts the message into my Outlook outbox - it > doesn't send it. This may be because although I have outlook > installed I do not use it (and it has not been set up). > > However, my clients use outlook. Will the above code automatically > send out emails? > > Another question - My client would prefer not to have copies in their > outbox of the email being sent out (ultimately it will be to email > out accounts and they don't want thousands of emails generated each > month). Is there a way for the messages not to appear in outlook? > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >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 Feb 20 18:02:42 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 20 Feb 2007 16:02:42 -0800 Subject: [AccessD] Code Library, Sample Database, Etc. In-Reply-To: References: <003301c75546$60660980$9258eb44@50NM721> Message-ID: I CAN'T believe it! I think we just agreed! LOL Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Tuesday, February 20, 2007 3:36 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Library, Sample Database, Etc. If you aren't using User Level security, what's the point in any 'security' within the db anyhow? Let's say you have a form that only Mr. X should be able to use. This form edits tblXYZ. Sure, from the .mde interface only Mr. X would get the form, if you design it that way. But any Joe Schmoe can link to ALL the tables in the .mde, and do whatever they want to the data..... Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Tuesday, February 20, 2007 5:25 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Library, Sample Database, Etc. ...I'm left dazed by your disparagement of XP security! :) ...pray tell why in a 12 user office where no personal information is available in the app, the xp user logon should not be sufficient to determine access rights to forms needing restricted access based upon user roles? William Hindman ...apparently a paranoid programmer ...who knew? :) ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Tuesday, February 20, 2007 6:09 PM Subject: Re: [AccessD] Code Library, Sample Database, Etc. > The primary role of user security IMO has been to allow you to limit > ordinary users to working with the interface. It has never been robust > enough to keep out knowledgeable tamperers. However, I do NOT want Joe > User going in and mucking about with the interface or code I built just > because he now has full permissions to do so. I have never been wiling > to roll my own security system for Access because I object to > reinventing the wheel, even if the wheel is a bit crooked and flat on > one side. XP security in small business environments?? You MUST be > joking! I've never seen a small business environment with any security > that hadn't been added on by a paranoid programmer or systems guy! ;o> > > Charlotte > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William > Hindman > Sent: Tuesday, February 20, 2007 1:54 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Code Library, Sample Database, Etc. > > ...again Charlotte, that is heavily dependent upon the environment in > which you work ...Access based user security has been a farce since '95 > ...you cannot build an Access mdb to which I cannot gain access with > readily available tools, both free and inexpensive ...so you build your > own, a number of which are discussed in our archives, or you depend on > XP security in small business environments ...so the decision by the > Access development team to remove it from A'07 really has no bearing on > its continued use in those environments. > > William Hindman > > ----- Original Message ----- > From: "Charlotte Foust" > To: "Access Developers discussion and problem solving" > > Sent: Tuesday, February 20, 2007 4:02 PM > Subject: Re: [AccessD] Code Library, Sample Database, Etc. > > >>I don't think anyone is casting aspersions, William. But the simple >> truth is that without user security in Access mdbs, they become less >> than useful for multiuser solutions. That doesn't depend on object >> model, it depends on having a mechanism for controlling who gets into >> the application and keeping track of who's there. Without that >> capability, Access 2007 becomes a desktop database for power users or > a >> RAD frontend for SQL Server. >> >> Charlotte Foust >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William >> Hindman >> Sent: Tuesday, February 20, 2007 11:24 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >> >> Arthur >> >> ...its not a matter of agreeing or disagreeing ...if you work in an >> environment where SS is available and the notwork resources are >> available to support it, of course you would use SS in most >> applications. >> >> ...but if you are a consultant working with many small businesses > where >> you are it, then a well designed dao mdb fe/be can be highly stable > and >> work every bit as well as an adp/SS combo ...in point of fact with up > to >> at least >> 15 users a well designed dao based mdb will normally out perform an > ado >> based fe. >> >> ...and with A'07 it appears that MS itself is moving back to the dao >> model ...what irks me is people declaring that their favorite model is >> best for everyone ...or casting unwarranted aspersions on Access be's >> and dao when they really don't work in an environment where that model >> functions best. >> >> William Hindman >> >> ----- Original Message ----- >> From: >> To: "Access Developers discussion and problem solving" >> >> Sent: Tuesday, February 20, 2007 1:41 PM >> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >> >> >>> While I agree with you, I also fear that you will be flamed from >> numerous >>> devotees to the MDB BE concept. I have my flame extinguisher ready in >> case >>> you need it. >>> >>> >>> Arthur Fuller >>> Technical Writer, Data Modeler, SQL Sensei >>> Artful Databases Organization >>> www.artfulsoftware.com >>> >>> >>> >>> >>> ----- Original Message ---- >>> From: Robert L. Stewart >>> To: accessd at databaseadvisors.com >>> Cc: BarbaraRyan at cox.net >>> Sent: Tuesday, February 20, 2007 1:09:06 PM >>> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >>> >>> >>> Barb, >>> >>> I think the only way to completely "tie it all together" >>> is to use SQL Server and an ADP. Behind the forms and such >>> it s completely ADO. MDEs are not if you use a bound form. >>> >>> Robert >>> >>> P.S. Besides, I would never use Access for the database any way. >>> SQL Server is much better at storing it and being stable. >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Feb 20 18:03:55 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 20 Feb 2007 16:03:55 -0800 Subject: [AccessD] Automating email In-Reply-To: <430E80531228BA4497C5EB1A7BA786B0024292@stekelbes.ithelps.local> References: <20070220004505.YMFB25916.fep04.xtra.co.nz@Dalyn.dalyn.co.nz><005201c7548a$1e9d8c10$6401a8c0@office><20070220183803.KUO26198.fep06.xtra.co.nz@Dalyn.dalyn.co.nz> <430E80531228BA4497C5EB1A7BA786B0024292@stekelbes.ithelps.local> Message-ID: Nope, it's part of Office/Windows as well. But it is NOT installed and made available by default. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Tuesday, February 20, 2007 3:54 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Automating email Euh, Maybe I'm wrong with this but isn't CDO only available on a server running Exchange Server? -----Oorspronkelijk bericht----- Van: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] Namens David Emerson Verzonden: dinsdag 20 februari 2007 19:38 Aan: Access Developers discussion and problem solving Onderwerp: Re: [AccessD] Automating email Thanks Kath and Erwin, I eventually found some code that doesn't rely on outlook but uses another file called CDOEx.dll. It doesn't leave any items in outlook. In references you need to set the reference to Microsoft CDO for Exchange 2000 Library Public Function SendCdoMsg() On Error GoTo Err_SendCdoMsg Dim msg As Message Set msg = CreateObject("CDO.Message") With msg With .Configuration.Fields .Item(cdoSMTPAuthenticate) = cdoAnonymous .Item(cdoSendUsingMethod) = cdoSendUsingPort .Item(cdoSMTPServer) = "smtp.xtra.co.nz" .Item(cdoSMTPConnectionTimeout) = 10 .Item(cdoSMTPServerPort) = 25 .Update End With .Organization = "my" .To = "you at yourprovider" .Subject = "Example subject" .TextBody = "Example body" .From = "me at myprovider" .AddAttachment ("d:\aaaatemp\accarch135.zip") .Send End With Set msg = Nothing Exit_SendCdoMsg: Exit Function Err_SendCdoMsg: Select Case Err Case 0 MsgBox "0 error", vbCritical, "Error heading" Case Else Call basErrorMsg("SendCdoMsg") End Select Resume Exit_SendCdoMsg End Function At 20/02/2007, you wrote: >Hi David - I only use the .Display option in my apps so that the users >can add some text to the email if they want to before it is sent, but >.send WILL send the email depending on their Outlook preferences. > >ie. if they have [tools] [options] [mail delivery] 'Send immediately >when connected' turned on, then yes, it will send. > >I haven;t found any way of that email not going into sent items though. > >Kath > > ----- Original Message ----- > From: David Emerson > To: accessd at databaseadvisors.com > Sent: Tuesday, February 20, 2007 11:31 AM > Subject: [AccessD] Automating email > > > Group, > > I have the following code to create an email message: > > Public Function basSendEmail() > > Dim outApp As Outlook.Application, outMsg As MailItem > > Set outApp = CreateObject("Outlook.Application") > Set outMsg = outApp.CreateItem(olMailItem) > > With outMsg > .To = "newsgrps at dalyn.co.nz" > .Subject = "Test egas email" > .Body = "Test message" > .Send > End With > > Set outApp = Nothing > Set outMsg = Nothing > > End Function > > This works fine but only puts the message into my Outlook outbox - it > doesn't send it. This may be because although I have outlook > installed I do not use it (and it has not been set up). > > However, my clients use outlook. Will the above code automatically > send out emails? > > Another question - My client would prefer not to have copies in their > outbox of the email being sent out (ultimately it will be to email > out accounts and they don't want thousands of emails generated each > month). Is there a way for the messages not to appear in outlook? > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Tue Feb 20 18:11:53 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 20 Feb 2007 18:11:53 -0600 Subject: [AccessD] Code Library, Sample Database, Etc. In-Reply-To: Message-ID: I won't tell anyone if you don't... ;) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, February 20, 2007 6:03 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Library, Sample Database, Etc. I CAN'T believe it! I think we just agreed! LOL Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Tuesday, February 20, 2007 3:36 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Library, Sample Database, Etc. If you aren't using User Level security, what's the point in any 'security' within the db anyhow? Let's say you have a form that only Mr. X should be able to use. This form edits tblXYZ. Sure, from the .mde interface only Mr. X would get the form, if you design it that way. But any Joe Schmoe can link to ALL the tables in the .mde, and do whatever they want to the data..... Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Tuesday, February 20, 2007 5:25 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Library, Sample Database, Etc. ...I'm left dazed by your disparagement of XP security! :) ...pray tell why in a 12 user office where no personal information is available in the app, the xp user logon should not be sufficient to determine access rights to forms needing restricted access based upon user roles? William Hindman ...apparently a paranoid programmer ...who knew? :) ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Tuesday, February 20, 2007 6:09 PM Subject: Re: [AccessD] Code Library, Sample Database, Etc. > The primary role of user security IMO has been to allow you to limit > ordinary users to working with the interface. It has never been robust > enough to keep out knowledgeable tamperers. However, I do NOT want Joe > User going in and mucking about with the interface or code I built just > because he now has full permissions to do so. I have never been wiling > to roll my own security system for Access because I object to > reinventing the wheel, even if the wheel is a bit crooked and flat on > one side. XP security in small business environments?? You MUST be > joking! I've never seen a small business environment with any security > that hadn't been added on by a paranoid programmer or systems guy! ;o> > > Charlotte > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William > Hindman > Sent: Tuesday, February 20, 2007 1:54 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Code Library, Sample Database, Etc. > > ...again Charlotte, that is heavily dependent upon the environment in > which you work ...Access based user security has been a farce since '95 > ...you cannot build an Access mdb to which I cannot gain access with > readily available tools, both free and inexpensive ...so you build your > own, a number of which are discussed in our archives, or you depend on > XP security in small business environments ...so the decision by the > Access development team to remove it from A'07 really has no bearing on > its continued use in those environments. > > William Hindman > > ----- Original Message ----- > From: "Charlotte Foust" > To: "Access Developers discussion and problem solving" > > Sent: Tuesday, February 20, 2007 4:02 PM > Subject: Re: [AccessD] Code Library, Sample Database, Etc. > > >>I don't think anyone is casting aspersions, William. But the simple >> truth is that without user security in Access mdbs, they become less >> than useful for multiuser solutions. That doesn't depend on object >> model, it depends on having a mechanism for controlling who gets into >> the application and keeping track of who's there. Without that >> capability, Access 2007 becomes a desktop database for power users or > a >> RAD frontend for SQL Server. >> >> Charlotte Foust >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William >> Hindman >> Sent: Tuesday, February 20, 2007 11:24 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >> >> Arthur >> >> ...its not a matter of agreeing or disagreeing ...if you work in an >> environment where SS is available and the notwork resources are >> available to support it, of course you would use SS in most >> applications. >> >> ...but if you are a consultant working with many small businesses > where >> you are it, then a well designed dao mdb fe/be can be highly stable > and >> work every bit as well as an adp/SS combo ...in point of fact with up > to >> at least >> 15 users a well designed dao based mdb will normally out perform an > ado >> based fe. >> >> ...and with A'07 it appears that MS itself is moving back to the dao >> model ...what irks me is people declaring that their favorite model is >> best for everyone ...or casting unwarranted aspersions on Access be's >> and dao when they really don't work in an environment where that model >> functions best. >> >> William Hindman >> >> ----- Original Message ----- >> From: >> To: "Access Developers discussion and problem solving" >> >> Sent: Tuesday, February 20, 2007 1:41 PM >> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >> >> >>> While I agree with you, I also fear that you will be flamed from >> numerous >>> devotees to the MDB BE concept. I have my flame extinguisher ready in >> case >>> you need it. >>> >>> >>> Arthur Fuller >>> Technical Writer, Data Modeler, SQL Sensei >>> Artful Databases Organization >>> www.artfulsoftware.com >>> >>> >>> >>> >>> ----- Original Message ---- >>> From: Robert L. Stewart >>> To: accessd at databaseadvisors.com >>> Cc: BarbaraRyan at cox.net >>> Sent: Tuesday, February 20, 2007 1:09:06 PM >>> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >>> >>> >>> Barb, >>> >>> I think the only way to completely "tie it all together" >>> is to use SQL Server and an ADP. Behind the forms and such >>> it s completely ADO. MDEs are not if you use a bound form. >>> >>> Robert >>> >>> P.S. Besides, I would never use Access for the database any way. >>> SQL Server is much better at storing it and being stable. >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Tue Feb 20 18:26:14 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 20 Feb 2007 16:26:14 -0800 Subject: [AccessD] Automating email In-Reply-To: <430E80531228BA4497C5EB1A7BA786B0024292@stekelbes.ithelps.local> References: <20070220004505.YMFB25916.fep04.xtra.co.nz@Dalyn.dalyn.co.nz> <005201c7548a$1e9d8c10$6401a8c0@office> <20070220183803.KUO26198.fep06.xtra.co.nz@Dalyn.dalyn.co.nz> <430E80531228BA4497C5EB1A7BA786B0024292@stekelbes.ithelps.local> Message-ID: <45DB91A6.8010801@shaw.ca> Nope the CDO client dll stuff comes with Win2000 and WinXP I think if at least Outlook express is installed. Should work with CDOSys.dll Windows Collaboration Objects CDONTS, CDOSYS, and CDOEX use Outlook Express DLLs See http://www.cdolive.com/cdo8.htm Erwin Craps - IT Helps wrote: >Euh, Maybe I'm wrong with this but isn't CDO only available on a server >running Exchange Server? > >-----Oorspronkelijk bericht----- >Van: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] Namens David Emerson >Verzonden: dinsdag 20 februari 2007 19:38 >Aan: Access Developers discussion and problem solving >Onderwerp: Re: [AccessD] Automating email > >Thanks Kath and Erwin, > >I eventually found some code that doesn't rely on outlook but uses >another file called CDOEx.dll. It doesn't leave any items in outlook. > >In references you need to set the reference to Microsoft CDO for >Exchange 2000 Library > >Public Function SendCdoMsg() > > On Error GoTo Err_SendCdoMsg > > Dim msg As Message > > Set msg = CreateObject("CDO.Message") > > With msg > With .Configuration.Fields > .Item(cdoSMTPAuthenticate) = cdoAnonymous > .Item(cdoSendUsingMethod) = cdoSendUsingPort > .Item(cdoSMTPServer) = "smtp.xtra.co.nz" > .Item(cdoSMTPConnectionTimeout) = 10 > .Item(cdoSMTPServerPort) = 25 > .Update > End With > .Organization = "my" > .To = "you at yourprovider" > .Subject = "Example subject" > .TextBody = "Example body" > .From = "me at myprovider" > .AddAttachment ("d:\aaaatemp\accarch135.zip") > .Send > End With > > Set msg = Nothing > >Exit_SendCdoMsg: > Exit Function > >Err_SendCdoMsg: > Select Case Err > Case 0 > MsgBox "0 error", vbCritical, "Error heading" > Case Else > Call basErrorMsg("SendCdoMsg") > End Select > Resume Exit_SendCdoMsg > >End Function > > >At 20/02/2007, you wrote: > > >>Hi David - I only use the .Display option in my apps so that the users >>can add some text to the email if they want to before it is sent, but >>.send WILL send the email depending on their Outlook preferences. >> >>ie. if they have [tools] [options] [mail delivery] 'Send immediately >>when connected' turned on, then yes, it will send. >> >>I haven;t found any way of that email not going into sent items though. >> >>Kath >> >> ----- Original Message ----- >> From: David Emerson >> To: accessd at databaseadvisors.com >> Sent: Tuesday, February 20, 2007 11:31 AM >> Subject: [AccessD] Automating email >> >> >> Group, >> >> I have the following code to create an email message: >> >> Public Function basSendEmail() >> >> Dim outApp As Outlook.Application, outMsg As MailItem >> >> Set outApp = CreateObject("Outlook.Application") >> Set outMsg = outApp.CreateItem(olMailItem) >> >> With outMsg >> .To = "newsgrps at dalyn.co.nz" >> .Subject = "Test egas email" >> .Body = "Test message" >> .Send >> End With >> >> Set outApp = Nothing >> Set outMsg = Nothing >> >> End Function >> >> This works fine but only puts the message into my Outlook outbox - >> >> >it > > >> doesn't send it. This may be because although I have outlook >> installed I do not use it (and it has not been set up). >> >> However, my clients use outlook. Will the above code automatically >> send out emails? >> >> Another question - My client would prefer not to have copies in >> >> >their > > >> outbox of the email being sent out (ultimately it will be to email >> out accounts and they don't want thousands of emails generated each >> month). Is there a way for the messages not to appear in outlook? >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >> > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > -- Marty Connelly Victoria, B.C. Canada From wdhindman at dejpolsystems.com Tue Feb 20 18:42:37 2007 From: wdhindman at dejpolsystems.com (William Hindman) Date: Tue, 20 Feb 2007 19:42:37 -0500 Subject: [AccessD] Code Library, Sample Database, Etc. References: Message-ID: <000901c75551$2ff29f10$9258eb44@50NM721> ...not in a runtime environment :) William Hindman ----- Original Message ----- From: "Drew Wutka" To: "Access Developers discussion and problem solving" Sent: Tuesday, February 20, 2007 6:35 PM Subject: Re: [AccessD] Code Library, Sample Database, Etc. > If you aren't using User Level security, what's the point in any > 'security' within the db anyhow? > > Let's say you have a form that only Mr. X should be able to use. This > form edits tblXYZ. Sure, from the .mde interface only Mr. X would get > the form, if you design it that way. But any Joe Schmoe can link to ALL > the tables in the .mde, and do whatever they want to the data..... > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William > Hindman > Sent: Tuesday, February 20, 2007 5:25 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Code Library, Sample Database, Etc. > > ...I'm left dazed by your disparagement of XP security! :) > > ...pray tell why in a 12 user office where no personal information is > available in the app, the xp user logon should not be sufficient to > determine access rights to forms needing restricted access based upon > user > roles? > > William Hindman ...apparently a paranoid programmer ...who knew? :) > > ----- Original Message ----- > From: "Charlotte Foust" > To: "Access Developers discussion and problem solving" > > Sent: Tuesday, February 20, 2007 6:09 PM > Subject: Re: [AccessD] Code Library, Sample Database, Etc. > > >> The primary role of user security IMO has been to allow you to limit >> ordinary users to working with the interface. It has never been > robust >> enough to keep out knowledgeable tamperers. However, I do NOT want > Joe >> User going in and mucking about with the interface or code I built > just >> because he now has full permissions to do so. I have never been > wiling >> to roll my own security system for Access because I object to >> reinventing the wheel, even if the wheel is a bit crooked and flat on >> one side. XP security in small business environments?? You MUST be >> joking! I've never seen a small business environment with any > security >> that hadn't been added on by a paranoid programmer or systems guy! ;o> >> >> Charlotte >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William >> Hindman >> Sent: Tuesday, February 20, 2007 1:54 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >> >> ...again Charlotte, that is heavily dependent upon the environment in >> which you work ...Access based user security has been a farce since > '95 >> ...you cannot build an Access mdb to which I cannot gain access with >> readily available tools, both free and inexpensive ...so you build > your >> own, a number of which are discussed in our archives, or you depend on >> XP security in small business environments ...so the decision by the >> Access development team to remove it from A'07 really has no bearing > on >> its continued use in those environments. >> >> William Hindman >> >> ----- Original Message ----- >> From: "Charlotte Foust" >> To: "Access Developers discussion and problem solving" >> >> Sent: Tuesday, February 20, 2007 4:02 PM >> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >> >> >>>I don't think anyone is casting aspersions, William. But the simple >>> truth is that without user security in Access mdbs, they become less >>> than useful for multiuser solutions. That doesn't depend on object >>> model, it depends on having a mechanism for controlling who gets into >>> the application and keeping track of who's there. Without that >>> capability, Access 2007 becomes a desktop database for power users or >> a >>> RAD frontend for SQL Server. >>> >>> Charlotte Foust >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William >>> Hindman >>> Sent: Tuesday, February 20, 2007 11:24 AM >>> To: Access Developers discussion and problem solving >>> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >>> >>> Arthur >>> >>> ...its not a matter of agreeing or disagreeing ...if you work in an >>> environment where SS is available and the notwork resources are >>> available to support it, of course you would use SS in most >>> applications. >>> >>> ...but if you are a consultant working with many small businesses >> where >>> you are it, then a well designed dao mdb fe/be can be highly stable >> and >>> work every bit as well as an adp/SS combo ...in point of fact with up >> to >>> at least >>> 15 users a well designed dao based mdb will normally out perform an >> ado >>> based fe. >>> >>> ...and with A'07 it appears that MS itself is moving back to the dao >>> model ...what irks me is people declaring that their favorite model > is >>> best for everyone ...or casting unwarranted aspersions on Access be's >>> and dao when they really don't work in an environment where that > model >>> functions best. >>> >>> William Hindman >>> >>> ----- Original Message ----- >>> From: >>> To: "Access Developers discussion and problem solving" >>> >>> Sent: Tuesday, February 20, 2007 1:41 PM >>> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >>> >>> >>>> While I agree with you, I also fear that you will be flamed from >>> numerous >>>> devotees to the MDB BE concept. I have my flame extinguisher ready > in >>> case >>>> you need it. >>>> >>>> >>>> Arthur Fuller >>>> Technical Writer, Data Modeler, SQL Sensei >>>> Artful Databases Organization >>>> www.artfulsoftware.com >>>> >>>> >>>> >>>> >>>> ----- Original Message ---- >>>> From: Robert L. Stewart >>>> To: accessd at databaseadvisors.com >>>> Cc: BarbaraRyan at cox.net >>>> Sent: Tuesday, February 20, 2007 1:09:06 PM >>>> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >>>> >>>> >>>> Barb, >>>> >>>> I think the only way to completely "tie it all together" >>>> is to use SQL Server and an ADP. Behind the forms and such >>>> it s completely ADO. MDEs are not if you use a bound form. >>>> >>>> Robert >>>> >>>> P.S. Besides, I would never use Access for the database any way. >>>> SQL Server is much better at storing it and being stable. >>>> -- >>>> AccessD mailing list >>>> AccessD at databaseadvisors.com >>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>> Website: http://www.databaseadvisors.com >>>> >>> >>> >>> >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 at ddisolutions.com.au Tue Feb 20 19:00:04 2007 From: michael at ddisolutions.com.au (Michael Maddison) Date: Wed, 21 Feb 2007 12:00:04 +1100 Subject: [AccessD] Automating email References: <20070220004505.YMFB25916.fep04.xtra.co.nz@Dalyn.dalyn.co.nz><005201c7548a$1e9d8c10$6401a8c0@office><20070220183803.KUO26198.fep06.xtra.co.nz@Dalyn.dalyn.co.nz><430E80531228BA4497C5EB1A7BA786B0024292@stekelbes.ithelps.local> <45DB91A6.8010801@shaw.ca> Message-ID: <59A61174B1F5B54B97FD4ADDE71E7D0116B071@ddi-01.DDI.local> I think there are different versions where some only work on the Exchange server. We are starting to use WebDav in a C# project, I seem to recall seeing VB6 sample code on MSDN. The advantage of WebDav is that no CDO or other libraries are required except for MSXML(?) which is a standard Windows dll. cheers Michael M Subject: Re: [AccessD] Automating email Nope the CDO client dll stuff comes with Win2000 and WinXP I think if at least Outlook express is installed. Should work with CDOSys.dll Windows Collaboration Objects CDONTS, CDOSYS, and CDOEX use Outlook Express DLLs See http://www.cdolive.com/cdo8.htm Erwin Craps - IT Helps wrote: >Euh, Maybe I'm wrong with this but isn't CDO only available on a server >running Exchange Server? > >-----Oorspronkelijk bericht----- >Van: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] Namens David Emerson >Verzonden: dinsdag 20 februari 2007 19:38 >Aan: Access Developers discussion and problem solving >Onderwerp: Re: [AccessD] Automating email > >Thanks Kath and Erwin, > >I eventually found some code that doesn't rely on outlook but uses >another file called CDOEx.dll. It doesn't leave any items in outlook. > >In references you need to set the reference to Microsoft CDO for >Exchange 2000 Library > >Public Function SendCdoMsg() > > On Error GoTo Err_SendCdoMsg > > Dim msg As Message > > Set msg = CreateObject("CDO.Message") > > With msg > With .Configuration.Fields > .Item(cdoSMTPAuthenticate) = cdoAnonymous > .Item(cdoSendUsingMethod) = cdoSendUsingPort > .Item(cdoSMTPServer) = "smtp.xtra.co.nz" > .Item(cdoSMTPConnectionTimeout) = 10 > .Item(cdoSMTPServerPort) = 25 > .Update > End With > .Organization = "my" > .To = "you at yourprovider" > .Subject = "Example subject" > .TextBody = "Example body" > .From = "me at myprovider" > .AddAttachment ("d:\aaaatemp\accarch135.zip") > .Send > End With > > Set msg = Nothing > >Exit_SendCdoMsg: > Exit Function > >Err_SendCdoMsg: > Select Case Err > Case 0 > MsgBox "0 error", vbCritical, "Error heading" > Case Else > Call basErrorMsg("SendCdoMsg") > End Select > Resume Exit_SendCdoMsg > >End Function > > >At 20/02/2007, you wrote: > > >>Hi David - I only use the .Display option in my apps so that the users >>can add some text to the email if they want to before it is sent, but >>.send WILL send the email depending on their Outlook preferences. >> >>ie. if they have [tools] [options] [mail delivery] 'Send immediately >>when connected' turned on, then yes, it will send. >> >>I haven;t found any way of that email not going into sent items though. >> >>Kath >> >> ----- Original Message ----- >> From: David Emerson >> To: accessd at databaseadvisors.com >> Sent: Tuesday, February 20, 2007 11:31 AM >> Subject: [AccessD] Automating email >> >> >> Group, >> >> I have the following code to create an email message: >> >> Public Function basSendEmail() >> >> Dim outApp As Outlook.Application, outMsg As MailItem >> >> Set outApp = CreateObject("Outlook.Application") >> Set outMsg = outApp.CreateItem(olMailItem) >> >> With outMsg >> .To = "newsgrps at dalyn.co.nz" >> .Subject = "Test egas email" >> .Body = "Test message" >> .Send >> End With >> >> Set outApp = Nothing >> Set outMsg = Nothing >> >> End Function >> >> This works fine but only puts the message into my Outlook outbox - >> >> >it > > >> doesn't send it. This may be because although I have outlook >> installed I do not use it (and it has not been set up). >> >> However, my clients use outlook. Will the above code automatically >> send out emails? >> >> Another question - My client would prefer not to have copies in >> >> >their > > >> outbox of the email being sent out (ultimately it will be to email >> out accounts and they don't want thousands of emails generated each >> month). Is there a way for the messages not to appear in outlook? >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/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 DWUTKA at Marlow.com Tue Feb 20 19:03:37 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 20 Feb 2007 19:03:37 -0600 Subject: [AccessD] Code Library, Sample Database, Etc. In-Reply-To: <000901c75551$2ff29f10$9258eb44@50NM721> Message-ID: Yep..... even in a runtime environment. An .mde only protects the forms/reports/code. The tables (and querries and the data within) are still accessible through ANYTHING that can connect to an Access .mdb. (Access itself, Excel, word, VBScript, heck, anything that can use ADO or DAO.). The only thing that protects an Access table (whether it's an .mdb, or .mde) is Access User Level Security. Don't believe me? Just open an .mdb, and go link a table, find an .mde to link to, and you'll see ALL of your tables right there.... Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Tuesday, February 20, 2007 6:43 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Library, Sample Database, Etc. ...not in a runtime environment :) William Hindman ----- Original Message ----- From: "Drew Wutka" To: "Access Developers discussion and problem solving" Sent: Tuesday, February 20, 2007 6:35 PM Subject: Re: [AccessD] Code Library, Sample Database, Etc. > If you aren't using User Level security, what's the point in any > 'security' within the db anyhow? > > Let's say you have a form that only Mr. X should be able to use. This > form edits tblXYZ. Sure, from the .mde interface only Mr. X would get > the form, if you design it that way. But any Joe Schmoe can link to ALL > the tables in the .mde, and do whatever they want to the data..... > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William > Hindman > Sent: Tuesday, February 20, 2007 5:25 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Code Library, Sample Database, Etc. > > ...I'm left dazed by your disparagement of XP security! :) > > ...pray tell why in a 12 user office where no personal information is > available in the app, the xp user logon should not be sufficient to > determine access rights to forms needing restricted access based upon > user > roles? > > William Hindman ...apparently a paranoid programmer ...who knew? :) > > ----- Original Message ----- > From: "Charlotte Foust" > To: "Access Developers discussion and problem solving" > > Sent: Tuesday, February 20, 2007 6:09 PM > Subject: Re: [AccessD] Code Library, Sample Database, Etc. > > >> The primary role of user security IMO has been to allow you to limit >> ordinary users to working with the interface. It has never been > robust >> enough to keep out knowledgeable tamperers. However, I do NOT want > Joe >> User going in and mucking about with the interface or code I built > just >> because he now has full permissions to do so. I have never been > wiling >> to roll my own security system for Access because I object to >> reinventing the wheel, even if the wheel is a bit crooked and flat on >> one side. XP security in small business environments?? You MUST be >> joking! I've never seen a small business environment with any > security >> that hadn't been added on by a paranoid programmer or systems guy! ;o> >> >> Charlotte >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William >> Hindman >> Sent: Tuesday, February 20, 2007 1:54 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >> >> ...again Charlotte, that is heavily dependent upon the environment in >> which you work ...Access based user security has been a farce since > '95 >> ...you cannot build an Access mdb to which I cannot gain access with >> readily available tools, both free and inexpensive ...so you build > your >> own, a number of which are discussed in our archives, or you depend on >> XP security in small business environments ...so the decision by the >> Access development team to remove it from A'07 really has no bearing > on >> its continued use in those environments. >> >> William Hindman >> >> ----- Original Message ----- >> From: "Charlotte Foust" >> To: "Access Developers discussion and problem solving" >> >> Sent: Tuesday, February 20, 2007 4:02 PM >> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >> >> >>>I don't think anyone is casting aspersions, William. But the simple >>> truth is that without user security in Access mdbs, they become less >>> than useful for multiuser solutions. That doesn't depend on object >>> model, it depends on having a mechanism for controlling who gets into >>> the application and keeping track of who's there. Without that >>> capability, Access 2007 becomes a desktop database for power users or >> a >>> RAD frontend for SQL Server. >>> >>> Charlotte Foust >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William >>> Hindman >>> Sent: Tuesday, February 20, 2007 11:24 AM >>> To: Access Developers discussion and problem solving >>> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >>> >>> Arthur >>> >>> ...its not a matter of agreeing or disagreeing ...if you work in an >>> environment where SS is available and the notwork resources are >>> available to support it, of course you would use SS in most >>> applications. >>> >>> ...but if you are a consultant working with many small businesses >> where >>> you are it, then a well designed dao mdb fe/be can be highly stable >> and >>> work every bit as well as an adp/SS combo ...in point of fact with up >> to >>> at least >>> 15 users a well designed dao based mdb will normally out perform an >> ado >>> based fe. >>> >>> ...and with A'07 it appears that MS itself is moving back to the dao >>> model ...what irks me is people declaring that their favorite model > is >>> best for everyone ...or casting unwarranted aspersions on Access be's >>> and dao when they really don't work in an environment where that > model >>> functions best. >>> >>> William Hindman >>> >>> ----- Original Message ----- >>> From: >>> To: "Access Developers discussion and problem solving" >>> >>> Sent: Tuesday, February 20, 2007 1:41 PM >>> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >>> >>> >>>> While I agree with you, I also fear that you will be flamed from >>> numerous >>>> devotees to the MDB BE concept. I have my flame extinguisher ready > in >>> case >>>> you need it. >>>> >>>> >>>> Arthur Fuller >>>> Technical Writer, Data Modeler, SQL Sensei >>>> Artful Databases Organization >>>> www.artfulsoftware.com >>>> >>>> >>>> >>>> >>>> ----- Original Message ---- >>>> From: Robert L. Stewart >>>> To: accessd at databaseadvisors.com >>>> Cc: BarbaraRyan at cox.net >>>> Sent: Tuesday, February 20, 2007 1:09:06 PM >>>> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >>>> >>>> >>>> Barb, >>>> >>>> I think the only way to completely "tie it all together" >>>> is to use SQL Server and an ADP. Behind the forms and such >>>> it s completely ADO. MDEs are not if you use a bound form. >>>> >>>> Robert >>>> >>>> P.S. Besides, I would never use Access for the database any way. >>>> SQL Server is much better at storing it and being stable. >>>> -- >>>> AccessD mailing list >>>> AccessD at databaseadvisors.com >>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>> Website: http://www.databaseadvisors.com >>>> >>> >>> >>> >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 setel.com Tue Feb 20 20:04:33 2007 From: ssharkins at setel.com (Susan Harkins) Date: Tue, 20 Feb 2007 21:04:33 -0500 Subject: [AccessD] Reset OrderBy Message-ID: <004d01c7555c$a1e04450$3432fad1@SUSANONE> I'm using a simple procedure to set a form's OrderBy property. When I close the form, I want to delete any setting, so that the property isn't saved with the form. How can I do that? I tried Private Sub Form_Close() 'Reset Order By property Me.OrderBy = "" End Sub But it doesn't work. Checked Help but didn't find anything helpful. I don't really want to set the sort order to "" -- I just want to wipe it clean. My guess is the property doesn't recognize "", although it doesn't error. Susan H. From mmattys at rochester.rr.com Tue Feb 20 20:18:25 2007 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Tue, 20 Feb 2007 21:18:25 -0500 Subject: [AccessD] Reset OrderBy References: <004d01c7555c$a1e04450$3432fad1@SUSANONE> Message-ID: <00a201c7555e$93bc0c90$0202a8c0@default> Hi Susan, If I recall correctly, you'd use .OrderByOn = False Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "Susan Harkins" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, February 20, 2007 9:04 PM Subject: [AccessD] Reset OrderBy > I'm using a simple procedure to set a form's OrderBy property. When I > close > the form, I want to delete any setting, so that the property isn't saved > with the form. How can I do that? I tried > > Private Sub Form_Close() > 'Reset Order By property > Me.OrderBy = "" > End Sub > > But it doesn't work. Checked Help but didn't find anything helpful. I > don't > really want to set the sort order to "" -- I just want to wipe it clean. > My > guess is the property doesn't recognize "", although it doesn't error. > > Susan H. > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Tue Feb 20 22:52:24 2007 From: wdhindman at dejpolsystems.com (William Hindman) Date: Tue, 20 Feb 2007 23:52:24 -0500 Subject: [AccessD] Code Library, Sample Database, Etc. References: Message-ID: <002701c75574$14807a40$9258eb44@50NM721> ...lol ...while technically true its not a concern ...my users don't have Access installed and William Hindman ----- Original Message ----- From: "Drew Wutka" To: "Access Developers discussion and problem solving" Sent: Tuesday, February 20, 2007 8:03 PM Subject: Re: [AccessD] Code Library, Sample Database, Etc. > Yep..... even in a runtime environment. An .mde only protects the > forms/reports/code. The tables (and querries and the data within) are > still accessible through ANYTHING that can connect to an Access .mdb. > (Access itself, Excel, word, VBScript, heck, anything that can use ADO > or DAO.). > > The only thing that protects an Access table (whether it's an .mdb, or > .mde) is Access User Level Security. > > Don't believe me? Just open an .mdb, and go link a table, find an .mde > to link to, and you'll see ALL of your tables right there.... > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William > Hindman > Sent: Tuesday, February 20, 2007 6:43 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Code Library, Sample Database, Etc. > > ...not in a runtime environment :) > > William Hindman > > ----- Original Message ----- > From: "Drew Wutka" > To: "Access Developers discussion and problem solving" > > Sent: Tuesday, February 20, 2007 6:35 PM > Subject: Re: [AccessD] Code Library, Sample Database, Etc. > > >> If you aren't using User Level security, what's the point in any >> 'security' within the db anyhow? >> >> Let's say you have a form that only Mr. X should be able to use. This >> form edits tblXYZ. Sure, from the .mde interface only Mr. X would get >> the form, if you design it that way. But any Joe Schmoe can link to > ALL >> the tables in the .mde, and do whatever they want to the data..... >> >> Drew >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William >> Hindman >> Sent: Tuesday, February 20, 2007 5:25 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >> >> ...I'm left dazed by your disparagement of XP security! :) >> >> ...pray tell why in a 12 user office where no personal information is >> available in the app, the xp user logon should not be sufficient to >> determine access rights to forms needing restricted access based upon >> user >> roles? >> >> William Hindman ...apparently a paranoid programmer ...who knew? :) >> >> ----- Original Message ----- >> From: "Charlotte Foust" >> To: "Access Developers discussion and problem solving" >> >> Sent: Tuesday, February 20, 2007 6:09 PM >> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >> >> >>> The primary role of user security IMO has been to allow you to limit >>> ordinary users to working with the interface. It has never been >> robust >>> enough to keep out knowledgeable tamperers. However, I do NOT want >> Joe >>> User going in and mucking about with the interface or code I built >> just >>> because he now has full permissions to do so. I have never been >> wiling >>> to roll my own security system for Access because I object to >>> reinventing the wheel, even if the wheel is a bit crooked and flat on >>> one side. XP security in small business environments?? You MUST be >>> joking! I've never seen a small business environment with any >> security >>> that hadn't been added on by a paranoid programmer or systems guy! > ;o> >>> >>> Charlotte >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William >>> Hindman >>> Sent: Tuesday, February 20, 2007 1:54 PM >>> To: Access Developers discussion and problem solving >>> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >>> >>> ...again Charlotte, that is heavily dependent upon the environment in >>> which you work ...Access based user security has been a farce since >> '95 >>> ...you cannot build an Access mdb to which I cannot gain access with >>> readily available tools, both free and inexpensive ...so you build >> your >>> own, a number of which are discussed in our archives, or you depend > on >>> XP security in small business environments ...so the decision by the >>> Access development team to remove it from A'07 really has no bearing >> on >>> its continued use in those environments. >>> >>> William Hindman >>> >>> ----- Original Message ----- >>> From: "Charlotte Foust" >>> To: "Access Developers discussion and problem solving" >>> >>> Sent: Tuesday, February 20, 2007 4:02 PM >>> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >>> >>> >>>>I don't think anyone is casting aspersions, William. But the simple >>>> truth is that without user security in Access mdbs, they become less >>>> than useful for multiuser solutions. That doesn't depend on object >>>> model, it depends on having a mechanism for controlling who gets > into >>>> the application and keeping track of who's there. Without that >>>> capability, Access 2007 becomes a desktop database for power users > or >>> a >>>> RAD frontend for SQL Server. >>>> >>>> Charlotte Foust >>>> >>>> -----Original Message----- >>>> From: accessd-bounces at databaseadvisors.com >>>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William >>>> Hindman >>>> Sent: Tuesday, February 20, 2007 11:24 AM >>>> To: Access Developers discussion and problem solving >>>> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >>>> >>>> Arthur >>>> >>>> ...its not a matter of agreeing or disagreeing ...if you work in an >>>> environment where SS is available and the notwork resources are >>>> available to support it, of course you would use SS in most >>>> applications. >>>> >>>> ...but if you are a consultant working with many small businesses >>> where >>>> you are it, then a well designed dao mdb fe/be can be highly stable >>> and >>>> work every bit as well as an adp/SS combo ...in point of fact with > up >>> to >>>> at least >>>> 15 users a well designed dao based mdb will normally out perform an >>> ado >>>> based fe. >>>> >>>> ...and with A'07 it appears that MS itself is moving back to the dao >>>> model ...what irks me is people declaring that their favorite model >> is >>>> best for everyone ...or casting unwarranted aspersions on Access > be's >>>> and dao when they really don't work in an environment where that >> model >>>> functions best. >>>> >>>> William Hindman >>>> >>>> ----- Original Message ----- >>>> From: >>>> To: "Access Developers discussion and problem solving" >>>> >>>> Sent: Tuesday, February 20, 2007 1:41 PM >>>> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >>>> >>>> >>>>> While I agree with you, I also fear that you will be flamed from >>>> numerous >>>>> devotees to the MDB BE concept. I have my flame extinguisher ready >> in >>>> case >>>>> you need it. >>>>> >>>>> >>>>> Arthur Fuller >>>>> Technical Writer, Data Modeler, SQL Sensei >>>>> Artful Databases Organization >>>>> www.artfulsoftware.com >>>>> >>>>> >>>>> >>>>> >>>>> ----- Original Message ---- >>>>> From: Robert L. Stewart >>>>> To: accessd at databaseadvisors.com >>>>> Cc: BarbaraRyan at cox.net >>>>> Sent: Tuesday, February 20, 2007 1:09:06 PM >>>>> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >>>>> >>>>> >>>>> Barb, >>>>> >>>>> I think the only way to completely "tie it all together" >>>>> is to use SQL Server and an ADP. Behind the forms and such >>>>> it s completely ADO. MDEs are not if you use a bound form. >>>>> >>>>> Robert >>>>> >>>>> P.S. Besides, I would never use Access for the database any way. >>>>> SQL Server is much better at storing it and being stable. >>>>> -- >>>>> AccessD mailing list >>>>> AccessD at databaseadvisors.com >>>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>>> Website: http://www.databaseadvisors.com >>>>> >>>> >>>> >>>> >>>> >>>> -- >>>> AccessD mailing list >>>> AccessD at databaseadvisors.com >>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>> Website: http://www.databaseadvisors.com >>>> -- >>>> AccessD mailing list >>>> AccessD at databaseadvisors.com >>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>> Website: http://www.databaseadvisors.com >>>> >>> >>> >>> >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Tue Feb 20 22:57:21 2007 From: artful at rogers.com (artful at rogers.com) Date: Tue, 20 Feb 2007 20:57:21 -0800 (PST) Subject: [AccessD] Automating email Message-ID: <551548.20862.qm@web88201.mail.re2.yahoo.com> I think you are wrong. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Erwin Craps - IT Helps To: Access Developers discussion and problem solving Sent: Tuesday, February 20, 2007 6:54:22 PM Subject: Re: [AccessD] Automating email Euh, Maybe I'm wrong with this but isn't CDO only available on a server running Exchange Server? From wdhindman at dejpolsystems.com Tue Feb 20 22:57:01 2007 From: wdhindman at dejpolsystems.com (William Hindman) Date: Tue, 20 Feb 2007 23:57:01 -0500 Subject: [AccessD] Code Library, Sample Database, Etc. References: Message-ID: <002e01c75574$b9ec0ad0$9258eb44@50NM721> ...busted send ...anyway, while technically true, my users never have Access installed and there are no Wutka's among them ...I'm just not going to wet my pants over the possibility that one of them could use excel or word vba to get to the tables ...they all know I'd colbyize them :) William Hindman ----- Original Message ----- From: "Drew Wutka" To: "Access Developers discussion and problem solving" Sent: Tuesday, February 20, 2007 8:03 PM Subject: Re: [AccessD] Code Library, Sample Database, Etc. > Yep..... even in a runtime environment. An .mde only protects the > forms/reports/code. The tables (and querries and the data within) are > still accessible through ANYTHING that can connect to an Access .mdb. > (Access itself, Excel, word, VBScript, heck, anything that can use ADO > or DAO.). > > The only thing that protects an Access table (whether it's an .mdb, or > .mde) is Access User Level Security. > > Don't believe me? Just open an .mdb, and go link a table, find an .mde > to link to, and you'll see ALL of your tables right there.... > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William > Hindman > Sent: Tuesday, February 20, 2007 6:43 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Code Library, Sample Database, Etc. > > ...not in a runtime environment :) > > William Hindman > > ----- Original Message ----- > From: "Drew Wutka" > To: "Access Developers discussion and problem solving" > > Sent: Tuesday, February 20, 2007 6:35 PM > Subject: Re: [AccessD] Code Library, Sample Database, Etc. > > >> If you aren't using User Level security, what's the point in any >> 'security' within the db anyhow? >> >> Let's say you have a form that only Mr. X should be able to use. This >> form edits tblXYZ. Sure, from the .mde interface only Mr. X would get >> the form, if you design it that way. But any Joe Schmoe can link to > ALL >> the tables in the .mde, and do whatever they want to the data..... >> >> Drew >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William >> Hindman >> Sent: Tuesday, February 20, 2007 5:25 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >> >> ...I'm left dazed by your disparagement of XP security! :) >> >> ...pray tell why in a 12 user office where no personal information is >> available in the app, the xp user logon should not be sufficient to >> determine access rights to forms needing restricted access based upon >> user >> roles? >> >> William Hindman ...apparently a paranoid programmer ...who knew? :) >> >> ----- Original Message ----- >> From: "Charlotte Foust" >> To: "Access Developers discussion and problem solving" >> >> Sent: Tuesday, February 20, 2007 6:09 PM >> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >> >> >>> The primary role of user security IMO has been to allow you to limit >>> ordinary users to working with the interface. It has never been >> robust >>> enough to keep out knowledgeable tamperers. However, I do NOT want >> Joe >>> User going in and mucking about with the interface or code I built >> just >>> because he now has full permissions to do so. I have never been >> wiling >>> to roll my own security system for Access because I object to >>> reinventing the wheel, even if the wheel is a bit crooked and flat on >>> one side. XP security in small business environments?? You MUST be >>> joking! I've never seen a small business environment with any >> security >>> that hadn't been added on by a paranoid programmer or systems guy! > ;o> >>> >>> Charlotte >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William >>> Hindman >>> Sent: Tuesday, February 20, 2007 1:54 PM >>> To: Access Developers discussion and problem solving >>> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >>> >>> ...again Charlotte, that is heavily dependent upon the environment in >>> which you work ...Access based user security has been a farce since >> '95 >>> ...you cannot build an Access mdb to which I cannot gain access with >>> readily available tools, both free and inexpensive ...so you build >> your >>> own, a number of which are discussed in our archives, or you depend > on >>> XP security in small business environments ...so the decision by the >>> Access development team to remove it from A'07 really has no bearing >> on >>> its continued use in those environments. >>> >>> William Hindman >>> >>> ----- Original Message ----- >>> From: "Charlotte Foust" >>> To: "Access Developers discussion and problem solving" >>> >>> Sent: Tuesday, February 20, 2007 4:02 PM >>> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >>> >>> >>>>I don't think anyone is casting aspersions, William. But the simple >>>> truth is that without user security in Access mdbs, they become less >>>> than useful for multiuser solutions. That doesn't depend on object >>>> model, it depends on having a mechanism for controlling who gets > into >>>> the application and keeping track of who's there. Without that >>>> capability, Access 2007 becomes a desktop database for power users > or >>> a >>>> RAD frontend for SQL Server. >>>> >>>> Charlotte Foust >>>> >>>> -----Original Message----- >>>> From: accessd-bounces at databaseadvisors.com >>>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William >>>> Hindman >>>> Sent: Tuesday, February 20, 2007 11:24 AM >>>> To: Access Developers discussion and problem solving >>>> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >>>> >>>> Arthur >>>> >>>> ...its not a matter of agreeing or disagreeing ...if you work in an >>>> environment where SS is available and the notwork resources are >>>> available to support it, of course you would use SS in most >>>> applications. >>>> >>>> ...but if you are a consultant working with many small businesses >>> where >>>> you are it, then a well designed dao mdb fe/be can be highly stable >>> and >>>> work every bit as well as an adp/SS combo ...in point of fact with > up >>> to >>>> at least >>>> 15 users a well designed dao based mdb will normally out perform an >>> ado >>>> based fe. >>>> >>>> ...and with A'07 it appears that MS itself is moving back to the dao >>>> model ...what irks me is people declaring that their favorite model >> is >>>> best for everyone ...or casting unwarranted aspersions on Access > be's >>>> and dao when they really don't work in an environment where that >> model >>>> functions best. >>>> >>>> William Hindman >>>> >>>> ----- Original Message ----- >>>> From: >>>> To: "Access Developers discussion and problem solving" >>>> >>>> Sent: Tuesday, February 20, 2007 1:41 PM >>>> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >>>> >>>> >>>>> While I agree with you, I also fear that you will be flamed from >>>> numerous >>>>> devotees to the MDB BE concept. I have my flame extinguisher ready >> in >>>> case >>>>> you need it. >>>>> >>>>> >>>>> Arthur Fuller >>>>> Technical Writer, Data Modeler, SQL Sensei >>>>> Artful Databases Organization >>>>> www.artfulsoftware.com >>>>> >>>>> >>>>> >>>>> >>>>> ----- Original Message ---- >>>>> From: Robert L. Stewart >>>>> To: accessd at databaseadvisors.com >>>>> Cc: BarbaraRyan at cox.net >>>>> Sent: Tuesday, February 20, 2007 1:09:06 PM >>>>> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >>>>> >>>>> >>>>> Barb, >>>>> >>>>> I think the only way to completely "tie it all together" >>>>> is to use SQL Server and an ADP. Behind the forms and such >>>>> it s completely ADO. MDEs are not if you use a bound form. >>>>> >>>>> Robert >>>>> >>>>> P.S. Besides, I would never use Access for the database any way. >>>>> SQL Server is much better at storing it and being stable. >>>>> -- >>>>> AccessD mailing list >>>>> AccessD at databaseadvisors.com >>>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>>> Website: http://www.databaseadvisors.com >>>>> >>>> >>>> >>>> >>>> >>>> -- >>>> AccessD mailing list >>>> AccessD at databaseadvisors.com >>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>> Website: http://www.databaseadvisors.com >>>> -- >>>> AccessD mailing list >>>> AccessD at databaseadvisors.com >>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>> Website: http://www.databaseadvisors.com >>>> >>> >>> >>> >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 vftt.co.uk Tue Feb 20 23:11:47 2007 From: accessd at vftt.co.uk (Pete Phillipps) Date: Wed, 21 Feb 2007 05:11:47 -0000 Subject: [AccessD] MS TechNet sub Message-ID: <039301c75576$d13f31b0$0201a8c0@HOLTS> Hello Everyone, I'm a UK-based MCP, and I'm looking at taking out a MS TechNet Plus Direct subscription. Before I spend my money I was just wanting to see what others here who have a TechNet sub think about it. Pete "Many [wargame] battles have been fought and won by soldiers nourished on beer" - Frederick the Great, 1777 Download VIEW FROM THE TRENCHES (Britain's Premier ASL Journal) free from http://www.vftt.co.uk Get the latest news about HEROES(ASL in Blackpool) at http://www.vftt.co.uk/heroesdetails.asp Get the latest news about INTENSIVE FIRE (Britain's biggest ASL tournament) at http://www.vftt.co.uk/ifdetails.asp Get the latest UK ASL Tournament news at http://www.asltourneys.co.uk Support the best at http://www.manutd.com/ -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/694 - Release Date: 20/02/2007 13:44 From ebarro at verizon.net Tue Feb 20 23:35:35 2007 From: ebarro at verizon.net (Eric Barro) Date: Tue, 20 Feb 2007 21:35:35 -0800 Subject: [AccessD] Code Library, Sample Database, Etc. In-Reply-To: <002e01c75574$b9ec0ad0$9258eb44@50NM721> Message-ID: <0JDS004IMSV63AD3@vms040.mailsrvcs.net> Eh? Do you work for Microsoft? This sounds exactly like their security philosophy -- security by anonymity... ;) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Tuesday, February 20, 2007 8:57 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Library, Sample Database, Etc. ...busted send ...anyway, while technically true, my users never have Access installed and there are no Wutka's among them ...I'm just not going to wet my pants over the possibility that one of them could use excel or word vba to get to the tables ...they all know I'd colbyize them :) William Hindman ----- Original Message ----- From: "Drew Wutka" To: "Access Developers discussion and problem solving" Sent: Tuesday, February 20, 2007 8:03 PM Subject: Re: [AccessD] Code Library, Sample Database, Etc. > Yep..... even in a runtime environment. An .mde only protects the > forms/reports/code. The tables (and querries and the data within) are > still accessible through ANYTHING that can connect to an Access .mdb. > (Access itself, Excel, word, VBScript, heck, anything that can use ADO > or DAO.). > > The only thing that protects an Access table (whether it's an .mdb, or > .mde) is Access User Level Security. > > Don't believe me? Just open an .mdb, and go link a table, find an .mde > to link to, and you'll see ALL of your tables right there.... > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William > Hindman > Sent: Tuesday, February 20, 2007 6:43 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Code Library, Sample Database, Etc. > > ...not in a runtime environment :) > > William Hindman > > ----- Original Message ----- > From: "Drew Wutka" > To: "Access Developers discussion and problem solving" > > Sent: Tuesday, February 20, 2007 6:35 PM > Subject: Re: [AccessD] Code Library, Sample Database, Etc. > > >> If you aren't using User Level security, what's the point in any >> 'security' within the db anyhow? >> >> Let's say you have a form that only Mr. X should be able to use. This >> form edits tblXYZ. Sure, from the .mde interface only Mr. X would get >> the form, if you design it that way. But any Joe Schmoe can link to > ALL >> the tables in the .mde, and do whatever they want to the data..... >> >> Drew >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William >> Hindman >> Sent: Tuesday, February 20, 2007 5:25 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >> >> ...I'm left dazed by your disparagement of XP security! :) >> >> ...pray tell why in a 12 user office where no personal information is >> available in the app, the xp user logon should not be sufficient to >> determine access rights to forms needing restricted access based upon >> user >> roles? >> >> William Hindman ...apparently a paranoid programmer ...who knew? :) >> >> ----- Original Message ----- >> From: "Charlotte Foust" >> To: "Access Developers discussion and problem solving" >> >> Sent: Tuesday, February 20, 2007 6:09 PM >> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >> >> >>> The primary role of user security IMO has been to allow you to limit >>> ordinary users to working with the interface. It has never been >> robust >>> enough to keep out knowledgeable tamperers. However, I do NOT want >> Joe >>> User going in and mucking about with the interface or code I built >> just >>> because he now has full permissions to do so. I have never been >> wiling >>> to roll my own security system for Access because I object to >>> reinventing the wheel, even if the wheel is a bit crooked and flat on >>> one side. XP security in small business environments?? You MUST be >>> joking! I've never seen a small business environment with any >> security >>> that hadn't been added on by a paranoid programmer or systems guy! > ;o> >>> >>> Charlotte >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William >>> Hindman >>> Sent: Tuesday, February 20, 2007 1:54 PM >>> To: Access Developers discussion and problem solving >>> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >>> >>> ...again Charlotte, that is heavily dependent upon the environment in >>> which you work ...Access based user security has been a farce since >> '95 >>> ...you cannot build an Access mdb to which I cannot gain access with >>> readily available tools, both free and inexpensive ...so you build >> your >>> own, a number of which are discussed in our archives, or you depend > on >>> XP security in small business environments ...so the decision by the >>> Access development team to remove it from A'07 really has no bearing >> on >>> its continued use in those environments. >>> >>> William Hindman >>> >>> ----- Original Message ----- >>> From: "Charlotte Foust" >>> To: "Access Developers discussion and problem solving" >>> >>> Sent: Tuesday, February 20, 2007 4:02 PM >>> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >>> >>> >>>>I don't think anyone is casting aspersions, William. But the simple >>>> truth is that without user security in Access mdbs, they become less >>>> than useful for multiuser solutions. That doesn't depend on object >>>> model, it depends on having a mechanism for controlling who gets > into >>>> the application and keeping track of who's there. Without that >>>> capability, Access 2007 becomes a desktop database for power users > or >>> a >>>> RAD frontend for SQL Server. >>>> >>>> Charlotte Foust >>>> >>>> -----Original Message----- >>>> From: accessd-bounces at databaseadvisors.com >>>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William >>>> Hindman >>>> Sent: Tuesday, February 20, 2007 11:24 AM >>>> To: Access Developers discussion and problem solving >>>> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >>>> >>>> Arthur >>>> >>>> ...its not a matter of agreeing or disagreeing ...if you work in an >>>> environment where SS is available and the notwork resources are >>>> available to support it, of course you would use SS in most >>>> applications. >>>> >>>> ...but if you are a consultant working with many small businesses >>> where >>>> you are it, then a well designed dao mdb fe/be can be highly stable >>> and >>>> work every bit as well as an adp/SS combo ...in point of fact with > up >>> to >>>> at least >>>> 15 users a well designed dao based mdb will normally out perform an >>> ado >>>> based fe. >>>> >>>> ...and with A'07 it appears that MS itself is moving back to the dao >>>> model ...what irks me is people declaring that their favorite model >> is >>>> best for everyone ...or casting unwarranted aspersions on Access > be's >>>> and dao when they really don't work in an environment where that >> model >>>> functions best. >>>> >>>> William Hindman >>>> >>>> ----- Original Message ----- >>>> From: >>>> To: "Access Developers discussion and problem solving" >>>> >>>> Sent: Tuesday, February 20, 2007 1:41 PM >>>> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >>>> >>>> >>>>> While I agree with you, I also fear that you will be flamed from >>>> numerous >>>>> devotees to the MDB BE concept. I have my flame extinguisher ready >> in >>>> case >>>>> you need it. >>>>> >>>>> >>>>> Arthur Fuller >>>>> Technical Writer, Data Modeler, SQL Sensei >>>>> Artful Databases Organization >>>>> www.artfulsoftware.com >>>>> >>>>> >>>>> >>>>> >>>>> ----- Original Message ---- >>>>> From: Robert L. Stewart >>>>> To: accessd at databaseadvisors.com >>>>> Cc: BarbaraRyan at cox.net >>>>> Sent: Tuesday, February 20, 2007 1:09:06 PM >>>>> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >>>>> >>>>> >>>>> Barb, >>>>> >>>>> I think the only way to completely "tie it all together" >>>>> is to use SQL Server and an ADP. Behind the forms and such >>>>> it s completely ADO. MDEs are not if you use a bound form. >>>>> >>>>> Robert >>>>> >>>>> P.S. Besides, I would never use Access for the database any way. >>>>> SQL Server is much better at storing it and being stable. >>>>> -- >>>>> AccessD mailing list >>>>> AccessD at databaseadvisors.com >>>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>>> Website: http://www.databaseadvisors.com >>>>> >>>> >>>> >>>> >>>> >>>> -- >>>> AccessD mailing list >>>> AccessD at databaseadvisors.com >>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>> Website: http://www.databaseadvisors.com >>>> -- >>>> AccessD mailing list >>>> AccessD at databaseadvisors.com >>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>> Website: http://www.databaseadvisors.com >>>> >>> >>> >>> >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/694 - Release Date: 2/20/2007 1:44 PM From stuart at lexacorp.com.pg Tue Feb 20 23:46:48 2007 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 21 Feb 2007 15:46:48 +1000 Subject: [AccessD] Reset OrderBy In-Reply-To: <004d01c7555c$a1e04450$3432fad1@SUSANONE> References: <004d01c7555c$a1e04450$3432fad1@SUSANONE> Message-ID: <45DC6968.18071.5965C9B@stuart.lexacorp.com.pg> On 20 Feb 2007 at 21:04, Susan Harkins wrote: > I'm using a simple procedure to set a form's OrderBy property. When I close > the form, I want to delete any setting, so that the property isn't saved > with the form. How can I do that? I tried > > Private Sub Form_Close() > 'Reset Order By property > Me.OrderBy = "" > End Sub > > But it doesn't work. Checked Help but didn't find anything helpful. I don't > really want to set the sort order to "" -- I just want to wipe it clean. My > guess is the property doesn't recognize "", although it doesn't error. It's been a bug since A97 at least. See http://groups.google.com/group/comp.databases.ms- access/browse_thread/thread/ebaf98ff09ceec48/237910f76c0b80a0%23237910 f76c0b80a0 (watch for wrap) Putting Me.OrderBy = "" in Form_Load does work, so do it there to insclear any old info instead. -- Stuart From djkr at msn.com Wed Feb 21 01:00:15 2007 From: djkr at msn.com (DJK(John) Robinson) Date: Wed, 21 Feb 2007 07:00:15 -0000 Subject: [AccessD] MS TechNet sub In-Reply-To: <039301c75576$d13f31b0$0201a8c0@HOLTS> Message-ID: Pete I haven't looked at TechNet for a long time (a) because I'm broke after paying for M$DN, and (b) because the last time I looked at it, there didn't seem to be much in it for me - it seemed much more aimed at sys admins rather than developers. But that was some years ago, so I'd be interested in hearing what you (and others) might get out of it. And now I'm off for an MSDN day with MS... John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Pete Phillipps Sent: 21 February 2007 05:12 To: 'Access Developers discussion and problem solving' Subject: [AccessD] MS TechNet sub Hello Everyone, I'm a UK-based MCP, and I'm looking at taking out a MS TechNet Plus Direct subscription. Before I spend my money I was just wanting to see what others here who have a TechNet sub think about it. Pete "Many [wargame] battles have been fought and won by soldiers nourished on beer" - Frederick the Great, 1777 Download VIEW FROM THE TRENCHES (Britain's Premier ASL Journal) free from http://www.vftt.co.uk Get the latest news about HEROES(ASL in Blackpool) at http://www.vftt.co.uk/heroesdetails.asp Get the latest news about INTENSIVE FIRE (Britain's biggest ASL tournament) at http://www.vftt.co.uk/ifdetails.asp Get the latest UK ASL Tournament news at http://www.asltourneys.co.uk Support the best at http://www.manutd.com/ -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/694 - Release Date: 20/02/2007 13:44 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Wed Feb 21 01:03:34 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Wed, 21 Feb 2007 01:03:34 -0600 Subject: [AccessD] Code Library, Sample Database, Etc. In-Reply-To: <002e01c75574$b9ec0ad0$9258eb44@50NM721> Message-ID: Nothing technical about it. I've been around 'ignorant' security, the type where there's a nice brick wall in place, which has the thickness of a very thin sheet of paper, and the only reason users aren't messing with things is because they are ignorant. There are rare cases where this is ok, but a system that stores business data needs to be protected on a principle level. For example, I have built a LOT of little data dbs, receiving data from test machines. I set every single one up so that data can be entered, but not modified. I get questioned on this, and my answer is simple. There isn't a test machine in the world that needs it's data changed. That's the entire purpose of the test. Now, while you may not care if labbie X decides to tweak the data, I rest soundly in the knowledge that unless he IS a hacker, when the sh*t hits the fan over falsified data, my design is not in question. I think it just boils down to integrity. If I'm trusted to create a database to store data, my integrity is in the end result preventing someone from changing it, other then someone authorized to do so...and then it's their butt. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Tuesday, February 20, 2007 10:57 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Library, Sample Database, Etc. ...busted send ...anyway, while technically true, my users never have Access installed and there are no Wutka's among them ...I'm just not going to wet my pants over the possibility that one of them could use excel or word vba to get to the tables ...they all know I'd colbyize them :) William Hindman ----- Original Message ----- From: "Drew Wutka" To: "Access Developers discussion and problem solving" Sent: Tuesday, February 20, 2007 8:03 PM Subject: Re: [AccessD] Code Library, Sample Database, Etc. > Yep..... even in a runtime environment. An .mde only protects the > forms/reports/code. The tables (and querries and the data within) are > still accessible through ANYTHING that can connect to an Access .mdb. > (Access itself, Excel, word, VBScript, heck, anything that can use ADO > or DAO.). > > The only thing that protects an Access table (whether it's an .mdb, or > .mde) is Access User Level Security. > > Don't believe me? Just open an .mdb, and go link a table, find an .mde > to link to, and you'll see ALL of your tables right there.... > > Drew > From accessd at shaw.ca Wed Feb 21 01:51:33 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 20 Feb 2007 23:51:33 -0800 Subject: [AccessD] Missing references In-Reply-To: <044801c7542b$9c406020$8abea8c0@XPS> Message-ID: <0JDS003F2Z22A345@l-daemon> Hi Jim: You can complete the binding within a compiled application by given an option through an if-then-else type scenario. There can be an option for say Word9 or 10 or 11. When a reference check is made, a global flag is set or the checking can be done just before selection and the appropriate version, when required, is called. The object is initially dimmed but late-binding is performed within app or all versions are pre-bound. This design may be considered half way between early and late binding but manages the best of both worlds. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, February 19, 2007 5:41 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references Jim, <> How so? If your dimming something as an object, you using late binding. I don't know of anyway of changing from late to early without re-compiling the program. And if you use late binding, your carrying the performance hit all the time. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Friday, February 16, 2007 2:36 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references Hi Jim: The main reason for using late-binding is that an application developer does not know what version of Word or Excel is on the clients' computer until the application is run. By checking the local references a program can then adapt to its' current surroundings; but this requires a late-binding design. Just a comment Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Friday, February 16, 2007 10:54 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references <> Pretty much yes. As I said to John, it depends on the mix of operations that you are performing. But in all cases it is faster without a doubt. It's just a matter of how much. From past timings that I did, I found as a general rule of thumb that it was a 10% - 15% overall difference in speed. <> I did this years ago and have always used early binding as a result whenever possible. If I use late binding, I put it in the spec and note that it is a performance drain. So I'll use late if I have to, but I don't like it Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Friday, February 16, 2007 10:21 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing references Is this verifiable, Jim? I haven't ever used late-binding, which I admit has caused various installation issues, but I am curious. Is this a thumbnail calculation or can you supply concrete arithmetical evidence? A. ----- Original Message ---- From: Jim Dettman To: Access Developers discussion and problem solving Sent: Friday, February 16, 2007 9:49:44 AM Subject: Re: [AccessD] Missing references Bryan, One thing you didn't mention is the performance hit; late binding costs you 10-15% for every operation perform. Jim. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed Feb 21 01:59:36 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 20 Feb 2007 23:59:36 -0800 Subject: [AccessD] Missing references In-Reply-To: <004201c75446$31dd0240$8abea8c0@XPS> Message-ID: <0JDS00G2NZFH26J0@l-daemon> Just a comment... My understanding is that when an object is just DIMmed space is set aside for an expected object. It is not until the SET is run that the object populated with the appropriate methods, properties, events etc. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, February 19, 2007 8:51 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references Jim, From what I've been told/read in the past, the set statement merely gives you a pointer to the object and its address lookup table. With late binding, VBA does not know the address of the property/method call before hand, so it must execute a GetIDsOfNames and Invoke call with each property/method it encounters at runtime. With early binding, it already knows the address, so it just needs the invoke call. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Monday, February 19, 2007 10:36 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references Jim, > It's worse then that; it's a lookup at every property or method call to the object. I don't believe so. The set statement essentially loads all that stuff into memory and is a one time affair (per execution of the set statement). I think you are thinking of the syntax dim MyObject = NEW XXX In this case the dim and the set statement have been merged into one line of code and IIRC with this syntax you are correct. However if you break it out into a separate dim and set statement: Dim MyObj as object set MyOpject = ... Then the set statement permanently loads the object information for as long as the object stays in scope. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, February 19, 2007 10:18 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references John, <> It's worse then that; it's a lookup at every property or method call to the object. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Monday, February 19, 2007 10:06 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references As I attempted to explain in my earlier discourse on binding, using an "as object" syntax is late binding. The IMPACT of late binding is not as simple as "the code is loaded" but rather is determined by a myriad of things, but you can essentially boil it down to "how often is the set statement encountered". Early binding performs the LOOKUP of all the data about the object at COMPILE TIME. Thus there is NO IMPACT at run time, all the lookup of the object information has already been done. Late binding performs the LOOKUP of all the data about the object at RUN TIME, but more specifically at the instant that the SET statement is executed. Late binding will ALWAYS have some impact (assuming that the set statement is run) because the lookup must occur. I make the disclaimer "assuming the set statement is run" simply because, for example. I could have an EXCEL class or module in my project. It matters not whether it is in the FE or out in a library, what matter is, whether any code ever tries to ACTUALLY EXECUTE a SET STATEMENT to set a variable dimensioned as object. Thus one of my users may use the application for days and weeks and never experience the impact of late binding because his job never entails using that EXCEL code. Another user may experience the impact of late binding all day every day because his job requires using the code that executes the set statement, i.e. he uses Excel and I am late binding excel objects. NOW... How severe is the impact for that user? It may be very little or it may be extreme. What determines the impact to this user is HOW OFTEN the set statement is executed, how LONG does it take to perform the binding, and what % of the total code execution time is taken up by the binding. Let's take an example. The code does nothing more than load excel and open a worksheet. That would be at least two objects late bound, the Excel Application, and the worksheet. The time to bind the object that holds the pointer to Excel is completely DWARFED by the time to actually load Excel off the disk. We are talking a few milliseconds to do the binding and probably seconds to load excel. So the user would never even feel the difference between early and late binding. The same goes for loading the spreadsheet itself. Again, the binding itself takes a few milliseconds, but loading the worksheet would take a second or two. The user would never even feel the difference. Take another example however. This user has to load a spreadsheet, and the code is going to load and manipulate 10 thousand cells, placing data, formatting it, setting up formulas etc. NOW the time to reference each cell may take a few milliseconds but the time to actually manipulate the cells might well be sub-millisecond. So late binding in this case could slow down the app by orders of magnitude. It could do the whole thing in a second if early bound but take 10 seconds, 100 seconds etc if late bound. The DIFFERENCE is simply that the time to do the binding is occurring thousands or tens of thousands of times as the program manipulates the contents of the spreadsheet. Suddenly milliseconds start to add up. As you can see, this is a complex subject and one where the answer "is late binding costing me much" changes radically depending on what the code is doing. And it really has nothing to do with when it is loaded and whether it is sitting in memory. It is all about how many times the set statements execute, and how much of the total time those set statements use. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Monday, February 19, 2007 9:26 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing references You may be right, but it flies in the face of what little I know about Access. I was under the impression that code sitting in the MDB would be loaded on first call and thereafter reside in memory. Is that not true when you do something like create a Word object? Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Jim Dettman To: Access Developers discussion and problem solving Sent: Monday, February 19, 2007 8:41:07 AM Subject: Re: [AccessD] Missing references Jim, <> How so? If your dimming something as an object, you using late binding. I don't know of anyway of changing from late to early without re-compiling the program. And if you use late binding, your carrying the performance hit all the time. Jim. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Feb 21 02:38:05 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 21 Feb 2007 00:38:05 -0800 Subject: [AccessD] Code Library, Sample Database, Etc. In-Reply-To: <898630.97480.qm@web88201.mail.re2.yahoo.com> Message-ID: <0JDT00CIW17M6ZA0@l-daemon> Hear Hear... Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Tuesday, February 20, 2007 9:44 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Library, Sample Database, Etc. Well phrased, Charlotte. The moment I saw the ADO model I dumped DAO and have seldom looked back. Arthur ----- Original Message ---- From: Charlotte Foust To: Access Developers discussion and problem solving Sent: Tuesday, February 20, 2007 12:11:07 PM Subject: Re: [AccessD] Code Library, Sample Database, Etc. One HUGE difference is that the object model of ADO contains relatively few objects, unlike DAO which contains a ton of them. ADO is like a Swiss Army Knife! You can do just about everything you can with a sophisticated toolkit, but you have to be more creative in doing so. LOL Charlotte -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Feb 21 04:49:08 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 21 Feb 2007 05:49:08 -0500 Subject: [AccessD] Missing references In-Reply-To: <0JDS00G2NZFH26J0@l-daemon> Message-ID: <008101c755a5$ea23d490$657aa8c0@m6805> >My understanding is that when an object is just DIMmed space is set aside for an expected object. That is correct. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, February 21, 2007 3:00 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references Just a comment... My understanding is that when an object is just DIMmed space is set aside for an expected object. It is not until the SET is run that the object populated with the appropriate methods, properties, events etc. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, February 19, 2007 8:51 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references Jim, From what I've been told/read in the past, the set statement merely gives you a pointer to the object and its address lookup table. With late binding, VBA does not know the address of the property/method call before hand, so it must execute a GetIDsOfNames and Invoke call with each property/method it encounters at runtime. With early binding, it already knows the address, so it just needs the invoke call. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Monday, February 19, 2007 10:36 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references Jim, > It's worse then that; it's a lookup at every property or method call > to the object. I don't believe so. The set statement essentially loads all that stuff into memory and is a one time affair (per execution of the set statement). I think you are thinking of the syntax dim MyObject = NEW XXX In this case the dim and the set statement have been merged into one line of code and IIRC with this syntax you are correct. However if you break it out into a separate dim and set statement: Dim MyObj as object set MyOpject = ... Then the set statement permanently loads the object information for as long as the object stays in scope. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, February 19, 2007 10:18 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references John, <> It's worse then that; it's a lookup at every property or method call to the object. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Monday, February 19, 2007 10:06 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references As I attempted to explain in my earlier discourse on binding, using an "as object" syntax is late binding. The IMPACT of late binding is not as simple as "the code is loaded" but rather is determined by a myriad of things, but you can essentially boil it down to "how often is the set statement encountered". Early binding performs the LOOKUP of all the data about the object at COMPILE TIME. Thus there is NO IMPACT at run time, all the lookup of the object information has already been done. Late binding performs the LOOKUP of all the data about the object at RUN TIME, but more specifically at the instant that the SET statement is executed. Late binding will ALWAYS have some impact (assuming that the set statement is run) because the lookup must occur. I make the disclaimer "assuming the set statement is run" simply because, for example. I could have an EXCEL class or module in my project. It matters not whether it is in the FE or out in a library, what matter is, whether any code ever tries to ACTUALLY EXECUTE a SET STATEMENT to set a variable dimensioned as object. Thus one of my users may use the application for days and weeks and never experience the impact of late binding because his job never entails using that EXCEL code. Another user may experience the impact of late binding all day every day because his job requires using the code that executes the set statement, i.e. he uses Excel and I am late binding excel objects. NOW... How severe is the impact for that user? It may be very little or it may be extreme. What determines the impact to this user is HOW OFTEN the set statement is executed, how LONG does it take to perform the binding, and what % of the total code execution time is taken up by the binding. Let's take an example. The code does nothing more than load excel and open a worksheet. That would be at least two objects late bound, the Excel Application, and the worksheet. The time to bind the object that holds the pointer to Excel is completely DWARFED by the time to actually load Excel off the disk. We are talking a few milliseconds to do the binding and probably seconds to load excel. So the user would never even feel the difference between early and late binding. The same goes for loading the spreadsheet itself. Again, the binding itself takes a few milliseconds, but loading the worksheet would take a second or two. The user would never even feel the difference. Take another example however. This user has to load a spreadsheet, and the code is going to load and manipulate 10 thousand cells, placing data, formatting it, setting up formulas etc. NOW the time to reference each cell may take a few milliseconds but the time to actually manipulate the cells might well be sub-millisecond. So late binding in this case could slow down the app by orders of magnitude. It could do the whole thing in a second if early bound but take 10 seconds, 100 seconds etc if late bound. The DIFFERENCE is simply that the time to do the binding is occurring thousands or tens of thousands of times as the program manipulates the contents of the spreadsheet. Suddenly milliseconds start to add up. As you can see, this is a complex subject and one where the answer "is late binding costing me much" changes radically depending on what the code is doing. And it really has nothing to do with when it is loaded and whether it is sitting in memory. It is all about how many times the set statements execute, and how much of the total time those set statements use. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Monday, February 19, 2007 9:26 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing references You may be right, but it flies in the face of what little I know about Access. I was under the impression that code sitting in the MDB would be loaded on first call and thereafter reside in memory. Is that not true when you do something like create a Word object? Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Jim Dettman To: Access Developers discussion and problem solving Sent: Monday, February 19, 2007 8:41:07 AM Subject: Re: [AccessD] Missing references Jim, <> How so? If your dimming something as an object, you using late binding. I don't know of anyway of changing from late to early without re-compiling the program. And if you use late binding, your carrying the performance hit all the time. Jim. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Feb 21 06:18:10 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 21 Feb 2007 13:18:10 +0100 Subject: [AccessD] Code Library, Sample Database, Etc. Message-ID: Hi William Our experiences match your comments. Corruptions - as few as they are - have never been related to Access/JET but some outside source, mostly network issues. When you have chosen your backend SQL engine, would you mind sharing your considerations? /gustav >>> wdhindman at dejpolsystems.com 21-02-2007 00:09:44 >>> Robert ...msde's proved impractical because of scaling limitations MS built in ...so you're really only talking about SQL Express which is what, months old? ...and if your only problem with an Access be is corruption, then sorry, but with the exception of cheap NICS I've not seen a corrupted mdb since A95 ...except in client's I took over from other developers and had to rebuild ...and thus corruption is not, in my environment, sufficient cause to spend the time and money to convert to a non-JET be ...but I'll grant you that I'm getting long in the tooth and damned reluctant to learn every new db wonder cure that comes along. ...and while I'm at it, I'll also admit that I'm developing a commercial app based on a current client that will use a non-JET be because it needs to scale to at least 50 users ...what that will be depends on some testing yet to be accomplished but I'm not at all convinced that SQL Express isn't a one-off dog & pony show for MS. William Hindman From Erwin.Craps at ithelps.eu Wed Feb 21 06:22:20 2007 From: Erwin.Craps at ithelps.eu (Erwin Craps - IT Helps) Date: Wed, 21 Feb 2007 13:22:20 +0100 Subject: [AccessD] Automating email References: <551548.20862.qm@web88201.mail.re2.yahoo.com> Message-ID: <430E80531228BA4497C5EB1A7BA786B00242A0@stekelbes.ithelps.local> Well, Indeed I am :-( -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Wednesday, February 21, 2007 5:57 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Automating email I think you are wrong. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Erwin Craps - IT Helps To: Access Developers discussion and problem solving Sent: Tuesday, February 20, 2007 6:54:22 PM Subject: Re: [AccessD] Automating email Euh, Maybe I'm wrong with this but isn't CDO only available on a server running Exchange Server? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Wed Feb 21 06:37:42 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 21 Feb 2007 13:37:42 +0100 Subject: [AccessD] Code Library, Sample Database, Etc. Message-ID: Hi William Again your are so right. Both Windows Server and Novell NetWare environments can be locked down to extremely restricted access - in NetWare you can have access to a file without being able to browse for it, meaning that you need to know the exact filename to retrieve it, and if you succeed (try to guess a GUID filename?) it will be logged. Missing security is not caused by lack of options but lack of a true need. And if the need actually exists while security has not been implemented, the reason is sloppiness or lack of skills. Further, very restricted access creates a heavy burden on the users and reduces their options, thus you will not apply it unless needed. /gustav >>> wdhindman at dejpolsystems.com 21-02-2007 00:25:14 >>> ...I'm left dazed by your disparagement of XP security! :) ...pray tell why in a 12 user office where no personal information is available in the app, the xp user logon should not be sufficient to determine access rights to forms needing restricted access based upon user roles? William Hindman ...apparently a paranoid programmer ...who knew? :) ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Tuesday, February 20, 2007 6:09 PM Subject: Re: [AccessD] Code Library, Sample Database, Etc. > The primary role of user security IMO has been to allow you to limit > ordinary users to working with the interface. It has never been robust > enough to keep out knowledgeable tamperers. However, I do NOT want Joe > User going in and mucking about with the interface or code I built just > because he now has full permissions to do so. I have never been wiling > to roll my own security system for Access because I object to > reinventing the wheel, even if the wheel is a bit crooked and flat on > one side. XP security in small business environments?? You MUST be > joking! I've never seen a small business environment with any security > that hadn't been added on by a paranoid programmer or systems guy! ;o> > > Charlotte > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William > Hindman > Sent: Tuesday, February 20, 2007 1:54 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Code Library, Sample Database, Etc. > > ...again Charlotte, that is heavily dependent upon the environment in > which you work ...Access based user security has been a farce since '95 > ...you cannot build an Access mdb to which I cannot gain access with > readily available tools, both free and inexpensive ...so you build your > own, a number of which are discussed in our archives, or you depend on > XP security in small business environments ...so the decision by the > Access development team to remove it from A'07 really has no bearing on > its continued use in those environments. > > William Hindman From Gustav at cactus.dk Wed Feb 21 06:51:29 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 21 Feb 2007 13:51:29 +0100 Subject: [AccessD] Code Library, Sample Database, Etc. Message-ID: Hi Marty DB2 Express is not scaled down regarding the maximum database size. /gustav >>> martyconnelly at shaw.ca 21-02-2007 00:34:41 >>> Oracle and DB2 offer free similar scaled down products. William Hindman wrote: >Robert > >...msde's proved impractical because of scaling limitations MS built in >...so you're really only talking about SQL Express which is what, months >old? > >...and if your only problem with an Access be is corruption, then sorry, but >with the exception of cheap NICS I've not seen a corrupted mdb since A95 >...except in client's I took over from other developers and had to rebuild >...and thus corruption is not, in my environment, sufficient cause to spend >the time and money to convert to a non-JET be ...but I'll grant you that I'm >getting long in the tooth and damned reluctant to learn every new db wonder >cure that comes along. > >...and while I'm at it, I'll also admit that I'm developing a commercial app >based on a current client that will use a non-JET be because it needs to >scale to at least 50 users ...what that will be depends on some testing yet >to be accomplished but I'm not at all convinced that SQL Express isn't a >one-off dog & pony show for MS. > >William Hindman From wdhindman at dejpolsystems.com Wed Feb 21 08:13:00 2007 From: wdhindman at dejpolsystems.com (William Hindman) Date: Wed, 21 Feb 2007 09:13:00 -0500 Subject: [AccessD] Code Library, Sample Database, Etc. References: Message-ID: <000e01c755c2$655eb370$9258eb44@50NM721> ...sure thing gustav William Hindman ----- Original Message ----- From: "Gustav Brock" To: Sent: Wednesday, February 21, 2007 7:18 AM Subject: Re: [AccessD] Code Library, Sample Database, Etc. > Hi William > > Our experiences match your comments. > Corruptions - as few as they are - have never been related to Access/JET > but some outside source, mostly network issues. > > When you have chosen your backend SQL engine, would you mind sharing your > considerations? > > /gustav > >>>> wdhindman at dejpolsystems.com 21-02-2007 00:09:44 >>> > Robert > > ...msde's proved impractical because of scaling limitations MS built in > ...so you're really only talking about SQL Express which is what, months > old? > > ...and if your only problem with an Access be is corruption, then sorry, > but > with the exception of cheap NICS I've not seen a corrupted mdb since A95 > ...except in client's I took over from other developers and had to rebuild > ...and thus corruption is not, in my environment, sufficient cause to > spend > the time and money to convert to a non-JET be ...but I'll grant you that > I'm > getting long in the tooth and damned reluctant to learn every new db > wonder > cure that comes along. > > ...and while I'm at it, I'll also admit that I'm developing a commercial > app > based on a current client that will use a non-JET be because it needs to > scale to at least 50 users ...what that will be depends on some testing > yet > to be accomplished but I'm not at all convinced that SQL Express isn't a > one-off dog & pony show for MS. > > William Hindman > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From ssharkins at setel.com Wed Feb 21 08:24:36 2007 From: ssharkins at setel.com (Susan Harkins) Date: Wed, 21 Feb 2007 09:24:36 -0500 Subject: [AccessD] Reset OrderBy In-Reply-To: <45DC6968.18071.5965C9B@stuart.lexacorp.com.pg> Message-ID: <005101c755c4$05078b80$95b82ad1@SUSANONE> Thanks Stuart -- I never could get the link to work. I even copied it to Word and reset it, but I get an error at yahoo that there is no comp group -- but no matter, you included the solution -- I wish I'd thought to try it myself. Thank you! Susan H. Putting Me.OrderBy = "" in Form_Load does work, so do it there to insclear any old info instead. From jwcolby at colbyconsulting.com Wed Feb 21 09:08:42 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 21 Feb 2007 10:08:42 -0500 Subject: [AccessD] Code Library, Sample Database, Etc. In-Reply-To: <000e01c755c2$655eb370$9258eb44@50NM721> Message-ID: <008f01c755ca$2d7d2740$657aa8c0@m6805> I'd like to check in with an observation on MDB vs SQL Server data store. If you work remotely, and ever need to upload the data to work at your home / office, MDBs are much friendlier for that purpose. Zip / upload and go. One of my clients has a couple of tables out in SQL Server, the database for which belongs to a payroll processing company. Getting at that data here in my office is a PITA. I am actually exporting it to an mdb so that I can upload it, then relinking to point to the mdb. I am certainly not saying that this is a reason not to use sql server if it is required, but where an mdb will perform, this is just one reason to leave it in an mdb. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Wednesday, February 21, 2007 9:13 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Library, Sample Database, Etc. ...sure thing gustav William Hindman ----- Original Message ----- From: "Gustav Brock" To: Sent: Wednesday, February 21, 2007 7:18 AM Subject: Re: [AccessD] Code Library, Sample Database, Etc. > Hi William > > Our experiences match your comments. > Corruptions - as few as they are - have never been related to Access/JET > but some outside source, mostly network issues. > > When you have chosen your backend SQL engine, would you mind sharing your > considerations? > > /gustav > >>>> wdhindman at dejpolsystems.com 21-02-2007 00:09:44 >>> > Robert > > ...msde's proved impractical because of scaling limitations MS built in > ...so you're really only talking about SQL Express which is what, months > old? > > ...and if your only problem with an Access be is corruption, then sorry, > but > with the exception of cheap NICS I've not seen a corrupted mdb since A95 > ...except in client's I took over from other developers and had to rebuild > ...and thus corruption is not, in my environment, sufficient cause to > spend > the time and money to convert to a non-JET be ...but I'll grant you that > I'm > getting long in the tooth and damned reluctant to learn every new db > wonder > cure that comes along. > > ...and while I'm at it, I'll also admit that I'm developing a commercial > app > based on a current client that will use a non-JET be because it needs to > scale to at least 50 users ...what that will be depends on some testing > yet > to be accomplished but I'm not at all convinced that SQL Express isn't a > one-off dog & pony show for MS. > > William Hindman > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Feb 21 10:33:23 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 21 Feb 2007 08:33:23 -0800 Subject: [AccessD] MS TechNet sub In-Reply-To: <039301c75576$d13f31b0$0201a8c0@HOLTS> References: <039301c75576$d13f31b0$0201a8c0@HOLTS> Message-ID: The line between TechNet and MSDN used to be clear but it has gotten fuzzier over the years. Of the two, I always preferred TechNet because it contained a KB, articles and the latest patches and service packs, but not a ton of software I didn't want to install anyhow. The price tag for MSDN was always too high for me, and I read the the EULA and decided I'd rather pay full price for my software and not agree to remove it from machine if my subscription expired. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Pete Phillipps Sent: Tuesday, February 20, 2007 9:12 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] MS TechNet sub Hello Everyone, I'm a UK-based MCP, and I'm looking at taking out a MS TechNet Plus Direct subscription. Before I spend my money I was just wanting to see what others here who have a TechNet sub think about it. Pete "Many [wargame] battles have been fought and won by soldiers nourished on beer" - Frederick the Great, 1777 Download VIEW FROM THE TRENCHES (Britain's Premier ASL Journal) free from http://www.vftt.co.uk Get the latest news about HEROES(ASL in Blackpool) at http://www.vftt.co.uk/heroesdetails.asp Get the latest news about INTENSIVE FIRE (Britain's biggest ASL tournament) at http://www.vftt.co.uk/ifdetails.asp Get the latest UK ASL Tournament news at http://www.asltourneys.co.uk Support the best at http://www.manutd.com/ -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/694 - Release Date: 20/02/2007 13:44 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Wed Feb 21 10:57:23 2007 From: john at winhaven.net (John Bartow) Date: Wed, 21 Feb 2007 10:57:23 -0600 Subject: [AccessD] MS TechNet sub In-Reply-To: References: <039301c75576$d13f31b0$0201a8c0@HOLTS> Message-ID: <05a101c755d9$5bef6bb0$6502a8c0@ScuzzPaq> Charlotte, AFAIK MSDN now includes everything that Tech Net does. As to requiring you to remove the software after your subscriptions ends -I have recently read in the MSDN FAQ that this is not (or no longer) true. The cost is still a huge issue though. My last subscription I did through a 3rd party for 2 years because it saved a small amount in cost but also saved the renewal hassle. It is certainly a much better deal for larger companies as you can utilize the software and licensing to a much greater degree. Plus you can designate a "MSDN Librarian" which you certainly need with the CD deliveries and may still be a good idea with the DVD option. The quantity of delivered disks is enormous. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust The line between TechNet and MSDN used to be clear but it has gotten fuzzier over the years. Of the two, I always preferred TechNet because it contained a KB, articles and the latest patches and service packs, but not a ton of software I didn't want to install anyhow. The price tag for MSDN was always too high for me, and I read the the EULA and decided I'd rather pay full price for my software and not agree to remove it from machine if my subscription expired. From cfoust at infostatsystems.com Wed Feb 21 11:04:06 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 21 Feb 2007 09:04:06 -0800 Subject: [AccessD] MS TechNet sub In-Reply-To: <05a101c755d9$5bef6bb0$6502a8c0@ScuzzPaq> References: <039301c75576$d13f31b0$0201a8c0@HOLTS> <05a101c755d9$5bef6bb0$6502a8c0@ScuzzPaq> Message-ID: Yes, but I don't want a ton of software I don't use anyhow, just the patches and service packs, etc. I don't need all the extant operating systems and all the MS applications or any of the other fat in MSDN. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Wednesday, February 21, 2007 8:57 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] MS TechNet sub Charlotte, AFAIK MSDN now includes everything that Tech Net does. As to requiring you to remove the software after your subscriptions ends -I have recently read in the MSDN FAQ that this is not (or no longer) true. The cost is still a huge issue though. My last subscription I did through a 3rd party for 2 years because it saved a small amount in cost but also saved the renewal hassle. It is certainly a much better deal for larger companies as you can utilize the software and licensing to a much greater degree. Plus you can designate a "MSDN Librarian" which you certainly need with the CD deliveries and may still be a good idea with the DVD option. The quantity of delivered disks is enormous. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust The line between TechNet and MSDN used to be clear but it has gotten fuzzier over the years. Of the two, I always preferred TechNet because it contained a KB, articles and the latest patches and service packs, but not a ton of software I didn't want to install anyhow. The price tag for MSDN was always too high for me, and I read the the EULA and decided I'd rather pay full price for my software and not agree to remove it from machine if my subscription expired. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at airtelbroadband.in Wed Feb 21 11:23:21 2007 From: adtp at airtelbroadband.in (A.D.TEJPAL) Date: Wed, 21 Feb 2007 22:53:21 +0530 Subject: [AccessD] Reset OrderBy References: <004d01c7555c$a1e04450$3432fad1@SUSANONE> Message-ID: <005401c755dd$244a4910$ed1b65cb@pcadt> Unlike FilterOn property, OrderByOn property followed by save action tends to get carried over to next opening of the form. Values assigned to Form's Filter & OrderBy properties tend to get carried over to next opening of form. Once stuck, these strings can not be replaced by zero length strings by mere assignment statements (See detailed note below). As such, form's close event is not always completely effective for ensuring that the form when opened next, does so with a clean slate. Instead, a single line of code in form's Load event, as given below, should suffice: Private Sub Form_Load() Me.OrderByOn = False End Sub Certain points relevant to form's Filter / Sort action are covered in the note placed below. Best wishes, A.D.Tejpal --------------- Form's Filter & Sort Order At Run-Time ============================== 1 - Factors to be considered for ensuring that the form opens with a clean slate (free of any filter or sort order). 1.1 - Once the Filter and OrderBy properties of a form have been set to some significant strings at run time, subsequent setting to zero length strings (Me.Filter = "" and Me.OrderBy = "") in the close event is not found effective in preventing a carry over to the next opening of form. (Though debug.Print statement placed within the close event, shows zero length strings for these two properties, their last significant values used prior to firing of close event are found to stick on and resurface when the form is opened next time). 1.2 - On a clean form (free of filter & sort), any values assigned at runtime to Filter and OrderBy properties, can be cleared by subsequent assignment of zero length strings provided such assignment is carried within same session of runtime and before reaching the Close event stage. In absence of any such action, the values assigned to Filter and OrderBy properties get carried over to the next opening of form. 1.3 - Assignment of zero length strings to Filter and OrderBy properties results in forcing the FilterOn and OrderByOn properties to False for the current session of runtime, till further interference. If such zero length assignment is followed by save statement, OrderByOn property also becomes False for next opening of form (FilterOn property is always false for fresh opening). 1.4 - If a form opens with carry-over values of Filter & OrderBy properties from the previous session, assignment of zero length strings to these properties, even if done before reaching the Close event, is effective only for current run session and does not get rid of old carry over values for next opening of the form. If however, fresh non-zero length strings are assigned (before reaching the Close event), these replace the earlier ones and become new carry-over values. 1.5 - FilterOn and OrderByOn properties are not available in design view and their default status is False. For any new opening of a form (whether free of Filter/OrderBy settings or not), the status of FilterOn is invariably False. On the other hand, if OrderByOn property had been set to True in previous run of the form and was not re-set to False before reaching the Close event (setting it to False in Close event alone, does not suffice), it is found to retain its True status in next opening of form. 1.6 - Conclusion - For ensuring clean status of form (free of filter & sort) when it opens, the following statement in its Load event should suffice. Private Sub Form_Load() Me.OrderByOn = False End Sub As an abundant precaution (and if the developer does not feel comfortable in their absence), the following additional statements (though redundant) can also be included in the Load event. Me.OrderBy = "" Me.Filter = "" Me.FilterOn = False 2 - Some general aspects relevant to filtering on forms at run time are summarized below. 2.1- Any filter inherent within the record-source continues to remain in force. Whatever is done via form's filter property, is merely supplementary to that (as if joined by " And " operator). 2.2 - Unlike a report, form's FilterOn property is not available for setting in design view. It has to be explicitly set to True at run time (on opening the form, default status of this property is False, even though Allow filters property is set to Yes). 2.3 - Order of placement of Me.FilterOn statement with respect to Me.Filter statement does not matter. 2.4 - Whenever the statement Me.Filter = "" is used, FilterOn property of the form gets automatically set to False. This implies that if at any stage in the code, Me.Filter is set to zero length string, subsequent assignment of a fresh string to the filter property won't be effective unless there is also a fresh statement Me.FilterOn = True (although Me.FilterOn was never set to False explicitly). 2.5 - Once a criteria gets assigned to form's filter property, it tends to stick. Subsequent assignment of zero length string to this property is not able to get rid of it (even though it can be made in-effective by setting the FilterOn property to false). If it is expressly desired to clear the filter in force, criteria string that always evaluates to true (e.g. "2 = 2") has to be assigned to form's filter property. 2.6 - If it is desired that form's filter, set during runtime, should carry over to next opening of the form (after it has been closed after the current session), the following statement should be included in form's load event. Me.FilterOn = True 2.7 - On the other hand, if it is to be doubly ensured that form's filter set during runtime, does not cause any interference on next opening of the form (after it has been closed after the current session), the following statement can be included in form's load event. Me.FilterOn = False (Strictly speaking, this statement is redundant, as on opening of a form, the default status of FilterOn property is False) 2.8 - After applying the filter, there is no need to use Me.Requery explicitly. Application of any fresh filter condition, forces requery as well. Note - If DoCmd.OpenForm statement, used for opening the form, contains a criteria string in its where argument, the form opens with its FilterOn property set to True and its Filter property set to the contents of where argument (in Docmd statement). Effect of this filter is supplementary to any filter inherent within the record source, as mentioned at (2.1) above. ===================================== ----- Original Message ----- From: Susan Harkins I'm using a simple procedure to set a form's OrderBy property. When I close the form, I want to delete any setting, so that the property isn't saved with the form. How can I do that? I tried Private Sub Form_Close() 'Reset Order By property Me.OrderBy = "" End Sub But it doesn't work. Checked Help but didn't find anything helpful. I don't really want to set the sort order to "" -- I just want to wipe it clean. My guess is the property doesn't recognize "", although it doesn't error. Susan H. From john at winhaven.net Wed Feb 21 11:28:33 2007 From: john at winhaven.net (John Bartow) Date: Wed, 21 Feb 2007 11:28:33 -0600 Subject: [AccessD] MS TechNet sub In-Reply-To: References: <039301c75576$d13f31b0$0201a8c0@HOLTS><05a101c755d9$5bef6bb0$6502a8c0@ScuzzPaq> Message-ID: <05bc01c755dd$b7318e00$6502a8c0@ScuzzPaq> For me, the cost is about equal to the software I don't have to buy OTS. I could do without a lot of it too but they always bundle the different levels of MSDN in a way that I have to get one of the more expensive levels - which includes a lot of things I don't need. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Yes, but I don't want a ton of software I don't use anyhow, just the patches and service packs, etc. I don't need all the extant operating systems and all the MS applications or any of the other fat in MSDN. From artful at rogers.com Wed Feb 21 11:30:46 2007 From: artful at rogers.com (artful at rogers.com) Date: Wed, 21 Feb 2007 09:30:46 -0800 (PST) Subject: [AccessD] MS TechNet sub Message-ID: <330041.72661.qm@web88213.mail.re2.yahoo.com> Can I purloin you a copy of Korean w98? LOL. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Charlotte Foust To: Access Developers discussion and problem solving Sent: Wednesday, February 21, 2007 12:04:06 PM Subject: Re: [AccessD] MS TechNet sub Yes, but I don't want a ton of software I don't use anyhow, just the patches and service packs, etc. I don't need all the extant operating systems and all the MS applications or any of the other fat in MSDN. Charlotte From ssharkins at setel.com Wed Feb 21 11:47:29 2007 From: ssharkins at setel.com (Susan Harkins) Date: Wed, 21 Feb 2007 12:47:29 -0500 Subject: [AccessD] Reset OrderBy In-Reply-To: <005401c755dd$244a4910$ed1b65cb@pcadt> Message-ID: <000201c755e0$5c29b160$56bc2ad1@SUSANONE> Private Sub Form_Load() 'Reset Order By property Me.OrderBy = "" End Sub Worked fine -- I'm using 2003. Susan H. Unlike FilterOn property, OrderByOn property followed by save action tends to get carried over to next opening of the form. Values assigned to Form's Filter & OrderBy properties tend to get carried over to next opening of form. Once stuck, these strings can not be replaced by zero length strings by mere assignment statements (See detailed note below). As such, form's close event is not always completely effective for ensuring that the form when opened next, does so with a clean slate. Instead, a single line of code in form's Load event, as given below, should suffice: Private Sub Form_Load() Me.OrderByOn = False End Sub Certain points relevant to form's Filter / Sort action are covered in the note placed below. Best wishes, A.D.Tejpal --------------- Form's Filter & Sort Order At Run-Time ============================== 1 - Factors to be considered for ensuring that the form opens with a clean slate (free of any filter or sort order). 1.1 - Once the Filter and OrderBy properties of a form have been set to some significant strings at run time, subsequent setting to zero length strings (Me.Filter = "" and Me.OrderBy = "") in the close event is not found effective in preventing a carry over to the next opening of form. (Though debug.Print statement placed within the close event, shows zero length strings for these two properties, their last significant values used prior to firing of close event are found to stick on and resurface when the form is opened next time). 1.2 - On a clean form (free of filter & sort), any values assigned at runtime to Filter and OrderBy properties, can be cleared by subsequent assignment of zero length strings provided such assignment is carried within same session of runtime and before reaching the Close event stage. In absence of any such action, the values assigned to Filter and OrderBy properties get carried over to the next opening of form. 1.3 - Assignment of zero length strings to Filter and OrderBy properties results in forcing the FilterOn and OrderByOn properties to False for the current session of runtime, till further interference. If such zero length assignment is followed by save statement, OrderByOn property also becomes False for next opening of form (FilterOn property is always false for fresh opening). 1.4 - If a form opens with carry-over values of Filter & OrderBy properties from the previous session, assignment of zero length strings to these properties, even if done before reaching the Close event, is effective only for current run session and does not get rid of old carry over values for next opening of the form. If however, fresh non-zero length strings are assigned (before reaching the Close event), these replace the earlier ones and become new carry-over values. 1.5 - FilterOn and OrderByOn properties are not available in design view and their default status is False. For any new opening of a form (whether free of Filter/OrderBy settings or not), the status of FilterOn is invariably False. On the other hand, if OrderByOn property had been set to True in previous run of the form and was not re-set to False before reaching the Close event (setting it to False in Close event alone, does not suffice), it is found to retain its True status in next opening of form. 1.6 - Conclusion - For ensuring clean status of form (free of filter & sort) when it opens, the following statement in its Load event should suffice. Private Sub Form_Load() Me.OrderByOn = False End Sub As an abundant precaution (and if the developer does not feel comfortable in their absence), the following additional statements (though redundant) can also be included in the Load event. Me.OrderBy = "" Me.Filter = "" Me.FilterOn = False 2 - Some general aspects relevant to filtering on forms at run time are summarized below. 2.1- Any filter inherent within the record-source continues to remain in force. Whatever is done via form's filter property, is merely supplementary to that (as if joined by " And " operator). 2.2 - Unlike a report, form's FilterOn property is not available for setting in design view. It has to be explicitly set to True at run time (on opening the form, default status of this property is False, even though Allow filters property is set to Yes). 2.3 - Order of placement of Me.FilterOn statement with respect to Me.Filter statement does not matter. 2.4 - Whenever the statement Me.Filter = "" is used, FilterOn property of the form gets automatically set to False. This implies that if at any stage in the code, Me.Filter is set to zero length string, subsequent assignment of a fresh string to the filter property won't be effective unless there is also a fresh statement Me.FilterOn = True (although Me.FilterOn was never set to False explicitly). 2.5 - Once a criteria gets assigned to form's filter property, it tends to stick. Subsequent assignment of zero length string to this property is not able to get rid of it (even though it can be made in-effective by setting the FilterOn property to false). If it is expressly desired to clear the filter in force, criteria string that always evaluates to true (e.g. "2 = 2") has to be assigned to form's filter property. 2.6 - If it is desired that form's filter, set during runtime, should carry over to next opening of the form (after it has been closed after the current session), the following statement should be included in form's load event. Me.FilterOn = True 2.7 - On the other hand, if it is to be doubly ensured that form's filter set during runtime, does not cause any interference on next opening of the form (after it has been closed after the current session), the following statement can be included in form's load event. Me.FilterOn = False (Strictly speaking, this statement is redundant, as on opening of a form, the default status of FilterOn property is False) 2.8 - After applying the filter, there is no need to use Me.Requery explicitly. Application of any fresh filter condition, forces requery as well. Note - If DoCmd.OpenForm statement, used for opening the form, contains a criteria string in its where argument, the form opens with its FilterOn property set to True and its Filter property set to the contents of where argument (in Docmd statement). Effect of this filter is supplementary to any filter inherent within the record source, as mentioned at (2.1) above. ===================================== ----- Original Message ----- From: Susan Harkins I'm using a simple procedure to set a form's OrderBy property. When I close the form, I want to delete any setting, so that the property isn't saved with the form. How can I do that? I tried Private Sub Form_Close() 'Reset Order By property Me.OrderBy = "" End Sub But it doesn't work. Checked Help but didn't find anything helpful. I don't really want to set the sort order to "" -- I just want to wipe it clean. My guess is the property doesn't recognize "", although it doesn't error. Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/694 - Release Date: 2/20/2007 1:44 PM From jwcolby at colbyconsulting.com Wed Feb 21 11:58:47 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 21 Feb 2007 12:58:47 -0500 Subject: [AccessD] Feeding parameters to SQL Server Message-ID: <00bd01c755e1$f02493c0$657aa8c0@m6805> Is it possible to feed a parameter to a SQL Server view from Access? I am linking (ODBC) to a pair of tables in SQL Server. The views return a set of data which will only grow larger over time. I would like to somehow tell sql server where... and feed in the value - where checkdate >=X and <=Y for example. These views are then used in queries inside of Access, linked to my tables and stuff. John W. Colby Colby Consulting www.ColbyConsulting.com From ebarro at verizon.net Wed Feb 21 12:05:14 2007 From: ebarro at verizon.net (Eric Barro) Date: Wed, 21 Feb 2007 10:05:14 -0800 Subject: [AccessD] Feeding parameters to SQL Server In-Reply-To: <00bd01c755e1$f02493c0$657aa8c0@m6805> Message-ID: <0JDT003PHRL2JPK7@vms046.mailsrvcs.net> John, Convert the SQL server view to a SQL server function that returns a table. Functions take parameters and return data sets based on the parameters that were passed to it. The general syntax for such a function would be... CREATE FUNCTION dbo.MyFunction ( @Parameter1 SQLDataType. @Parameter2 SQLDataType ) RETURNS TABLE AS RETURN ( SELECT fieldName1, fieldName2 FROM MyTable a (nolock) WHERE a.whereField1 BETWEEN @Parameter1 AND @Parameter2 ) Eric -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, February 21, 2007 9:59 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Feeding parameters to SQL Server Is it possible to feed a parameter to a SQL Server view from Access? I am linking (ODBC) to a pair of tables in SQL Server. The views return a set of data which will only grow larger over time. I would like to somehow tell sql server where... and feed in the value - where checkdate >=X and <=Y for example. These views are then used in queries inside of Access, linked to my tables and stuff. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/694 - Release Date: 2/20/2007 1:44 PM From jwcolby at colbyconsulting.com Wed Feb 21 12:36:31 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 21 Feb 2007 13:36:31 -0500 Subject: [AccessD] Feeding parameters to SQL Server In-Reply-To: <0JDT003PHRL2JPK7@vms046.mailsrvcs.net> Message-ID: <00c201c755e7$359ebbb0$657aa8c0@m6805> Eric, What is responsible for feeding in the parameters? Can the query that uses the linked view do that? John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Wednesday, February 21, 2007 1:05 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server John, Convert the SQL server view to a SQL server function that returns a table. Functions take parameters and return data sets based on the parameters that were passed to it. The general syntax for such a function would be... CREATE FUNCTION dbo.MyFunction ( @Parameter1 SQLDataType. @Parameter2 SQLDataType ) RETURNS TABLE AS RETURN ( SELECT fieldName1, fieldName2 FROM MyTable a (nolock) WHERE a.whereField1 BETWEEN @Parameter1 AND @Parameter2 ) Eric -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, February 21, 2007 9:59 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Feeding parameters to SQL Server Is it possible to feed a parameter to a SQL Server view from Access? I am linking (ODBC) to a pair of tables in SQL Server. The views return a set of data which will only grow larger over time. I would like to somehow tell sql server where... and feed in the value - where checkdate >=X and <=Y for example. These views are then used in queries inside of Access, linked to my tables and stuff. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/694 - Release Date: 2/20/2007 1:44 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Wed Feb 21 12:50:27 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 21 Feb 2007 18:50:27 +0000 Subject: [AccessD] Feeding parameters to SQL Server In-Reply-To: <00c201c755e7$359ebbb0$657aa8c0@m6805> Message-ID: Maybe I'm not understanding the question...but you have a linked table in access...that is really a view in SQL...would a passthru to this view work to add your criteria?? ??? Mark A. Matte >From: "JWColby" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] Feeding parameters to SQL Server >Date: Wed, 21 Feb 2007 13:36:31 -0500 > >Eric, > >What is responsible for feeding in the parameters? Can the query that uses >the linked view do that? > > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro >Sent: Wednesday, February 21, 2007 1:05 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Feeding parameters to SQL Server > >John, > >Convert the SQL server view to a SQL server function that returns a table. >Functions take parameters and return data sets based on the parameters that >were passed to it. > > >The general syntax for such a function would be... > > >CREATE FUNCTION dbo.MyFunction >( > @Parameter1 SQLDataType. > @Parameter2 SQLDataType >) >RETURNS TABLE >AS >RETURN >( >SELECT > fieldName1, > fieldName2 >FROM MyTable a (nolock) >WHERE a.whereField1 BETWEEN @Parameter1 AND @Parameter2 > ) > > > >Eric > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby >Sent: Wednesday, February 21, 2007 9:59 AM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] Feeding parameters to SQL Server > >Is it possible to feed a parameter to a SQL Server view from Access? I am >linking (ODBC) to a pair of tables in SQL Server. The views return a set >of >data which will only grow larger over time. I would like to somehow tell >sql server where... and feed in the value - where checkdate >=X and <=Y for >example. These views are then used in queries inside of Access, linked to >my tables and stuff. > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >No virus found in this incoming message. >Checked by AVG Free Edition. >Version: 7.5.441 / Virus Database: 268.18.3/694 - Release Date: 2/20/2007 >1:44 PM > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Want a degree but can't afford to quit? Top school degrees online - in as fast as 1 year http://forms.nextag.com/goto.jsp?url=/serv/main/buyer/education.jsp?doSearch=n&tm=y&search=education_text_links_88_h288c&s=4079&p=5116 From ebarro at verizon.net Wed Feb 21 12:53:06 2007 From: ebarro at verizon.net (Eric Barro) Date: Wed, 21 Feb 2007 10:53:06 -0800 Subject: [AccessD] Feeding parameters to SQL Server In-Reply-To: <00c201c755e7$359ebbb0$657aa8c0@m6805> Message-ID: <0JDT007O8TT1H334@vms046.mailsrvcs.net> Sorry...the general syntax for using the function is SELECT * FROM dbo.MyFunction(param1, param2) This will return the correct dataset You can use it as a regular "table" in a query this way... SELECT field1, field2 FROM myAccessTable a INNER JOIN ( SELECT * FROM dbo.MyFunction(param1, param2) ) b ON a.accessField = b.functionField -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, February 21, 2007 10:37 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Eric, What is responsible for feeding in the parameters? Can the query that uses the linked view do that? John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Wednesday, February 21, 2007 1:05 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server John, Convert the SQL server view to a SQL server function that returns a table. Functions take parameters and return data sets based on the parameters that were passed to it. The general syntax for such a function would be... CREATE FUNCTION dbo.MyFunction ( @Parameter1 SQLDataType. @Parameter2 SQLDataType ) RETURNS TABLE AS RETURN ( SELECT fieldName1, fieldName2 FROM MyTable a (nolock) WHERE a.whereField1 BETWEEN @Parameter1 AND @Parameter2 ) Eric -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, February 21, 2007 9:59 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Feeding parameters to SQL Server Is it possible to feed a parameter to a SQL Server view from Access? I am linking (ODBC) to a pair of tables in SQL Server. The views return a set of data which will only grow larger over time. I would like to somehow tell sql server where... and feed in the value - where checkdate >=X and <=Y for example. These views are then used in queries inside of Access, linked to my tables and stuff. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/694 - Release Date: 2/20/2007 1:44 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/694 - Release Date: 2/20/2007 1:44 PM From jwcolby at colbyconsulting.com Wed Feb 21 13:11:05 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 21 Feb 2007 14:11:05 -0500 Subject: [AccessD] Feeding parameters to SQL Server In-Reply-To: Message-ID: <00d301c755ec$097c1c80$657aa8c0@m6805> Well... I dunno. I have a view in SQL Server returning 8 fields, 6K records (currently), completely unfiltered, all records in the table. I pull that linked table into a query in order to do some preliminary filtering - check date between a pair of dates and check number not null. I want the view in sql server to do the "check number not null" for me, and I know how to do that. I want the SQL Server to take a pair of parameters - "From Date" and "To Date" and return only those records. If I could do this, then I could get rid of my "base query" in access which applies these filters, reduce traffic across the wire etc. However even if I do this, the view is not being requested by a form in XP (for example) where some magical thing happens in Access to pass the parameters off to SQL Server. The linked view will be used immediately in another query which joins this view to other tables (on one field - BEID - in the view) in order to build up a set of data for a report. So the "parent" query that is using the view will have to "feed" the parameters to the linked view. Being a nubee to SQL Server I do not even know if what I am attempting to do is possible. I cannot wrap my mind around how a query that is using a view can know that the view needs parameters, and if it did, what to feed it. If it is possible, I have never done so obviously, so I don't even have the basics of what to set in Access to do the parameter passing. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Wednesday, February 21, 2007 1:50 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Feeding parameters to SQL Server Maybe I'm not understanding the question...but you have a linked table in access...that is really a view in SQL...would a passthru to this view work to add your criteria?? ??? Mark A. Matte >From: "JWColby" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] Feeding parameters to SQL Server >Date: Wed, 21 Feb 2007 13:36:31 -0500 > >Eric, > >What is responsible for feeding in the parameters? Can the query that >uses the linked view do that? > > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro >Sent: Wednesday, February 21, 2007 1:05 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Feeding parameters to SQL Server > >John, > >Convert the SQL server view to a SQL server function that returns a table. >Functions take parameters and return data sets based on the parameters >that were passed to it. > > >The general syntax for such a function would be... > > >CREATE FUNCTION dbo.MyFunction >( > @Parameter1 SQLDataType. > @Parameter2 SQLDataType >) >RETURNS TABLE >AS >RETURN >( >SELECT > fieldName1, > fieldName2 >FROM MyTable a (nolock) >WHERE a.whereField1 BETWEEN @Parameter1 AND @Parameter2 > ) > > > >Eric > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby >Sent: Wednesday, February 21, 2007 9:59 AM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] Feeding parameters to SQL Server > >Is it possible to feed a parameter to a SQL Server view from Access? I >am linking (ODBC) to a pair of tables in SQL Server. The views return >a set of data which will only grow larger over time. I would like to >somehow tell sql server where... and feed in the value - where >checkdate >=X and <=Y for example. These views are then used in >queries inside of Access, linked to my tables and stuff. > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >No virus found in this incoming message. >Checked by AVG Free Edition. >Version: 7.5.441 / Virus Database: 268.18.3/694 - Release Date: >2/20/2007 >1:44 PM > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Want a degree but can't afford to quit? Top school degrees online - in as fast as 1 year http://forms.nextag.com/goto.jsp?url=/serv/main/buyer/education.jsp?doSearch =n&tm=y&search=education_text_links_88_h288c&s=4079&p=5116 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ebarro at verizon.net Wed Feb 21 13:24:02 2007 From: ebarro at verizon.net (Eric Barro) Date: Wed, 21 Feb 2007 11:24:02 -0800 Subject: [AccessD] Feeding parameters to SQL Server In-Reply-To: <00d301c755ec$097c1c80$657aa8c0@m6805> Message-ID: <0JDT004Y3V8032H5@vms040.mailsrvcs.net> John, Yes, it can be done with the SQL user-defined function. Let SQL server do all the work (check for null, filter records between date parameters) before it sends you the records across the wire. The UDF will accomplish this very nicely for you. Let me know if you need help in moving forward with this direction. Eric -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, February 21, 2007 11:11 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Well... I dunno. I have a view in SQL Server returning 8 fields, 6K records (currently), completely unfiltered, all records in the table. I pull that linked table into a query in order to do some preliminary filtering - check date between a pair of dates and check number not null. I want the view in sql server to do the "check number not null" for me, and I know how to do that. I want the SQL Server to take a pair of parameters - "From Date" and "To Date" and return only those records. If I could do this, then I could get rid of my "base query" in access which applies these filters, reduce traffic across the wire etc. However even if I do this, the view is not being requested by a form in XP (for example) where some magical thing happens in Access to pass the parameters off to SQL Server. The linked view will be used immediately in another query which joins this view to other tables (on one field - BEID - in the view) in order to build up a set of data for a report. So the "parent" query that is using the view will have to "feed" the parameters to the linked view. Being a nubee to SQL Server I do not even know if what I am attempting to do is possible. I cannot wrap my mind around how a query that is using a view can know that the view needs parameters, and if it did, what to feed it. If it is possible, I have never done so obviously, so I don't even have the basics of what to set in Access to do the parameter passing. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Wednesday, February 21, 2007 1:50 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Feeding parameters to SQL Server Maybe I'm not understanding the question...but you have a linked table in access...that is really a view in SQL...would a passthru to this view work to add your criteria?? ??? Mark A. Matte >From: "JWColby" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] Feeding parameters to SQL Server >Date: Wed, 21 Feb 2007 13:36:31 -0500 > >Eric, > >What is responsible for feeding in the parameters? Can the query that >uses the linked view do that? > > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro >Sent: Wednesday, February 21, 2007 1:05 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Feeding parameters to SQL Server > >John, > >Convert the SQL server view to a SQL server function that returns a table. >Functions take parameters and return data sets based on the parameters >that were passed to it. > > >The general syntax for such a function would be... > > >CREATE FUNCTION dbo.MyFunction >( > @Parameter1 SQLDataType. > @Parameter2 SQLDataType >) >RETURNS TABLE >AS >RETURN >( >SELECT > fieldName1, > fieldName2 >FROM MyTable a (nolock) >WHERE a.whereField1 BETWEEN @Parameter1 AND @Parameter2 > ) > > > >Eric > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby >Sent: Wednesday, February 21, 2007 9:59 AM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] Feeding parameters to SQL Server > >Is it possible to feed a parameter to a SQL Server view from Access? I >am linking (ODBC) to a pair of tables in SQL Server. The views return >a set of data which will only grow larger over time. I would like to >somehow tell sql server where... and feed in the value - where >checkdate >=X and <=Y for example. These views are then used in >queries inside of Access, linked to my tables and stuff. > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >No virus found in this incoming message. >Checked by AVG Free Edition. >Version: 7.5.441 / Virus Database: 268.18.3/694 - Release Date: >2/20/2007 >1:44 PM > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Want a degree but can't afford to quit? Top school degrees online - in as fast as 1 year http://forms.nextag.com/goto.jsp?url=/serv/main/buyer/education.jsp?doSearch =n&tm=y&search=education_text_links_88_h288c&s=4079&p=5116 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/694 - Release Date: 2/20/2007 1:44 PM From jwcolby at colbyconsulting.com Wed Feb 21 13:30:26 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 21 Feb 2007 14:30:26 -0500 Subject: [AccessD] Feeding parameters to SQL Server In-Reply-To: <0JDT004Y3V8032H5@vms040.mailsrvcs.net> Message-ID: <00d901c755ee$bd7ea700$657aa8c0@m6805> Eric, Thanks for your offer of help. Given your example: SELECT field1, field2 FROM myAccessTable a INNER JOIN ( SELECT * FROM dbo.MyFunction(param1, param2) ) b ON a.accessField = b.functionField What causes Param1, Param2 to be sent from Access to SQL Server? Does the parent query do this? If so, what do I do in that query to tell it to expect to be asked for Param1, Param1 and what to send in response to the request? John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Wednesday, February 21, 2007 2:24 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server John, Yes, it can be done with the SQL user-defined function. Let SQL server do all the work (check for null, filter records between date parameters) before it sends you the records across the wire. The UDF will accomplish this very nicely for you. Let me know if you need help in moving forward with this direction. Eric -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, February 21, 2007 11:11 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Well... I dunno. I have a view in SQL Server returning 8 fields, 6K records (currently), completely unfiltered, all records in the table. I pull that linked table into a query in order to do some preliminary filtering - check date between a pair of dates and check number not null. I want the view in sql server to do the "check number not null" for me, and I know how to do that. I want the SQL Server to take a pair of parameters - "From Date" and "To Date" and return only those records. If I could do this, then I could get rid of my "base query" in access which applies these filters, reduce traffic across the wire etc. However even if I do this, the view is not being requested by a form in XP (for example) where some magical thing happens in Access to pass the parameters off to SQL Server. The linked view will be used immediately in another query which joins this view to other tables (on one field - BEID - in the view) in order to build up a set of data for a report. So the "parent" query that is using the view will have to "feed" the parameters to the linked view. Being a nubee to SQL Server I do not even know if what I am attempting to do is possible. I cannot wrap my mind around how a query that is using a view can know that the view needs parameters, and if it did, what to feed it. If it is possible, I have never done so obviously, so I don't even have the basics of what to set in Access to do the parameter passing. John W. Colby Colby Consulting www.ColbyConsulting.com From rusty.hammond at cpiqpc.com Wed Feb 21 13:35:44 2007 From: rusty.hammond at cpiqpc.com (rusty.hammond at cpiqpc.com) Date: Wed, 21 Feb 2007 13:35:44 -0600 Subject: [AccessD] Feeding parameters to SQL Server Message-ID: <8301C8A868251E4C8ECD3D4FFEA40F8A2584B977@cpixchng-1.cpiqpc.net> John, As long as you don't need to update the data in the view coming from SQL, you can setup a stored procedure with parameters in SQL, then use a pass-through query in your Access front end to call the stored procedure and pass it the parameters. For example, say you have a table in SQL called tblMyInfo with fields: MyInfoID, SomeData1, SomeData2 Create a new stored procedure with parameters as in the following example: CREATE PROCEDURE [ap_GetMyInfo] @GetMyInfoID integer AS SELECT MyInfoID, SomeData1, SomeData2 FROM tblMyInfo WHERE MyInfoID = @GetMyInfoID GO Then in your pass through query in Access, setup your connection string to your SQL database(in the properties of the query) and call the stored procedure in the SQL ie: ap_GetMyInfo 6 When you run the pass-through query, you get a list of records that have a MyInfoID value of 6 HTH Rusty -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Wednesday, February 21, 2007 1:11 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Well... I dunno. I have a view in SQL Server returning 8 fields, 6K records (currently), completely unfiltered, all records in the table. I pull that linked table into a query in order to do some preliminary filtering - check date between a pair of dates and check number not null. I want the view in sql server to do the "check number not null" for me, and I know how to do that. I want the SQL Server to take a pair of parameters - "From Date" and "To Date" and return only those records. If I could do this, then I could get rid of my "base query" in access which applies these filters, reduce traffic across the wire etc. However even if I do this, the view is not being requested by a form in XP (for example) where some magical thing happens in Access to pass the parameters off to SQL Server. The linked view will be used immediately in another query which joins this view to other tables (on one field - BEID - in the view) in order to build up a set of data for a report. So the "parent" query that is using the view will have to "feed" the parameters to the linked view. Being a nubee to SQL Server I do not even know if what I am attempting to do is possible. I cannot wrap my mind around how a query that is using a view can know that the view needs parameters, and if it did, what to feed it. If it is possible, I have never done so obviously, so I don't even have the basics of what to set in Access to do the parameter passing. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Wednesday, February 21, 2007 1:50 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Feeding parameters to SQL Server Maybe I'm not understanding the question...but you have a linked table in access...that is really a view in SQL...would a passthru to this view work to add your criteria?? ??? Mark A. Matte >From: "JWColby" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] Feeding parameters to SQL Server >Date: Wed, 21 Feb 2007 13:36:31 -0500 > >Eric, > >What is responsible for feeding in the parameters? Can the query that >uses the linked view do that? > > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro >Sent: Wednesday, February 21, 2007 1:05 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Feeding parameters to SQL Server > >John, > >Convert the SQL server view to a SQL server function that returns a table. >Functions take parameters and return data sets based on the parameters >that were passed to it. > > >The general syntax for such a function would be... > > >CREATE FUNCTION dbo.MyFunction >( > @Parameter1 SQLDataType. > @Parameter2 SQLDataType >) >RETURNS TABLE >AS >RETURN >( >SELECT > fieldName1, > fieldName2 >FROM MyTable a (nolock) >WHERE a.whereField1 BETWEEN @Parameter1 AND @Parameter2 > ) > > > >Eric > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby >Sent: Wednesday, February 21, 2007 9:59 AM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] Feeding parameters to SQL Server > >Is it possible to feed a parameter to a SQL Server view from Access? I >am linking (ODBC) to a pair of tables in SQL Server. The views return >a set of data which will only grow larger over time. I would like to >somehow tell sql server where... and feed in the value - where >checkdate >=X and <=Y for example. These views are then used in >queries inside of Access, linked to my tables and stuff. > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >No virus found in this incoming message. >Checked by AVG Free Edition. >Version: 7.5.441 / Virus Database: 268.18.3/694 - Release Date: >2/20/2007 >1:44 PM > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Want a degree but can't afford to quit? Top school degrees online - in as fast as 1 year http://forms.nextag.com/goto.jsp?url=/serv/main/buyer/education.jsp?doSearch =n&tm=y&search=education_text_links_88_h288c&s=4079&p=5116 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** From jwcolby at colbyconsulting.com Wed Feb 21 13:55:10 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 21 Feb 2007 14:55:10 -0500 Subject: [AccessD] Feeding parameters to SQL Server In-Reply-To: <8301C8A868251E4C8ECD3D4FFEA40F8A2584B977@cpixchng-1.cpiqpc.net> Message-ID: <00dd01c755f2$31c921a0$657aa8c0@m6805> Wow. So you are saying that ap_GetMyInfo 6 Is valid SQL as long as the object at the other end of the connection string knows what to do with it? John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rusty.hammond at cpiqpc.com Sent: Wednesday, February 21, 2007 2:36 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Feeding parameters to SQL Server John, As long as you don't need to update the data in the view coming from SQL, you can setup a stored procedure with parameters in SQL, then use a pass-through query in your Access front end to call the stored procedure and pass it the parameters. For example, say you have a table in SQL called tblMyInfo with fields: MyInfoID, SomeData1, SomeData2 Create a new stored procedure with parameters as in the following example: CREATE PROCEDURE [ap_GetMyInfo] @GetMyInfoID integer AS SELECT MyInfoID, SomeData1, SomeData2 FROM tblMyInfo WHERE MyInfoID = @GetMyInfoID GO Then in your pass through query in Access, setup your connection string to your SQL database(in the properties of the query) and call the stored procedure in the SQL ie: ap_GetMyInfo 6 When you run the pass-through query, you get a list of records that have a MyInfoID value of 6 HTH Rusty -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Wednesday, February 21, 2007 1:11 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Well... I dunno. I have a view in SQL Server returning 8 fields, 6K records (currently), completely unfiltered, all records in the table. I pull that linked table into a query in order to do some preliminary filtering - check date between a pair of dates and check number not null. I want the view in sql server to do the "check number not null" for me, and I know how to do that. I want the SQL Server to take a pair of parameters - "From Date" and "To Date" and return only those records. If I could do this, then I could get rid of my "base query" in access which applies these filters, reduce traffic across the wire etc. However even if I do this, the view is not being requested by a form in XP (for example) where some magical thing happens in Access to pass the parameters off to SQL Server. The linked view will be used immediately in another query which joins this view to other tables (on one field - BEID - in the view) in order to build up a set of data for a report. So the "parent" query that is using the view will have to "feed" the parameters to the linked view. Being a nubee to SQL Server I do not even know if what I am attempting to do is possible. I cannot wrap my mind around how a query that is using a view can know that the view needs parameters, and if it did, what to feed it. If it is possible, I have never done so obviously, so I don't even have the basics of what to set in Access to do the parameter passing. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Wednesday, February 21, 2007 1:50 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Feeding parameters to SQL Server Maybe I'm not understanding the question...but you have a linked table in access...that is really a view in SQL...would a passthru to this view work to add your criteria?? ??? Mark A. Matte >From: "JWColby" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] Feeding parameters to SQL Server >Date: Wed, 21 Feb 2007 13:36:31 -0500 > >Eric, > >What is responsible for feeding in the parameters? Can the query that >uses the linked view do that? > > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro >Sent: Wednesday, February 21, 2007 1:05 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Feeding parameters to SQL Server > >John, > >Convert the SQL server view to a SQL server function that returns a table. >Functions take parameters and return data sets based on the parameters >that were passed to it. > > >The general syntax for such a function would be... > > >CREATE FUNCTION dbo.MyFunction >( > @Parameter1 SQLDataType. > @Parameter2 SQLDataType >) >RETURNS TABLE >AS >RETURN >( >SELECT > fieldName1, > fieldName2 >FROM MyTable a (nolock) >WHERE a.whereField1 BETWEEN @Parameter1 AND @Parameter2 > ) > > > >Eric > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby >Sent: Wednesday, February 21, 2007 9:59 AM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] Feeding parameters to SQL Server > >Is it possible to feed a parameter to a SQL Server view from Access? I >am linking (ODBC) to a pair of tables in SQL Server. The views return >a set of data which will only grow larger over time. I would like to >somehow tell sql server where... and feed in the value - where >checkdate >=X and <=Y for example. These views are then used in >queries inside of Access, linked to my tables and stuff. > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >No virus found in this incoming message. >Checked by AVG Free Edition. >Version: 7.5.441 / Virus Database: 268.18.3/694 - Release Date: >2/20/2007 >1:44 PM > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Want a degree but can't afford to quit? Top school degrees online - in as fast as 1 year http://forms.nextag.com/goto.jsp?url=/serv/main/buyer/education.jsp?doSearch =n&tm=y&search=education_text_links_88_h288c&s=4079&p=5116 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed Feb 21 14:07:08 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 21 Feb 2007 12:07:08 -0800 Subject: [AccessD] Feeding parameters to SQL Server In-Reply-To: <00bd01c755e1$f02493c0$657aa8c0@m6805> Message-ID: <0JDT00GXAX3Z7O72@l-daemon> Hi John: There is a DBA related article on subject (http://www.databaseadvisors.com/newsletters/newsletter112003/0311UnboundRep orts.asp ... don't get scared off by the name.) which will give a sample FE and BE DB on the design. ODBC works great for Updates and Deletes but when it comes to Selects that is where everything grinds to a halt. The small attached code app was part of a much larger application that could be accessed from anywhere in country, given the proper credentials and an appropriate MS Access FE. It shows the method of attachment (an MS Access or MS SQL BE work equally as well or any DB for that matter.), data management and parameter passing. If you need more specifics contact me offline. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, February 21, 2007 9:59 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Feeding parameters to SQL Server Is it possible to feed a parameter to a SQL Server view from Access? I am linking (ODBC) to a pair of tables in SQL Server. The views return a set of data which will only grow larger over time. I would like to somehow tell sql server where... and feed in the value - where checkdate >=X and <=Y for example. These views are then used in queries inside of Access, linked to my tables and stuff. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rusty.hammond at cpiqpc.com Wed Feb 21 14:13:18 2007 From: rusty.hammond at cpiqpc.com (rusty.hammond at cpiqpc.com) Date: Wed, 21 Feb 2007 14:13:18 -0600 Subject: [AccessD] Feeding parameters to SQL Server Message-ID: <8301C8A868251E4C8ECD3D4FFEA40F8A2584B979@cpixchng-1.cpiqpc.net> Yes. I will sometimes send a SQL SELECT string or INSERT statements using a pass-thru, but when I can, I call a stored procedure like this because MS SQL has already analyzed the stored procedure and knows the most optimal way to run it. The only gotcha is a pass-thru is read-only but for reporting it's nice. Rusty -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Wednesday, February 21, 2007 1:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Wow. So you are saying that ap_GetMyInfo 6 Is valid SQL as long as the object at the other end of the connection string knows what to do with it? John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rusty.hammond at cpiqpc.com Sent: Wednesday, February 21, 2007 2:36 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Feeding parameters to SQL Server John, As long as you don't need to update the data in the view coming from SQL, you can setup a stored procedure with parameters in SQL, then use a pass-through query in your Access front end to call the stored procedure and pass it the parameters. For example, say you have a table in SQL called tblMyInfo with fields: MyInfoID, SomeData1, SomeData2 Create a new stored procedure with parameters as in the following example: CREATE PROCEDURE [ap_GetMyInfo] @GetMyInfoID integer AS SELECT MyInfoID, SomeData1, SomeData2 FROM tblMyInfo WHERE MyInfoID = @GetMyInfoID GO Then in your pass through query in Access, setup your connection string to your SQL database(in the properties of the query) and call the stored procedure in the SQL ie: ap_GetMyInfo 6 When you run the pass-through query, you get a list of records that have a MyInfoID value of 6 HTH Rusty ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** From jwelz at hotmail.com Wed Feb 21 14:19:57 2007 From: jwelz at hotmail.com (Jurgen Welz) Date: Wed, 21 Feb 2007 13:19:57 -0700 Subject: [AccessD] MDB to SQL Server In-Reply-To: <008f01c755ca$2d7d2740$657aa8c0@m6805> Message-ID: People: Given that the organization I work for has decided that the database I built for them over the years will be going from a maximum of 41 to about 50 users in the course of this year and the complexity and size of our database has been growing at an ever accellerating rate and we have been suffering from the occasional corruption, the question of what we can do has been asked of me. We are running individual DAO FE files via a pair (soon to be four) of servers against a file server MDB on a gigabit LAN. Corruptions started happening a couple years back when users copied the backend MDB file to their local laptops. When we were on a local network, this never caused any grief but when we switched to a terminal server environment, the copy duration went to several minutes and, unhappily, the original server data flie frequently became corrupted. If any users logged on after the corruption, they were given an error about a damaged database while existing logins proceeded without issue. The only resolution was to bump everyone off, repair the BE file and then allow everyone back on again. Typically, one record in a single table would be found to be at fault with a ton of invalid junk in the fields. That record would typically have to be deleted. Curiously, it often contained out of range numbers even after repair. We put a stop to copying open MDB files to remote laptops (you could still make a copy on the server and then copy that copy without issue). Notwithstanding that, we occasionally get a corrupt MDB BE file showing a similar kind of damage. Of course I have no way of knowing whether anyone tried to copy the file or whether it was just the fact that user or MDB limits had been exceeded. Corruption may happen once every 4 to 8 months. When I started all this in about '96, my boss was told that our parent company would look at our data needs in 5 to 7 years. My boss was told today that it would be another 4 years at least. I suspect that target will be signifcantly exceeded. We could be up to 100 users by that time, with a 200 Megabyte BE file. The whole discussion about DAO/ADO caught my attention as I haven't been doing much with our system in the past 4 years other than some refinements and enhancements. Access development has become more of a sideline. I wrote the basics at a time when DAO was my only option and wasn't give the resources to convert to ADO. SQL Server has never been an option, even though the parent company, which grosses over a billion in annual revenue, relies on it for their systems. If I can provide sufficient justification, I may get the go ahead to upsize. The question I am posed is, what is the next step for the system I built. My boss is complaining about performance of some of our forms, but the fact is, our forms display considerably more information on a screen than any of the parent company forms and they still open and populate a great deal faster than our parent company forms. When I pull a safety stats report on screen from the parent company on a single manager on perhaps 20 projects, it may take 20 to 30 seconds to load, yet my slowest project form will load within 10 seconds. My load time is a bit slow because of a number of lists and combos that retrieve a large number of records or retrieve from tables that I can reduce in size by archiving datas, but it shows a great deal more information from a broader variety of sources. I know I can gain sginficant performance by denormalizing. I've always split my addresses into tables for country, province/state, city and address. By storing all the data in a single field rather than in separate tables, the joins process significantly faster. I have used Callback functions for many lists and combos to aviod hitting a BE repeatedly, but, for continuous forms using combos filling from a table with a large number of records, the forms poplulate quite slowly, much more slowly than when the combo is filled with an SQL rowsource. I could make Just In Time combos and use arrays of controls (as I have done in various situations) but I think my best option is to cut down the size of the data file, giving users the option to see current data only, and current data unioned with archived data and let them wait the small percentage of the time when that is necessary. Given that we are moving from 2 servers to 4 over the next few weeks, it seems that people are starting to realize that our division has increasingly significant needs and be more amenable to suggestions. I welcome any input from the list. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com _________________________________________________________________ Find out the restaurants participating in Winterlicious http://local.live.com/default.aspx?v=2&cp=43.658648~-79.383962&style=r&lvl=15&tilt=-90&dir=0&alt=-1000&scene=3702663&cid=7ABE80D1746919B4!1329 >From January 26 to February 8, 2007 From dwaters at usinternet.com Wed Feb 21 14:43:01 2007 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 21 Feb 2007 14:43:01 -0600 Subject: [AccessD] MDB to SQL Server In-Reply-To: <6028771.1172089554511.JavaMail.root@sniper56> References: <008f01c755ca$2d7d2740$657aa8c0@m6805> <6028771.1172089554511.JavaMail.root@sniper56> Message-ID: <003001c755f8$e1110d70$0200a8c0@danwaters> Jurgen, A few thoughts: 1) SQL Server 2005 Express has a 2G storage capacity, and is free. 2) You can protect your production BE data file using Windows folder permissions in an interesting and non-intuitive way. You'll need to get a copy of the book by Garry Robinson on Real World MS Access Security, and read through Chapter 12. This prevents regular users from opening the folder, but allows them to use a FE that connects to a BE in that folder. I use this at two customers, and it works well. 3) It sounds as though you have 10 years' data accumulated into one BE file. Is there a possibility that some of the data could be moved to an archive BE file? 4) For speedier performance, several people have suggested creating a connection to the BE from the FE when first opening a database. Keeping the connection open can improve performance because the overhead associated with opening and closing many connections (recordsets, queries, bound forms, etc.) can be avoided. However, there is a registry key which defines a time-out period for an inactive connection to Jet - the default value is 10 minutes. 5) Why are you getting complaints about your system which is faster? Because everyone knows that complaining to the corporate parent is useless, but when they ask you to do something, you respond! :-) HTH! Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jurgen Welz Sent: Wednesday, February 21, 2007 2:20 PM To: accessd at databaseadvisors.com Subject: [AccessD] MDB to SQL Server People: Given that the organization I work for has decided that the database I built for them over the years will be going from a maximum of 41 to about 50 users in the course of this year and the complexity and size of our database has been growing at an ever accellerating rate and we have been suffering from the occasional corruption, the question of what we can do has been asked of me. We are running individual DAO FE files via a pair (soon to be four) of servers against a file server MDB on a gigabit LAN. Corruptions started happening a couple years back when users copied the backend MDB file to their local laptops. When we were on a local network, this never caused any grief but when we switched to a terminal server environment, the copy duration went to several minutes and, unhappily, the original server data flie frequently became corrupted. If any users logged on after the corruption, they were given an error about a damaged database while existing logins proceeded without issue. The only resolution was to bump everyone off, repair the BE file and then allow everyone back on again. Typically, one record in a single table would be found to be at fault with a ton of invalid junk in the fields. That record would typically have to be deleted. Curiously, it often contained out of range numbers even after repair. We put a stop to copying open MDB files to remote laptops (you could still make a copy on the server and then copy that copy without issue). Notwithstanding that, we occasionally get a corrupt MDB BE file showing a similar kind of damage. Of course I have no way of knowing whether anyone tried to copy the file or whether it was just the fact that user or MDB limits had been exceeded. Corruption may happen once every 4 to 8 months. When I started all this in about '96, my boss was told that our parent company would look at our data needs in 5 to 7 years. My boss was told today that it would be another 4 years at least. I suspect that target will be signifcantly exceeded. We could be up to 100 users by that time, with a 200 Megabyte BE file. The whole discussion about DAO/ADO caught my attention as I haven't been doing much with our system in the past 4 years other than some refinements and enhancements. Access development has become more of a sideline. I wrote the basics at a time when DAO was my only option and wasn't give the resources to convert to ADO. SQL Server has never been an option, even though the parent company, which grosses over a billion in annual revenue, relies on it for their systems. If I can provide sufficient justification, I may get the go ahead to upsize. The question I am posed is, what is the next step for the system I built. My boss is complaining about performance of some of our forms, but the fact is, our forms display considerably more information on a screen than any of the parent company forms and they still open and populate a great deal faster than our parent company forms. When I pull a safety stats report on screen from the parent company on a single manager on perhaps 20 projects, it may take 20 to 30 seconds to load, yet my slowest project form will load within 10 seconds. My load time is a bit slow because of a number of lists and combos that retrieve a large number of records or retrieve from tables that I can reduce in size by archiving datas, but it shows a great deal more information from a broader variety of sources. I know I can gain sginficant performance by denormalizing. I've always split my addresses into tables for country, province/state, city and address. By storing all the data in a single field rather than in separate tables, the joins process significantly faster. I have used Callback functions for many lists and combos to aviod hitting a BE repeatedly, but, for continuous forms using combos filling from a table with a large number of records, the forms poplulate quite slowly, much more slowly than when the combo is filled with an SQL rowsource. I could make Just In Time combos and use arrays of controls (as I have done in various situations) but I think my best option is to cut down the size of the data file, giving users the option to see current data only, and current data unioned with archived data and let them wait the small percentage of the time when that is necessary. Given that we are moving from 2 servers to 4 over the next few weeks, it seems that people are starting to realize that our division has increasingly significant needs and be more amenable to suggestions. I welcome any input from the list. Ciao J|rgen Welz Edmonton, Alberta jwelz at hotmail.com _________________________________________________________________ Find out the restaurants participating in Winterlicious http://local.live.com/default.aspx?v=2&cp=43.658648~-79.383962&style=r&lvl=1 5&tilt=-90&dir=0&alt=-1000&scene=3702663&cid=7ABE80D1746919B4!1329 >From January 26 to February 8, 2007 From shamil at users.mns.ru Wed Feb 21 14:59:59 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Wed, 21 Feb 2007 23:59:59 +0300 Subject: [AccessD] Feeding parameters to SQL Server In-Reply-To: <00d301c755ec$097c1c80$657aa8c0@m6805> Message-ID: <000f01c755fb$409ece10$6401a8c0@nant> Hello John, Let's suppose you use NorthWind sample database and you have to calculate total Freight for a Shipper given from/to dates. I assume you do not use ADPs - if you have used them then you could have created - a stored procedure: ===================== CREATE PROCEDURE usp_TotalFreightStats (@fromDate datetime, @toDate datetime ) AS BEGIN select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName END - or a UDF =========== CREATE FUNCTION TotalFreightStats (@fromDate datetime, @toDate datetime ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN declare @fromDate1 dateTime declare @toDate1 dateTime INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName RETURN END And you could have bound your report to this stored procedure or UDF - on open this report would have requested from/to dates in parameters input dialog. I assume you use mdb and then you can: - create table to keep parameters ================================== CREATE TABLE [dbo].[ParametersForUDFs] ( [fromDate] [datetime] NULL , [toDate] [datetime] NULL ) ON [PRIMARY] GO - populate this table with parameters' values (clear in first) ============================================================= delete from ParametersForUDFs insert into ParametersForUDFs (fromDate, toDate) values ('1996-07-04', '1996-07-12') - create UDF ============ CREATE FUNCTION TotalFreightStats1 ( ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between (select top 1 fromDate from ParametersForUDFs) and (select top 1 toDate from ParametersForUDFs) Group by ShipName RETURN END - use UDF in view ================== CREATE VIEW dbo.vw_TotalFreightStats1 AS SELECT ShipperName, TotalFreight FROM dbo.TotalFreightStats1() TotalFreightStats1 ++++++++++++++++++++++++++++++++++++ - link view to MS Access mdb ++++++++++++++++++++++++++++++++++++ Of course that approach will not work well in multi-user environment if different users will need different from/to dates... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, February 21, 2007 10:11 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Well... I dunno. I have a view in SQL Server returning 8 fields, 6K records (currently), completely unfiltered, all records in the table. I pull that linked table into a query in order to do some preliminary filtering - check date between a pair of dates and check number not null. I want the view in sql server to do the "check number not null" for me, and I know how to do that. I want the SQL Server to take a pair of parameters - "From Date" and "To Date" and return only those records. If I could do this, then I could get rid of my "base query" in access which applies these filters, reduce traffic across the wire etc. However even if I do this, the view is not being requested by a form in XP (for example) where some magical thing happens in Access to pass the parameters off to SQL Server. The linked view will be used immediately in another query which joins this view to other tables (on one field - BEID - in the view) in order to build up a set of data for a report. So the "parent" query that is using the view will have to "feed" the parameters to the linked view. Being a nubee to SQL Server I do not even know if what I am attempting to do is possible. I cannot wrap my mind around how a query that is using a view can know that the view needs parameters, and if it did, what to feed it. If it is possible, I have never done so obviously, so I don't even have the basics of what to set in Access to do the parameter passing. John W. Colby Colby Consulting www.ColbyConsulting.com <<< tail skipped >>> From ebarro at verizon.net Wed Feb 21 15:47:27 2007 From: ebarro at verizon.net (Eric Barro) Date: Wed, 21 Feb 2007 13:47:27 -0800 Subject: [AccessD] Feeding parameters to SQL Server In-Reply-To: <000f01c755fb$409ece10$6401a8c0@nant> Message-ID: <0JDU00JK41V0KYB1@vms048.mailsrvcs.net> Unfortunately dynamic parameters and sql pass-thru queries don't play well in Access. http://www.utteraccess.com/forums/showflat.php?Board=82&Number=1361479 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, February 21, 2007 1:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Hello John, Let's suppose you use NorthWind sample database and you have to calculate total Freight for a Shipper given from/to dates. I assume you do not use ADPs - if you have used them then you could have created - a stored procedure: ===================== CREATE PROCEDURE usp_TotalFreightStats (@fromDate datetime, @toDate datetime ) AS BEGIN select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName END - or a UDF =========== CREATE FUNCTION TotalFreightStats (@fromDate datetime, @toDate datetime ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN declare @fromDate1 dateTime declare @toDate1 dateTime INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName RETURN END And you could have bound your report to this stored procedure or UDF - on open this report would have requested from/to dates in parameters input dialog. I assume you use mdb and then you can: - create table to keep parameters ================================== CREATE TABLE [dbo].[ParametersForUDFs] ( [fromDate] [datetime] NULL , [toDate] [datetime] NULL ) ON [PRIMARY] GO - populate this table with parameters' values (clear in first) ============================================================= delete from ParametersForUDFs insert into ParametersForUDFs (fromDate, toDate) values ('1996-07-04', '1996-07-12') - create UDF ============ CREATE FUNCTION TotalFreightStats1 ( ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between (select top 1 fromDate from ParametersForUDFs) and (select top 1 toDate from ParametersForUDFs) Group by ShipName RETURN END - use UDF in view ================== CREATE VIEW dbo.vw_TotalFreightStats1 AS SELECT ShipperName, TotalFreight FROM dbo.TotalFreightStats1() TotalFreightStats1 ++++++++++++++++++++++++++++++++++++ - link view to MS Access mdb ++++++++++++++++++++++++++++++++++++ Of course that approach will not work well in multi-user environment if different users will need different from/to dates... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, February 21, 2007 10:11 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Well... I dunno. I have a view in SQL Server returning 8 fields, 6K records (currently), completely unfiltered, all records in the table. I pull that linked table into a query in order to do some preliminary filtering - check date between a pair of dates and check number not null. I want the view in sql server to do the "check number not null" for me, and I know how to do that. I want the SQL Server to take a pair of parameters - "From Date" and "To Date" and return only those records. If I could do this, then I could get rid of my "base query" in access which applies these filters, reduce traffic across the wire etc. However even if I do this, the view is not being requested by a form in XP (for example) where some magical thing happens in Access to pass the parameters off to SQL Server. The linked view will be used immediately in another query which joins this view to other tables (on one field - BEID - in the view) in order to build up a set of data for a report. So the "parent" query that is using the view will have to "feed" the parameters to the linked view. Being a nubee to SQL Server I do not even know if what I am attempting to do is possible. I cannot wrap my mind around how a query that is using a view can know that the view needs parameters, and if it did, what to feed it. If it is possible, I have never done so obviously, so I don't even have the basics of what to set in Access to do the parameter passing. John W. Colby Colby Consulting www.ColbyConsulting.com <<< tail skipped >>> -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/694 - Release Date: 2/20/2007 1:44 PM From jim.moss at jlmoss.net Wed Feb 21 15:56:25 2007 From: jim.moss at jlmoss.net (Jim Moss) Date: Wed, 21 Feb 2007 15:56:25 -0600 (CST) Subject: [AccessD] MDB to SQL Server In-Reply-To: <003001c755f8$e1110d70$0200a8c0@danwaters> References: <008f01c755ca$2d7d2740$657aa8c0@m6805> <6028771.1172089554511.JavaMail.root@sniper56> <003001c755f8$e1110d70$0200a8c0@danwaters> Message-ID: <9972.65.196.182.34.1172094985.squirrel@65.196.182.34> Actually SQL Server 2005 Express has a 4G capacity per database, and I guess an unlimited number of databases per. Th 4 gig doesn't include the log file, just the .mdf. > Jurgen, > > A few thoughts: > > 1) SQL Server 2005 Express has a 2G storage capacity, and is free. > > 2) You can protect your production BE data file using Windows folder > permissions in an interesting and non-intuitive way. You'll need to get a > copy of the book by Garry Robinson on Real World MS Access Security, and > read through Chapter 12. This prevents regular users from opening the > folder, but allows them to use a FE that connects to a BE in that folder. > I > use this at two customers, and it works well. > > 3) It sounds as though you have 10 years' data accumulated into one BE > file. > Is there a possibility that some of the data could be moved to an archive > BE > file? > > 4) For speedier performance, several people have suggested creating a > connection to the BE from the FE when first opening a database. Keeping > the > connection open can improve performance because the overhead associated > with > opening and closing many connections (recordsets, queries, bound forms, > etc.) can be avoided. However, there is a registry key which defines a > time-out period for an inactive connection to Jet - the default value is > 10 > minutes. > > 5) Why are you getting complaints about your system which is faster? > Because everyone knows that complaining to the corporate parent is > useless, > but when they ask you to do something, you respond! :-) > > HTH! > Dan Waters > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jurgen Welz > Sent: Wednesday, February 21, 2007 2:20 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] MDB to SQL Server > > People: Given that the organization I work for has decided that the > database I built for them over the years will be going from a maximum of > 41 > to about 50 users in the course of this year and the complexity and size > of > our database has been growing at an ever accellerating rate and we have > been > > suffering from the occasional corruption, the question of what we can do > has > > been asked of me. We are running individual DAO FE files via a pair (soon > to be four) of servers against a file server MDB on a gigabit LAN. > > Corruptions started happening a couple years back when users copied the > backend MDB file to their local laptops. When we were on a local network, > this never caused any grief but when we switched to a terminal server > environment, the copy duration went to several minutes and, unhappily, the > original server data flie frequently became corrupted. If any users > logged > on after the corruption, they were given an error about a damaged database > while existing logins proceeded without issue. The only resolution was to > bump everyone off, repair the BE file and then allow everyone back on > again. > > Typically, one record in a single table would be found to be at fault > with > > a ton of invalid junk in the fields. That record would typically have to > be > > deleted. Curiously, it often contained out of range numbers even after > repair. > > We put a stop to copying open MDB files to remote laptops (you could still > make a copy on the server and then copy that copy without issue). > Notwithstanding that, we occasionally get a corrupt MDB BE file showing a > similar kind of damage. Of course I have no way of knowing whether anyone > tried to copy the file or whether it was just the fact that user or MDB > limits had been exceeded. Corruption may happen once every 4 to 8 months. > > When I started all this in about '96, my boss was told that our parent > company would look at our data needs in 5 to 7 years. My boss was told > today that it would be another 4 years at least. I suspect that target > will > > be signifcantly exceeded. We could be up to 100 users by that time, with > a > 200 Megabyte BE file. > > The whole discussion about DAO/ADO caught my attention as I haven't been > doing much with our system in the past 4 years other than some refinements > and enhancements. Access development has become more of a sideline. I > wrote the basics at a time when DAO was my only option and wasn't give the > resources to convert to ADO. SQL Server has never been an option, even > though the parent company, which grosses over a billion in annual revenue, > relies on it for their systems. If I can provide sufficient > justification, > I may get the go ahead to upsize. > > The question I am posed is, what is the next step for the system I built. > My boss is complaining about performance of some of our forms, but the > fact > is, our forms display considerably more information on a screen than any > of > the parent company forms and they still open and populate a great deal > faster than our parent company forms. When I pull a safety stats report > on > screen from the parent company on a single manager on perhaps 20 projects, > it may take 20 to 30 seconds to load, yet my slowest project form will > load > within 10 seconds. My load time is a bit slow because of a number of > lists > and combos that retrieve a large number of records or retrieve from tables > that I can reduce in size by archiving datas, but it shows a great deal > more > > information from a broader variety of sources. > > I know I can gain sginficant performance by denormalizing. I've always > split my addresses into tables for country, province/state, city and > address. By storing all the data in a single field rather than in > separate > tables, the joins process significantly faster. > > I have used Callback functions for many lists and combos to aviod hitting > a > BE repeatedly, but, for continuous forms using combos filling from a table > with a large number of records, the forms poplulate quite slowly, much > more > slowly than when the combo is filled with an SQL rowsource. I could make > Just In Time combos and use arrays of controls (as I have done in various > situations) but I think my best option is to cut down the size of the data > file, giving users the option to see current data only, and current data > unioned with archived data and let them wait the small percentage of the > time when that is necessary. > > Given that we are moving from 2 servers to 4 over the next few weeks, it > seems that people are starting to realize that our division has > increasingly > > significant needs and be more amenable to suggestions. I welcome any > input > from the list. > > Ciao > J|rgen Welz > Edmonton, Alberta > jwelz at hotmail.com > > _________________________________________________________________ > Find out the restaurants participating in Winterlicious > http://local.live.com/default.aspx?v=2&cp=43.658648~-79.383962&style=r&lvl=1 > 5&tilt=-90&dir=0&alt=-1000&scene=3702663&cid=7ABE80D1746919B4!1329 >>From January 26 to February 8, 2007 > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From shamil at users.mns.ru Wed Feb 21 16:31:05 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Thu, 22 Feb 2007 01:31:05 +0300 Subject: [AccessD] Feeding parameters to SQL Server In-Reply-To: <0JDU00JK41V0KYB1@vms048.mailsrvcs.net> Message-ID: <000301c75607$f9e4a6e0$6401a8c0@nant> Hello Eric, I didn't mention pass-through queries at all. To use parameterized stored procedure to get data from MS SQL, put it into local temp table and bind MS Access report on this temp table I'd propose to use ADODB (only the part getting an ADODB recordset is presented in the following sample code): Dim cnn As ADODB.Connection Dim strCnn As String Dim cmd As ADODB.Command Dim prm As ADODB.Parameter Dim rst As ADODB.Recordset Dim fromDate As Date Dim todate As Date fromDate = #7/4/1996# todate = #7/12/1996# strCnn = "Provider=sqloledb;Data Source=(local);Initial Catalog=Northwind;Integrated Security=SSPI;" Set cnn = New ADODB.Connection cnn.Open strCnn cnn.CursorLocation = adUseClient Set cmd = New ADODB.Command cmd.CommandType = adCmdStoredProc cmd.CommandText = "usp_TotalFreightStats" cmd.ActiveConnection = cnn.ConnectionString ' from date Set prm = cmd.CreateParameter("@fromDate", adDate, adParamInput, _ Value:=fromDate) cmd.Parameters.Append prm ' to Date Set prm = cmd.CreateParameter("@toDate", adDate, adParamInput, _ Value:=todate) cmd.Parameters.Append prm Set rst = cmd.Execute While Not rst.EOF Debug.Print rst(0).Value & " - " & rst(1).Value rst.MoveNext Wend cnn.Close -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Thursday, February 22, 2007 12:47 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Unfortunately dynamic parameters and sql pass-thru queries don't play well in Access. http://www.utteraccess.com/forums/showflat.php?Board=82&Number=1361479 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, February 21, 2007 1:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Hello John, Let's suppose you use NorthWind sample database and you have to calculate total Freight for a Shipper given from/to dates. I assume you do not use ADPs - if you have used them then you could have created - a stored procedure: ===================== CREATE PROCEDURE usp_TotalFreightStats (@fromDate datetime, @toDate datetime ) AS BEGIN select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName END - or a UDF =========== CREATE FUNCTION TotalFreightStats (@fromDate datetime, @toDate datetime ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN declare @fromDate1 dateTime declare @toDate1 dateTime INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName RETURN END And you could have bound your report to this stored procedure or UDF - on open this report would have requested from/to dates in parameters input dialog. I assume you use mdb and then you can: - create table to keep parameters ================================== CREATE TABLE [dbo].[ParametersForUDFs] ( [fromDate] [datetime] NULL , [toDate] [datetime] NULL ) ON [PRIMARY] GO - populate this table with parameters' values (clear in first) ============================================================= delete from ParametersForUDFs insert into ParametersForUDFs (fromDate, toDate) values ('1996-07-04', '1996-07-12') - create UDF ============ CREATE FUNCTION TotalFreightStats1 ( ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between (select top 1 fromDate from ParametersForUDFs) and (select top 1 toDate from ParametersForUDFs) Group by ShipName RETURN END - use UDF in view ================== CREATE VIEW dbo.vw_TotalFreightStats1 AS SELECT ShipperName, TotalFreight FROM dbo.TotalFreightStats1() TotalFreightStats1 ++++++++++++++++++++++++++++++++++++ - link view to MS Access mdb ++++++++++++++++++++++++++++++++++++ Of course that approach will not work well in multi-user environment if different users will need different from/to dates... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, February 21, 2007 10:11 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Well... I dunno. I have a view in SQL Server returning 8 fields, 6K records (currently), completely unfiltered, all records in the table. I pull that linked table into a query in order to do some preliminary filtering - check date between a pair of dates and check number not null. I want the view in sql server to do the "check number not null" for me, and I know how to do that. I want the SQL Server to take a pair of parameters - "From Date" and "To Date" and return only those records. If I could do this, then I could get rid of my "base query" in access which applies these filters, reduce traffic across the wire etc. However even if I do this, the view is not being requested by a form in XP (for example) where some magical thing happens in Access to pass the parameters off to SQL Server. The linked view will be used immediately in another query which joins this view to other tables (on one field - BEID - in the view) in order to build up a set of data for a report. So the "parent" query that is using the view will have to "feed" the parameters to the linked view. Being a nubee to SQL Server I do not even know if what I am attempting to do is possible. I cannot wrap my mind around how a query that is using a view can know that the view needs parameters, and if it did, what to feed it. If it is possible, I have never done so obviously, so I don't even have the basics of what to set in Access to do the parameter passing. John W. Colby Colby Consulting www.ColbyConsulting.com <<< tail skipped >>> -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/694 - Release Date: 2/20/2007 1:44 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed Feb 21 16:48:18 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 21 Feb 2007 14:48:18 -0800 Subject: [AccessD] Feeding parameters to SQL Server In-Reply-To: <0JDU00JK41V0KYB1@vms048.mailsrvcs.net> Message-ID: <0JDU002434KKD6T0@l-daemon> Eric My recommendation is do not use pass-through queries. They are more problem than they are worth as they seem to be an easy quick fix to start with but end up being slow, awkward and unstable. I believe this set of processes was designed to punish newbie developers scaring them off weaning from a MDB BE. MS should have simply remove that whole gambit of functions from Access and never bring them up again in polite company. Now if you want my unvarnished opinion on the subject don't be afraid to ask. :-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Wednesday, February 21, 2007 1:47 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Unfortunately dynamic parameters and sql pass-thru queries don't play well in Access. http://www.utteraccess.com/forums/showflat.php?Board=82&Number=1361479 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, February 21, 2007 1:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Hello John, Let's suppose you use NorthWind sample database and you have to calculate total Freight for a Shipper given from/to dates. I assume you do not use ADPs - if you have used them then you could have created - a stored procedure: ===================== CREATE PROCEDURE usp_TotalFreightStats (@fromDate datetime, @toDate datetime ) AS BEGIN select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName END - or a UDF =========== CREATE FUNCTION TotalFreightStats (@fromDate datetime, @toDate datetime ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN declare @fromDate1 dateTime declare @toDate1 dateTime INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName RETURN END And you could have bound your report to this stored procedure or UDF - on open this report would have requested from/to dates in parameters input dialog. I assume you use mdb and then you can: - create table to keep parameters ================================== CREATE TABLE [dbo].[ParametersForUDFs] ( [fromDate] [datetime] NULL , [toDate] [datetime] NULL ) ON [PRIMARY] GO - populate this table with parameters' values (clear in first) ============================================================= delete from ParametersForUDFs insert into ParametersForUDFs (fromDate, toDate) values ('1996-07-04', '1996-07-12') - create UDF ============ CREATE FUNCTION TotalFreightStats1 ( ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between (select top 1 fromDate from ParametersForUDFs) and (select top 1 toDate from ParametersForUDFs) Group by ShipName RETURN END - use UDF in view ================== CREATE VIEW dbo.vw_TotalFreightStats1 AS SELECT ShipperName, TotalFreight FROM dbo.TotalFreightStats1() TotalFreightStats1 ++++++++++++++++++++++++++++++++++++ - link view to MS Access mdb ++++++++++++++++++++++++++++++++++++ Of course that approach will not work well in multi-user environment if different users will need different from/to dates... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, February 21, 2007 10:11 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Well... I dunno. I have a view in SQL Server returning 8 fields, 6K records (currently), completely unfiltered, all records in the table. I pull that linked table into a query in order to do some preliminary filtering - check date between a pair of dates and check number not null. I want the view in sql server to do the "check number not null" for me, and I know how to do that. I want the SQL Server to take a pair of parameters - "From Date" and "To Date" and return only those records. If I could do this, then I could get rid of my "base query" in access which applies these filters, reduce traffic across the wire etc. However even if I do this, the view is not being requested by a form in XP (for example) where some magical thing happens in Access to pass the parameters off to SQL Server. The linked view will be used immediately in another query which joins this view to other tables (on one field - BEID - in the view) in order to build up a set of data for a report. So the "parent" query that is using the view will have to "feed" the parameters to the linked view. Being a nubee to SQL Server I do not even know if what I am attempting to do is possible. I cannot wrap my mind around how a query that is using a view can know that the view needs parameters, and if it did, what to feed it. If it is possible, I have never done so obviously, so I don't even have the basics of what to set in Access to do the parameter passing. John W. Colby Colby Consulting www.ColbyConsulting.com <<< tail skipped >>> -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/694 - Release Date: 2/20/2007 1:44 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed Feb 21 16:49:11 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 21 Feb 2007 14:49:11 -0800 Subject: [AccessD] Feeding parameters to SQL Server In-Reply-To: <000301c75607$f9e4a6e0$6401a8c0@nant> Message-ID: <0JDU003KM4M2SYF0@l-daemon> Right on Shamil... Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, February 21, 2007 2:31 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Hello Eric, I didn't mention pass-through queries at all. To use parameterized stored procedure to get data from MS SQL, put it into local temp table and bind MS Access report on this temp table I'd propose to use ADODB (only the part getting an ADODB recordset is presented in the following sample code): Dim cnn As ADODB.Connection Dim strCnn As String Dim cmd As ADODB.Command Dim prm As ADODB.Parameter Dim rst As ADODB.Recordset Dim fromDate As Date Dim todate As Date fromDate = #7/4/1996# todate = #7/12/1996# strCnn = "Provider=sqloledb;Data Source=(local);Initial Catalog=Northwind;Integrated Security=SSPI;" Set cnn = New ADODB.Connection cnn.Open strCnn cnn.CursorLocation = adUseClient Set cmd = New ADODB.Command cmd.CommandType = adCmdStoredProc cmd.CommandText = "usp_TotalFreightStats" cmd.ActiveConnection = cnn.ConnectionString ' from date Set prm = cmd.CreateParameter("@fromDate", adDate, adParamInput, _ Value:=fromDate) cmd.Parameters.Append prm ' to Date Set prm = cmd.CreateParameter("@toDate", adDate, adParamInput, _ Value:=todate) cmd.Parameters.Append prm Set rst = cmd.Execute While Not rst.EOF Debug.Print rst(0).Value & " - " & rst(1).Value rst.MoveNext Wend cnn.Close -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Thursday, February 22, 2007 12:47 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Unfortunately dynamic parameters and sql pass-thru queries don't play well in Access. http://www.utteraccess.com/forums/showflat.php?Board=82&Number=1361479 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, February 21, 2007 1:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Hello John, Let's suppose you use NorthWind sample database and you have to calculate total Freight for a Shipper given from/to dates. I assume you do not use ADPs - if you have used them then you could have created - a stored procedure: ===================== CREATE PROCEDURE usp_TotalFreightStats (@fromDate datetime, @toDate datetime ) AS BEGIN select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName END - or a UDF =========== CREATE FUNCTION TotalFreightStats (@fromDate datetime, @toDate datetime ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN declare @fromDate1 dateTime declare @toDate1 dateTime INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName RETURN END And you could have bound your report to this stored procedure or UDF - on open this report would have requested from/to dates in parameters input dialog. I assume you use mdb and then you can: - create table to keep parameters ================================== CREATE TABLE [dbo].[ParametersForUDFs] ( [fromDate] [datetime] NULL , [toDate] [datetime] NULL ) ON [PRIMARY] GO - populate this table with parameters' values (clear in first) ============================================================= delete from ParametersForUDFs insert into ParametersForUDFs (fromDate, toDate) values ('1996-07-04', '1996-07-12') - create UDF ============ CREATE FUNCTION TotalFreightStats1 ( ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between (select top 1 fromDate from ParametersForUDFs) and (select top 1 toDate from ParametersForUDFs) Group by ShipName RETURN END - use UDF in view ================== CREATE VIEW dbo.vw_TotalFreightStats1 AS SELECT ShipperName, TotalFreight FROM dbo.TotalFreightStats1() TotalFreightStats1 ++++++++++++++++++++++++++++++++++++ - link view to MS Access mdb ++++++++++++++++++++++++++++++++++++ Of course that approach will not work well in multi-user environment if different users will need different from/to dates... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, February 21, 2007 10:11 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Well... I dunno. I have a view in SQL Server returning 8 fields, 6K records (currently), completely unfiltered, all records in the table. I pull that linked table into a query in order to do some preliminary filtering - check date between a pair of dates and check number not null. I want the view in sql server to do the "check number not null" for me, and I know how to do that. I want the SQL Server to take a pair of parameters - "From Date" and "To Date" and return only those records. If I could do this, then I could get rid of my "base query" in access which applies these filters, reduce traffic across the wire etc. However even if I do this, the view is not being requested by a form in XP (for example) where some magical thing happens in Access to pass the parameters off to SQL Server. The linked view will be used immediately in another query which joins this view to other tables (on one field - BEID - in the view) in order to build up a set of data for a report. So the "parent" query that is using the view will have to "feed" the parameters to the linked view. Being a nubee to SQL Server I do not even know if what I am attempting to do is possible. I cannot wrap my mind around how a query that is using a view can know that the view needs parameters, and if it did, what to feed it. If it is possible, I have never done so obviously, so I don't even have the basics of what to set in Access to do the parameter passing. John W. Colby Colby Consulting www.ColbyConsulting.com <<< tail skipped >>> -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/694 - Release Date: 2/20/2007 1:44 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ebarro at verizon.net Wed Feb 21 16:50:33 2007 From: ebarro at verizon.net (Eric Barro) Date: Wed, 21 Feb 2007 14:50:33 -0800 Subject: [AccessD] Feeding parameters to SQL Server In-Reply-To: <0JDU002434KKD6T0@l-daemon> Message-ID: <0JDU00GUU4S3IM44@vms042.mailsrvcs.net> Uh..hmmm...Jim and Shamil...I was replying to Colby's question on passing parameters to SQL which was the original thread. Someone suggested pass-thru queries somewhere in the thread. I just happened to reply to the last message in the thread that came from Shamil. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, February 21, 2007 2:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Eric My recommendation is do not use pass-through queries. They are more problem than they are worth as they seem to be an easy quick fix to start with but end up being slow, awkward and unstable. I believe this set of processes was designed to punish newbie developers scaring them off weaning from a MDB BE. MS should have simply remove that whole gambit of functions from Access and never bring them up again in polite company. Now if you want my unvarnished opinion on the subject don't be afraid to ask. :-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Wednesday, February 21, 2007 1:47 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Unfortunately dynamic parameters and sql pass-thru queries don't play well in Access. http://www.utteraccess.com/forums/showflat.php?Board=82&Number=1361479 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, February 21, 2007 1:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Hello John, Let's suppose you use NorthWind sample database and you have to calculate total Freight for a Shipper given from/to dates. I assume you do not use ADPs - if you have used them then you could have created - a stored procedure: ===================== CREATE PROCEDURE usp_TotalFreightStats (@fromDate datetime, @toDate datetime ) AS BEGIN select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName END - or a UDF =========== CREATE FUNCTION TotalFreightStats (@fromDate datetime, @toDate datetime ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN declare @fromDate1 dateTime declare @toDate1 dateTime INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName RETURN END And you could have bound your report to this stored procedure or UDF - on open this report would have requested from/to dates in parameters input dialog. I assume you use mdb and then you can: - create table to keep parameters ================================== CREATE TABLE [dbo].[ParametersForUDFs] ( [fromDate] [datetime] NULL , [toDate] [datetime] NULL ) ON [PRIMARY] GO - populate this table with parameters' values (clear in first) ============================================================= delete from ParametersForUDFs insert into ParametersForUDFs (fromDate, toDate) values ('1996-07-04', '1996-07-12') - create UDF ============ CREATE FUNCTION TotalFreightStats1 ( ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between (select top 1 fromDate from ParametersForUDFs) and (select top 1 toDate from ParametersForUDFs) Group by ShipName RETURN END - use UDF in view ================== CREATE VIEW dbo.vw_TotalFreightStats1 AS SELECT ShipperName, TotalFreight FROM dbo.TotalFreightStats1() TotalFreightStats1 ++++++++++++++++++++++++++++++++++++ - link view to MS Access mdb ++++++++++++++++++++++++++++++++++++ Of course that approach will not work well in multi-user environment if different users will need different from/to dates... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, February 21, 2007 10:11 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Well... I dunno. I have a view in SQL Server returning 8 fields, 6K records (currently), completely unfiltered, all records in the table. I pull that linked table into a query in order to do some preliminary filtering - check date between a pair of dates and check number not null. I want the view in sql server to do the "check number not null" for me, and I know how to do that. I want the SQL Server to take a pair of parameters - "From Date" and "To Date" and return only those records. If I could do this, then I could get rid of my "base query" in access which applies these filters, reduce traffic across the wire etc. However even if I do this, the view is not being requested by a form in XP (for example) where some magical thing happens in Access to pass the parameters off to SQL Server. The linked view will be used immediately in another query which joins this view to other tables (on one field - BEID - in the view) in order to build up a set of data for a report. So the "parent" query that is using the view will have to "feed" the parameters to the linked view. Being a nubee to SQL Server I do not even know if what I am attempting to do is possible. I cannot wrap my mind around how a query that is using a view can know that the view needs parameters, and if it did, what to feed it. If it is possible, I have never done so obviously, so I don't even have the basics of what to set in Access to do the parameter passing. John W. Colby Colby Consulting www.ColbyConsulting.com <<< tail skipped >>> From artful at rogers.com Wed Feb 21 17:07:12 2007 From: artful at rogers.com (artful at rogers.com) Date: Wed, 21 Feb 2007 15:07:12 -0800 (PST) Subject: [AccessD] Feeding parameters to SQL Server Message-ID: <351181.28563.qm@web88213.mail.re2.yahoo.com> I didn't say it, but yeah, that's how it works. Arthur ----- Original Message ---- From: JWColby To: Access Developers discussion and problem solving Sent: Wednesday, February 21, 2007 2:55:10 PM Subject: Re: [AccessD] Feeding parameters to SQL Server Wow. So you are saying that ap_GetMyInfo 6 Is valid SQL as long as the object at the other end of the connection string knows what to do with it? John W. Colby Colby Consulting www.ColbyConsulting.com From artful at rogers.com Wed Feb 21 17:20:03 2007 From: artful at rogers.com (artful at rogers.com) Date: Wed, 21 Feb 2007 15:20:03 -0800 (PST) Subject: [AccessD] MDB to SQL Server Message-ID: <20070221232004.2679.qmail@web88205.mail.re2.yahoo.com> My suggestions: 1. If you wish to stay with an MDB back end (undoubtedly your least expensive choice), then I suggest replication as the way to go. You can even replicate a copy to every individual user. I did that with 70 users in 4 branch offices and it all worked nicely. Each branch had a server in charge of local replication, and HQ's server handled both HQ replication and also replication between the branches. This all occurred on a WAN. Every user everywhere was guaranteed to see the changes from everyone else within 15 minutes. A significant advantage of this approach is the dramatic cutdown on net traffic -- everyone has all the tables locally, so the only net traffic is the changes, not the data itself. 2. If you want to go beyond MDB, then install a copy of SQL Express. This would involve "translating" your app, but the result will ultimately be better. One thing you definitely should do is identify all your row and record sources that do not use named queries, and fix them to use named queries. If you don't do this before upsizing, you'll end up with dozens of objects whose names were manufactured and will be utterly meaningless to you. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Jurgen Welz To: accessd at databaseadvisors.com Sent: Wednesday, February 21, 2007 3:19:57 PM Subject: [AccessD] MDB to SQL Server People: Given that the organization I work for has decided that the database I built for them over the years will be going from a maximum of 41 to about 50 users in the course of this year and the complexity and size of our database has been growing at an ever accellerating rate and we have been suffering from the occasional corruption, the question of what we can do has been asked of me. We are running individual DAO FE files via a pair (soon to be four) of servers against a file server MDB on a gigabit LAN. Corruptions started happening a couple years back when users copied the backend MDB file to their local laptops. When we were on a local network, this never caused any grief but when we switched to a terminal server environment, the copy duration went to several minutes and, unhappily, the original server data flie frequently became corrupted. If any users logged on after the corruption, they were given an error about a damaged database while existing logins proceeded without issue. The only resolution was to bump everyone off, repair the BE file and then allow everyone back on again. Typically, one record in a single table would be found to be at fault with a ton of invalid junk in the fields. That record would typically have to be deleted. Curiously, it often contained out of range numbers even after repair. We put a stop to copying open MDB files to remote laptops (you could still make a copy on the server and then copy that copy without issue). Notwithstanding that, we occasionally get a corrupt MDB BE file showing a similar kind of damage. Of course I have no way of knowing whether anyone tried to copy the file or whether it was just the fact that user or MDB limits had been exceeded. Corruption may happen once every 4 to 8 months. When I started all this in about '96, my boss was told that our parent company would look at our data needs in 5 to 7 years. My boss was told today that it would be another 4 years at least. I suspect that target will be signifcantly exceeded. We could be up to 100 users by that time, with a 200 Megabyte BE file. The whole discussion about DAO/ADO caught my attention as I haven't been doing much with our system in the past 4 years other than some refinements and enhancements. Access development has become more of a sideline. I wrote the basics at a time when DAO was my only option and wasn't give the resources to convert to ADO. SQL Server has never been an option, even though the parent company, which grosses over a billion in annual revenue, relies on it for their systems. If I can provide sufficient justification, I may get the go ahead to upsize. The question I am posed is, what is the next step for the system I built. My boss is complaining about performance of some of our forms, but the fact is, our forms display considerably more information on a screen than any of the parent company forms and they still open and populate a great deal faster than our parent company forms. When I pull a safety stats report on screen from the parent company on a single manager on perhaps 20 projects, it may take 20 to 30 seconds to load, yet my slowest project form will load within 10 seconds. My load time is a bit slow because of a number of lists and combos that retrieve a large number of records or retrieve from tables that I can reduce in size by archiving datas, but it shows a great deal more information from a broader variety of sources. I know I can gain sginficant performance by denormalizing. I've always split my addresses into tables for country, province/state, city and address. By storing all the data in a single field rather than in separate tables, the joins process significantly faster. I have used Callback functions for many lists and combos to aviod hitting a BE repeatedly, but, for continuous forms using combos filling from a table with a large number of records, the forms poplulate quite slowly, much more slowly than when the combo is filled with an SQL rowsource. I could make Just In Time combos and use arrays of controls (as I have done in various situations) but I think my best option is to cut down the size of the data file, giving users the option to see current data only, and current data unioned with archived data and let them wait the small percentage of the time when that is necessary. Given that we are moving from 2 servers to 4 over the next few weeks, it seems that people are starting to realize that our division has increasingly significant needs and be more amenable to suggestions. I welcome any input from the list. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com From shamil at users.mns.ru Wed Feb 21 17:40:40 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Thu, 22 Feb 2007 02:40:40 +0300 Subject: [AccessD] Feeding parameters to SQL Server In-Reply-To: <0JDU00GUU4S3IM44@vms042.mailsrvcs.net> Message-ID: <000a01c75611$b27fc820$6401a8c0@nant> No problem, Eric, I anyway planned to write a short note here on ADODB and parameterized stored procedures... BTW, for parameterized UDFs ADODB can be also used but the issue with access permissions usually forces to use stored procedures - I mean UDF can't be used with a table if a user does not have access permissions for this table. As for stored procedure - it can be used with a table even if a user does not have access permission to this table - user should only have a permission to execute this stored procedure. Here is an example with parameterized UDF and ADODB - parameters's values in this sample are hardcoded in select expression: Dim cnn As ADODB.Connection Dim strCnn As String Dim cmd As ADODB.Command Dim prm As ADODB.Parameter Dim rst As ADODB.Recordset strCnn = "Provider=sqloledb;Data Source=(local);Initial Catalog=Northwind;Integrated Security=SSPI;" Set cnn = New ADODB.Connection cnn.Open strCnn cnn.CursorLocation = adUseClient Set cmd = New ADODB.Command cmd.CommandType = adCmdText cmd.CommandText = "select * from TotalFreightStats( _ '1996-07-02', '1996-07-12')" cmd.ActiveConnection = cnn.ConnectionString Set rst = cmd.Execute While Not rst.EOF Debug.Print rst(0).Value & " - " & rst(1).Value rst.MoveNext Wend cnn.Close -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Thursday, February 22, 2007 1:51 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Uh..hmmm...Jim and Shamil...I was replying to Colby's question on passing parameters to SQL which was the original thread. Someone suggested pass-thru queries somewhere in the thread. I just happened to reply to the last message in the thread that came from Shamil. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, February 21, 2007 2:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Eric My recommendation is do not use pass-through queries. They are more problem than they are worth as they seem to be an easy quick fix to start with but end up being slow, awkward and unstable. I believe this set of processes was designed to punish newbie developers scaring them off weaning from a MDB BE. MS should have simply remove that whole gambit of functions from Access and never bring them up again in polite company. Now if you want my unvarnished opinion on the subject don't be afraid to ask. :-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Wednesday, February 21, 2007 1:47 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Unfortunately dynamic parameters and sql pass-thru queries don't play well in Access. http://www.utteraccess.com/forums/showflat.php?Board=82&Number=1361479 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, February 21, 2007 1:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Hello John, Let's suppose you use NorthWind sample database and you have to calculate total Freight for a Shipper given from/to dates. I assume you do not use ADPs - if you have used them then you could have created - a stored procedure: ===================== CREATE PROCEDURE usp_TotalFreightStats (@fromDate datetime, @toDate datetime ) AS BEGIN select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName END - or a UDF =========== CREATE FUNCTION TotalFreightStats (@fromDate datetime, @toDate datetime ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN declare @fromDate1 dateTime declare @toDate1 dateTime INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName RETURN END And you could have bound your report to this stored procedure or UDF - on open this report would have requested from/to dates in parameters input dialog. I assume you use mdb and then you can: - create table to keep parameters ================================== CREATE TABLE [dbo].[ParametersForUDFs] ( [fromDate] [datetime] NULL , [toDate] [datetime] NULL ) ON [PRIMARY] GO - populate this table with parameters' values (clear in first) ============================================================= delete from ParametersForUDFs insert into ParametersForUDFs (fromDate, toDate) values ('1996-07-04', '1996-07-12') - create UDF ============ CREATE FUNCTION TotalFreightStats1 ( ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between (select top 1 fromDate from ParametersForUDFs) and (select top 1 toDate from ParametersForUDFs) Group by ShipName RETURN END - use UDF in view ================== CREATE VIEW dbo.vw_TotalFreightStats1 AS SELECT ShipperName, TotalFreight FROM dbo.TotalFreightStats1() TotalFreightStats1 ++++++++++++++++++++++++++++++++++++ - link view to MS Access mdb ++++++++++++++++++++++++++++++++++++ Of course that approach will not work well in multi-user environment if different users will need different from/to dates... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, February 21, 2007 10:11 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Well... I dunno. I have a view in SQL Server returning 8 fields, 6K records (currently), completely unfiltered, all records in the table. I pull that linked table into a query in order to do some preliminary filtering - check date between a pair of dates and check number not null. I want the view in sql server to do the "check number not null" for me, and I know how to do that. I want the SQL Server to take a pair of parameters - "From Date" and "To Date" and return only those records. If I could do this, then I could get rid of my "base query" in access which applies these filters, reduce traffic across the wire etc. However even if I do this, the view is not being requested by a form in XP (for example) where some magical thing happens in Access to pass the parameters off to SQL Server. The linked view will be used immediately in another query which joins this view to other tables (on one field - BEID - in the view) in order to build up a set of data for a report. So the "parent" query that is using the view will have to "feed" the parameters to the linked view. Being a nubee to SQL Server I do not even know if what I am attempting to do is possible. I cannot wrap my mind around how a query that is using a view can know that the view needs parameters, and if it did, what to feed it. If it is possible, I have never done so obviously, so I don't even have the basics of what to set in Access to do the parameter passing. John W. Colby Colby Consulting www.ColbyConsulting.com <<< tail skipped >>> -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwelz at hotmail.com Wed Feb 21 20:18:09 2007 From: jwelz at hotmail.com (Jurgen Welz) Date: Wed, 21 Feb 2007 19:18:09 -0700 Subject: [AccessD] MDB to SQL Server In-Reply-To: <003001c755f8$e1110d70$0200a8c0@danwaters> Message-ID: Dan: >1) SQL Server 2005 Express has a 2G storage capacity, and is free. I don't think money is an object here. Head office has SQL Server and licences. All my users run their accounting and equipment applications and my project management and costing software. They do a significant amount of double entry. I'd prefer to integrate with their systems but so far, I've been refused any rights or access. Presumably I could run a full blown SQL Server BE separate and apart from what they do. >2) You can protect your production BE data file using Windows folder >permissions in an interesting and non-intuitive way. You'll need to get a >copy of the book by Garry Robinson on Real World MS Access Security, and >read through Chapter 12. This prevents regular users from opening the >folder, but allows them to use a FE that connects to a BE in that folder. >I >use this at two customers, and it works well. This would help monitor the copying of the open BE provided that is the primary remaining cause of corruption. A very useful tip. >3) It sounds as though you have 10 years' data accumulated into one BE >file. >Is there a possibility that some of the data could be moved to an archive >BE >file? This is an option I am entertaining. >4) For speedier performance, several people have suggested creating a >connection to the BE from the FE when first opening a database. Keeping >the >connection open can improve performance because the overhead associated >with >opening and closing many connections (recordsets, queries, bound forms, >etc.) can be avoided. However, there is a registry key which defines a >time-out period for an inactive connection to Jet - the default value is 10 >minutes. I have a function like CurrentDb that maintains a static object variable connected to the BE and only refreshes when necessary. I first wrote about relinking performance when maintaining an open connection about 7 years ago at this list and have used the technique ever since. >5) Why are you getting complaints about your system which is faster? >Because everyone knows that complaining to the corporate parent is useless, >but when they ask you to do something, you respond! :-) The simple fact is that my users were spoiled with a system that was many times faster and the performance has deteriorated with the passage of time. I could display less data and split out more tabs and do a bit more Just In Time data retrieval. The system essentially retrieves only one record upon navigation of the primary forms, but sub forms may have up to a couple hundred related records. However, many of the subforms have records based on relatively large tables that can not be diminished in size and this appears to be the greatest slowdown. The truth is, there are few tables with more than 10,000 records, it's just that there are well over 150 tables and I'm pulling data from many of them for each form. Ultimately, the question is, can I go up to 70 or so users in the next five years with a database that was originally designed to support a half dozen with a much smaller data file. I can certainly play with upsizing, but I suspect that, given the relatively small size of the tables (from a SQL Server perspective), I'm not going to get a performance increase. It would probably allow me to normalize further than I have heretofore and I should get better security and robustness. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com _________________________________________________________________ http://local.live.com/default.aspx?v=2&cp=43.658648~-79.383962&style=r&lvl=15&tilt=-90&dir=0&alt=-1000&scene=3702663&cid=7ABE80D1746919B4!1329 From jwelz at hotmail.com Wed Feb 21 21:05:23 2007 From: jwelz at hotmail.com (Jurgen Welz) Date: Wed, 21 Feb 2007 20:05:23 -0700 Subject: [AccessD] MDB to SQL Server In-Reply-To: <20070221232004.2679.qmail@web88205.mail.re2.yahoo.com> Message-ID: Arthur: I appreciate the suggestions. However, all our servers are in a single office remote to every user. All are connected via some form of terminal services so the conventional advantages of replication do not really apply. Quite frankly, I've got a Dell XPS laptop with a fast core duo processor, two gigs of fast RAM, and a 7200 RPM drive and the application is not significantly faster on that laptop. It's a bit faster in Access 97, but the fact is, even with local data and a single user, my boss is going to bemoan the lack of speed because it used to run faster. Remember the bit wise querying, storing data in arrays to avoid hitting the drive and other such stuff I did. It's not enough anymore because there are so many tables from which related data must be retrieved. In the past couple years, I have ceased to store quite so much in arrays because I though we'd be hitting a RAM limiit with the number of users we have on a single and more recently, two terminal servers. As a result, the more recently added tables and types of data I've added are more normalized. I had even dropped some of my bit wise join querying used to store multiple attributes in a single byte (integer or long) and gone to joined tables. That was a performance hit. I suspect I'm going to run into even worse performance with SQL Express or the MSDE (that's what it was called in A2K wasn't it?). I could try upsizing on my personal PC, I only have A2K, and presumably get similar performance as the SQL Express. At least I could determine whether it will help or hinder performance. I would really like to normalize further than I have and as it stands, that would probably kill an MDB of the size and number of users I currently serve. As much as I'd love to have a table of phone numbers, with a table of number types, and addresses and address types, and relate them to a single table of entities of both corporate and people types, in all their permutations and combinations, this has proved to be far slower than having a seperate table of corporate and individual entities and just keeping phone numbers and addresses with them. As far as using named queries, these are rare and few. I manipulate the record and row sources with filters based on numerous variables and usually set them in code. I understand that there can be no optimization of a query execution plan with this approach, but my experience has been that throwing a variable number of something like 4, 5, 6 or 10 parameters at a query will slow it down as much. Practically all of my recordsets and rowsources are generated in code at runtime in the open event of the form. Not only the subforms, but the forms themselves are Just in Time, and the same applies to a large percentage of the lists and combos. This actually makes changes in things like field and table names quite simple because it can be done by a find and replace in the code window. Those saved queries that I do have frequently have their .SQL properties set at runtime. This allows me to in/exclude unions and join disparate tables depending on the users choices. The unions allow me to split off current from archival data, yet display both when necessary. This is a tactic I could exploit further. Another example; a user may need to see an employee report that shows contact information where he may or may not need to filter the report on joins based on a combination of training certifications involving joins with completely different tables than where the training records are not a basis for retrieval. For example, I want a list of contact info on the Saskatoon office based employees vs I want a list of Alberta regional employees who have CSTS, a current forklift certificate, Swingstage training who also fall into a trade category from yet another table. Same report but involving joins, and sometimes equal and other times unequal joins to an indeterminate variety of tables. Sometimes 1 table, sometimes 5 or 6, sometimes with parameters on some fields, at other times with parameters on other fields. I couldn't imagine doing this with saved queries. I take it I would lose much of the flexibility I've given my users by upsizing? I could normalize more without hurting performance, but the performance would likely not be better than what I'm getting? Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: artful at rogers.com > >My suggestions: > >1. If you wish to stay with an MDB back end (undoubtedly your least >expensive choice), then I suggest replication as the way to go. You can >even replicate a copy to every individual user. I did that with 70 users in >4 branch offices and it all worked nicely. Each branch had a server in >charge of local replication, and HQ's server handled both HQ replication >and also replication between the branches. This all occurred on a WAN. >Every user everywhere was guaranteed to see the changes from everyone else >within 15 minutes. A significant advantage of this approach is the dramatic >cutdown on net traffic -- everyone has all the tables locally, so the only >net traffic is the changes, not the data itself. > >2. If you want to go beyond MDB, then install a copy of SQL Express. This >would involve "translating" your app, but the result will ultimately be >better. One thing you definitely should do is identify all your row and >record sources that do not use named queries, and fix them to use named >queries. If you don't do this before upsizing, you'll end up with dozens of >objects whose names were manufactured and will be utterly meaningless to >you. > > >Arthur Fuller >Technical Writer, Data Modeler, SQL Sensei >Artful Databases Organization >www.artfulsoftware.com _________________________________________________________________ Windows Live Spaces: share your New Year pictures! http://spaces.live.com/?mkt=en-ca From jwcolby at colbyconsulting.com Wed Feb 21 22:02:50 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 21 Feb 2007 23:02:50 -0500 Subject: [AccessD] Feeding parameters to SQL Server In-Reply-To: <000f01c755fb$409ece10$6401a8c0@nant> Message-ID: <001501c75636$52ac3a30$657aa8c0@m6805> Shamil, >And you could have bound your report to this stored procedure or UDF - on open this report would have requested from/to dates in parameters input dialog. Well, when I say "report" that means something a little different here. My client feeds data to mainframes. They give me a table of specs which looks briefly like: Field name Data Type Default Value Format Field width Required Field 1 Char Some Val 9 Yes Field 2 Num Some Val2 000.00 10 No Field 3 Field 4 . . . Etc. I then have to pull the data out into queries, and somehow get them out into fixed width text files, named according to their naming spec etc. In order to do this I use (what else) classes. I import their table into a report field spec table (with a few fields of my own to make my life easier). I then built a class to hold each field spec record plus code to manipulate the data as required by their specs. Apply the correct formatting, determine if the field has to be there or not, replace nulls with default values if any, etc. The Field Spec class is responsible for all formatting of a given field and handing back a fully formatted string, regardless of whether the data is a date (YYYYMMDD? MMDDYYYY? MMYYYY?), currency (00000.00?, 00000^00 - decimal shifted out), string (width? Pad left / right? Pad char?). Each field class is responsible for error reporting should any error occur in formatting, padding etc. since the field class "knows" what the format should be, width of the final string should be etc. I build a report spec table which holds the query required to pull the data, the name / path of the destination file and some other stuff. In the end I have a system where I load a Report Spec supervisor class and that class loads the field spec classes, loads the data, processes each field of each data record through each field class, assembles the strings returned by the field classes into a big string, and then uses text streams to write the files out to disk. The Report spec class is responsible for error reporting at the record level - errors from field classes, no data, etc., with errors logged to files on the hard disk for attachment to email to the person who can fix the problem. These files can and often but not always do have header information which goes in the same file, which may or may not be the same width as the detail data, and can have trailer info (usually sums and counts) which are also appended into the same file. Thus a "report" will be at the very least a detail section, but may / may not have a header and / or footer. Processed the way I do, the header and footer becomes just another set of field specs in the Field Spec Table. The Report Spec will have one to three records in it, one for a header if any, one for the detail (they all have a detail) and one for the footer if any. Thus a method of my report spec class is called passing the PKID of the detail spec record in the Report Spec table and it takes over and loads header and footer report spec classes as necessary. Each Report spec class instance loads it's own data (has it's own query) and processes it's data according to it's set of field spec records, and writes the data to the file under the supervision of the detail Report Spec class (the "overall" supervisor for the report). I did not do it this way originally, in fact I originally hard coded everything in the queries - format, conversion of nulls, padding etc. What I discovered is that it was a MAJOR PITA to adjust a report as I had to go find the right place in the right query. Done the way I do it now, it is all "formatted" by entries in my field spec table. If I need to change the width of a field, I just look up the field in the Field Spec Table and change it. Same for format, data type, default value etc. It works really well in fact once I got the classes working. I can literally tweak a report in minutes and rerun. One might wonder why such tweaking would be necessary if it was for a mainframe import, and the answer of course is that the info I get from the mainframe people is always sketchy - leading or trailing padding, spaces or zeros for padding, and I have to submit a file for testing, then tweak, resubmit, tweak until they say it is OK. And of course, it all has to be adjusted on MY END. By building this into a table, I just change my PadDir column from (L)eading to (T)railing and it pads the other way, change the PAdChar from 0 to ' ' and it changes from a zero to a space (or anything else they can think up). I use VB format strings where possible but sometimes I just have to brute force it. So we (my client) selects filter data using combos and date text boxes, and pushes a button and a report is built and placed on disk, in a specific location, with a specific name (and a dated name for our internal tracking). I can and do sometimes attach these reports to email or FTP them if that is necessary. So these are not "reports" in the Access sense. I now have reports going to 3 different companies, unknown number of different mainframes, all using the same report generator system. They give me a field spec "table", I import (or type) that in to my report / field spec table pair, build queries to pull the data and plug that query name into the report spec table and push the button. Tweak the query, then the field spec records, send, tweak, send. After that it just runs. In fact one issue that this whole class system handles very nicely is "missing data" since it can just run the reports without writing the files to disk, then see if any error reports are generated and if so email them to the examiners. They can go correct the data errors. We can rerun until it is right, then send. All in all a royal PITA but that is after all why they pay us the big bucks, right? And then came the client that wanted it in an Excel spreadsheet. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, February 21, 2007 4:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Hello John, Let's suppose you use NorthWind sample database and you have to calculate total Freight for a Shipper given from/to dates. I assume you do not use ADPs - if you have used them then you could have created - a stored procedure: ===================== CREATE PROCEDURE usp_TotalFreightStats (@fromDate datetime, @toDate datetime ) AS BEGIN select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName END - or a UDF =========== CREATE FUNCTION TotalFreightStats (@fromDate datetime, @toDate datetime ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN declare @fromDate1 dateTime declare @toDate1 dateTime INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName RETURN END And you could have bound your report to this stored procedure or UDF - on open this report would have requested from/to dates in parameters input dialog. I assume you use mdb and then you can: - create table to keep parameters ================================== CREATE TABLE [dbo].[ParametersForUDFs] ( [fromDate] [datetime] NULL , [toDate] [datetime] NULL ) ON [PRIMARY] GO - populate this table with parameters' values (clear in first) ============================================================= delete from ParametersForUDFs insert into ParametersForUDFs (fromDate, toDate) values ('1996-07-04', '1996-07-12') - create UDF ============ CREATE FUNCTION TotalFreightStats1 ( ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between (select top 1 fromDate from ParametersForUDFs) and (select top 1 toDate from ParametersForUDFs) Group by ShipName RETURN END - use UDF in view ================== CREATE VIEW dbo.vw_TotalFreightStats1 AS SELECT ShipperName, TotalFreight FROM dbo.TotalFreightStats1() TotalFreightStats1 ++++++++++++++++++++++++++++++++++++ - link view to MS Access mdb ++++++++++++++++++++++++++++++++++++ Of course that approach will not work well in multi-user environment if different users will need different from/to dates... -- Shamil From wdhindman at dejpolsystems.com Wed Feb 21 22:02:06 2007 From: wdhindman at dejpolsystems.com (William Hindman) Date: Wed, 21 Feb 2007 23:02:06 -0500 Subject: [AccessD] MDB to SQL Server References: Message-ID: <001e01c75636$386d0500$9258eb44@50NM721> Jurgen "As much as I'd love to have a table of phone numbers, with a table of number types, and addresses and address types, and relate them to a single table of entities of both corporate and people types, in all their permutations and combinations, this has proved to be far slower than having a separate table of corporate and individual entities and just keeping phone numbers and addresses with them." ...this is the template I moved to more than two years ago ...what I've found is that the address info and contact means are not required for most processes and fully normalizing them with fk to a super entity ID allows me to call them only when required rather than every time a contact or company record is called ...I display them only in JIT subforms when needed ...and that makes the critical data records much shorter and thus quicker to process ...while some processes take more time to accomplish, the overall application performance is at least as good as the prior approach ...the overall size of the first database I did this with dropped considerably because of the "full" data normalization ...ie, instead of having Loxahatchee, Fl, USA, 33470, lat, long repeated in numerous company and contact records it now exists only once in the db. ...one of the drivers behind adopting this approach was the ease it provides in deterring user data entry errors and thus the money it saves in marketing campaigns ...the returned mail has dropped drastically. ...I don't pretend to have your expertise in Access but based upon my own experience with that data model, I can't say that my results match what you posited as a far slower performance. William Hindman ----- Original Message ----- From: "Jurgen Welz" To: Sent: Wednesday, February 21, 2007 10:05 PM Subject: Re: [AccessD] MDB to SQL Server Arthur: I appreciate the suggestions. However, all our servers are in a single office remote to every user. All are connected via some form of terminal services so the conventional advantages of replication do not really apply. Quite frankly, I've got a Dell XPS laptop with a fast core duo processor, two gigs of fast RAM, and a 7200 RPM drive and the application is not significantly faster on that laptop. It's a bit faster in Access 97, but the fact is, even with local data and a single user, my boss is going to bemoan the lack of speed because it used to run faster. Remember the bit wise querying, storing data in arrays to avoid hitting the drive and other such stuff I did. It's not enough anymore because there are so many tables from which related data must be retrieved. In the past couple years, I have ceased to store quite so much in arrays because I though we'd be hitting a RAM limiit with the number of users we have on a single and more recently, two terminal servers. As a result, the more recently added tables and types of data I've added are more normalized. I had even dropped some of my bit wise join querying used to store multiple attributes in a single byte (integer or long) and gone to joined tables. That was a performance hit. I suspect I'm going to run into even worse performance with SQL Express or the MSDE (that's what it was called in A2K wasn't it?). I could try upsizing on my personal PC, I only have A2K, and presumably get similar performance as the SQL Express. At least I could determine whether it will help or hinder performance. I would really like to normalize further than I have and as it stands, that would probably kill an MDB of the size and number of users I currently serve. As much as I'd love to have a table of phone numbers, with a table of number types, and addresses and address types, and relate them to a single table of entities of both corporate and people types, in all their permutations and combinations, this has proved to be far slower than having a seperate table of corporate and individual entities and just keeping phone numbers and addresses with them. As far as using named queries, these are rare and few. I manipulate the record and row sources with filters based on numerous variables and usually set them in code. I understand that there can be no optimization of a query execution plan with this approach, but my experience has been that throwing a variable number of something like 4, 5, 6 or 10 parameters at a query will slow it down as much. Practically all of my recordsets and rowsources are generated in code at runtime in the open event of the form. Not only the subforms, but the forms themselves are Just in Time, and the same applies to a large percentage of the lists and combos. This actually makes changes in things like field and table names quite simple because it can be done by a find and replace in the code window. Those saved queries that I do have frequently have their .SQL properties set at runtime. This allows me to in/exclude unions and join disparate tables depending on the users choices. The unions allow me to split off current from archival data, yet display both when necessary. This is a tactic I could exploit further. Another example; a user may need to see an employee report that shows contact information where he may or may not need to filter the report on joins based on a combination of training certifications involving joins with completely different tables than where the training records are not a basis for retrieval. For example, I want a list of contact info on the Saskatoon office based employees vs I want a list of Alberta regional employees who have CSTS, a current forklift certificate, Swingstage training who also fall into a trade category from yet another table. Same report but involving joins, and sometimes equal and other times unequal joins to an indeterminate variety of tables. Sometimes 1 table, sometimes 5 or 6, sometimes with parameters on some fields, at other times with parameters on other fields. I couldn't imagine doing this with saved queries. I take it I would lose much of the flexibility I've given my users by upsizing? I could normalize more without hurting performance, but the performance would likely not be better than what I'm getting? Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: artful at rogers.com > >My suggestions: > >1. If you wish to stay with an MDB back end (undoubtedly your least >expensive choice), then I suggest replication as the way to go. You can >even replicate a copy to every individual user. I did that with 70 users in >4 branch offices and it all worked nicely. Each branch had a server in >charge of local replication, and HQ's server handled both HQ replication >and also replication between the branches. This all occurred on a WAN. >Every user everywhere was guaranteed to see the changes from everyone else >within 15 minutes. A significant advantage of this approach is the dramatic >cutdown on net traffic -- everyone has all the tables locally, so the only >net traffic is the changes, not the data itself. > >2. If you want to go beyond MDB, then install a copy of SQL Express. This >would involve "translating" your app, but the result will ultimately be >better. One thing you definitely should do is identify all your row and >record sources that do not use named queries, and fix them to use named >queries. If you don't do this before upsizing, you'll end up with dozens of >objects whose names were manufactured and will be utterly meaningless to >you. > > >Arthur Fuller >Technical Writer, Data Modeler, SQL Sensei >Artful Databases Organization >www.artfulsoftware.com _________________________________________________________________ Windows Live Spaces: share your New Year pictures! http://spaces.live.com/?mkt=en-ca -------------------------------------------------------------------------------- > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Wed Feb 21 22:05:08 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 21 Feb 2007 23:05:08 -0500 Subject: [AccessD] MDB to SQL Server In-Reply-To: <9972.65.196.182.34.1172094985.squirrel@65.196.182.34> Message-ID: <001601c75636$a4bb4eb0$657aa8c0@m6805> And given the average Access database, this is hardly a limit. I have what I consider a "large" database, where after 4 years of operation, it is up to about 600 mb of data. If it were in SQL Server (it is not), at least when it hit that limit the client could pay up to get the full version. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Moss Sent: Wednesday, February 21, 2007 4:56 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] MDB to SQL Server Actually SQL Server 2005 Express has a 4G capacity per database, and I guess an unlimited number of databases per. Th 4 gig doesn't include the log file, just the .mdf. > Jurgen, > > A few thoughts: > > 1) SQL Server 2005 Express has a 2G storage capacity, and is free. > > 2) You can protect your production BE data file using Windows folder > permissions in an interesting and non-intuitive way. You'll need to > get a copy of the book by Garry Robinson on Real World MS Access > Security, and read through Chapter 12. This prevents regular users > from opening the folder, but allows them to use a FE that connects to a BE in that folder. > I > use this at two customers, and it works well. > > 3) It sounds as though you have 10 years' data accumulated into one BE > file. > Is there a possibility that some of the data could be moved to an > archive BE file? > > 4) For speedier performance, several people have suggested creating a > connection to the BE from the FE when first opening a database. > Keeping the connection open can improve performance because the > overhead associated with opening and closing many connections > (recordsets, queries, bound forms, > etc.) can be avoided. However, there is a registry key which defines > a time-out period for an inactive connection to Jet - the default > value is 10 minutes. > > 5) Why are you getting complaints about your system which is faster? > Because everyone knows that complaining to the corporate parent is > useless, but when they ask you to do something, you respond! :-) > > HTH! > Dan Waters > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jurgen Welz > Sent: Wednesday, February 21, 2007 2:20 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] MDB to SQL Server > > People: Given that the organization I work for has decided that the > database I built for them over the years will be going from a maximum > of > 41 > to about 50 users in the course of this year and the complexity and > size of our database has been growing at an ever accellerating rate > and we have been > > suffering from the occasional corruption, the question of what we can > do has > > been asked of me. We are running individual DAO FE files via a pair > (soon to be four) of servers against a file server MDB on a gigabit LAN. > > Corruptions started happening a couple years back when users copied > the backend MDB file to their local laptops. When we were on a local > network, this never caused any grief but when we switched to a > terminal server environment, the copy duration went to several minutes > and, unhappily, the original server data flie frequently became > corrupted. If any users logged on after the corruption, they were > given an error about a damaged database while existing logins > proceeded without issue. The only resolution was to bump everyone > off, repair the BE file and then allow everyone back on again. > > Typically, one record in a single table would be found to be at > fault with > > a ton of invalid junk in the fields. That record would typically have > to be > > deleted. Curiously, it often contained out of range numbers even > after repair. > > We put a stop to copying open MDB files to remote laptops (you could > still make a copy on the server and then copy that copy without issue). > Notwithstanding that, we occasionally get a corrupt MDB BE file > showing a similar kind of damage. Of course I have no way of knowing > whether anyone tried to copy the file or whether it was just the fact > that user or MDB limits had been exceeded. Corruption may happen once every 4 to 8 months. > > When I started all this in about '96, my boss was told that our parent > company would look at our data needs in 5 to 7 years. My boss was > told today that it would be another 4 years at least. I suspect that > target will > > be signifcantly exceeded. We could be up to 100 users by that time, > with a 200 Megabyte BE file. > > The whole discussion about DAO/ADO caught my attention as I haven't > been doing much with our system in the past 4 years other than some > refinements and enhancements. Access development has become more of a > sideline. I wrote the basics at a time when DAO was my only option > and wasn't give the resources to convert to ADO. SQL Server has never > been an option, even though the parent company, which grosses over a > billion in annual revenue, relies on it for their systems. If I can > provide sufficient justification, I may get the go ahead to upsize. > > The question I am posed is, what is the next step for the system I built. > My boss is complaining about performance of some of our forms, but the > fact is, our forms display considerably more information on a screen > than any of the parent company forms and they still open and populate > a great deal faster than our parent company forms. When I pull a > safety stats report on screen from the parent company on a single > manager on perhaps 20 projects, it may take 20 to 30 seconds to load, > yet my slowest project form will load within 10 seconds. My load time > is a bit slow because of a number of lists and combos that retrieve a > large number of records or retrieve from tables that I can reduce in > size by archiving datas, but it shows a great deal more > > information from a broader variety of sources. > > I know I can gain sginficant performance by denormalizing. I've > always split my addresses into tables for country, province/state, > city and address. By storing all the data in a single field rather > than in separate tables, the joins process significantly faster. > > I have used Callback functions for many lists and combos to aviod > hitting a BE repeatedly, but, for continuous forms using combos > filling from a table with a large number of records, the forms > poplulate quite slowly, much more slowly than when the combo is filled > with an SQL rowsource. I could make Just In Time combos and use > arrays of controls (as I have done in various > situations) but I think my best option is to cut down the size of the > data file, giving users the option to see current data only, and > current data unioned with archived data and let them wait the small > percentage of the time when that is necessary. > > Given that we are moving from 2 servers to 4 over the next few weeks, > it seems that people are starting to realize that our division has > increasingly > > significant needs and be more amenable to suggestions. I welcome any > input from the list. > > Ciao > J|rgen Welz > Edmonton, Alberta > jwelz at hotmail.com > > _________________________________________________________________ > Find out the restaurants participating in Winterlicious > http://local.live.com/default.aspx?v=2&cp=43.658648~-79.383962&style=r > &lvl=1 > 5&tilt=-90&dir=0&alt=-1000&scene=3702663&cid=7ABE80D1746919B4!1329 >>From January 26 to February 8, 2007 > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Feb 22 02:47:36 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 22 Feb 2007 09:47:36 +0100 Subject: [AccessD] MySQL Falcon, new transactional engine Message-ID: Hi all Here's more on this. Still in alpha though: Understanding the Falcon Transaction Storage Engine * Part 1 http://dev.mysql.com/tech-resources/articles/falcon-transactional-engine-part1.html /gustav >>> Gustav at cactus.dk 31-01-2007 11:15:12 >>> Hi all This may be useful for some - sounds very interesting: Falcon is MySQL's new cutting-edge transactional engine that is designed to support high-volume user traffic in tandem with very fast and secure transaction management. Falcon supplies data management professionals with all the right features needed to support critical transaction-based systems that manage key needs in their business. Download the White Paper: http://www.mysql.com/why-mysql/white-papers/falcon-getting-started.php It's free, but you need to register. Has anyone tested this? /gustav From Gustav at cactus.dk Thu Feb 22 04:59:48 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 22 Feb 2007 11:59:48 +0100 Subject: [AccessD] MDB to SQL Server Message-ID: Hi J?rgen Maybe that is part of your problem. I often use one a main query joined with different subqueries, each saved as a new query that the report pulls data from - which query to be used is set by the code than runs the report. However, often this can be boiled down to 1) define the selection of ID to pull, 2) pull the "real" data for that selection of IDs. A lot of time can be saved if the selection if IDs is written to a temp table which then is inner joined to select and extract the real data. I remember on example on reporting taxes to the authorities on liquors delivered, based on both percentage of alcohol and the type of liquors as well as rates varying over time. A nice setup of queries fixed it perfectly but it took "ages" to run. By using one temp table I cut minutes to seconds. I know many refrain from temp tables because they are scared of bloating the mdb (avoid that by using a separate local temp database you recreate each time the user launches the app) but most (all?) SQL server engines feature automatic maintenance of temp tables. /gustav >>> jwelz at hotmail.com 22-02-2007 04:05:23 >>> .. Same report but involving joins, and sometimes equal and other times unequal joins to an indeterminate variety of tables. Sometimes 1 table, sometimes 5 or 6, sometimes with parameters on some fields, at other times with parameters on other fields. I couldn't imagine doing this with saved queries. From paul.hartland at fsmail.net Thu Feb 22 06:06:40 2007 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 22 Feb 2007 13:06:40 +0100 (CET) Subject: [AccessD] Advancing in SQL Server Message-ID: <12660593.1538681172146000895.JavaMail.www@wwinf3004.me-wanadoo.net> To all, I know how to write basic stored procedures etc, but I want to know if the following is possible. I have the code below in Visual Basic: Dim rsOnJob As ADODB.Recordset Dim rsNew As ADODB.Recordset Dim rsDupe As ADODB.Recordset Set rsOnJob = New ADODB.Recordset rsOnJob.CursorLocation = adUseClient rsOnJob.Open ("SELECT PayrollNo FROM tblAvailabilityAll WHERE JobNo = '" & PublicJobNumber & "'"), DESQLGenesis.SQLConn, adOpenDynamic, adLockReadOnly If (rsOnJob.RecordCount > 0) Then With rsOnJob .MoveFirst Do Until (.EOF) Set rsNew = DESQLGenesis.SQLConn.Execute("genesis_select_NewStarterNotification '" & .Fields("PayrollNo") & "'") If (rsNew.RecordCount > 0) Then Set rsDupe = DESQLGenesis.SQLConn.Execute("genesis_select_DupeInNewStarter '" & rsNew.Fields("PayrollNo") & "'") If (rsDupe.RecordCount < 1) Then DESQLGenesis.SQLConn.Execute ("genesis_insert_NewStarters '" & rsNew.Fields("PayrollNo") & "', '" & rsNew.Fields("Fullname") & "', '" & Format(rsNew.Fields("StartDate"), "MM/DD/YY") & "', '" & rsNew.Fields("JN") & "', '" & Format(rsNew.Fields("JD"), "MM/DD/YY") & "'") End If rsDupe.Close Set rsDupe = Nothing End If rsNew.Close Set rsNew = Nothing .MoveNext Loop End With End If rsOnJob.Close Set rsOnJob = Nothing Does anyone know if it is possible to put this into either a stored procedure or a user defined function enabling me to just make a call to the one stored procedure of function ? Thanks in advance for any help on this. Paul Hartland paul.hartland at fsmail.net 07730 523179 From JHewson at karta.com Thu Feb 22 08:05:36 2007 From: JHewson at karta.com (Jim Hewson) Date: Thu, 22 Feb 2007 08:05:36 -0600 Subject: [AccessD] Update form after click event of Treeview Message-ID: <9C382E065F54AE48BC3AA7925DCBB01C04F20B3F@karta-exc-int.Karta.com> I created a relatively simple database used by our recruiter in HR. On the main form I have two treeviews; one listing supervisors with their requisition requests and the other by position title with associated requests. On the form is also a list box used to find requisition numbers On the form there are multiple check boxes and radial buttons. To make the form easier to read, the labels of each check box and radial button are bolded when checked. I created a function that bolds the labels when the requisition changes. The list box works as expected - once a requisition number is clicked the form finds the requisition and the appropriate labels are changed. The problem is that when either treeview is clicked the appropriate requisition is found, but the labels are not changed unless the treeview is clicked twice. I placed the label function in the node click event, right after updating the requisition list box. How can I get the form to update after a requisition number is clicked in either treeview? Any suggestions on what I need to check? Jim From rusty.hammond at cpiqpc.com Thu Feb 22 08:54:19 2007 From: rusty.hammond at cpiqpc.com (rusty.hammond at cpiqpc.com) Date: Thu, 22 Feb 2007 08:54:19 -0600 Subject: [AccessD] Feeding parameters to SQL Server Message-ID: <8301C8A868251E4C8ECD3D4FFEA40F8A2584B980@cpixchng-1.cpiqpc.net> Shamil, Your earlier example of using a parameter table is interesting but you mention it doesn't work well in a multi-user environment, how would you get around the multi-user issue? Jim/Eric, I dynamically update the pass-through query as the link Eric gave suggests but I haven't run into any stability issues using this method (that I'm aware of). Have you seen any specific issues that you can point me to that I need to look out for? I'm using this in an app for our company that gathers data from other databases to produce invoices to our clients. This app is used by most of our more than 400 in-house users. Granted they won't all be running the reports that use the pass-through. Thanks, Rusty -----Original Message----- From: Shamil Salakhetdinov [mailto:shamil at users.mns.ru] Sent: Wednesday, February 21, 2007 5:41 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server No problem, Eric, I anyway planned to write a short note here on ADODB and parameterized stored procedures... BTW, for parameterized UDFs ADODB can be also used but the issue with access permissions usually forces to use stored procedures - I mean UDF can't be used with a table if a user does not have access permissions for this table. As for stored procedure - it can be used with a table even if a user does not have access permission to this table - user should only have a permission to execute this stored procedure. Here is an example with parameterized UDF and ADODB - parameters's values in this sample are hardcoded in select expression: Dim cnn As ADODB.Connection Dim strCnn As String Dim cmd As ADODB.Command Dim prm As ADODB.Parameter Dim rst As ADODB.Recordset strCnn = "Provider=sqloledb;Data Source=(local);Initial Catalog=Northwind;Integrated Security=SSPI;" Set cnn = New ADODB.Connection cnn.Open strCnn cnn.CursorLocation = adUseClient Set cmd = New ADODB.Command cmd.CommandType = adCmdText cmd.CommandText = "select * from TotalFreightStats( _ '1996-07-02', '1996-07-12')" cmd.ActiveConnection = cnn.ConnectionString Set rst = cmd.Execute While Not rst.EOF Debug.Print rst(0).Value & " - " & rst(1).Value rst.MoveNext Wend cnn.Close -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Thursday, February 22, 2007 1:51 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Uh..hmmm...Jim and Shamil...I was replying to Colby's question on passing parameters to SQL which was the original thread. Someone suggested pass-thru queries somewhere in the thread. I just happened to reply to the last message in the thread that came from Shamil. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, February 21, 2007 2:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Eric My recommendation is do not use pass-through queries. They are more problem than they are worth as they seem to be an easy quick fix to start with but end up being slow, awkward and unstable. I believe this set of processes was designed to punish newbie developers scaring them off weaning from a MDB BE. MS should have simply remove that whole gambit of functions from Access and never bring them up again in polite company. Now if you want my unvarnished opinion on the subject don't be afraid to ask. :-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Wednesday, February 21, 2007 1:47 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Unfortunately dynamic parameters and sql pass-thru queries don't play well in Access. http://www.utteraccess.com/forums/showflat.php?Board=82&Number=1361479 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, February 21, 2007 1:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Hello John, Let's suppose you use NorthWind sample database and you have to calculate total Freight for a Shipper given from/to dates. I assume you do not use ADPs - if you have used them then you could have created - a stored procedure: ===================== CREATE PROCEDURE usp_TotalFreightStats (@fromDate datetime, @toDate datetime ) AS BEGIN select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName END - or a UDF =========== CREATE FUNCTION TotalFreightStats (@fromDate datetime, @toDate datetime ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN declare @fromDate1 dateTime declare @toDate1 dateTime INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName RETURN END And you could have bound your report to this stored procedure or UDF - on open this report would have requested from/to dates in parameters input dialog. I assume you use mdb and then you can: - create table to keep parameters ================================== CREATE TABLE [dbo].[ParametersForUDFs] ( [fromDate] [datetime] NULL , [toDate] [datetime] NULL ) ON [PRIMARY] GO - populate this table with parameters' values (clear in first) ============================================================= delete from ParametersForUDFs insert into ParametersForUDFs (fromDate, toDate) values ('1996-07-04', '1996-07-12') - create UDF ============ CREATE FUNCTION TotalFreightStats1 ( ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between (select top 1 fromDate from ParametersForUDFs) and (select top 1 toDate from ParametersForUDFs) Group by ShipName RETURN END - use UDF in view ================== CREATE VIEW dbo.vw_TotalFreightStats1 AS SELECT ShipperName, TotalFreight FROM dbo.TotalFreightStats1() TotalFreightStats1 ++++++++++++++++++++++++++++++++++++ - link view to MS Access mdb ++++++++++++++++++++++++++++++++++++ Of course that approach will not work well in multi-user environment if different users will need different from/to dates... -- Shamil ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** From Gustav at cactus.dk Thu Feb 22 09:06:03 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 22 Feb 2007 16:06:03 +0100 Subject: [AccessD] Feeding parameters to SQL Server Message-ID: Hi Rusty You could add a field for a user-id, session-id, timer value or just a random GUID which is set automatically by the app to identify the user or call, and then filter on that. /gustav >>> rusty.hammond at cpiqpc.com 22-02-2007 15:54:19 >>> Shamil, Your earlier example of using a parameter table is interesting but you mention it doesn't work well in a multi-user environment, how would you get around the multi-user issue? Jim/Eric, I dynamically update the pass-through query as the link Eric gave suggests but I haven't run into any stability issues using this method (that I'm aware of). Have you seen any specific issues that you can point me to that I need to look out for? I'm using this in an app for our company that gathers data from other databases to produce invoices to our clients. This app is used by most of our more than 400 in-house users. Granted they won't all be running the reports that use the pass-through. Thanks, Rusty From ebarro at verizon.net Thu Feb 22 09:16:39 2007 From: ebarro at verizon.net (Eric Barro) Date: Thu, 22 Feb 2007 07:16:39 -0800 Subject: [AccessD] Feeding parameters to SQL Server In-Reply-To: <8301C8A868251E4C8ECD3D4FFEA40F8A2584B980@cpixchng-1.cpiqpc.net> Message-ID: <0JDV00B7ZEFSNJS6@vms044.mailsrvcs.net> Here's another approach to feeding parameters to SQL server. http://www.databasejournal.com/features/msaccess/article.php/3567511 This approach involves consuming a web service to return the dataset. This solution eliminates the need to link to the SQL data source which eliminates that overhead. All the work is done on the SQL server side and the all client app needs to do is to "consume" the web service. Web services can return values or datasets. This will also work in an internal network scenario albeit with the need for an internal web server to run the web service. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rusty.hammond at cpiqpc.com Sent: Thursday, February 22, 2007 6:54 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Feeding parameters to SQL Server Shamil, Your earlier example of using a parameter table is interesting but you mention it doesn't work well in a multi-user environment, how would you get around the multi-user issue? Jim/Eric, I dynamically update the pass-through query as the link Eric gave suggests but I haven't run into any stability issues using this method (that I'm aware of). Have you seen any specific issues that you can point me to that I need to look out for? I'm using this in an app for our company that gathers data from other databases to produce invoices to our clients. This app is used by most of our more than 400 in-house users. Granted they won't all be running the reports that use the pass-through. Thanks, Rusty -----Original Message----- From: Shamil Salakhetdinov [mailto:shamil at users.mns.ru] Sent: Wednesday, February 21, 2007 5:41 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server No problem, Eric, I anyway planned to write a short note here on ADODB and parameterized stored procedures... BTW, for parameterized UDFs ADODB can be also used but the issue with access permissions usually forces to use stored procedures - I mean UDF can't be used with a table if a user does not have access permissions for this table. As for stored procedure - it can be used with a table even if a user does not have access permission to this table - user should only have a permission to execute this stored procedure. Here is an example with parameterized UDF and ADODB - parameters's values in this sample are hardcoded in select expression: Dim cnn As ADODB.Connection Dim strCnn As String Dim cmd As ADODB.Command Dim prm As ADODB.Parameter Dim rst As ADODB.Recordset strCnn = "Provider=sqloledb;Data Source=(local);Initial Catalog=Northwind;Integrated Security=SSPI;" Set cnn = New ADODB.Connection cnn.Open strCnn cnn.CursorLocation = adUseClient Set cmd = New ADODB.Command cmd.CommandType = adCmdText cmd.CommandText = "select * from TotalFreightStats( _ '1996-07-02', '1996-07-12')" cmd.ActiveConnection = cnn.ConnectionString Set rst = cmd.Execute While Not rst.EOF Debug.Print rst(0).Value & " - " & rst(1).Value rst.MoveNext Wend cnn.Close -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Thursday, February 22, 2007 1:51 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Uh..hmmm...Jim and Shamil...I was replying to Colby's question on passing parameters to SQL which was the original thread. Someone suggested pass-thru queries somewhere in the thread. I just happened to reply to the last message in the thread that came from Shamil. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, February 21, 2007 2:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Eric My recommendation is do not use pass-through queries. They are more problem than they are worth as they seem to be an easy quick fix to start with but end up being slow, awkward and unstable. I believe this set of processes was designed to punish newbie developers scaring them off weaning from a MDB BE. MS should have simply remove that whole gambit of functions from Access and never bring them up again in polite company. Now if you want my unvarnished opinion on the subject don't be afraid to ask. :-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Wednesday, February 21, 2007 1:47 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Unfortunately dynamic parameters and sql pass-thru queries don't play well in Access. http://www.utteraccess.com/forums/showflat.php?Board=82&Number=1361479 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, February 21, 2007 1:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Hello John, Let's suppose you use NorthWind sample database and you have to calculate total Freight for a Shipper given from/to dates. I assume you do not use ADPs - if you have used them then you could have created - a stored procedure: ===================== CREATE PROCEDURE usp_TotalFreightStats (@fromDate datetime, @toDate datetime ) AS BEGIN select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName END - or a UDF =========== CREATE FUNCTION TotalFreightStats (@fromDate datetime, @toDate datetime ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN declare @fromDate1 dateTime declare @toDate1 dateTime INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName RETURN END And you could have bound your report to this stored procedure or UDF - on open this report would have requested from/to dates in parameters input dialog. I assume you use mdb and then you can: - create table to keep parameters ================================== CREATE TABLE [dbo].[ParametersForUDFs] ( [fromDate] [datetime] NULL , [toDate] [datetime] NULL ) ON [PRIMARY] GO - populate this table with parameters' values (clear in first) ============================================================= delete from ParametersForUDFs insert into ParametersForUDFs (fromDate, toDate) values ('1996-07-04', '1996-07-12') - create UDF ============ CREATE FUNCTION TotalFreightStats1 ( ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between (select top 1 fromDate from ParametersForUDFs) and (select top 1 toDate from ParametersForUDFs) Group by ShipName RETURN END - use UDF in view ================== CREATE VIEW dbo.vw_TotalFreightStats1 AS SELECT ShipperName, TotalFreight FROM dbo.TotalFreightStats1() TotalFreightStats1 ++++++++++++++++++++++++++++++++++++ - link view to MS Access mdb ++++++++++++++++++++++++++++++++++++ Of course that approach will not work well in multi-user environment if different users will need different from/to dates... -- Shamil ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/697 - Release Date: 2/22/2007 11:55 AM From DElam at jenkens.com Thu Feb 22 09:24:54 2007 From: DElam at jenkens.com (Elam, Debbie) Date: Thu, 22 Feb 2007 09:24:54 -0600 Subject: [AccessD] Feeding parameters to SQL Server Message-ID: <7B1961ED924D1A459E378C9B1BB22B4C068DECCF@natexch.jenkens.com> I have had good luck using pass through queries and parameters by using a bit of code I got off of Microsoft's site to dynamically create pass through queries. Instead of writing parameters into the query itself, I create the query with the parameters I want. Saves a lot of headache and pushes more processing off on the server. http://support.microsoft.com/kb/112108 Debbie -----Original Message----- From: Jim Lawrence [mailto:accessd at shaw.ca] Sent: Wednesday, February 21, 2007 4:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Eric My recommendation is do not use pass-through queries. They are more problem than they are worth as they seem to be an easy quick fix to start with but end up being slow, awkward and unstable. I believe this set of processes was designed to punish newbie developers scaring them off weaning from a MDB BE. MS should have simply remove that whole gambit of functions from Access and never bring them up again in polite company. Now if you want my unvarnished opinion on the subject don't be afraid to ask. :-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Wednesday, February 21, 2007 1:47 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Unfortunately dynamic parameters and sql pass-thru queries don't play well in Access. http://www.utteraccess.com/forums/showflat.php?Board=82&Number=1361479 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, February 21, 2007 1:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Hello John, Let's suppose you use NorthWind sample database and you have to calculate total Freight for a Shipper given from/to dates. I assume you do not use ADPs - if you have used them then you could have created - a stored procedure: ===================== CREATE PROCEDURE usp_TotalFreightStats (@fromDate datetime, @toDate datetime ) AS BEGIN select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName END - or a UDF =========== CREATE FUNCTION TotalFreightStats (@fromDate datetime, @toDate datetime ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN declare @fromDate1 dateTime declare @toDate1 dateTime INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName RETURN END And you could have bound your report to this stored procedure or UDF - on open this report would have requested from/to dates in parameters input dialog. I assume you use mdb and then you can: - create table to keep parameters ================================== CREATE TABLE [dbo].[ParametersForUDFs] ( [fromDate] [datetime] NULL , [toDate] [datetime] NULL ) ON [PRIMARY] GO - populate this table with parameters' values (clear in first) ============================================================= delete from ParametersForUDFs insert into ParametersForUDFs (fromDate, toDate) values ('1996-07-04', '1996-07-12') - create UDF ============ CREATE FUNCTION TotalFreightStats1 ( ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between (select top 1 fromDate from ParametersForUDFs) and (select top 1 toDate from ParametersForUDFs) Group by ShipName RETURN END - use UDF in view ================== CREATE VIEW dbo.vw_TotalFreightStats1 AS SELECT ShipperName, TotalFreight FROM dbo.TotalFreightStats1() TotalFreightStats1 ++++++++++++++++++++++++++++++++++++ - link view to MS Access mdb ++++++++++++++++++++++++++++++++++++ Of course that approach will not work well in multi-user environment if different users will need different from/to dates... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, February 21, 2007 10:11 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Well... I dunno. I have a view in SQL Server returning 8 fields, 6K records (currently), completely unfiltered, all records in the table. I pull that linked table into a query in order to do some preliminary filtering - check date between a pair of dates and check number not null. I want the view in sql server to do the "check number not null" for me, and I know how to do that. I want the SQL Server to take a pair of parameters - "From Date" and "To Date" and return only those records. If I could do this, then I could get rid of my "base query" in access which applies these filters, reduce traffic across the wire etc. However even if I do this, the view is not being requested by a form in XP (for example) where some magical thing happens in Access to pass the parameters off to SQL Server. The linked view will be used immediately in another query which joins this view to other tables (on one field - BEID - in the view) in order to build up a set of data for a report. So the "parent" query that is using the view will have to "feed" the parameters to the linked view. Being a nubee to SQL Server I do not even know if what I am attempting to do is possible. I cannot wrap my mind around how a query that is using a view can know that the view needs parameters, and if it did, what to feed it. If it is possible, I have never done so obviously, so I don't even have the basics of what to set in Access to do the parameter passing. John W. Colby Colby Consulting www.ColbyConsulting.com <<< tail skipped >>> -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/694 - Release Date: 2/20/2007 1:44 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 jim.moss at jlmoss.net Thu Feb 22 10:02:01 2007 From: jim.moss at jlmoss.net (Jim Moss) Date: Thu, 22 Feb 2007 10:02:01 -0600 (CST) Subject: [AccessD] Feeding parameters to SQL Server In-Reply-To: <7B1961ED924D1A459E378C9B1BB22B4C068DECCF@natexch.jenkens.com> References: <7B1961ED924D1A459E378C9B1BB22B4C068DECCF@natexch.jenkens.com> Message-ID: <25358.65.196.182.34.1172160121.squirrel@65.196.182.34> I too have had good luck using pass thrus that aren't slow and haven't exhibited any instability issues. Databases were converted from Access Jet to SQL 2005 about 10 months ago, have grown from around 500 and 600 mb to a little over 2 gb with appx 80 - 90 users. My pass thrus are built in vba from an idea I got from AccessMonster.com Jim > I have had good luck using pass through queries and parameters by using a > bit of code I got off of Microsoft's site to dynamically create pass > through > queries. Instead of writing parameters into the query itself, I create > the > query with the parameters I want. Saves a lot of headache and pushes more > processing off on the server. > http://support.microsoft.com/kb/112108 > > Debbie > > -----Original Message----- > From: Jim Lawrence [mailto:accessd at shaw.ca] > Sent: Wednesday, February 21, 2007 4:48 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Feeding parameters to SQL Server > > > Eric > > My recommendation is do not use pass-through queries. They are more > problem > than they are worth as they seem to be an easy quick fix to start with but > end up being slow, awkward and unstable. > > I believe this set of processes was designed to punish newbie developers > scaring them off weaning from a MDB BE. MS should have simply remove that > whole gambit of functions from Access and never bring them up again in > polite company. > > Now if you want my unvarnished opinion on the subject don't be afraid to > ask. :-) > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro > Sent: Wednesday, February 21, 2007 1:47 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Feeding parameters to SQL Server > > Unfortunately dynamic parameters and sql pass-thru queries don't play well > in Access. > > http://www.utteraccess.com/forums/showflat.php?Board=82&Number=1361479 > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil > Salakhetdinov > Sent: Wednesday, February 21, 2007 1:00 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Feeding parameters to SQL Server > > Hello John, > > Let's suppose you use NorthWind sample database and you have to calculate > total Freight for a Shipper given from/to dates. > > I assume you do not use ADPs - if you have used them then you could have > created > > - a stored procedure: > ===================== > > CREATE PROCEDURE usp_TotalFreightStats (@fromDate datetime, @toDate > datetime > ) > AS > BEGIN > select ShipName, Sum(Freight) as FreightTotal > from Orders > where Orders.OrderDate between @fromDate and @toDate > Group by ShipName > END > > - or a UDF > =========== > CREATE FUNCTION TotalFreightStats (@fromDate datetime, @toDate datetime ) > RETURNS @TotalFreightStatsTable TABLE > ( > ShipperName nvarchar(80), > TotalFreight money > ) > AS > BEGIN > declare @fromDate1 dateTime > declare @toDate1 dateTime > INSERT @TotalFreightStatsTable > select ShipName, Sum(Freight) as FreightTotal > from Orders > where Orders.OrderDate between @fromDate and @toDate > Group by ShipName > RETURN > END > > And you could have bound your report to this stored procedure or UDF - on > open this report would have requested from/to dates in parameters input > dialog. > > I assume you use mdb and then you can: > > - create table to keep parameters > ================================== > > CREATE TABLE [dbo].[ParametersForUDFs] ( > [fromDate] [datetime] NULL , > [toDate] [datetime] NULL > ) ON [PRIMARY] > GO > > - populate this table with parameters' values (clear in first) > ============================================================= > > delete from ParametersForUDFs > insert into ParametersForUDFs (fromDate, toDate) values ('1996-07-04', > '1996-07-12') > > - create UDF > ============ > > CREATE FUNCTION TotalFreightStats1 ( ) > RETURNS @TotalFreightStatsTable TABLE > ( > ShipperName nvarchar(80), > TotalFreight money > ) > AS > BEGIN > INSERT @TotalFreightStatsTable > select ShipName, Sum(Freight) as FreightTotal > from Orders > where Orders.OrderDate > between (select top 1 fromDate from ParametersForUDFs) > and (select top 1 toDate from ParametersForUDFs) > Group by ShipName > RETURN > END > > - use UDF in view > ================== > > CREATE VIEW dbo.vw_TotalFreightStats1 > AS > SELECT ShipperName, TotalFreight > FROM dbo.TotalFreightStats1() TotalFreightStats1 > > ++++++++++++++++++++++++++++++++++++ > - link view to MS Access mdb > ++++++++++++++++++++++++++++++++++++ > > Of course that approach will not work well in multi-user environment if > different users will need different from/to dates... > > > -- > Shamil > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby > Sent: Wednesday, February 21, 2007 10:11 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Feeding parameters to SQL Server > > Well... I dunno. > > I have a view in SQL Server returning 8 fields, 6K records (currently), > completely unfiltered, all records in the table. I pull that linked table > into a query in order to do some preliminary filtering - check date > between > a pair of dates and check number not null. > > I want the view in sql server to do the "check number not null" for me, > and > I know how to do that. > > I want the SQL Server to take a pair of parameters - "From Date" and "To > Date" and return only those records. > > If I could do this, then I could get rid of my "base query" in access > which > applies these filters, reduce traffic across the wire etc. However even > if > I do this, the view is not being requested by a form in XP (for example) > where some magical thing happens in Access to pass the parameters off to > SQL > Server. The linked view will be used immediately in another query which > joins this view to other tables (on one field - BEID - in the view) in > order > to build up a set of data for a report. > > So the "parent" query that is using the view will have to "feed" the > parameters to the linked view. Being a nubee to SQL Server I do not even > know if what I am attempting to do is possible. I cannot wrap my mind > around how a query that is using a view can know that the view needs > parameters, and if it did, what to feed it. If it is possible, I have > never > done so obviously, so I don't even have the basics of what to set in > Access > to do the parameter passing. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > <<< tail skipped >>> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.441 / Virus Database: 268.18.3/694 - Release Date: 2/20/2007 > 1:44 PM > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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. > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rockysmolin at bchacc.com Thu Feb 22 10:48:44 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Thu, 22 Feb 2007 08:48:44 -0800 Subject: [AccessD] FW: Basic Question Message-ID: <008901c756a1$50d77790$0201a8c0@HAL9005> >From a colleague. Any ideas on this? TIA Rocky _____ From: Mike Dwyer [mailto:mike at aesadvantage.net] Sent: Thursday, February 22, 2007 12:13 AM To: bheygood at abestsystems.com; Dixon; Barry Hynum; Bob_Heygood; Doug Murphy; Ed Lance; Jackie Murphy; JKA Joe K Anderson; Rocky Smolin Subject: Basic Question Ok, this is Access 101 but I must be having a mental moment. If I use a function instead of an event procedure for BeforeUpdate, can that function return a value that cancels the update? I have a form with 120 fields on it (lots of tabs). I don't want 120 event procedures for each BeforeUpdate and I don't want 120 event procedures for AfterUpdate. I would like to select all 120 fields and set the BeforeUpdate property to something like =BeforeUpdate(). This works great for AfterUpdate, however, when I set it for the BeforeUpdate property, returning a value from this function doesn't cancel the edit. Is this possible? -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/696 - Release Date: 2/21/2007 3:19 PM From Gustav at cactus.dk Thu Feb 22 11:02:34 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 22 Feb 2007 18:02:34 +0100 Subject: [AccessD] FW: Basic Question Message-ID: Hi Rocky No, that is not possible - and it was a major drawback in Access 1.x which didn't have code-behind-form modules. What you are asking for is WithEvents. Shamil and JC have posted repeatedly on this subject and I believe an article is on the dba site. /gustav >>> rockysmolin at bchacc.com 22-02-2007 17:48:44 >>> >From a colleague. Any ideas on this? TIA Rocky _____ From: Mike Dwyer [mailto:mike at aesadvantage.net] Sent: Thursday, February 22, 2007 12:13 AM To: bheygood at abestsystems.com; Dixon; Barry Hynum; Bob_Heygood; Doug Murphy; Ed Lance; Jackie Murphy; JKA Joe K Anderson; Rocky Smolin Subject: Basic Question Ok, this is Access 101 but I must be having a mental moment. If I use a function instead of an event procedure for BeforeUpdate, can that function return a value that cancels the update? I have a form with 120 fields on it (lots of tabs). I don't want 120 event procedures for each BeforeUpdate and I don't want 120 event procedures for AfterUpdate. I would like to select all 120 fields and set the BeforeUpdate property to something like =BeforeUpdate(). This works great for AfterUpdate, however, when I set it for the BeforeUpdate property, returning a value from this function doesn't cancel the edit. Is this possible? From jwcolby at colbyconsulting.com Thu Feb 22 11:08:50 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Thu, 22 Feb 2007 12:08:50 -0500 Subject: [AccessD] FW: Basic Question In-Reply-To: <008901c756a1$50d77790$0201a8c0@HAL9005> Message-ID: <000001c756a4$1fd9c820$657aa8c0@m6805> Interesting question. Since BeforeUpdate has a cancel parameter, I would attempt to pass in myfunction(Cancel as integer) to the function being called and see if the returned value in cancel does indeed cancel the update. I have never tried - see below... I have to say I find using functions in event properties to be bad practice. The reason is that unless you use a search program such as Rick Fisher's "find and replace", it is almost impossible to tell where that function is used. IOW, you do a compile of the code it all compiles. You look at the function and do a search on the function name. It isn't used anywhere (in code). You say to yourself "self, this isn't used so I can delete it". You delete it. Your user discovers this six months later when he finally happens to activate that specific object / event. Light weight forms are great in theory, and great if there really isn't any event handling that needs to be done. If there is, then I say just use code behind forms to handle the events. IMHO, these kinds of "innovations" were designed for the days of yore when we ran 100 MHz Pentiums in 64 m of ram and needed all the help we could get, both in memory footprint and application load / execution speed. With a 2 GHz proc and a gig of ram, do you really think your user will know you are using a light weight form? To be quite honest, a class to handle the control, and a form class with a control scanner to find and load the control classes sounds like the ticket. Then the event works exactly as advertised, because it is sunk exactly as it was intended. Hmm... Sounds like the beginning of a framework to me. ;-) John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Thursday, February 22, 2007 11:49 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Basic Question >From a colleague. Any ideas on this? TIA Rocky _____ From: Mike Dwyer [mailto:mike at aesadvantage.net] Sent: Thursday, February 22, 2007 12:13 AM To: bheygood at abestsystems.com; Dixon; Barry Hynum; Bob_Heygood; Doug Murphy; Ed Lance; Jackie Murphy; JKA Joe K Anderson; Rocky Smolin Subject: Basic Question Ok, this is Access 101 but I must be having a mental moment. If I use a function instead of an event procedure for BeforeUpdate, can that function return a value that cancels the update? I have a form with 120 fields on it (lots of tabs). I don't want 120 event procedures for each BeforeUpdate and I don't want 120 event procedures for AfterUpdate. I would like to select all 120 fields and set the BeforeUpdate property to something like =BeforeUpdate(). This works great for AfterUpdate, however, when I set it for the BeforeUpdate property, returning a value from this function doesn't cancel the edit. Is this possible? -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/696 - Release Date: 2/21/2007 3:19 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwelz at hotmail.com Thu Feb 22 11:17:31 2007 From: jwelz at hotmail.com (Jurgen Welz) Date: Thu, 22 Feb 2007 10:17:31 -0700 Subject: [AccessD] MDB to SQL Server In-Reply-To: <001e01c75636$386d0500$9258eb44@50NM721> Message-ID: William: I ran such a design for a law office database and what killed performance was the sheer number of records in something like a phone number table. If for example, we stored the home phone number in an employee record, pulling the phone number from a 20 employee record table was trivial. However, culling the number from a table that includes those numbers together with all the company, client and other records that included fax, pager, cell, alternate address numbers etc, well now the table has 20,000 records. Yes the phone numbers were stored in a sub form, but the usual use involved looking up an entity with the purpose of contacting them. I truly appreciated the functionality of the design. If I entered a phone number that existed, I immediately knew something about the relationship implied between the current entitiy and the entity that shared the phone number. And changing the number where someone else had the same number implied additional information, though in fact, the numbers were never changed, but just deactivated and new numbers added. Very important in proving notice and communications in a law office environment. Bottom line for me was that displaying a record took several times as long as a flatter data design. I am afraid that applying the structure in my current environment will result in a significant performance hit and this is the primary issue I've been asked to address. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: "William Hindman" > >Jurgen > >"As much as I'd love to have a table of phone numbers, with a table >of number types, and addresses and address types, and relate them to a >single table of entities of both corporate and people types, in all their >permutations and combinations, this has proved to be far slower than having >a separate table of corporate and individual entities and just keeping >phone >numbers and addresses with them." > >...this is the template I moved to more than two years ago ...what I've >found is that the address info and contact means are not required for most >processes and fully normalizing them with fk to a super entity ID allows me >to call them only when required rather than every time a contact or company >record is called ...I display them only in JIT subforms when needed ...and >that makes the critical data records much shorter and thus quicker to >process ...while some processes take more time to accomplish, the overall >application performance is at least as good as the prior approach ...the >overall size of the first database I did this with dropped considerably >because of the "full" data normalization ...ie, instead of having >Loxahatchee, Fl, USA, 33470, lat, long repeated in numerous company and >contact records it now exists only once in the db. > >...one of the drivers behind adopting this approach was the ease it >provides >in deterring user data entry errors and thus the money it saves in >marketing >campaigns ...the returned mail has dropped drastically. > >...I don't pretend to have your expertise in Access but based upon my own >experience with that data model, I can't say that my results match what you >posited as a far slower performance. > >William Hindman _________________________________________________________________ Free Alerts?: Be smart - let your information find you?! http://alerts.live.com/Alerts/Default.aspx From artful at rogers.com Thu Feb 22 11:20:02 2007 From: artful at rogers.com (artful at rogers.com) Date: Thu, 22 Feb 2007 09:20:02 -0800 (PST) Subject: [AccessD] FW: Basic Question Message-ID: <585304.77075.qm@web88207.mail.re2.yahoo.com> I've used this technique quite a bit. What I typically do is create a procedure in the typical way, so that I obtain its parameters -- Cancel as int, etc. Then I take the code from the procedure and turn it into a function. The function uses the same parameter list. Once that is done, I can call the function as your friend shows below. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Rocky Smolin at Beach Access Software To: Access Developers discussion and problem solving Sent: Thursday, February 22, 2007 11:48:44 AM Subject: [AccessD] FW: Basic Question >From a colleague. Any ideas on this? TIA Rocky _____ From: Mike Dwyer [mailto:mike at aesadvantage.net] Sent: Thursday, February 22, 2007 12:13 AM To: bheygood at abestsystems.com; Dixon; Barry Hynum; Bob_Heygood; Doug Murphy; Ed Lance; Jackie Murphy; JKA Joe K Anderson; Rocky Smolin Subject: Basic Question Ok, this is Access 101 but I must be having a mental moment. If I use a function instead of an event procedure for BeforeUpdate, can that function return a value that cancels the update? I have a form with 120 fields on it (lots of tabs). I don't want 120 event procedures for each BeforeUpdate and I don't want 120 event procedures for AfterUpdate. I would like to select all 120 fields and set the BeforeUpdate property to something like =BeforeUpdate(). This works great for AfterUpdate, however, when I set it for the BeforeUpdate property, returning a value from this function doesn't cancel the edit. Is this possible? -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/696 - Release Date: 2/21/2007 3:19 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DElam at jenkens.com Thu Feb 22 11:23:13 2007 From: DElam at jenkens.com (Elam, Debbie) Date: Thu, 22 Feb 2007 11:23:13 -0600 Subject: [AccessD] FW: Basic Question Message-ID: <7B1961ED924D1A459E378C9B1BB22B4C068DECD3@natexch.jenkens.com> Will On Dirty work for what he wants? Debbie -----Original Message----- From: Rocky Smolin at Beach Access Software [mailto:rockysmolin at bchacc.com] Sent: Thursday, February 22, 2007 10:49 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Basic Question >From a colleague. Any ideas on this? TIA Rocky _____ From: Mike Dwyer [mailto:mike at aesadvantage.net] Sent: Thursday, February 22, 2007 12:13 AM To: bheygood at abestsystems.com; Dixon; Barry Hynum; Bob_Heygood; Doug Murphy; Ed Lance; Jackie Murphy; JKA Joe K Anderson; Rocky Smolin Subject: Basic Question Ok, this is Access 101 but I must be having a mental moment. If I use a function instead of an event procedure for BeforeUpdate, can that function return a value that cancels the update? I have a form with 120 fields on it (lots of tabs). I don't want 120 event procedures for each BeforeUpdate and I don't want 120 event procedures for AfterUpdate. I would like to select all 120 fields and set the BeforeUpdate property to something like =BeforeUpdate(). This works great for AfterUpdate, however, when I set it for the BeforeUpdate property, returning a value from this function doesn't cancel the edit. Is this possible? -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/696 - Release Date: 2/21/2007 3:19 PM -- 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 mwp.reid at qub.ac.uk Thu Feb 22 11:23:25 2007 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Thu, 22 Feb 2007 17:23:25 -0000 Subject: [AccessD] MDB to SQL Server References: Message-ID: Jurgen You ever considered local caching of records on the users PC for data that may not change much? Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From rockysmolin at bchacc.com Thu Feb 22 11:39:06 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Thu, 22 Feb 2007 09:39:06 -0800 Subject: [AccessD] FW: Basic Question In-Reply-To: Message-ID: <00a901c756a8$5a028ec0$0201a8c0@HAL9005> Will forward. Thanks. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, February 22, 2007 9:03 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] FW: Basic Question Hi Rocky No, that is not possible - and it was a major drawback in Access 1.x which didn't have code-behind-form modules. What you are asking for is WithEvents. Shamil and JC have posted repeatedly on this subject and I believe an article is on the dba site. /gustav >>> rockysmolin at bchacc.com 22-02-2007 17:48:44 >>> >From a colleague. Any ideas on this? TIA Rocky _____ From: Mike Dwyer [mailto:mike at aesadvantage.net] Sent: Thursday, February 22, 2007 12:13 AM To: bheygood at abestsystems.com; Dixon; Barry Hynum; Bob_Heygood; Doug Murphy; Ed Lance; Jackie Murphy; JKA Joe K Anderson; Rocky Smolin Subject: Basic Question Ok, this is Access 101 but I must be having a mental moment. If I use a function instead of an event procedure for BeforeUpdate, can that function return a value that cancels the update? I have a form with 120 fields on it (lots of tabs). I don't want 120 event procedures for each BeforeUpdate and I don't want 120 event procedures for AfterUpdate. I would like to select all 120 fields and set the BeforeUpdate property to something like =BeforeUpdate(). This works great for AfterUpdate, however, when I set it for the BeforeUpdate property, returning a value from this function doesn't cancel the edit. Is this possible? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/696 - Release Date: 2/21/2007 3:19 PM From jwelz at hotmail.com Thu Feb 22 11:40:51 2007 From: jwelz at hotmail.com (Jurgen Welz) Date: Thu, 22 Feb 2007 10:40:51 -0700 Subject: [AccessD] MDB to SQL Server In-Reply-To: Message-ID: Gustav: I fully expect that this is part of the problem and I am certainly not afraid of temp tables. You can create a temp database for this purpose on the fly and that is my preferred approach for temp tables. Part of the problem with the flexible queries is that I need to report fields from some of the various tables. I generally export these kinds of report directly to Excel rather than using Access reporting. I had previously mentioned the 'too many databases' error and am looking at ways to cut the number of connections even further. At one point I had 3 forms that could not be opened at the same time but I resolved that issue by adding callbacks for all combos that had rowsources with fewer than 100 records. No doubt such a message would be an indication that it is time to remove some information from those screens and maybe move some of the data to more tabbed sub forms. I doubt that much optimization can be done by JET or whatever database engine if a variety of queries are joined ad hoc in a mix of equal and unequal joins. I can do some playing with using temp tables and will work with that. A temp table that just contains active projects and current active related companies could provide a massive boost in performance. The problem is that if I bind to that and fire updates with a dbExecute, I'm effectively running unbound and need to manage record locking. I will definitely give this some thought. Of course reporting (to screen in a form) and adding/updating data are two different issues. Up to this point, I've not needed to distinguish much between the two. I've always tried to make things as flexible and convenient as possible in terms of allowing data to be located and updated no matter where it is seen. I generally allow related data to be edited in subforms without the need to open a parent form viewing only the related data. I just received a forwarded email from IT to my boss that SQL Server will be an option, but that with the move from 2 to 4 newer and faster servers, we would adopt a wait and see attitude. For the time being, I will do a number of minor things to fine tune performance. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: "Gustav Brock" > >Hi J?rgen > >Maybe that is part of your problem. I often use one a main query joined >with different subqueries, each saved as a new query that the report pulls >data from - which query to be used is set by the code than runs the report. > >However, often this can be boiled down to 1) define the selection of ID to >pull, 2) pull the "real" data for that selection of IDs. >A lot of time can be saved if the selection if IDs is written to a temp >table which then is inner joined to select and extract the real data. > >I remember on example on reporting taxes to the authorities on liquors >delivered, based on both percentage of alcohol and the type of liquors as >well as rates varying over time. A nice setup of queries fixed it perfectly >but it took "ages" to run. By using one temp table I cut minutes to >seconds. >I know many refrain from temp tables because they are scared of bloating >the mdb (avoid that by using a separate local temp database you recreate >each time the user launches the app) but most (all?) SQL server engines >feature automatic maintenance of temp tables. > >/gustav > > >>> jwelz at hotmail.com 22-02-2007 04:05:23 >>> > >.. Same report but involving joins, and sometimes equal and other times >unequal joins to an indeterminate variety of tables. Sometimes 1 table, >sometimes 5 or 6, sometimes with parameters on some fields, at other times >with parameters on other fields. I couldn't imagine doing this with saved >queries. _________________________________________________________________ Don?t waste time standing in line?try shopping online. Visit Sympatico / MSN Shopping today! http://shopping.sympatico.msn.ca From rockysmolin at bchacc.com Thu Feb 22 11:41:56 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Thu, 22 Feb 2007 09:41:56 -0800 Subject: [AccessD] FW: Basic Question In-Reply-To: <000001c756a4$1fd9c820$657aa8c0@m6805> Message-ID: <00b401c756a8$bf51c4d0$0201a8c0@HAL9005> Will forward - Thank you. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, February 22, 2007 9:09 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Basic Question Interesting question. Since BeforeUpdate has a cancel parameter, I would attempt to pass in myfunction(Cancel as integer) to the function being called and see if the returned value in cancel does indeed cancel the update. I have never tried - see below... I have to say I find using functions in event properties to be bad practice. The reason is that unless you use a search program such as Rick Fisher's "find and replace", it is almost impossible to tell where that function is used. IOW, you do a compile of the code it all compiles. You look at the function and do a search on the function name. It isn't used anywhere (in code). You say to yourself "self, this isn't used so I can delete it". You delete it. Your user discovers this six months later when he finally happens to activate that specific object / event. Light weight forms are great in theory, and great if there really isn't any event handling that needs to be done. If there is, then I say just use code behind forms to handle the events. IMHO, these kinds of "innovations" were designed for the days of yore when we ran 100 MHz Pentiums in 64 m of ram and needed all the help we could get, both in memory footprint and application load / execution speed. With a 2 GHz proc and a gig of ram, do you really think your user will know you are using a light weight form? To be quite honest, a class to handle the control, and a form class with a control scanner to find and load the control classes sounds like the ticket. Then the event works exactly as advertised, because it is sunk exactly as it was intended. Hmm... Sounds like the beginning of a framework to me. ;-) John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Thursday, February 22, 2007 11:49 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Basic Question >From a colleague. Any ideas on this? TIA Rocky _____ From: Mike Dwyer [mailto:mike at aesadvantage.net] Sent: Thursday, February 22, 2007 12:13 AM To: bheygood at abestsystems.com; Dixon; Barry Hynum; Bob_Heygood; Doug Murphy; Ed Lance; Jackie Murphy; JKA Joe K Anderson; Rocky Smolin Subject: Basic Question Ok, this is Access 101 but I must be having a mental moment. If I use a function instead of an event procedure for BeforeUpdate, can that function return a value that cancels the update? I have a form with 120 fields on it (lots of tabs). I don't want 120 event procedures for each BeforeUpdate and I don't want 120 event procedures for AfterUpdate. I would like to select all 120 fields and set the BeforeUpdate property to something like =BeforeUpdate(). This works great for AfterUpdate, however, when I set it for the BeforeUpdate property, returning a value from this function doesn't cancel the edit. Is this possible? -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/696 - Release Date: 2/21/2007 3:19 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/696 - Release Date: 2/21/2007 3:19 PM From rockysmolin at bchacc.com Thu Feb 22 11:42:06 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Thu, 22 Feb 2007 09:42:06 -0800 Subject: [AccessD] FW: Basic Question In-Reply-To: <585304.77075.qm@web88207.mail.re2.yahoo.com> Message-ID: <00b501c756a8$c59b1d00$0201a8c0@HAL9005> Forwarding - Thanks. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Thursday, February 22, 2007 9:20 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FW: Basic Question I've used this technique quite a bit. What I typically do is create a procedure in the typical way, so that I obtain its parameters -- Cancel as int, etc. Then I take the code from the procedure and turn it into a function. The function uses the same parameter list. Once that is done, I can call the function as your friend shows below. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Rocky Smolin at Beach Access Software To: Access Developers discussion and problem solving Sent: Thursday, February 22, 2007 11:48:44 AM Subject: [AccessD] FW: Basic Question >From a colleague. Any ideas on this? TIA Rocky _____ From: Mike Dwyer [mailto:mike at aesadvantage.net] Sent: Thursday, February 22, 2007 12:13 AM To: bheygood at abestsystems.com; Dixon; Barry Hynum; Bob_Heygood; Doug Murphy; Ed Lance; Jackie Murphy; JKA Joe K Anderson; Rocky Smolin Subject: Basic Question Ok, this is Access 101 but I must be having a mental moment. If I use a function instead of an event procedure for BeforeUpdate, can that function return a value that cancels the update? I have a form with 120 fields on it (lots of tabs). I don't want 120 event procedures for each BeforeUpdate and I don't want 120 event procedures for AfterUpdate. I would like to select all 120 fields and set the BeforeUpdate property to something like =BeforeUpdate(). This works great for AfterUpdate, however, when I set it for the BeforeUpdate property, returning a value from this function doesn't cancel the edit. Is this possible? -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/696 - Release Date: 2/21/2007 3:19 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/696 - Release Date: 2/21/2007 3:19 PM From rockysmolin at bchacc.com Thu Feb 22 11:43:03 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Thu, 22 Feb 2007 09:43:03 -0800 Subject: [AccessD] FW: Basic Question In-Reply-To: <7B1961ED924D1A459E378C9B1BB22B4C068DECD3@natexch.jenkens.com> Message-ID: <00b601c756a8$e7d774e0$0201a8c0@HAL9005> I'll ask. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Elam, Debbie Sent: Thursday, February 22, 2007 9:23 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Basic Question Will On Dirty work for what he wants? Debbie -----Original Message----- From: Rocky Smolin at Beach Access Software [mailto:rockysmolin at bchacc.com] Sent: Thursday, February 22, 2007 10:49 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Basic Question >From a colleague. Any ideas on this? TIA Rocky _____ From: Mike Dwyer [mailto:mike at aesadvantage.net] Sent: Thursday, February 22, 2007 12:13 AM To: bheygood at abestsystems.com; Dixon; Barry Hynum; Bob_Heygood; Doug Murphy; Ed Lance; Jackie Murphy; JKA Joe K Anderson; Rocky Smolin Subject: Basic Question Ok, this is Access 101 but I must be having a mental moment. If I use a function instead of an event procedure for BeforeUpdate, can that function return a value that cancels the update? I have a form with 120 fields on it (lots of tabs). I don't want 120 event procedures for each BeforeUpdate and I don't want 120 event procedures for AfterUpdate. I would like to select all 120 fields and set the BeforeUpdate property to something like =BeforeUpdate(). This works great for AfterUpdate, however, when I set it for the BeforeUpdate property, returning a value from this function doesn't cancel the edit. Is this possible? -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/696 - Release Date: 2/21/2007 3:19 PM -- 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. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/696 - Release Date: 2/21/2007 3:19 PM From Gustav at cactus.dk Thu Feb 22 11:52:22 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 22 Feb 2007 18:52:22 +0100 Subject: [AccessD] MDB to SQL Server Message-ID: Hi J?rgen OK. Please keep us posted on any progress you may achieve. /gustav >>> jwelz at hotmail.com 22-02-2007 18:40:51 >>> Gustav: I fully expect that this is part of the problem and I am certainly not afraid of temp tables. You can create a temp database for this purpose on the fly and that is my preferred approach for temp tables. Part of the problem with the flexible queries is that I need to report fields from some of the various tables. I generally export these kinds of report directly to Excel rather than using Access reporting. I had previously mentioned the 'too many databases' error and am looking at ways to cut the number of connections even further. At one point I had 3 forms that could not be opened at the same time but I resolved that issue by adding callbacks for all combos that had rowsources with fewer than 100 records. No doubt such a message would be an indication that it is time to remove some information from those screens and maybe move some of the data to more tabbed sub forms. I doubt that much optimization can be done by JET or whatever database engine if a variety of queries are joined ad hoc in a mix of equal and unequal joins. I can do some playing with using temp tables and will work with that. A temp table that just contains active projects and current active related companies could provide a massive boost in performance. The problem is that if I bind to that and fire updates with a dbExecute, I'm effectively running unbound and need to manage record locking. I will definitely give this some thought. Of course reporting (to screen in a form) and adding/updating data are two different issues. Up to this point, I've not needed to distinguish much between the two. I've always tried to make things as flexible and convenient as possible in terms of allowing data to be located and updated no matter where it is seen. I generally allow related data to be edited in subforms without the need to open a parent form viewing only the related data. I just received a forwarded email from IT to my boss that SQL Server will be an option, but that with the move from 2 to 4 newer and faster servers, we would adopt a wait and see attitude. For the time being, I will do a number of minor things to fine tune performance. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: "Gustav Brock" > >Hi J?rgen > >Maybe that is part of your problem. I often use one a main query joined >with different subqueries, each saved as a new query that the report pulls >data from - which query to be used is set by the code than runs the report. > >However, often this can be boiled down to 1) define the selection of ID to >pull, 2) pull the "real" data for that selection of IDs. >A lot of time can be saved if the selection if IDs is written to a temp >table which then is inner joined to select and extract the real data. > >I remember on example on reporting taxes to the authorities on liquors >delivered, based on both percentage of alcohol and the type of liquors as >well as rates varying over time. A nice setup of queries fixed it perfectly >but it took "ages" to run. By using one temp table I cut minutes to >seconds. >I know many refrain from temp tables because they are scared of bloating >the mdb (avoid that by using a separate local temp database you recreate >each time the user launches the app) but most (all?) SQL server engines >feature automatic maintenance of temp tables. > >/gustav > > >>> jwelz at hotmail.com 22-02-2007 04:05:23 >>> > >.. Same report but involving joins, and sometimes equal and other times >unequal joins to an indeterminate variety of tables. Sometimes 1 table, >sometimes 5 or 6, sometimes with parameters on some fields, at other times >with parameters on other fields. I couldn't imagine doing this with saved >queries. From ssharkins at setel.com Thu Feb 22 11:52:57 2007 From: ssharkins at setel.com (Susan Harkins) Date: Thu, 22 Feb 2007 12:52:57 -0500 Subject: [AccessD] FW: Basic Question In-Reply-To: <00b601c756a8$e7d774e0$0201a8c0@HAL9005> Message-ID: <000701c756aa$4ae88550$22b82ad1@SUSANONE> Will On Dirty work for what he wants? ======Someone please correct me if I'm wrong -- but Dirty will fire with all changes -- including entering new data, while Before Update only fires if existing data changes. Susan H. From rockysmolin at bchacc.com Thu Feb 22 12:02:01 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Thu, 22 Feb 2007 10:02:01 -0800 Subject: [AccessD] FW: Basic Question Message-ID: <00d701c756ab$8e541560$0201a8c0@HAL9005> FYI - Here's the workaround he came up with Rocky _____ From: Mike Dwyer [mailto:mike at aesadvantage.net] Sent: Thursday, February 22, 2007 9:58 AM To: Rocky Smolin; bheygood at abestsystems.com; Dixon; Barry Hynum; Bob_Heygood; Doug Murphy; Ed Lance; Jackie Murphy; JKA Joe K Anderson Subject: RE: Basic Question Thanks, Rocky. My workaround seems to be nice and simple: I selected all 120 fields and in the Property Sheet I entered: "BeforeUpdate() = True" in the ValidationRule property. This will call the function and if it returns False, the validation rule will fail. Within the function I set the ValidationText to my error message and it works just fine. From markamatte at hotmail.com Thu Feb 22 12:10:39 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 22 Feb 2007 18:10:39 +0000 Subject: [AccessD] FW: Basic Question In-Reply-To: <00d701c756ab$8e541560$0201a8c0@HAL9005> Message-ID: How do you put a set the BeforeUpdate to a function...I thought you could either pick [Event Procedure] or the name of a macro? Thanks, Mark >From: "Rocky Smolin at Beach Access Software" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: [AccessD] FW: Basic Question >Date: Thu, 22 Feb 2007 10:02:01 -0800 > >FYI - Here's the workaround he came up with > >Rocky > > > _____ > >From: Mike Dwyer [mailto:mike at aesadvantage.net] >Sent: Thursday, February 22, 2007 9:58 AM >To: Rocky Smolin; bheygood at abestsystems.com; Dixon; Barry Hynum; >Bob_Heygood; Doug Murphy; Ed Lance; Jackie Murphy; JKA Joe K Anderson >Subject: RE: Basic Question > > > >Thanks, Rocky. > >My workaround seems to be nice and simple: I selected all 120 fields and >in >the Property Sheet I entered: "BeforeUpdate() = True" in the ValidationRule >property. This will call the function and if it returns False, the >validation rule will fail. Within the function I set the ValidationText to >my error message and it works just fine. > > > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Find what you need at prices you?ll love. Compare products and save at MSN? Shopping. http://shopping.msn.com/default/shp/?ptnrid=37,ptnrdata=24102&tcode=T001MSN20A0701 From Gustav at cactus.dk Thu Feb 22 12:21:24 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 22 Feb 2007 19:21:24 +0100 Subject: [AccessD] FW: Basic Question Message-ID: Hi Rocky Oh, that will work, I thought he was trying to achieve something else. /gustav >>> rockysmolin at bchacc.com 22-02-2007 19:02:01 >>> FYI - Here's the workaround he came up with Rocky _____ From: Mike Dwyer [mailto:mike at aesadvantage.net] Sent: Thursday, February 22, 2007 9:58 AM To: Rocky Smolin; bheygood at abestsystems.com; Dixon; Barry Hynum; Bob_Heygood; Doug Murphy; Ed Lance; Jackie Murphy; JKA Joe K Anderson Subject: RE: Basic Question Thanks, Rocky. My workaround seems to be nice and simple: I selected all 120 fields and in the Property Sheet I entered: "BeforeUpdate() = True" in the ValidationRule property. This will call the function and if it returns False, the validation rule will fail. Within the function I set the ValidationText to my error message and it works just fine. From jwelz at hotmail.com Thu Feb 22 14:47:54 2007 From: jwelz at hotmail.com (Jurgen Welz) Date: Thu, 22 Feb 2007 13:47:54 -0700 Subject: [AccessD] MDB to SQL Server In-Reply-To: Message-ID: Martin: No local PCs exist. Everyone currently logs on to one of two terminal servers reserved for our use. The data resides on a gigabit connected server with really fast drives. All users see performance similar to what I see on a gaming system laptop running purely local data with exclusive access to the data file. I suppose I could try caching to the application server. Caching locally would cut out the gigabit LAN and prove how much faster the heavy iron is than my laptop, but I would then need to select to run unbound locally and operate read only, connecting bound to the actual data when needing to add/edit data. It is certainly worthy of consideration. This is akin to Arthur's suggestion, which would involve replication. I will try importing all the data to an FE on the server I use, lose the links to the shared file and see what the maximum benefit of such an approach would be. I'm not convinced I will see much difference, but it would be a benchmark of what can be attained. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: "Martin Reid" > >Jurgen > >You ever considered local caching of records on the users PC for data that >may not change much? > >Martin > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 _________________________________________________________________ Your Space. Your Friends. Your Stories. Share your world with Windows Live Spaces. http://spaces.live.com/?mkt=en-ca From shamil at users.mns.ru Thu Feb 22 15:36:28 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Fri, 23 Feb 2007 00:36:28 +0300 Subject: [AccessD] Feeding parameters to SQL Server In-Reply-To: <8301C8A868251E4C8ECD3D4FFEA40F8A2584B980@cpixchng-1.cpiqpc.net> Message-ID: <005601c756c9$831560a0$6501a8c0@nant> Rusty, I think the only solution is to use parameterized stored procedure(s), extract data into temp tables and bind report(s) to these temp tables... We talk about .mdb and MS Access reports here - correct? -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rusty.hammond at cpiqpc.com Sent: Thursday, February 22, 2007 5:54 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Feeding parameters to SQL Server Shamil, Your earlier example of using a parameter table is interesting but you mention it doesn't work well in a multi-user environment, how would you get around the multi-user issue? Jim/Eric, I dynamically update the pass-through query as the link Eric gave suggests but I haven't run into any stability issues using this method (that I'm aware of). Have you seen any specific issues that you can point me to that I need to look out for? I'm using this in an app for our company that gathers data from other databases to produce invoices to our clients. This app is used by most of our more than 400 in-house users. Granted they won't all be running the reports that use the pass-through. Thanks, Rusty -----Original Message----- From: Shamil Salakhetdinov [mailto:shamil at users.mns.ru] Sent: Wednesday, February 21, 2007 5:41 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server No problem, Eric, I anyway planned to write a short note here on ADODB and parameterized stored procedures... BTW, for parameterized UDFs ADODB can be also used but the issue with access permissions usually forces to use stored procedures - I mean UDF can't be used with a table if a user does not have access permissions for this table. As for stored procedure - it can be used with a table even if a user does not have access permission to this table - user should only have a permission to execute this stored procedure. Here is an example with parameterized UDF and ADODB - parameters's values in this sample are hardcoded in select expression: Dim cnn As ADODB.Connection Dim strCnn As String Dim cmd As ADODB.Command Dim prm As ADODB.Parameter Dim rst As ADODB.Recordset strCnn = "Provider=sqloledb;Data Source=(local);Initial Catalog=Northwind;Integrated Security=SSPI;" Set cnn = New ADODB.Connection cnn.Open strCnn cnn.CursorLocation = adUseClient Set cmd = New ADODB.Command cmd.CommandType = adCmdText cmd.CommandText = "select * from TotalFreightStats( _ '1996-07-02', '1996-07-12')" cmd.ActiveConnection = cnn.ConnectionString Set rst = cmd.Execute While Not rst.EOF Debug.Print rst(0).Value & " - " & rst(1).Value rst.MoveNext Wend cnn.Close -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Thursday, February 22, 2007 1:51 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Uh..hmmm...Jim and Shamil...I was replying to Colby's question on passing parameters to SQL which was the original thread. Someone suggested pass-thru queries somewhere in the thread. I just happened to reply to the last message in the thread that came from Shamil. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, February 21, 2007 2:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Eric My recommendation is do not use pass-through queries. They are more problem than they are worth as they seem to be an easy quick fix to start with but end up being slow, awkward and unstable. I believe this set of processes was designed to punish newbie developers scaring them off weaning from a MDB BE. MS should have simply remove that whole gambit of functions from Access and never bring them up again in polite company. Now if you want my unvarnished opinion on the subject don't be afraid to ask. :-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Wednesday, February 21, 2007 1:47 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Unfortunately dynamic parameters and sql pass-thru queries don't play well in Access. http://www.utteraccess.com/forums/showflat.php?Board=82&Number=1361479 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, February 21, 2007 1:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Hello John, Let's suppose you use NorthWind sample database and you have to calculate total Freight for a Shipper given from/to dates. I assume you do not use ADPs - if you have used them then you could have created - a stored procedure: ===================== CREATE PROCEDURE usp_TotalFreightStats (@fromDate datetime, @toDate datetime ) AS BEGIN select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName END - or a UDF =========== CREATE FUNCTION TotalFreightStats (@fromDate datetime, @toDate datetime ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN declare @fromDate1 dateTime declare @toDate1 dateTime INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName RETURN END And you could have bound your report to this stored procedure or UDF - on open this report would have requested from/to dates in parameters input dialog. I assume you use mdb and then you can: - create table to keep parameters ================================== CREATE TABLE [dbo].[ParametersForUDFs] ( [fromDate] [datetime] NULL , [toDate] [datetime] NULL ) ON [PRIMARY] GO - populate this table with parameters' values (clear in first) ============================================================= delete from ParametersForUDFs insert into ParametersForUDFs (fromDate, toDate) values ('1996-07-04', '1996-07-12') - create UDF ============ CREATE FUNCTION TotalFreightStats1 ( ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between (select top 1 fromDate from ParametersForUDFs) and (select top 1 toDate from ParametersForUDFs) Group by ShipName RETURN END - use UDF in view ================== CREATE VIEW dbo.vw_TotalFreightStats1 AS SELECT ShipperName, TotalFreight FROM dbo.TotalFreightStats1() TotalFreightStats1 ++++++++++++++++++++++++++++++++++++ - link view to MS Access mdb ++++++++++++++++++++++++++++++++++++ Of course that approach will not work well in multi-user environment if different users will need different from/to dates... -- Shamil ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at users.mns.ru Thu Feb 22 15:36:28 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Fri, 23 Feb 2007 00:36:28 +0300 Subject: [AccessD] Feeding parameters to SQL Server In-Reply-To: <001501c75636$52ac3a30$657aa8c0@m6805> Message-ID: <005701c756c9$85244370$6501a8c0@nant> <<< So these are not "reports" in the Access sense. >>> OK, John, then you can use parameterized stored procedures and ADODB. <<< And then came the client that wanted it in an Excel spreadsheet. >>> John, when text reporting/export is done then an easy "trick" to make Excel spreadsheets without running Excel Automation could be to export Tab delimited text files with .xls extension - I suppose you use this "trick"? Or your customers need real .xls workbooks? -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, February 22, 2007 7:03 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Shamil, >And you could have bound your report to this stored procedure or UDF - on open this report would have requested from/to dates in parameters input dialog. Well, when I say "report" that means something a little different here. My client feeds data to mainframes. They give me a table of specs which looks briefly like: Field name Data Type Default Value Format Field width Required Field 1 Char Some Val 9 Yes Field 2 Num Some Val2 000.00 10 No Field 3 Field 4 . . . Etc. I then have to pull the data out into queries, and somehow get them out into fixed width text files, named according to their naming spec etc. In order to do this I use (what else) classes. I import their table into a report field spec table (with a few fields of my own to make my life easier). I then built a class to hold each field spec record plus code to manipulate the data as required by their specs. Apply the correct formatting, determine if the field has to be there or not, replace nulls with default values if any, etc. The Field Spec class is responsible for all formatting of a given field and handing back a fully formatted string, regardless of whether the data is a date (YYYYMMDD? MMDDYYYY? MMYYYY?), currency (00000.00?, 00000^00 - decimal shifted out), string (width? Pad left / right? Pad char?). Each field class is responsible for error reporting should any error occur in formatting, padding etc. since the field class "knows" what the format should be, width of the final string should be etc. I build a report spec table which holds the query required to pull the data, the name / path of the destination file and some other stuff. In the end I have a system where I load a Report Spec supervisor class and that class loads the field spec classes, loads the data, processes each field of each data record through each field class, assembles the strings returned by the field classes into a big string, and then uses text streams to write the files out to disk. The Report spec class is responsible for error reporting at the record level - errors from field classes, no data, etc., with errors logged to files on the hard disk for attachment to email to the person who can fix the problem. These files can and often but not always do have header information which goes in the same file, which may or may not be the same width as the detail data, and can have trailer info (usually sums and counts) which are also appended into the same file. Thus a "report" will be at the very least a detail section, but may / may not have a header and / or footer. Processed the way I do, the header and footer becomes just another set of field specs in the Field Spec Table. The Report Spec will have one to three records in it, one for a header if any, one for the detail (they all have a detail) and one for the footer if any. Thus a method of my report spec class is called passing the PKID of the detail spec record in the Report Spec table and it takes over and loads header and footer report spec classes as necessary. Each Report spec class instance loads it's own data (has it's own query) and processes it's data according to it's set of field spec records, and writes the data to the file under the supervision of the detail Report Spec class (the "overall" supervisor for the report). I did not do it this way originally, in fact I originally hard coded everything in the queries - format, conversion of nulls, padding etc. What I discovered is that it was a MAJOR PITA to adjust a report as I had to go find the right place in the right query. Done the way I do it now, it is all "formatted" by entries in my field spec table. If I need to change the width of a field, I just look up the field in the Field Spec Table and change it. Same for format, data type, default value etc. It works really well in fact once I got the classes working. I can literally tweak a report in minutes and rerun. One might wonder why such tweaking would be necessary if it was for a mainframe import, and the answer of course is that the info I get from the mainframe people is always sketchy - leading or trailing padding, spaces or zeros for padding, and I have to submit a file for testing, then tweak, resubmit, tweak until they say it is OK. And of course, it all has to be adjusted on MY END. By building this into a table, I just change my PadDir column from (L)eading to (T)railing and it pads the other way, change the PAdChar from 0 to ' ' and it changes from a zero to a space (or anything else they can think up). I use VB format strings where possible but sometimes I just have to brute force it. So we (my client) selects filter data using combos and date text boxes, and pushes a button and a report is built and placed on disk, in a specific location, with a specific name (and a dated name for our internal tracking). I can and do sometimes attach these reports to email or FTP them if that is necessary. So these are not "reports" in the Access sense. I now have reports going to 3 different companies, unknown number of different mainframes, all using the same report generator system. They give me a field spec "table", I import (or type) that in to my report / field spec table pair, build queries to pull the data and plug that query name into the report spec table and push the button. Tweak the query, then the field spec records, send, tweak, send. After that it just runs. In fact one issue that this whole class system handles very nicely is "missing data" since it can just run the reports without writing the files to disk, then see if any error reports are generated and if so email them to the examiners. They can go correct the data errors. We can rerun until it is right, then send. All in all a royal PITA but that is after all why they pay us the big bucks, right? And then came the client that wanted it in an Excel spreadsheet. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, February 21, 2007 4:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Hello John, Let's suppose you use NorthWind sample database and you have to calculate total Freight for a Shipper given from/to dates. I assume you do not use ADPs - if you have used them then you could have created - a stored procedure: ===================== CREATE PROCEDURE usp_TotalFreightStats (@fromDate datetime, @toDate datetime ) AS BEGIN select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName END - or a UDF =========== CREATE FUNCTION TotalFreightStats (@fromDate datetime, @toDate datetime ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN declare @fromDate1 dateTime declare @toDate1 dateTime INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName RETURN END And you could have bound your report to this stored procedure or UDF - on open this report would have requested from/to dates in parameters input dialog. I assume you use mdb and then you can: - create table to keep parameters ================================== CREATE TABLE [dbo].[ParametersForUDFs] ( [fromDate] [datetime] NULL , [toDate] [datetime] NULL ) ON [PRIMARY] GO - populate this table with parameters' values (clear in first) ============================================================= delete from ParametersForUDFs insert into ParametersForUDFs (fromDate, toDate) values ('1996-07-04', '1996-07-12') - create UDF ============ CREATE FUNCTION TotalFreightStats1 ( ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between (select top 1 fromDate from ParametersForUDFs) and (select top 1 toDate from ParametersForUDFs) Group by ShipName RETURN END - use UDF in view ================== CREATE VIEW dbo.vw_TotalFreightStats1 AS SELECT ShipperName, TotalFreight FROM dbo.TotalFreightStats1() TotalFreightStats1 ++++++++++++++++++++++++++++++++++++ - link view to MS Access mdb ++++++++++++++++++++++++++++++++++++ Of course that approach will not work well in multi-user environment if different users will need different from/to dates... -- Shamil -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Feb 22 15:39:51 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Thu, 22 Feb 2007 16:39:51 -0500 Subject: [AccessD] Using XML Message-ID: <003201c756c9$fc841bc0$657aa8c0@m6805> One of the things I try to do when my classes prepare reports to send off to my client's clients is to log the data sent. Doing this allows me to have a record of what was sent in case there is ever a dispute. The data is rarely if ever used but a nice security blanket if you will. One of the problems with doing this is simply that since the data is custom to that report, a custom table has to be created to hold the data. I have also taken to outputting the file in a dated format as well as the "generic name" that the client receives - with the date and time that the file was output. I was in the middle of trying to figure out how to do this "generically" (you know me, make it available always) when it suddenly occurred to me... why not create an XML file instead of (or in addition to) my dated file. The xml file could have the identical name as my dated file except that it would have an XML extension. The XML is supposed to be "a table" in text format (kinda). Unfortunately I was working in A2K ( the least common denominator at this specific client) so I stopped, opened the project in Access 2002, and added a couple of lines of code to my report generator, and voila, XML files. I had to modify my mclsRptName (holds all of the names of my reports plus text streams) to add an XML file spec string and property, and then Application.ExportXML acExportQuery, mRSP_QueryName, mclsRptName.pFileSpecXML and I had an XML report sitting in the directory along with the other files. Unfortunately, the XML file causes Windows Explorer to open to display it, and then displays the xml text, not tables. My question is, is there some sort of viewer that can display the data in tables? I mean for just browsing data, XML is hardly intuitive to the human mind. Also unfortunate of course is the OVERHEAD. Holy smoke batman, a 15 kbyte file turns into a 91 kbyte file. And finally, unfortunately, whereas my custom class knows how to use the same text stream object to write the date, the application.ExportXML simply writes the last query presented to the file name. since my files can be a header, detail and footer, the footer will be the only thing there if a footer is the last query presented, the detail will be the last thing if the detail query is the last query presented etc. IOW, no possibility AFAICT to APPEND xml files to each other, at least using the built in application method. I am jazzed though how easy it was to do the xml thing. I must say I expected Internet explorer to show me a table though, complete with field names at the top. Wouldn't ya think? John W. Colby Colby Consulting www.ColbyConsulting.com From jwcolby at colbyconsulting.com Thu Feb 22 15:41:53 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Thu, 22 Feb 2007 16:41:53 -0500 Subject: [AccessD] Feeding parameters to SQL Server In-Reply-To: <005701c756c9$85244370$6501a8c0@nant> Message-ID: <003701c756ca$44fb7060$657aa8c0@m6805> Yea, they want SPREADSHEETS. I assume so that they can do calcs on them. No se por que exactamente, I just do what they tell me. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, February 22, 2007 4:36 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server <<< So these are not "reports" in the Access sense. >>> OK, John, then you can use parameterized stored procedures and ADODB. <<< And then came the client that wanted it in an Excel spreadsheet. >>> John, when text reporting/export is done then an easy "trick" to make Excel spreadsheets without running Excel Automation could be to export Tab delimited text files with .xls extension - I suppose you use this "trick"? Or your customers need real .xls workbooks? -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, February 22, 2007 7:03 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Shamil, >And you could have bound your report to this stored procedure or UDF - >on open this report would have requested from/to dates in parameters input dialog. Well, when I say "report" that means something a little different here. My client feeds data to mainframes. They give me a table of specs which looks briefly like: Field name Data Type Default Value Format Field width Required Field 1 Char Some Val 9 Yes Field 2 Num Some Val2 000.00 10 No Field 3 Field 4 . . . Etc. I then have to pull the data out into queries, and somehow get them out into fixed width text files, named according to their naming spec etc. In order to do this I use (what else) classes. I import their table into a report field spec table (with a few fields of my own to make my life easier). I then built a class to hold each field spec record plus code to manipulate the data as required by their specs. Apply the correct formatting, determine if the field has to be there or not, replace nulls with default values if any, etc. The Field Spec class is responsible for all formatting of a given field and handing back a fully formatted string, regardless of whether the data is a date (YYYYMMDD? MMDDYYYY? MMYYYY?), currency (00000.00?, 00000^00 - decimal shifted out), string (width? Pad left / right? Pad char?). Each field class is responsible for error reporting should any error occur in formatting, padding etc. since the field class "knows" what the format should be, width of the final string should be etc. I build a report spec table which holds the query required to pull the data, the name / path of the destination file and some other stuff. In the end I have a system where I load a Report Spec supervisor class and that class loads the field spec classes, loads the data, processes each field of each data record through each field class, assembles the strings returned by the field classes into a big string, and then uses text streams to write the files out to disk. The Report spec class is responsible for error reporting at the record level - errors from field classes, no data, etc., with errors logged to files on the hard disk for attachment to email to the person who can fix the problem. These files can and often but not always do have header information which goes in the same file, which may or may not be the same width as the detail data, and can have trailer info (usually sums and counts) which are also appended into the same file. Thus a "report" will be at the very least a detail section, but may / may not have a header and / or footer. Processed the way I do, the header and footer becomes just another set of field specs in the Field Spec Table. The Report Spec will have one to three records in it, one for a header if any, one for the detail (they all have a detail) and one for the footer if any. Thus a method of my report spec class is called passing the PKID of the detail spec record in the Report Spec table and it takes over and loads header and footer report spec classes as necessary. Each Report spec class instance loads it's own data (has it's own query) and processes it's data according to it's set of field spec records, and writes the data to the file under the supervision of the detail Report Spec class (the "overall" supervisor for the report). I did not do it this way originally, in fact I originally hard coded everything in the queries - format, conversion of nulls, padding etc. What I discovered is that it was a MAJOR PITA to adjust a report as I had to go find the right place in the right query. Done the way I do it now, it is all "formatted" by entries in my field spec table. If I need to change the width of a field, I just look up the field in the Field Spec Table and change it. Same for format, data type, default value etc. It works really well in fact once I got the classes working. I can literally tweak a report in minutes and rerun. One might wonder why such tweaking would be necessary if it was for a mainframe import, and the answer of course is that the info I get from the mainframe people is always sketchy - leading or trailing padding, spaces or zeros for padding, and I have to submit a file for testing, then tweak, resubmit, tweak until they say it is OK. And of course, it all has to be adjusted on MY END. By building this into a table, I just change my PadDir column from (L)eading to (T)railing and it pads the other way, change the PAdChar from 0 to ' ' and it changes from a zero to a space (or anything else they can think up). I use VB format strings where possible but sometimes I just have to brute force it. So we (my client) selects filter data using combos and date text boxes, and pushes a button and a report is built and placed on disk, in a specific location, with a specific name (and a dated name for our internal tracking). I can and do sometimes attach these reports to email or FTP them if that is necessary. So these are not "reports" in the Access sense. I now have reports going to 3 different companies, unknown number of different mainframes, all using the same report generator system. They give me a field spec "table", I import (or type) that in to my report / field spec table pair, build queries to pull the data and plug that query name into the report spec table and push the button. Tweak the query, then the field spec records, send, tweak, send. After that it just runs. In fact one issue that this whole class system handles very nicely is "missing data" since it can just run the reports without writing the files to disk, then see if any error reports are generated and if so email them to the examiners. They can go correct the data errors. We can rerun until it is right, then send. All in all a royal PITA but that is after all why they pay us the big bucks, right? And then came the client that wanted it in an Excel spreadsheet. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, February 21, 2007 4:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Hello John, Let's suppose you use NorthWind sample database and you have to calculate total Freight for a Shipper given from/to dates. I assume you do not use ADPs - if you have used them then you could have created - a stored procedure: ===================== CREATE PROCEDURE usp_TotalFreightStats (@fromDate datetime, @toDate datetime ) AS BEGIN select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName END - or a UDF =========== CREATE FUNCTION TotalFreightStats (@fromDate datetime, @toDate datetime ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN declare @fromDate1 dateTime declare @toDate1 dateTime INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName RETURN END And you could have bound your report to this stored procedure or UDF - on open this report would have requested from/to dates in parameters input dialog. I assume you use mdb and then you can: - create table to keep parameters ================================== CREATE TABLE [dbo].[ParametersForUDFs] ( [fromDate] [datetime] NULL , [toDate] [datetime] NULL ) ON [PRIMARY] GO - populate this table with parameters' values (clear in first) ============================================================= delete from ParametersForUDFs insert into ParametersForUDFs (fromDate, toDate) values ('1996-07-04', '1996-07-12') - create UDF ============ CREATE FUNCTION TotalFreightStats1 ( ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between (select top 1 fromDate from ParametersForUDFs) and (select top 1 toDate from ParametersForUDFs) Group by ShipName RETURN END - use UDF in view ================== CREATE VIEW dbo.vw_TotalFreightStats1 AS SELECT ShipperName, TotalFreight FROM dbo.TotalFreightStats1() TotalFreightStats1 ++++++++++++++++++++++++++++++++++++ - link view to MS Access mdb ++++++++++++++++++++++++++++++++++++ Of course that approach will not work well in multi-user environment if different users will need different from/to dates... -- Shamil -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ebarro at verizon.net Thu Feb 22 15:52:06 2007 From: ebarro at verizon.net (Eric Barro) Date: Thu, 22 Feb 2007 13:52:06 -0800 Subject: [AccessD] Using XML In-Reply-To: <003201c756c9$fc841bc0$657aa8c0@m6805> Message-ID: <0JDV004XOWQM32R9@vms040.mailsrvcs.net> John, You need an XSL (stylesheet) in order to display the XML properly using a browser. Here's a sample...
Customer ID Company Contact Country Phone
Eric -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, February 22, 2007 1:40 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Using XML One of the things I try to do when my classes prepare reports to send off to my client's clients is to log the data sent. Doing this allows me to have a record of what was sent in case there is ever a dispute. The data is rarely if ever used but a nice security blanket if you will. One of the problems with doing this is simply that since the data is custom to that report, a custom table has to be created to hold the data. I have also taken to outputting the file in a dated format as well as the "generic name" that the client receives - with the date and time that the file was output. I was in the middle of trying to figure out how to do this "generically" (you know me, make it available always) when it suddenly occurred to me... why not create an XML file instead of (or in addition to) my dated file. The xml file could have the identical name as my dated file except that it would have an XML extension. The XML is supposed to be "a table" in text format (kinda). Unfortunately I was working in A2K ( the least common denominator at this specific client) so I stopped, opened the project in Access 2002, and added a couple of lines of code to my report generator, and voila, XML files. I had to modify my mclsRptName (holds all of the names of my reports plus text streams) to add an XML file spec string and property, and then Application.ExportXML acExportQuery, mRSP_QueryName, mclsRptName.pFileSpecXML and I had an XML report sitting in the directory along with the other files. Unfortunately, the XML file causes Windows Explorer to open to display it, and then displays the xml text, not tables. My question is, is there some sort of viewer that can display the data in tables? I mean for just browsing data, XML is hardly intuitive to the human mind. Also unfortunate of course is the OVERHEAD. Holy smoke batman, a 15 kbyte file turns into a 91 kbyte file. And finally, unfortunately, whereas my custom class knows how to use the same text stream object to write the date, the application.ExportXML simply writes the last query presented to the file name. since my files can be a header, detail and footer, the footer will be the only thing there if a footer is the last query presented, the detail will be the last thing if the detail query is the last query presented etc. IOW, no possibility AFAICT to APPEND xml files to each other, at least using the built in application method. I am jazzed though how easy it was to do the xml thing. I must say I expected Internet explorer to show me a table though, complete with field names at the top. Wouldn't ya think? John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/697 - Release Date: 2/22/2007 11:55 AM From jwcolby at colbyconsulting.com Thu Feb 22 16:00:19 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Thu, 22 Feb 2007 17:00:19 -0500 Subject: [AccessD] Using XML In-Reply-To: <0JDV004XOWQM32R9@vms040.mailsrvcs.net> Message-ID: <003d01c756cc$d7f54100$657aa8c0@m6805> Eric, thanks for this. I just ran into "user expectations" in my own application so I guess I need to be a little more careful of my own expectations. The problem of course is how do I determine this data. Is there a "generator" somewhere that generates this style sheet? Is it then placed at the top of the xml file before the xml data? I am not attempting to generate a web page, it just happened that Windows decided that IE should display the file. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Thursday, February 22, 2007 4:52 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Using XML John, You need an XSL (stylesheet) in order to display the XML properly using a browser. Here's a sample...
Customer ID Company Contact Country Phone
Eric -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, February 22, 2007 1:40 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Using XML One of the things I try to do when my classes prepare reports to send off to my client's clients is to log the data sent. Doing this allows me to have a record of what was sent in case there is ever a dispute. The data is rarely if ever used but a nice security blanket if you will. One of the problems with doing this is simply that since the data is custom to that report, a custom table has to be created to hold the data. I have also taken to outputting the file in a dated format as well as the "generic name" that the client receives - with the date and time that the file was output. I was in the middle of trying to figure out how to do this "generically" (you know me, make it available always) when it suddenly occurred to me... why not create an XML file instead of (or in addition to) my dated file. The xml file could have the identical name as my dated file except that it would have an XML extension. The XML is supposed to be "a table" in text format (kinda). Unfortunately I was working in A2K ( the least common denominator at this specific client) so I stopped, opened the project in Access 2002, and added a couple of lines of code to my report generator, and voila, XML files. I had to modify my mclsRptName (holds all of the names of my reports plus text streams) to add an XML file spec string and property, and then Application.ExportXML acExportQuery, mRSP_QueryName, mclsRptName.pFileSpecXML and I had an XML report sitting in the directory along with the other files. Unfortunately, the XML file causes Windows Explorer to open to display it, and then displays the xml text, not tables. My question is, is there some sort of viewer that can display the data in tables? I mean for just browsing data, XML is hardly intuitive to the human mind. Also unfortunate of course is the OVERHEAD. Holy smoke batman, a 15 kbyte file turns into a 91 kbyte file. And finally, unfortunately, whereas my custom class knows how to use the same text stream object to write the date, the application.ExportXML simply writes the last query presented to the file name. since my files can be a header, detail and footer, the footer will be the only thing there if a footer is the last query presented, the detail will be the last thing if the detail query is the last query presented etc. IOW, no possibility AFAICT to APPEND xml files to each other, at least using the built in application method. I am jazzed though how easy it was to do the xml thing. I must say I expected Internet explorer to show me a table though, complete with field names at the top. Wouldn't ya think? John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/697 - Release Date: 2/22/2007 11:55 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at users.mns.ru Thu Feb 22 16:06:00 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Fri, 23 Feb 2007 01:06:00 +0300 Subject: [AccessD] Using XML In-Reply-To: <003201c756c9$fc841bc0$657aa8c0@m6805> Message-ID: <006e01c756cd$a306ba40$6501a8c0@nant> <<< IOW, no possibility AFAICT to APPEND xml files to each other, at least using the built in application method. >>> John, This is possible, starting MS Access 2002 I think - see AdditionalData object description. Here is a sample from online help. Dim objOrderInfo As AdditionalData Dim objOrderDetailsInfo As AdditionalData Set objOrderInfo = Application.CreateAdditionalData ' Add the Orders and Order Details tables to the data to be exported. Set objOrderDetailsInfo = objOrderInfo.Add("Orders") objOrderDetailsInfo.Add "Order Details" ' Export the contents of the Customers table. The Orders and Order ' Details tables will be included in the XML file. Application.ExportXML ObjectType:=acExportTable, DataSource:="Customers", _ DataTarget:="Customer Orders.xml", _ AdditionalData:=objOrderInfo <<< I must say I expected Internet explorer to show me a table though, complete with field names at the top. Wouldn't ya think? >>> You have to specify the PresentationTarget parameter with the fullpath for the .xsl file to be generated. Then additionally .htm file will be generated - and this latter will be mainly a vbscript to show your exported to .xml data in table format... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Friday, February 23, 2007 12:40 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Using XML One of the things I try to do when my classes prepare reports to send off to my client's clients is to log the data sent. Doing this allows me to have a record of what was sent in case there is ever a dispute. The data is rarely if ever used but a nice security blanket if you will. One of the problems with doing this is simply that since the data is custom to that report, a custom table has to be created to hold the data. I have also taken to outputting the file in a dated format as well as the "generic name" that the client receives - with the date and time that the file was output. I was in the middle of trying to figure out how to do this "generically" (you know me, make it available always) when it suddenly occurred to me... why not create an XML file instead of (or in addition to) my dated file. The xml file could have the identical name as my dated file except that it would have an XML extension. The XML is supposed to be "a table" in text format (kinda). Unfortunately I was working in A2K ( the least common denominator at this specific client) so I stopped, opened the project in Access 2002, and added a couple of lines of code to my report generator, and voila, XML files. I had to modify my mclsRptName (holds all of the names of my reports plus text streams) to add an XML file spec string and property, and then Application.ExportXML acExportQuery, mRSP_QueryName, mclsRptName.pFileSpecXML and I had an XML report sitting in the directory along with the other files. Unfortunately, the XML file causes Windows Explorer to open to display it, and then displays the xml text, not tables. My question is, is there some sort of viewer that can display the data in tables? I mean for just browsing data, XML is hardly intuitive to the human mind. Also unfortunate of course is the OVERHEAD. Holy smoke batman, a 15 kbyte file turns into a 91 kbyte file. And finally, unfortunately, whereas my custom class knows how to use the same text stream object to write the date, the application.ExportXML simply writes the last query presented to the file name. since my files can be a header, detail and footer, the footer will be the only thing there if a footer is the last query presented, the detail will be the last thing if the detail query is the last query presented etc. IOW, no possibility AFAICT to APPEND xml files to each other, at least using the built in application method. I am jazzed though how easy it was to do the xml thing. I must say I expected Internet explorer to show me a table though, complete with field names at the top. Wouldn't ya think? John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ebarro at verizon.net Thu Feb 22 16:16:08 2007 From: ebarro at verizon.net (Eric Barro) Date: Thu, 22 Feb 2007 14:16:08 -0800 Subject: [AccessD] Using XML In-Reply-To: <003d01c756cc$d7f54100$657aa8c0@m6805> Message-ID: <0JDV00G7AXUUICA7@vms042.mailsrvcs.net> There's a couple out there...here's one I ran across. http://www.topxml.com/downloads/default.asp?id=v200111181229 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, February 22, 2007 2:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Using XML Eric, thanks for this. I just ran into "user expectations" in my own application so I guess I need to be a little more careful of my own expectations. The problem of course is how do I determine this data. Is there a "generator" somewhere that generates this style sheet? Is it then placed at the top of the xml file before the xml data? I am not attempting to generate a web page, it just happened that Windows decided that IE should display the file. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Thursday, February 22, 2007 4:52 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Using XML John, You need an XSL (stylesheet) in order to display the XML properly using a browser. Here's a sample...
Customer ID Company Contact Country Phone
Eric -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, February 22, 2007 1:40 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Using XML One of the things I try to do when my classes prepare reports to send off to my client's clients is to log the data sent. Doing this allows me to have a record of what was sent in case there is ever a dispute. The data is rarely if ever used but a nice security blanket if you will. One of the problems with doing this is simply that since the data is custom to that report, a custom table has to be created to hold the data. I have also taken to outputting the file in a dated format as well as the "generic name" that the client receives - with the date and time that the file was output. I was in the middle of trying to figure out how to do this "generically" (you know me, make it available always) when it suddenly occurred to me... why not create an XML file instead of (or in addition to) my dated file. The xml file could have the identical name as my dated file except that it would have an XML extension. The XML is supposed to be "a table" in text format (kinda). Unfortunately I was working in A2K ( the least common denominator at this specific client) so I stopped, opened the project in Access 2002, and added a couple of lines of code to my report generator, and voila, XML files. I had to modify my mclsRptName (holds all of the names of my reports plus text streams) to add an XML file spec string and property, and then Application.ExportXML acExportQuery, mRSP_QueryName, mclsRptName.pFileSpecXML and I had an XML report sitting in the directory along with the other files. Unfortunately, the XML file causes Windows Explorer to open to display it, and then displays the xml text, not tables. My question is, is there some sort of viewer that can display the data in tables? I mean for just browsing data, XML is hardly intuitive to the human mind. Also unfortunate of course is the OVERHEAD. Holy smoke batman, a 15 kbyte file turns into a 91 kbyte file. And finally, unfortunately, whereas my custom class knows how to use the same text stream object to write the date, the application.ExportXML simply writes the last query presented to the file name. since my files can be a header, detail and footer, the footer will be the only thing there if a footer is the last query presented, the detail will be the last thing if the detail query is the last query presented etc. IOW, no possibility AFAICT to APPEND xml files to each other, at least using the built in application method. I am jazzed though how easy it was to do the xml thing. I must say I expected Internet explorer to show me a table though, complete with field names at the top. Wouldn't ya think? John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/697 - Release Date: 2/22/2007 11:55 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/697 - Release Date: 2/22/2007 11:55 AM From Drawbridge.Jack at ic.gc.ca Thu Feb 22 16:26:51 2007 From: Drawbridge.Jack at ic.gc.ca (Drawbridge, Jack: #CIO - BPI) Date: Thu, 22 Feb 2007 17:26:51 -0500 Subject: [AccessD] Using XML. In-Reply-To: <0JDV00G7AXUUICA7@vms042.mailsrvcs.net> Message-ID: <0F3AFAE449DD4A40BED8B6C4A97ABF5B086C3A62@MSG-MB3.icent.ic.gc.ca> Guys here's a link that might be helpful. http://www.ibiblio.org/xml/books/bible2/chapters/ch17.html -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Thursday, February 22, 2007 5:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Using XML There's a couple out there...here's one I ran across. http://www.topxml.com/downloads/default.asp?id=v200111181229 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, February 22, 2007 2:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Using XML Eric, thanks for this. I just ran into "user expectations" in my own application so I guess I need to be a little more careful of my own expectations. The problem of course is how do I determine this data. Is there a "generator" somewhere that generates this style sheet? Is it then placed at the top of the xml file before the xml data? I am not attempting to generate a web page, it just happened that Windows decided that IE should display the file. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Thursday, February 22, 2007 4:52 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Using XML John, You need an XSL (stylesheet) in order to display the XML properly using a browser. Here's a sample...
Customer ID Company Contact Country Phone
Eric -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, February 22, 2007 1:40 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Using XML One of the things I try to do when my classes prepare reports to send off to my client's clients is to log the data sent. Doing this allows me to have a record of what was sent in case there is ever a dispute. The data is rarely if ever used but a nice security blanket if you will. One of the problems with doing this is simply that since the data is custom to that report, a custom table has to be created to hold the data. I have also taken to outputting the file in a dated format as well as the "generic name" that the client receives - with the date and time that the file was output. I was in the middle of trying to figure out how to do this "generically" (you know me, make it available always) when it suddenly occurred to me... why not create an XML file instead of (or in addition to) my dated file. The xml file could have the identical name as my dated file except that it would have an XML extension. The XML is supposed to be "a table" in text format (kinda). Unfortunately I was working in A2K ( the least common denominator at this specific client) so I stopped, opened the project in Access 2002, and added a couple of lines of code to my report generator, and voila, XML files. I had to modify my mclsRptName (holds all of the names of my reports plus text streams) to add an XML file spec string and property, and then Application.ExportXML acExportQuery, mRSP_QueryName, mclsRptName.pFileSpecXML and I had an XML report sitting in the directory along with the other files. Unfortunately, the XML file causes Windows Explorer to open to display it, and then displays the xml text, not tables. My question is, is there some sort of viewer that can display the data in tables? I mean for just browsing data, XML is hardly intuitive to the human mind. Also unfortunate of course is the OVERHEAD. Holy smoke batman, a 15 kbyte file turns into a 91 kbyte file. And finally, unfortunately, whereas my custom class knows how to use the same text stream object to write the date, the application.ExportXML simply writes the last query presented to the file name. since my files can be a header, detail and footer, the footer will be the only thing there if a footer is the last query presented, the detail will be the last thing if the detail query is the last query presented etc. IOW, no possibility AFAICT to APPEND xml files to each other, at least using the built in application method. I am jazzed though how easy it was to do the xml thing. I must say I expected Internet explorer to show me a table though, complete with field names at the top. Wouldn't ya think? John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/697 - Release Date: 2/22/2007 11:55 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/697 - Release Date: 2/22/2007 11:55 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Thu Feb 22 18:07:02 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 22 Feb 2007 16:07:02 -0800 Subject: [AccessD] Feeding parameters to SQL Server In-Reply-To: <8301C8A868251E4C8ECD3D4FFEA40F8A2584B980@cpixchng-1.cpiqpc.net> Message-ID: <0JDW002972VN4140@l-daemon> Hi Rusty: I am not sure if that is true for DAO databases... never tried it but for MS SQL and other DBs it is definitely not so and in fact performance is dramatically enhanced over any other method. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rusty.hammond at cpiqpc.com Sent: Thursday, February 22, 2007 6:54 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Feeding parameters to SQL Server Shamil, Your earlier example of using a parameter table is interesting but you mention it doesn't work well in a multi-user environment, how would you get around the multi-user issue? Jim/Eric, I dynamically update the pass-through query as the link Eric gave suggests but I haven't run into any stability issues using this method (that I'm aware of). Have you seen any specific issues that you can point me to that I need to look out for? I'm using this in an app for our company that gathers data from other databases to produce invoices to our clients. This app is used by most of our more than 400 in-house users. Granted they won't all be running the reports that use the pass-through. Thanks, Rusty -----Original Message----- From: Shamil Salakhetdinov [mailto:shamil at users.mns.ru] Sent: Wednesday, February 21, 2007 5:41 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server No problem, Eric, I anyway planned to write a short note here on ADODB and parameterized stored procedures... BTW, for parameterized UDFs ADODB can be also used but the issue with access permissions usually forces to use stored procedures - I mean UDF can't be used with a table if a user does not have access permissions for this table. As for stored procedure - it can be used with a table even if a user does not have access permission to this table - user should only have a permission to execute this stored procedure. Here is an example with parameterized UDF and ADODB - parameters's values in this sample are hardcoded in select expression: Dim cnn As ADODB.Connection Dim strCnn As String Dim cmd As ADODB.Command Dim prm As ADODB.Parameter Dim rst As ADODB.Recordset strCnn = "Provider=sqloledb;Data Source=(local);Initial Catalog=Northwind;Integrated Security=SSPI;" Set cnn = New ADODB.Connection cnn.Open strCnn cnn.CursorLocation = adUseClient Set cmd = New ADODB.Command cmd.CommandType = adCmdText cmd.CommandText = "select * from TotalFreightStats( _ '1996-07-02', '1996-07-12')" cmd.ActiveConnection = cnn.ConnectionString Set rst = cmd.Execute While Not rst.EOF Debug.Print rst(0).Value & " - " & rst(1).Value rst.MoveNext Wend cnn.Close -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Thursday, February 22, 2007 1:51 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Uh..hmmm...Jim and Shamil...I was replying to Colby's question on passing parameters to SQL which was the original thread. Someone suggested pass-thru queries somewhere in the thread. I just happened to reply to the last message in the thread that came from Shamil. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, February 21, 2007 2:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Eric My recommendation is do not use pass-through queries. They are more problem than they are worth as they seem to be an easy quick fix to start with but end up being slow, awkward and unstable. I believe this set of processes was designed to punish newbie developers scaring them off weaning from a MDB BE. MS should have simply remove that whole gambit of functions from Access and never bring them up again in polite company. Now if you want my unvarnished opinion on the subject don't be afraid to ask. :-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Wednesday, February 21, 2007 1:47 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Unfortunately dynamic parameters and sql pass-thru queries don't play well in Access. http://www.utteraccess.com/forums/showflat.php?Board=82&Number=1361479 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, February 21, 2007 1:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Hello John, Let's suppose you use NorthWind sample database and you have to calculate total Freight for a Shipper given from/to dates. I assume you do not use ADPs - if you have used them then you could have created - a stored procedure: ===================== CREATE PROCEDURE usp_TotalFreightStats (@fromDate datetime, @toDate datetime ) AS BEGIN select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName END - or a UDF =========== CREATE FUNCTION TotalFreightStats (@fromDate datetime, @toDate datetime ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN declare @fromDate1 dateTime declare @toDate1 dateTime INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName RETURN END And you could have bound your report to this stored procedure or UDF - on open this report would have requested from/to dates in parameters input dialog. I assume you use mdb and then you can: - create table to keep parameters ================================== CREATE TABLE [dbo].[ParametersForUDFs] ( [fromDate] [datetime] NULL , [toDate] [datetime] NULL ) ON [PRIMARY] GO - populate this table with parameters' values (clear in first) ============================================================= delete from ParametersForUDFs insert into ParametersForUDFs (fromDate, toDate) values ('1996-07-04', '1996-07-12') - create UDF ============ CREATE FUNCTION TotalFreightStats1 ( ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between (select top 1 fromDate from ParametersForUDFs) and (select top 1 toDate from ParametersForUDFs) Group by ShipName RETURN END - use UDF in view ================== CREATE VIEW dbo.vw_TotalFreightStats1 AS SELECT ShipperName, TotalFreight FROM dbo.TotalFreightStats1() TotalFreightStats1 ++++++++++++++++++++++++++++++++++++ - link view to MS Access mdb ++++++++++++++++++++++++++++++++++++ Of course that approach will not work well in multi-user environment if different users will need different from/to dates... -- Shamil ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Thu Feb 22 18:15:48 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 22 Feb 2007 16:15:48 -0800 Subject: [AccessD] Feeding parameters to SQL Server In-Reply-To: <7B1961ED924D1A459E378C9B1BB22B4C068DECCF@natexch.jenkens.com> Message-ID: <0JDW002AN3A9F541@l-daemon> Hi Debbie: Have you not found that pass-through queries that do a single record update or delete are not adversely affected but when you tried selecting 5000 records, for a report....that different story.... the pipe is just too narrow. Add a heavy multi-user environment, month-end and suddenly things start to unhinge. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Elam, Debbie Sent: Thursday, February 22, 2007 7:25 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server I have had good luck using pass through queries and parameters by using a bit of code I got off of Microsoft's site to dynamically create pass through queries. Instead of writing parameters into the query itself, I create the query with the parameters I want. Saves a lot of headache and pushes more processing off on the server. http://support.microsoft.com/kb/112108 Debbie -----Original Message----- From: Jim Lawrence [mailto:accessd at shaw.ca] Sent: Wednesday, February 21, 2007 4:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Eric My recommendation is do not use pass-through queries. They are more problem than they are worth as they seem to be an easy quick fix to start with but end up being slow, awkward and unstable. I believe this set of processes was designed to punish newbie developers scaring them off weaning from a MDB BE. MS should have simply remove that whole gambit of functions from Access and never bring them up again in polite company. Now if you want my unvarnished opinion on the subject don't be afraid to ask. :-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Wednesday, February 21, 2007 1:47 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Unfortunately dynamic parameters and sql pass-thru queries don't play well in Access. http://www.utteraccess.com/forums/showflat.php?Board=82&Number=1361479 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, February 21, 2007 1:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Hello John, Let's suppose you use NorthWind sample database and you have to calculate total Freight for a Shipper given from/to dates. I assume you do not use ADPs - if you have used them then you could have created - a stored procedure: ===================== CREATE PROCEDURE usp_TotalFreightStats (@fromDate datetime, @toDate datetime ) AS BEGIN select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName END - or a UDF =========== CREATE FUNCTION TotalFreightStats (@fromDate datetime, @toDate datetime ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN declare @fromDate1 dateTime declare @toDate1 dateTime INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName RETURN END And you could have bound your report to this stored procedure or UDF - on open this report would have requested from/to dates in parameters input dialog. I assume you use mdb and then you can: - create table to keep parameters ================================== CREATE TABLE [dbo].[ParametersForUDFs] ( [fromDate] [datetime] NULL , [toDate] [datetime] NULL ) ON [PRIMARY] GO - populate this table with parameters' values (clear in first) ============================================================= delete from ParametersForUDFs insert into ParametersForUDFs (fromDate, toDate) values ('1996-07-04', '1996-07-12') - create UDF ============ CREATE FUNCTION TotalFreightStats1 ( ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between (select top 1 fromDate from ParametersForUDFs) and (select top 1 toDate from ParametersForUDFs) Group by ShipName RETURN END - use UDF in view ================== CREATE VIEW dbo.vw_TotalFreightStats1 AS SELECT ShipperName, TotalFreight FROM dbo.TotalFreightStats1() TotalFreightStats1 ++++++++++++++++++++++++++++++++++++ - link view to MS Access mdb ++++++++++++++++++++++++++++++++++++ Of course that approach will not work well in multi-user environment if different users will need different from/to dates... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, February 21, 2007 10:11 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Well... I dunno. I have a view in SQL Server returning 8 fields, 6K records (currently), completely unfiltered, all records in the table. I pull that linked table into a query in order to do some preliminary filtering - check date between a pair of dates and check number not null. I want the view in sql server to do the "check number not null" for me, and I know how to do that. I want the SQL Server to take a pair of parameters - "From Date" and "To Date" and return only those records. If I could do this, then I could get rid of my "base query" in access which applies these filters, reduce traffic across the wire etc. However even if I do this, the view is not being requested by a form in XP (for example) where some magical thing happens in Access to pass the parameters off to SQL Server. The linked view will be used immediately in another query which joins this view to other tables (on one field - BEID - in the view) in order to build up a set of data for a report. So the "parent" query that is using the view will have to "feed" the parameters to the linked view. Being a nubee to SQL Server I do not even know if what I am attempting to do is possible. I cannot wrap my mind around how a query that is using a view can know that the view needs parameters, and if it did, what to feed it. If it is possible, I have never done so obviously, so I don't even have the basics of what to set in Access to do the parameter passing. John W. Colby Colby Consulting www.ColbyConsulting.com <<< tail skipped >>> -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/694 - Release Date: 2/20/2007 1:44 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Thu Feb 22 18:32:11 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 22 Feb 2007 16:32:11 -0800 Subject: [AccessD] Feeding parameters to SQL Server In-Reply-To: <8301C8A868251E4C8ECD3D4FFEA40F8A2584B980@cpixchng-1.cpiqpc.net> Message-ID: <0JDW002FJ41KE610@l-daemon> Hi Rusty: Here is am old example of how to run any size report, using ADO. http://www.databaseadvisors.com/newsletters/newsletter112003/0311UnboundRepo rts.asp All the code is explained and sample database is provided. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rusty.hammond at cpiqpc.com Sent: Thursday, February 22, 2007 6:54 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Feeding parameters to SQL Server Shamil, Your earlier example of using a parameter table is interesting but you mention it doesn't work well in a multi-user environment, how would you get around the multi-user issue? Jim/Eric, I dynamically update the pass-through query as the link Eric gave suggests but I haven't run into any stability issues using this method (that I'm aware of). Have you seen any specific issues that you can point me to that I need to look out for? I'm using this in an app for our company that gathers data from other databases to produce invoices to our clients. This app is used by most of our more than 400 in-house users. Granted they won't all be running the reports that use the pass-through. Thanks, Rusty -----Original Message----- From: Shamil Salakhetdinov [mailto:shamil at users.mns.ru] Sent: Wednesday, February 21, 2007 5:41 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server No problem, Eric, I anyway planned to write a short note here on ADODB and parameterized stored procedures... BTW, for parameterized UDFs ADODB can be also used but the issue with access permissions usually forces to use stored procedures - I mean UDF can't be used with a table if a user does not have access permissions for this table. As for stored procedure - it can be used with a table even if a user does not have access permission to this table - user should only have a permission to execute this stored procedure. Here is an example with parameterized UDF and ADODB - parameters's values in this sample are hardcoded in select expression: Dim cnn As ADODB.Connection Dim strCnn As String Dim cmd As ADODB.Command Dim prm As ADODB.Parameter Dim rst As ADODB.Recordset strCnn = "Provider=sqloledb;Data Source=(local);Initial Catalog=Northwind;Integrated Security=SSPI;" Set cnn = New ADODB.Connection cnn.Open strCnn cnn.CursorLocation = adUseClient Set cmd = New ADODB.Command cmd.CommandType = adCmdText cmd.CommandText = "select * from TotalFreightStats( _ '1996-07-02', '1996-07-12')" cmd.ActiveConnection = cnn.ConnectionString Set rst = cmd.Execute While Not rst.EOF Debug.Print rst(0).Value & " - " & rst(1).Value rst.MoveNext Wend cnn.Close -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Thursday, February 22, 2007 1:51 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Uh..hmmm...Jim and Shamil...I was replying to Colby's question on passing parameters to SQL which was the original thread. Someone suggested pass-thru queries somewhere in the thread. I just happened to reply to the last message in the thread that came from Shamil. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, February 21, 2007 2:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Eric My recommendation is do not use pass-through queries. They are more problem than they are worth as they seem to be an easy quick fix to start with but end up being slow, awkward and unstable. I believe this set of processes was designed to punish newbie developers scaring them off weaning from a MDB BE. MS should have simply remove that whole gambit of functions from Access and never bring them up again in polite company. Now if you want my unvarnished opinion on the subject don't be afraid to ask. :-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Wednesday, February 21, 2007 1:47 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Unfortunately dynamic parameters and sql pass-thru queries don't play well in Access. http://www.utteraccess.com/forums/showflat.php?Board=82&Number=1361479 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, February 21, 2007 1:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Hello John, Let's suppose you use NorthWind sample database and you have to calculate total Freight for a Shipper given from/to dates. I assume you do not use ADPs - if you have used them then you could have created - a stored procedure: ===================== CREATE PROCEDURE usp_TotalFreightStats (@fromDate datetime, @toDate datetime ) AS BEGIN select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName END - or a UDF =========== CREATE FUNCTION TotalFreightStats (@fromDate datetime, @toDate datetime ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN declare @fromDate1 dateTime declare @toDate1 dateTime INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName RETURN END And you could have bound your report to this stored procedure or UDF - on open this report would have requested from/to dates in parameters input dialog. I assume you use mdb and then you can: - create table to keep parameters ================================== CREATE TABLE [dbo].[ParametersForUDFs] ( [fromDate] [datetime] NULL , [toDate] [datetime] NULL ) ON [PRIMARY] GO - populate this table with parameters' values (clear in first) ============================================================= delete from ParametersForUDFs insert into ParametersForUDFs (fromDate, toDate) values ('1996-07-04', '1996-07-12') - create UDF ============ CREATE FUNCTION TotalFreightStats1 ( ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between (select top 1 fromDate from ParametersForUDFs) and (select top 1 toDate from ParametersForUDFs) Group by ShipName RETURN END - use UDF in view ================== CREATE VIEW dbo.vw_TotalFreightStats1 AS SELECT ShipperName, TotalFreight FROM dbo.TotalFreightStats1() TotalFreightStats1 ++++++++++++++++++++++++++++++++++++ - link view to MS Access mdb ++++++++++++++++++++++++++++++++++++ Of course that approach will not work well in multi-user environment if different users will need different from/to dates... -- Shamil ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ebarro at verizon.net Thu Feb 22 18:32:01 2007 From: ebarro at verizon.net (Eric Barro) Date: Thu, 22 Feb 2007 16:32:01 -0800 Subject: [AccessD] Feeding parameters to SQL Server In-Reply-To: <0JDW002AN3A9F541@l-daemon> Message-ID: <0JDW000O345C3XC1@vms044.mailsrvcs.net> Try adding (nolock) to your SELECT statements. SELECT field FROM table a (nolock) INNER JOIN table2 b (nolock) ON a.field1 = b.field1 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, February 22, 2007 4:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Hi Debbie: Have you not found that pass-through queries that do a single record update or delete are not adversely affected but when you tried selecting 5000 records, for a report....that different story.... the pipe is just too narrow. Add a heavy multi-user environment, month-end and suddenly things start to unhinge. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Elam, Debbie Sent: Thursday, February 22, 2007 7:25 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server I have had good luck using pass through queries and parameters by using a bit of code I got off of Microsoft's site to dynamically create pass through queries. Instead of writing parameters into the query itself, I create the query with the parameters I want. Saves a lot of headache and pushes more processing off on the server. http://support.microsoft.com/kb/112108 Debbie -----Original Message----- From: Jim Lawrence [mailto:accessd at shaw.ca] Sent: Wednesday, February 21, 2007 4:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Eric My recommendation is do not use pass-through queries. They are more problem than they are worth as they seem to be an easy quick fix to start with but end up being slow, awkward and unstable. I believe this set of processes was designed to punish newbie developers scaring them off weaning from a MDB BE. MS should have simply remove that whole gambit of functions from Access and never bring them up again in polite company. Now if you want my unvarnished opinion on the subject don't be afraid to ask. :-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Wednesday, February 21, 2007 1:47 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Unfortunately dynamic parameters and sql pass-thru queries don't play well in Access. http://www.utteraccess.com/forums/showflat.php?Board=82&Number=1361479 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, February 21, 2007 1:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Hello John, Let's suppose you use NorthWind sample database and you have to calculate total Freight for a Shipper given from/to dates. I assume you do not use ADPs - if you have used them then you could have created - a stored procedure: ===================== CREATE PROCEDURE usp_TotalFreightStats (@fromDate datetime, @toDate datetime ) AS BEGIN select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName END - or a UDF =========== CREATE FUNCTION TotalFreightStats (@fromDate datetime, @toDate datetime ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN declare @fromDate1 dateTime declare @toDate1 dateTime INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName RETURN END And you could have bound your report to this stored procedure or UDF - on open this report would have requested from/to dates in parameters input dialog. I assume you use mdb and then you can: - create table to keep parameters ================================== CREATE TABLE [dbo].[ParametersForUDFs] ( [fromDate] [datetime] NULL , [toDate] [datetime] NULL ) ON [PRIMARY] GO - populate this table with parameters' values (clear in first) ============================================================= delete from ParametersForUDFs insert into ParametersForUDFs (fromDate, toDate) values ('1996-07-04', '1996-07-12') - create UDF ============ CREATE FUNCTION TotalFreightStats1 ( ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between (select top 1 fromDate from ParametersForUDFs) and (select top 1 toDate from ParametersForUDFs) Group by ShipName RETURN END - use UDF in view ================== CREATE VIEW dbo.vw_TotalFreightStats1 AS SELECT ShipperName, TotalFreight FROM dbo.TotalFreightStats1() TotalFreightStats1 ++++++++++++++++++++++++++++++++++++ - link view to MS Access mdb ++++++++++++++++++++++++++++++++++++ Of course that approach will not work well in multi-user environment if different users will need different from/to dates... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, February 21, 2007 10:11 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Well... I dunno. I have a view in SQL Server returning 8 fields, 6K records (currently), completely unfiltered, all records in the table. I pull that linked table into a query in order to do some preliminary filtering - check date between a pair of dates and check number not null. I want the view in sql server to do the "check number not null" for me, and I know how to do that. I want the SQL Server to take a pair of parameters - "From Date" and "To Date" and return only those records. If I could do this, then I could get rid of my "base query" in access which applies these filters, reduce traffic across the wire etc. However even if I do this, the view is not being requested by a form in XP (for example) where some magical thing happens in Access to pass the parameters off to SQL Server. The linked view will be used immediately in another query which joins this view to other tables (on one field - BEID - in the view) in order to build up a set of data for a report. So the "parent" query that is using the view will have to "feed" the parameters to the linked view. Being a nubee to SQL Server I do not even know if what I am attempting to do is possible. I cannot wrap my mind around how a query that is using a view can know that the view needs parameters, and if it did, what to feed it. If it is possible, I have never done so obviously, so I don't even have the basics of what to set in Access to do the parameter passing. John W. Colby Colby Consulting www.ColbyConsulting.com <<< tail skipped >>> -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/694 - Release Date: 2/20/2007 1:44 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/697 - Release Date: 2/22/2007 11:55 AM From accessd at shaw.ca Thu Feb 22 18:43:43 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 22 Feb 2007 16:43:43 -0800 Subject: [AccessD] Feeding parameters to SQL Server In-Reply-To: <0JDW000O345C3XC1@vms044.mailsrvcs.net> Message-ID: <0JDW002XN4KSA240@l-daemon> Hi Eric: Now that is very interesting. My goodness I learn something every day. Any samples or descriptions on websites? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Thursday, February 22, 2007 4:32 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Try adding (nolock) to your SELECT statements. SELECT field FROM table a (nolock) INNER JOIN table2 b (nolock) ON a.field1 = b.field1 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, February 22, 2007 4:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Hi Debbie: Have you not found that pass-through queries that do a single record update or delete are not adversely affected but when you tried selecting 5000 records, for a report....that different story.... the pipe is just too narrow. Add a heavy multi-user environment, month-end and suddenly things start to unhinge. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Elam, Debbie Sent: Thursday, February 22, 2007 7:25 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server I have had good luck using pass through queries and parameters by using a bit of code I got off of Microsoft's site to dynamically create pass through queries. Instead of writing parameters into the query itself, I create the query with the parameters I want. Saves a lot of headache and pushes more processing off on the server. http://support.microsoft.com/kb/112108 Debbie -----Original Message----- From: Jim Lawrence [mailto:accessd at shaw.ca] Sent: Wednesday, February 21, 2007 4:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Eric My recommendation is do not use pass-through queries. They are more problem than they are worth as they seem to be an easy quick fix to start with but end up being slow, awkward and unstable. I believe this set of processes was designed to punish newbie developers scaring them off weaning from a MDB BE. MS should have simply remove that whole gambit of functions from Access and never bring them up again in polite company. Now if you want my unvarnished opinion on the subject don't be afraid to ask. :-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Wednesday, February 21, 2007 1:47 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Unfortunately dynamic parameters and sql pass-thru queries don't play well in Access. http://www.utteraccess.com/forums/showflat.php?Board=82&Number=1361479 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, February 21, 2007 1:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Hello John, Let's suppose you use NorthWind sample database and you have to calculate total Freight for a Shipper given from/to dates. I assume you do not use ADPs - if you have used them then you could have created - a stored procedure: ===================== CREATE PROCEDURE usp_TotalFreightStats (@fromDate datetime, @toDate datetime ) AS BEGIN select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName END - or a UDF =========== CREATE FUNCTION TotalFreightStats (@fromDate datetime, @toDate datetime ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN declare @fromDate1 dateTime declare @toDate1 dateTime INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName RETURN END And you could have bound your report to this stored procedure or UDF - on open this report would have requested from/to dates in parameters input dialog. I assume you use mdb and then you can: - create table to keep parameters ================================== CREATE TABLE [dbo].[ParametersForUDFs] ( [fromDate] [datetime] NULL , [toDate] [datetime] NULL ) ON [PRIMARY] GO - populate this table with parameters' values (clear in first) ============================================================= delete from ParametersForUDFs insert into ParametersForUDFs (fromDate, toDate) values ('1996-07-04', '1996-07-12') - create UDF ============ CREATE FUNCTION TotalFreightStats1 ( ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between (select top 1 fromDate from ParametersForUDFs) and (select top 1 toDate from ParametersForUDFs) Group by ShipName RETURN END - use UDF in view ================== CREATE VIEW dbo.vw_TotalFreightStats1 AS SELECT ShipperName, TotalFreight FROM dbo.TotalFreightStats1() TotalFreightStats1 ++++++++++++++++++++++++++++++++++++ - link view to MS Access mdb ++++++++++++++++++++++++++++++++++++ Of course that approach will not work well in multi-user environment if different users will need different from/to dates... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, February 21, 2007 10:11 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Well... I dunno. I have a view in SQL Server returning 8 fields, 6K records (currently), completely unfiltered, all records in the table. I pull that linked table into a query in order to do some preliminary filtering - check date between a pair of dates and check number not null. I want the view in sql server to do the "check number not null" for me, and I know how to do that. I want the SQL Server to take a pair of parameters - "From Date" and "To Date" and return only those records. If I could do this, then I could get rid of my "base query" in access which applies these filters, reduce traffic across the wire etc. However even if I do this, the view is not being requested by a form in XP (for example) where some magical thing happens in Access to pass the parameters off to SQL Server. The linked view will be used immediately in another query which joins this view to other tables (on one field - BEID - in the view) in order to build up a set of data for a report. So the "parent" query that is using the view will have to "feed" the parameters to the linked view. Being a nubee to SQL Server I do not even know if what I am attempting to do is possible. I cannot wrap my mind around how a query that is using a view can know that the view needs parameters, and if it did, what to feed it. If it is possible, I have never done so obviously, so I don't even have the basics of what to set in Access to do the parameter passing. John W. Colby Colby Consulting www.ColbyConsulting.com <<< tail skipped >>> -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/694 - Release Date: 2/20/2007 1:44 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/697 - Release Date: 2/22/2007 11:55 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ebarro at verizon.net Thu Feb 22 21:42:27 2007 From: ebarro at verizon.net (Eric Barro) Date: Thu, 22 Feb 2007 19:42:27 -0800 Subject: [AccessD] Feeding parameters to SQL Server In-Reply-To: <0JDW002XN4KSA240@l-daemon> Message-ID: <0JDW00JSWCZ8LCW5@vms048.mailsrvcs.net> Jim, Here's a good article... http://www.sql-server-performance.com/lock_contention_tamed_article.asp Eric -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, February 22, 2007 4:44 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Hi Eric: Now that is very interesting. My goodness I learn something every day. Any samples or descriptions on websites? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Thursday, February 22, 2007 4:32 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Try adding (nolock) to your SELECT statements. SELECT field FROM table a (nolock) INNER JOIN table2 b (nolock) ON a.field1 = b.field1 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, February 22, 2007 4:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Hi Debbie: Have you not found that pass-through queries that do a single record update or delete are not adversely affected but when you tried selecting 5000 records, for a report....that different story.... the pipe is just too narrow. Add a heavy multi-user environment, month-end and suddenly things start to unhinge. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Elam, Debbie Sent: Thursday, February 22, 2007 7:25 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server I have had good luck using pass through queries and parameters by using a bit of code I got off of Microsoft's site to dynamically create pass through queries. Instead of writing parameters into the query itself, I create the query with the parameters I want. Saves a lot of headache and pushes more processing off on the server. http://support.microsoft.com/kb/112108 Debbie -----Original Message----- From: Jim Lawrence [mailto:accessd at shaw.ca] Sent: Wednesday, February 21, 2007 4:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Eric My recommendation is do not use pass-through queries. They are more problem than they are worth as they seem to be an easy quick fix to start with but end up being slow, awkward and unstable. I believe this set of processes was designed to punish newbie developers scaring them off weaning from a MDB BE. MS should have simply remove that whole gambit of functions from Access and never bring them up again in polite company. Now if you want my unvarnished opinion on the subject don't be afraid to ask. :-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Wednesday, February 21, 2007 1:47 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Unfortunately dynamic parameters and sql pass-thru queries don't play well in Access. http://www.utteraccess.com/forums/showflat.php?Board=82&Number=1361479 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, February 21, 2007 1:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Hello John, Let's suppose you use NorthWind sample database and you have to calculate total Freight for a Shipper given from/to dates. I assume you do not use ADPs - if you have used them then you could have created - a stored procedure: ===================== CREATE PROCEDURE usp_TotalFreightStats (@fromDate datetime, @toDate datetime ) AS BEGIN select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName END - or a UDF =========== CREATE FUNCTION TotalFreightStats (@fromDate datetime, @toDate datetime ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN declare @fromDate1 dateTime declare @toDate1 dateTime INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName RETURN END And you could have bound your report to this stored procedure or UDF - on open this report would have requested from/to dates in parameters input dialog. I assume you use mdb and then you can: - create table to keep parameters ================================== CREATE TABLE [dbo].[ParametersForUDFs] ( [fromDate] [datetime] NULL , [toDate] [datetime] NULL ) ON [PRIMARY] GO - populate this table with parameters' values (clear in first) ============================================================= delete from ParametersForUDFs insert into ParametersForUDFs (fromDate, toDate) values ('1996-07-04', '1996-07-12') - create UDF ============ CREATE FUNCTION TotalFreightStats1 ( ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between (select top 1 fromDate from ParametersForUDFs) and (select top 1 toDate from ParametersForUDFs) Group by ShipName RETURN END - use UDF in view ================== CREATE VIEW dbo.vw_TotalFreightStats1 AS SELECT ShipperName, TotalFreight FROM dbo.TotalFreightStats1() TotalFreightStats1 ++++++++++++++++++++++++++++++++++++ - link view to MS Access mdb ++++++++++++++++++++++++++++++++++++ Of course that approach will not work well in multi-user environment if different users will need different from/to dates... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, February 21, 2007 10:11 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Well... I dunno. I have a view in SQL Server returning 8 fields, 6K records (currently), completely unfiltered, all records in the table. I pull that linked table into a query in order to do some preliminary filtering - check date between a pair of dates and check number not null. I want the view in sql server to do the "check number not null" for me, and I know how to do that. I want the SQL Server to take a pair of parameters - "From Date" and "To Date" and return only those records. If I could do this, then I could get rid of my "base query" in access which applies these filters, reduce traffic across the wire etc. However even if I do this, the view is not being requested by a form in XP (for example) where some magical thing happens in Access to pass the parameters off to SQL Server. The linked view will be used immediately in another query which joins this view to other tables (on one field - BEID - in the view) in order to build up a set of data for a report. So the "parent" query that is using the view will have to "feed" the parameters to the linked view. Being a nubee to SQL Server I do not even know if what I am attempting to do is possible. I cannot wrap my mind around how a query that is using a view can know that the view needs parameters, and if it did, what to feed it. If it is possible, I have never done so obviously, so I don't even have the basics of what to set in Access to do the parameter passing. John W. Colby Colby Consulting www.ColbyConsulting.com <<< tail skipped >>> -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/694 - Release Date: 2/20/2007 1:44 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/697 - Release Date: 2/22/2007 11:55 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/697 - Release Date: 2/22/2007 11:55 AM From DElam at jenkens.com Fri Feb 23 08:50:08 2007 From: DElam at jenkens.com (Elam, Debbie) Date: Fri, 23 Feb 2007 08:50:08 -0600 Subject: [AccessD] Feeding parameters to SQL Server Message-ID: <7B1961ED924D1A459E378C9B1BB22B4C068DECDF@natexch.jenkens.com> Perhaps it is an environment issue. I have not had a performance hit off even large queries for reports. Debbie -----Original Message----- From: Jim Lawrence [mailto:accessd at shaw.ca] Sent: Thursday, February 22, 2007 6:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Hi Debbie: Have you not found that pass-through queries that do a single record update or delete are not adversely affected but when you tried selecting 5000 records, for a report....that different story.... the pipe is just too narrow. Add a heavy multi-user environment, month-end and suddenly things start to unhinge. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Elam, Debbie Sent: Thursday, February 22, 2007 7:25 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server I have had good luck using pass through queries and parameters by using a bit of code I got off of Microsoft's site to dynamically create pass through queries. Instead of writing parameters into the query itself, I create the query with the parameters I want. Saves a lot of headache and pushes more processing off on the server. http://support.microsoft.com/kb/112108 Debbie -----Original Message----- From: Jim Lawrence [mailto:accessd at shaw.ca] Sent: Wednesday, February 21, 2007 4:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Eric My recommendation is do not use pass-through queries. They are more problem than they are worth as they seem to be an easy quick fix to start with but end up being slow, awkward and unstable. I believe this set of processes was designed to punish newbie developers scaring them off weaning from a MDB BE. MS should have simply remove that whole gambit of functions from Access and never bring them up again in polite company. Now if you want my unvarnished opinion on the subject don't be afraid to ask. :-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Wednesday, February 21, 2007 1:47 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Unfortunately dynamic parameters and sql pass-thru queries don't play well in Access. http://www.utteraccess.com/forums/showflat.php?Board=82&Number=1361479 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, February 21, 2007 1:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Hello John, Let's suppose you use NorthWind sample database and you have to calculate total Freight for a Shipper given from/to dates. I assume you do not use ADPs - if you have used them then you could have created - a stored procedure: ===================== CREATE PROCEDURE usp_TotalFreightStats (@fromDate datetime, @toDate datetime ) AS BEGIN select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName END - or a UDF =========== CREATE FUNCTION TotalFreightStats (@fromDate datetime, @toDate datetime ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN declare @fromDate1 dateTime declare @toDate1 dateTime INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName RETURN END And you could have bound your report to this stored procedure or UDF - on open this report would have requested from/to dates in parameters input dialog. I assume you use mdb and then you can: - create table to keep parameters ================================== CREATE TABLE [dbo].[ParametersForUDFs] ( [fromDate] [datetime] NULL , [toDate] [datetime] NULL ) ON [PRIMARY] GO - populate this table with parameters' values (clear in first) ============================================================= delete from ParametersForUDFs insert into ParametersForUDFs (fromDate, toDate) values ('1996-07-04', '1996-07-12') - create UDF ============ CREATE FUNCTION TotalFreightStats1 ( ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between (select top 1 fromDate from ParametersForUDFs) and (select top 1 toDate from ParametersForUDFs) Group by ShipName RETURN END - use UDF in view ================== CREATE VIEW dbo.vw_TotalFreightStats1 AS SELECT ShipperName, TotalFreight FROM dbo.TotalFreightStats1() TotalFreightStats1 ++++++++++++++++++++++++++++++++++++ - link view to MS Access mdb ++++++++++++++++++++++++++++++++++++ Of course that approach will not work well in multi-user environment if different users will need different from/to dates... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, February 21, 2007 10:11 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Well... I dunno. I have a view in SQL Server returning 8 fields, 6K records (currently), completely unfiltered, all records in the table. I pull that linked table into a query in order to do some preliminary filtering - check date between a pair of dates and check number not null. I want the view in sql server to do the "check number not null" for me, and I know how to do that. I want the SQL Server to take a pair of parameters - "From Date" and "To Date" and return only those records. If I could do this, then I could get rid of my "base query" in access which applies these filters, reduce traffic across the wire etc. However even if I do this, the view is not being requested by a form in XP (for example) where some magical thing happens in Access to pass the parameters off to SQL Server. The linked view will be used immediately in another query which joins this view to other tables (on one field - BEID - in the view) in order to build up a set of data for a report. So the "parent" query that is using the view will have to "feed" the parameters to the linked view. Being a nubee to SQL Server I do not even know if what I am attempting to do is possible. I cannot wrap my mind around how a query that is using a view can know that the view needs parameters, and if it did, what to feed it. If it is possible, I have never done so obviously, so I don't even have the basics of what to set in Access to do the parameter passing. John W. Colby Colby Consulting www.ColbyConsulting.com <<< tail skipped >>> -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/694 - Release Date: 2/20/2007 1:44 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Kwilliamson at RTKL.com Fri Feb 23 12:41:47 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Fri, 23 Feb 2007 13:41:47 -0500 Subject: [AccessD] Crosstab Question Message-ID: Hi all, I have a query with "[Enter Year for Report]" and "[Enter Month for Report]" as criteria for the Year, and Month of the financial data. This works fine, for prompting the user for the info, to filter the data. However, I have also created a crosstab query, based on this query. When I try to run the crosstab, it tells me that the jet database engine does not recognize [Enter Year for Report] as a valid field name. ?? Regards, Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com From Kwilliamson at RTKL.com Fri Feb 23 12:50:39 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Fri, 23 Feb 2007 13:50:39 -0500 Subject: [AccessD] Crosstab Question In-Reply-To: References: Message-ID: Oops. Nevermind. :) Discovered adding parameters in my crosstab properties. Unless someone else has other advice. Regards, Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Friday, February 23, 2007 1:42 PM To: Access Developers discussion and problem solving Subject: [AccessD] Crosstab Question Hi all, I have a query with "[Enter Year for Report]" and "[Enter Month for Report]" as criteria for the Year, and Month of the financial data. This works fine, for prompting the user for the info, to filter the data. However, I have also created a crosstab query, based on this query. When I try to run the crosstab, it tells me that the jet database engine does not recognize [Enter Year for Report] as a valid field name. ?? Regards, Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Fri Feb 23 12:51:04 2007 From: artful at rogers.com (artful at rogers.com) Date: Fri, 23 Feb 2007 10:51:04 -0800 (PST) Subject: [AccessD] Crosstab Question Message-ID: <323437.20485.qm@web88202.mail.re2.yahoo.com> You have to base the crosstab on the result query from the first operation, so that the parameters are gone, and only their result set left. Then your problem will disappear. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Keith Williamson To: Access Developers discussion and problem solving Sent: Friday, February 23, 2007 1:41:47 PM Subject: [AccessD] Crosstab Question Hi all, I have a query with "[Enter Year for Report]" and "[Enter Month for Report]" as criteria for the Year, and Month of the financial data. This works fine, for prompting the user for the info, to filter the data. However, I have also created a crosstab query, based on this query. When I try to run the crosstab, it tells me that the jet database engine does not recognize [Enter Year for Report] as a valid field name. ?? Regards, Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at setel.com Fri Feb 23 13:34:11 2007 From: ssharkins at setel.com (Susan Harkins) Date: Fri, 23 Feb 2007 14:34:11 -0500 Subject: [AccessD] Checkbox contents disappear in Word Message-ID: <006901c75781$99049300$aeb82ad1@SUSANONE> I published an Access report to Word and the checkbox contents disappeared. I don't remember this happening before -- can't Word handle checkmarks? Susan H. From accessd at shaw.ca Fri Feb 23 14:45:20 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 23 Feb 2007 12:45:20 -0800 Subject: [AccessD] Feeding parameters to SQL Server In-Reply-To: <7B1961ED924D1A459E378C9B1BB22B4C068DECDF@natexch.jenkens.com> Message-ID: <0JDX002U2O7E6X20@l-daemon> Hi Debbie: I had these problems with Access 2000; maybe in later version this has been resolved. At the time before migrating the clients from a pass-through model it was taking over 30 minutes to produce. After the re-design month end reports would start in less than a few minutes... After that I have never looked back. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Elam, Debbie Sent: Friday, February 23, 2007 6:50 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Perhaps it is an environment issue. I have not had a performance hit off even large queries for reports. Debbie -----Original Message----- From: Jim Lawrence [mailto:accessd at shaw.ca] Sent: Thursday, February 22, 2007 6:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Hi Debbie: Have you not found that pass-through queries that do a single record update or delete are not adversely affected but when you tried selecting 5000 records, for a report....that different story.... the pipe is just too narrow. Add a heavy multi-user environment, month-end and suddenly things start to unhinge. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Elam, Debbie Sent: Thursday, February 22, 2007 7:25 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server I have had good luck using pass through queries and parameters by using a bit of code I got off of Microsoft's site to dynamically create pass through queries. Instead of writing parameters into the query itself, I create the query with the parameters I want. Saves a lot of headache and pushes more processing off on the server. http://support.microsoft.com/kb/112108 Debbie -----Original Message----- From: Jim Lawrence [mailto:accessd at shaw.ca] Sent: Wednesday, February 21, 2007 4:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Eric My recommendation is do not use pass-through queries. They are more problem than they are worth as they seem to be an easy quick fix to start with but end up being slow, awkward and unstable. I believe this set of processes was designed to punish newbie developers scaring them off weaning from a MDB BE. MS should have simply remove that whole gambit of functions from Access and never bring them up again in polite company. Now if you want my unvarnished opinion on the subject don't be afraid to ask. :-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Wednesday, February 21, 2007 1:47 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Unfortunately dynamic parameters and sql pass-thru queries don't play well in Access. http://www.utteraccess.com/forums/showflat.php?Board=82&Number=1361479 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, February 21, 2007 1:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Hello John, Let's suppose you use NorthWind sample database and you have to calculate total Freight for a Shipper given from/to dates. I assume you do not use ADPs - if you have used them then you could have created - a stored procedure: ===================== CREATE PROCEDURE usp_TotalFreightStats (@fromDate datetime, @toDate datetime ) AS BEGIN select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName END - or a UDF =========== CREATE FUNCTION TotalFreightStats (@fromDate datetime, @toDate datetime ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN declare @fromDate1 dateTime declare @toDate1 dateTime INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName RETURN END And you could have bound your report to this stored procedure or UDF - on open this report would have requested from/to dates in parameters input dialog. I assume you use mdb and then you can: - create table to keep parameters ================================== CREATE TABLE [dbo].[ParametersForUDFs] ( [fromDate] [datetime] NULL , [toDate] [datetime] NULL ) ON [PRIMARY] GO - populate this table with parameters' values (clear in first) ============================================================= delete from ParametersForUDFs insert into ParametersForUDFs (fromDate, toDate) values ('1996-07-04', '1996-07-12') - create UDF ============ CREATE FUNCTION TotalFreightStats1 ( ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between (select top 1 fromDate from ParametersForUDFs) and (select top 1 toDate from ParametersForUDFs) Group by ShipName RETURN END - use UDF in view ================== CREATE VIEW dbo.vw_TotalFreightStats1 AS SELECT ShipperName, TotalFreight FROM dbo.TotalFreightStats1() TotalFreightStats1 ++++++++++++++++++++++++++++++++++++ - link view to MS Access mdb ++++++++++++++++++++++++++++++++++++ Of course that approach will not work well in multi-user environment if different users will need different from/to dates... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, February 21, 2007 10:11 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Well... I dunno. I have a view in SQL Server returning 8 fields, 6K records (currently), completely unfiltered, all records in the table. I pull that linked table into a query in order to do some preliminary filtering - check date between a pair of dates and check number not null. I want the view in sql server to do the "check number not null" for me, and I know how to do that. I want the SQL Server to take a pair of parameters - "From Date" and "To Date" and return only those records. If I could do this, then I could get rid of my "base query" in access which applies these filters, reduce traffic across the wire etc. However even if I do this, the view is not being requested by a form in XP (for example) where some magical thing happens in Access to pass the parameters off to SQL Server. The linked view will be used immediately in another query which joins this view to other tables (on one field - BEID - in the view) in order to build up a set of data for a report. So the "parent" query that is using the view will have to "feed" the parameters to the linked view. Being a nubee to SQL Server I do not even know if what I am attempting to do is possible. I cannot wrap my mind around how a query that is using a view can know that the view needs parameters, and if it did, what to feed it. If it is possible, I have never done so obviously, so I don't even have the basics of what to set in Access to do the parameter passing. John W. Colby Colby Consulting www.ColbyConsulting.com <<< tail skipped >>> -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/694 - Release Date: 2/20/2007 1:44 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Fri Feb 23 21:03:21 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Sat, 24 Feb 2007 03:03:21 +0000 Subject: [AccessD] FW: Basic Question In-Reply-To: Message-ID: >From: "Mark A Matte" >Reply-To: Access Developers discussion and problem >solving >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] FW: Basic Question >Date: Thu, 22 Feb 2007 18:10:39 +0000 > >How do you put a set the BeforeUpdate to a function...I thought you could >either pick [Event Procedure] or the name of a macro? > >Thanks, > >Mark > > >>From: "Rocky Smolin at Beach Access Software" >>Reply-To: Access Developers discussion and problem >>solving >>To: >>Subject: [AccessD] FW: Basic Question >>Date: Thu, 22 Feb 2007 10:02:01 -0800 >> >>FYI - Here's the workaround he came up with >> >>Rocky >> >> >> _____ >> >>From: Mike Dwyer [mailto:mike at aesadvantage.net] >>Sent: Thursday, February 22, 2007 9:58 AM >>To: Rocky Smolin; bheygood at abestsystems.com; Dixon; Barry Hynum; >>Bob_Heygood; Doug Murphy; Ed Lance; Jackie Murphy; JKA Joe K Anderson >>Subject: RE: Basic Question >> >> >> >>Thanks, Rocky. >> >>My workaround seems to be nice and simple: I selected all 120 fields and >>in >>the Property Sheet I entered: "BeforeUpdate() = True" in the >>ValidationRule >>property. This will call the function and if it returns False, the >>validation rule will fail. Within the function I set the ValidationText >>to >>my error message and it works just fine. >> >> >> >> >> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com > >_________________________________________________________________ >Find what you need at prices you?ll love. Compare products and save at MSN? >Shopping. >http://shopping.msn.com/default/shp/?ptnrid=37,ptnrdata=24102&tcode=T001MSN20A0701 > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Refi Now: Rates near 39yr lows! $430,000 Mortgage for $1,399/mo - Calculate new payment http://www.lowermybills.com/lre/index.jsp?sourceid=lmb-9632-17727&moid=7581 From markamatte at hotmail.com Fri Feb 23 21:03:54 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Sat, 24 Feb 2007 03:03:54 +0000 Subject: [AccessD] FW: Basic Question In-Reply-To: Message-ID: How do you put a set the BeforeUpdate to a function...I thought you could either pick [Event Procedure] or the name of a macro? Thanks, Mark >From: "Mark A Matte" >Reply-To: Access Developers discussion and problem >solving >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] FW: Basic Question >Date: Thu, 22 Feb 2007 18:10:39 +0000 > >How do you put a set the BeforeUpdate to a function...I thought you could >either pick [Event Procedure] or the name of a macro? > >Thanks, > >Mark > > >>From: "Rocky Smolin at Beach Access Software" >>Reply-To: Access Developers discussion and problem >>solving >>To: >>Subject: [AccessD] FW: Basic Question >>Date: Thu, 22 Feb 2007 10:02:01 -0800 >> >>FYI - Here's the workaround he came up with >> >>Rocky >> >> >> _____ >> >>From: Mike Dwyer [mailto:mike at aesadvantage.net] >>Sent: Thursday, February 22, 2007 9:58 AM >>To: Rocky Smolin; bheygood at abestsystems.com; Dixon; Barry Hynum; >>Bob_Heygood; Doug Murphy; Ed Lance; Jackie Murphy; JKA Joe K Anderson >>Subject: RE: Basic Question >> >> >> >>Thanks, Rocky. >> >>My workaround seems to be nice and simple: I selected all 120 fields and >>in >>the Property Sheet I entered: "BeforeUpdate() = True" in the >>ValidationRule >>property. This will call the function and if it returns False, the >>validation rule will fail. Within the function I set the ValidationText >>to >>my error message and it works just fine. >> >> >> >> >> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com > >_________________________________________________________________ >Find what you need at prices you?ll love. Compare products and save at MSN? >Shopping. >http://shopping.msn.com/default/shp/?ptnrid=37,ptnrdata=24102&tcode=T001MSN20A0701 > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ With tax season right around the corner, make sure to follow these few simple tips. http://articles.moneycentral.msn.com/Taxes/PreparationTips/PreparationTips.aspx?icid=HMFebtagline From stuart at lexacorp.com.pg Fri Feb 23 23:20:07 2007 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 24 Feb 2007 15:20:07 +1000 Subject: [AccessD] FW: Basic Question In-Reply-To: References: , Message-ID: <45DFCB07.29198.2CBFD1D1@stuart.lexacorp.com.pg> Instead of "[Event Procedure]" or "MacroName", put "=myFunction()" in the property box. On 24 Feb 2007 at 3:03, Mark A Matte wrote: > How do you put a set the BeforeUpdate to a function...I thought you > could either pick [Event Procedure] or the name of a macro? > > Thanks, > > Mark > > > >From: "Mark A Matte" > >Reply-To: Access Developers discussion and problem > >solving > >To: accessd at databaseadvisors.com > >Subject: Re: [AccessD] FW: Basic Question > >Date: Thu, 22 Feb 2007 18:10:39 +0000 > > > >How do you put a set the BeforeUpdate to a function...I thought you could > >either pick [Event Procedure] or the name of a macro? > > > >Thanks, > > > >Mark > > > > > >>From: "Rocky Smolin at Beach Access Software" > >>Reply-To: Access Developers discussion and problem > >>solving To: > >>Subject: [AccessD] FW: Basic Question Date: Thu, 22 Feb 2007 10:02:01 > >>-0800 > >> > >>FYI - Here's the workaround he came up with > >> > >>Rocky > >> > >> > >> _____ > >> > >>From: Mike Dwyer [mailto:mike at aesadvantage.net] > >>Sent: Thursday, February 22, 2007 9:58 AM > >>To: Rocky Smolin; bheygood at abestsystems.com; Dixon; Barry Hynum; > >>Bob_Heygood; Doug Murphy; Ed Lance; Jackie Murphy; JKA Joe K Anderson > >>Subject: RE: Basic Question > >> > >> > >> > >>Thanks, Rocky. > >> > >>My workaround seems to be nice and simple: I selected all 120 fields and > >>in the Property Sheet I entered: "BeforeUpdate() = True" in the > >>ValidationRule property. This will call the function and if it returns > >>False, the validation rule will fail. Within the function I set the > >>ValidationText to my error message and it works just fine. > >> > >> > >> > >> > >> > >>-- > >>AccessD mailing list > >>AccessD at databaseadvisors.com > >>http://databaseadvisors.com/mailman/listinfo/accessd > >>Website: http://www.databaseadvisors.com > > > >_________________________________________________________________ > >Find what you need at prices you?ll love. Compare products and save at MSN? > > Shopping. > >http://shopping.msn.com/default/shp/?ptnrid=37,ptnrdata=24102&tcode=T001MSN > >20A0701 > > > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > _________________________________________________________________ > With tax season right around the corner, make sure to follow these few > simple tips. > http://articles.moneycentral.msn.com/Taxes/PreparationTips/PreparationTips.a > spx?icid=HMFebtagline > > -- Stuart From viner at EUnet.yu Mon Feb 26 08:02:33 2007 From: viner at EUnet.yu (Ervin Brindza) Date: Mon, 26 Feb 2007 15:02:33 +0100 Subject: [AccessD] VBE Express videos Message-ID: <042901c759ae$c6504780$0100a8c0@RazvojErvin> I'm lurking in my personal archives and found a John W. Colby's email message about VBE Express Videos. But, unfortunately, the url isn' available ;0( The url is http://lab.msdn.microsoft.com/express/beginner/ Does anybody know where can I find those videos? Many thanks in advance, Ervin Brindza From rockysmolin at bchacc.com Mon Feb 26 10:39:07 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Mon, 26 Feb 2007 08:39:07 -0800 Subject: [AccessD] You canceled the previous operation (but I didn't) Message-ID: <005b01c759c4$a2ab0ed0$0201a8c0@HAL9005> Dear List: Can anyone see why I should get an error "2001 - you cancelled the previous operation" on the statement Me.Bookmark = Me.RecordsetClone.Bookmark in the following? Me.RecordsetClone.FindFirst "[PartNumber] = '" & Me.cboPartsList.Value & "'" MsgBox Me.RecordsetClone.NoMatch If Me.RecordsetClone.NoMatch = True Then MsgboxUni Me.hWnd, TranslateMsgbox("PartNumberNotFound"), , vbExclamation DoCmd.GoToRecord , , acFirst Else Me.Bookmark = Me.RecordsetClone.Bookmark 'Me.cmdExitDemandSide.SetFocus 'cboPartsList.Visible = False End If Interestingly, if I hit debug to the error message (and it opens the code page with that statement highlighted) and I pressF5, it carries on just fine. MTIA, Rocky From Gustav at cactus.dk Mon Feb 26 10:53:37 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 26 Feb 2007 17:53:37 +0100 Subject: [AccessD] You canceled the previous operation (but I didn't) Message-ID: Hi Rocky Try with: If Me.RecordsetClone.NoMatch = True Then MsgboxUni Me.hWnd, TranslateMsgbox("PartNumberNotFound"), , vbExclamation Me.RecordsetClone.MoveFirst End If Me.Bookmark = Me.RecordsetClone.Bookmark 'Me.cmdExitDemandSide.SetFocus 'cboPartsList.Visible = False Also, you should assign RecordsetClone to a Recordset and then manipulate that. /gustav >>> rockysmolin at bchacc.com 26-02-2007 17:39:07 >>> Dear List: Can anyone see why I should get an error "2001 - you cancelled the previous operation" on the statement Me.Bookmark = Me.RecordsetClone.Bookmark in the following? Me.RecordsetClone.FindFirst "[PartNumber] = '" & Me.cboPartsList.Value & "'" MsgBox Me.RecordsetClone.NoMatch If Me.RecordsetClone.NoMatch = True Then MsgboxUni Me.hWnd, TranslateMsgbox("PartNumberNotFound"), , vbExclamation DoCmd.GoToRecord , , acFirst Else Me.Bookmark = Me.RecordsetClone.Bookmark 'Me.cmdExitDemandSide.SetFocus 'cboPartsList.Visible = False End If Interestingly, if I hit debug to the error message (and it opens the code page with that statement highlighted) and I pressF5, it carries on just fine. MTIA, Rocky From rockysmolin at bchacc.com Mon Feb 26 11:18:12 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Mon, 26 Feb 2007 09:18:12 -0800 Subject: [AccessD] You canceled the previous operation (but I didn't) In-Reply-To: Message-ID: <006901c759ca$18bddb70$0201a8c0@HAL9005> Gustav: Thanks for your reply. I tried substituting your code but got the same result. This is a bound form and I'm trying to go to the record selected in the combo box. As I noted, if I debug and then press F5 it carries on successfully. Is perhaps that a clue? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, February 26, 2007 8:54 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] You canceled the previous operation (but I didn't) Hi Rocky Try with: If Me.RecordsetClone.NoMatch = True Then MsgboxUni Me.hWnd, TranslateMsgbox("PartNumberNotFound"), , vbExclamation Me.RecordsetClone.MoveFirst End If Me.Bookmark = Me.RecordsetClone.Bookmark 'Me.cmdExitDemandSide.SetFocus 'cboPartsList.Visible = False Also, you should assign RecordsetClone to a Recordset and then manipulate that. /gustav >>> rockysmolin at bchacc.com 26-02-2007 17:39:07 >>> Dear List: Can anyone see why I should get an error "2001 - you cancelled the previous operation" on the statement Me.Bookmark = Me.RecordsetClone.Bookmark in the following? Me.RecordsetClone.FindFirst "[PartNumber] = '" & Me.cboPartsList.Value & "'" MsgBox Me.RecordsetClone.NoMatch If Me.RecordsetClone.NoMatch = True Then MsgboxUni Me.hWnd, TranslateMsgbox("PartNumberNotFound"), , vbExclamation DoCmd.GoToRecord , , acFirst Else Me.Bookmark = Me.RecordsetClone.Bookmark 'Me.cmdExitDemandSide.SetFocus 'cboPartsList.Visible = False End If Interestingly, if I hit debug to the error message (and it opens the code page with that statement highlighted) and I pressF5, it carries on just fine. MTIA, Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.4/702 - Release Date: 2/25/2007 3:16 PM From JHewson at karta.com Mon Feb 26 11:20:25 2007 From: JHewson at karta.com (Jim Hewson) Date: Mon, 26 Feb 2007 11:20:25 -0600 Subject: [AccessD] You canceled the previous operation (but I didn't) References: <006901c759ca$18bddb70$0201a8c0@HAL9005> Message-ID: <9C382E065F54AE48BC3AA7925DCBB01C04F20C6E@karta-exc-int.Karta.com> Try removing the quotes around your cboPartslist. If it's text it might work as is but if the Parts list is numeric it could give you that error. Jim jhewson at karta.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, February 26, 2007 11:18 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] You canceled the previous operation (but I didn't) Gustav: Thanks for your reply. I tried substituting your code but got the same result. This is a bound form and I'm trying to go to the record selected in the combo box. As I noted, if I debug and then press F5 it carries on successfully. Is perhaps that a clue? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, February 26, 2007 8:54 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] You canceled the previous operation (but I didn't) Hi Rocky Try with: If Me.RecordsetClone.NoMatch = True Then MsgboxUni Me.hWnd, TranslateMsgbox("PartNumberNotFound"), , vbExclamation Me.RecordsetClone.MoveFirst End If Me.Bookmark = Me.RecordsetClone.Bookmark 'Me.cmdExitDemandSide.SetFocus 'cboPartsList.Visible = False Also, you should assign RecordsetClone to a Recordset and then manipulate that. /gustav >>> rockysmolin at bchacc.com 26-02-2007 17:39:07 >>> Dear List: Can anyone see why I should get an error "2001 - you cancelled the previous operation" on the statement Me.Bookmark = Me.RecordsetClone.Bookmark in the following? Me.RecordsetClone.FindFirst "[PartNumber] = '" & Me.cboPartsList.Value & "'" MsgBox Me.RecordsetClone.NoMatch If Me.RecordsetClone.NoMatch = True Then MsgboxUni Me.hWnd, TranslateMsgbox("PartNumberNotFound"), , vbExclamation DoCmd.GoToRecord , , acFirst Else Me.Bookmark = Me.RecordsetClone.Bookmark 'Me.cmdExitDemandSide.SetFocus 'cboPartsList.Visible = False End If Interestingly, if I hit debug to the error message (and it opens the code page with that statement highlighted) and I pressF5, it carries on just fine. MTIA, Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.4/702 - Release Date: 2/25/2007 3:16 PM -- 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 Feb 26 11:18:35 2007 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Mon, 26 Feb 2007 11:18:35 -0600 Subject: [AccessD] Checkbox contents disappear in Word Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DE2E8@corp-es01.fleetpride.com> Select the checkbox, right click, select properties and you should see check/no check property. HTH Jim Hale -----Original Message----- From: Susan Harkins [mailto:ssharkins at setel.com] Sent: Friday, February 23, 2007 1:34 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Checkbox contents disappear in Word I published an Access report to Word and the checkbox contents disappeared. I don't remember this happening before -- can't Word handle checkmarks? Susan H. -- 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 rockysmolin at bchacc.com Mon Feb 26 11:26:14 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Mon, 26 Feb 2007 09:26:14 -0800 Subject: [AccessD] You canceled the previous operation (but I didn't) In-Reply-To: Message-ID: <006a01c759cb$37fd5190$0201a8c0@HAL9005> Gustav: Figured it out. I had some old code in there governing the Got Focus and Lost Focus events on the combo box. Removed that and the problem went away. Thanks Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, February 26, 2007 8:54 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] You canceled the previous operation (but I didn't) Hi Rocky Try with: If Me.RecordsetClone.NoMatch = True Then MsgboxUni Me.hWnd, TranslateMsgbox("PartNumberNotFound"), , vbExclamation Me.RecordsetClone.MoveFirst End If Me.Bookmark = Me.RecordsetClone.Bookmark 'Me.cmdExitDemandSide.SetFocus 'cboPartsList.Visible = False Also, you should assign RecordsetClone to a Recordset and then manipulate that. /gustav >>> rockysmolin at bchacc.com 26-02-2007 17:39:07 >>> Dear List: Can anyone see why I should get an error "2001 - you cancelled the previous operation" on the statement Me.Bookmark = Me.RecordsetClone.Bookmark in the following? Me.RecordsetClone.FindFirst "[PartNumber] = '" & Me.cboPartsList.Value & "'" MsgBox Me.RecordsetClone.NoMatch If Me.RecordsetClone.NoMatch = True Then MsgboxUni Me.hWnd, TranslateMsgbox("PartNumberNotFound"), , vbExclamation DoCmd.GoToRecord , , acFirst Else Me.Bookmark = Me.RecordsetClone.Bookmark 'Me.cmdExitDemandSide.SetFocus 'cboPartsList.Visible = False End If Interestingly, if I hit debug to the error message (and it opens the code page with that statement highlighted) and I pressF5, it carries on just fine. MTIA, Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.4/702 - Release Date: 2/25/2007 3:16 PM From mwp.reid at qub.ac.uk Mon Feb 26 11:44:23 2007 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Mon, 26 Feb 2007 17:44:23 -0000 Subject: [AccessD] OT Gustav References: Message-ID: Gustav Can you contact me of list. martinreid at gmail.com Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Gustav Brock Sent: Mon 26/02/2007 16:53 To: accessd at databaseadvisors.com Subject: Re: [AccessD] You canceled the previous operation (but I didn't) Hi Rocky Try with: If Me.RecordsetClone.NoMatch = True Then MsgboxUni Me.hWnd, TranslateMsgbox("PartNumberNotFound"), , vbExclamation Me.RecordsetClone.MoveFirst End If Me.Bookmark = Me.RecordsetClone.Bookmark 'Me.cmdExitDemandSide.SetFocus 'cboPartsList.Visible = False Also, you should assign RecordsetClone to a Recordset and then manipulate that. /gustav >>> rockysmolin at bchacc.com 26-02-2007 17:39:07 >>> Dear List: Can anyone see why I should get an error "2001 - you cancelled the previous operation" on the statement Me.Bookmark = Me.RecordsetClone.Bookmark in the following? Me.RecordsetClone.FindFirst "[PartNumber] = '" & Me.cboPartsList.Value & "'" MsgBox Me.RecordsetClone.NoMatch If Me.RecordsetClone.NoMatch = True Then MsgboxUni Me.hWnd, TranslateMsgbox("PartNumberNotFound"), , vbExclamation DoCmd.GoToRecord , , acFirst Else Me.Bookmark = Me.RecordsetClone.Bookmark 'Me.cmdExitDemandSide.SetFocus 'cboPartsList.Visible = False End If Interestingly, if I hit debug to the error message (and it opens the code page with that statement highlighted) and I pressF5, it carries on just fine. MTIA, Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at setel.com Mon Feb 26 11:50:41 2007 From: ssharkins at setel.com (Susan Harkins) Date: Mon, 26 Feb 2007 12:50:41 -0500 Subject: [AccessD] Checkbox contents disappear in Word In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB67727DE2E8@corp-es01.fleetpride.com> Message-ID: <003f01c759ce$a22f6aa0$b1b82ad1@SUSANONE> Can't find anything like that Jim. Susan H. Select the checkbox, right click, select properties and you should see check/no check property. HTH From rl_stewart at highstream.net Mon Feb 26 12:28:04 2007 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Mon, 26 Feb 2007 12:28:04 -0600 Subject: [AccessD] VBE Express videos In-Reply-To: References: Message-ID: <200702261832.l1QIW6i30257@databaseadvisors.com> http://msdn.microsoft.com/vstudio/express/vb/learning/ At 12:00 PM 2/26/2007, you wrote: >Date: Mon, 26 Feb 2007 15:02:33 +0100 >From: "Ervin Brindza" >Subject: [AccessD] VBE Express videos >To: >Message-ID: <042901c759ae$c6504780$0100a8c0 at RazvojErvin> >Content-Type: text/plain; charset="iso-8859-1" > >I'm lurking in my personal archives and found a John W. Colby's >email message about VBE Express Videos. But, >unfortunately, the url isn' available ;0( The url is >http://lab.msdn.microsoft.com/express/beginner/ > >Does anybody know where can I find those videos? >Many thanks in advance, > Ervin Brindza From martyconnelly at shaw.ca Mon Feb 26 12:44:54 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 26 Feb 2007 10:44:54 -0800 Subject: [AccessD] VBE Express videos In-Reply-To: <042901c759ae$c6504780$0100a8c0@RazvojErvin> References: <042901c759ae$c6504780$0100a8c0@RazvojErvin> Message-ID: <45E32AA6.7040203@shaw.ca> Try here http://msdn.microsoft.com/vstudio/express/vb/learning I found it through a new MSDN labs Search site for Microsoft Info MSDN/TechNet Publishing System (MTPS). http://lab.msdn.microsoft.com/search/refinement.aspx? You can write your own search code pointing at the MSDN web service http://msdn.microsoft.com/msdnmag/issues/06/10/InsideMSDN/default.aspx Here are some dotNet training CD's available for cost of shipping http://www.appdev.com/demofamily.asp?catalog%5Fname=AppDevCatalog&category%5Fname=ALLDemo Ervin Brindza wrote: >I'm lurking in my personal archives and found a John W. Colby's email message about VBE Express Videos. But, >unfortunately, the url isn' available ;0( The url is >http://lab.msdn.microsoft.com/express/beginner/ > >Does anybody know where can I find those videos? >Many thanks in advance, > Ervin Brindza > > > -- Marty Connelly Victoria, B.C. Canada From rockysmolin at bchacc.com Mon Feb 26 16:42:25 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Mon, 26 Feb 2007 14:42:25 -0800 Subject: [AccessD] Increment or replace? Message-ID: <011b01c759f7$6328a230$0201a8c0@HAL9005> Dear List: I have a text box on a sub form bound to a numeric field which contains, obviously, a numeric quantity. If the user inputs a value in this box preceded by a '+' or '-' sign, I want to add or subtract the value entered from the current value. If they enter a value without a preceding sign, I want to replace old the value with the input value. I can obviously see if they entered a minus sign because the number is negative. But how can I know if they preceded the input value with a '+'? MTIA Rocky From kp at sdsonline.net Mon Feb 26 16:56:27 2007 From: kp at sdsonline.net (Kath Pelletti) Date: Tue, 27 Feb 2007 09:56:27 +1100 Subject: [AccessD] Increment or replace? References: <011b01c759f7$6328a230$0201a8c0@HAL9005> Message-ID: <001b01c759f9$5a12aa90$6401a8c0@office> Rocky - couldn't you assume the + sign as the default? Only subtract IF they enter a minus sign? Kath ----- Original Message ----- From: Rocky Smolin at Beach Access Software To: 'Access Developers discussion and problem solving' Sent: Tuesday, February 27, 2007 9:42 AM Subject: [AccessD] Increment or replace? Dear List: I have a text box on a sub form bound to a numeric field which contains, obviously, a numeric quantity. If the user inputs a value in this box preceded by a '+' or '-' sign, I want to add or subtract the value entered from the current value. If they enter a value without a preceding sign, I want to replace old the value with the input value. I can obviously see if they entered a minus sign because the number is negative. But how can I know if they preceded the input value with a '+'? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Mon Feb 26 18:04:19 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Mon, 26 Feb 2007 16:04:19 -0800 Subject: [AccessD] Increment or replace? In-Reply-To: <001b01c759f9$5a12aa90$6401a8c0@office> Message-ID: <012c01c75a02$d4218730$0201a8c0@HAL9005> Kath: I need them to be able to either add to or replace the value. This is a continuous form, BTW. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Monday, February 26, 2007 2:56 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Increment or replace? Rocky - couldn't you assume the + sign as the default? Only subtract IF they enter a minus sign? Kath ----- Original Message ----- From: Rocky Smolin at Beach Access Software To: 'Access Developers discussion and problem solving' Sent: Tuesday, February 27, 2007 9:42 AM Subject: [AccessD] Increment or replace? Dear List: I have a text box on a sub form bound to a numeric field which contains, obviously, a numeric quantity. If the user inputs a value in this box preceded by a '+' or '-' sign, I want to add or subtract the value entered from the current value. If they enter a value without a preceding sign, I want to replace old the value with the input value. I can obviously see if they entered a minus sign because the number is negative. But how can I know if they preceded the input value with a '+'? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.4/702 - Release Date: 2/25/2007 3:16 PM From artful at rogers.com Mon Feb 26 18:11:03 2007 From: artful at rogers.com (artful at rogers.com) Date: Mon, 26 Feb 2007 16:11:03 -0800 (PST) Subject: [AccessD] Increment or replace? Message-ID: <20070227001103.86172.qmail@web88204.mail.re2.yahoo.com> I did this a different way a while back. I'll see if I can find the code, but it wasn't difficult. I trapped for the + and - keys and did the increment/decrement myself in code. Arthur ----- Original Message ---- From: Rocky Smolin at Beach Access Software To: Access Developers discussion and problem solving Sent: Monday, February 26, 2007 5:42:25 PM Subject: [AccessD] Increment or replace? Dear List: I have a text box on a sub form bound to a numeric field which contains, obviously, a numeric quantity. If the user inputs a value in this box preceded by a '+' or '-' sign, I want to add or subtract the value entered from the current value. If they enter a value without a preceding sign, I want to replace old the value with the input value. I can obviously see if they entered a minus sign because the number is negative. But how can I know if they preceded the input value with a '+'? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Mon Feb 26 18:13:14 2007 From: wdhindman at dejpolsystems.com (William Hindman) Date: Mon, 26 Feb 2007 19:13:14 -0500 Subject: [AccessD] Increment or replace? References: <011b01c759f7$6328a230$0201a8c0@HAL9005> Message-ID: <004501c75a04$1362f590$9258eb44@50NM721> ...I use a small popup calculator tied to the text box ...load the bound value into the calculator and allow the user to get to where he wants using the basic calculator functions ...when they hit enter, insert its current value into the record ...eliminates a lot of user data entry errors. William Hindman ----- Original Message ----- From: "Rocky Smolin at Beach Access Software" To: "'Access Developers discussion and problem solving'" Sent: Monday, February 26, 2007 5:42 PM Subject: [AccessD] Increment or replace? > Dear List: > > I have a text box on a sub form bound to a numeric field which contains, > obviously, a numeric quantity. > > If the user inputs a value in this box preceded by a '+' or '-' sign, I > want > to add or subtract the value entered from the current value. If they > enter > a value without a preceding sign, I want to replace old the value with the > input value. > > I can obviously see if they entered a minus sign because the number is > negative. But how can I know if they preceded the input value with a '+'? > > MTIA > > Rocky > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From kp at sdsonline.net Mon Feb 26 18:28:05 2007 From: kp at sdsonline.net (Kath Pelletti) Date: Tue, 27 Feb 2007 11:28:05 +1100 Subject: [AccessD] Increment or replace? References: <012c01c75a02$d4218730$0201a8c0@HAL9005> Message-ID: <003a01c75a06$269aeee0$6401a8c0@office> Rocky - it sounds a little strange to me that they can add to a field by overtyping it with an additional amount (maybe I have misunderstood). Do you mean that the field might hold eg. 100 and if they type +10 then the result should be 110? If they just type 10 then it should replace the 100 with the 10? If that's right then I think I would separate the fields and have the additional amounts (plus or minus) in a sep. text box. They could still replace the entire amount by overwriting the original amount. Kath ----- Original Message ----- From: Rocky Smolin at Beach Access Software To: 'Access Developers discussion and problem solving' Sent: Tuesday, February 27, 2007 11:04 AM Subject: Re: [AccessD] Increment or replace? Kath: I need them to be able to either add to or replace the value. This is a continuous form, BTW. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Monday, February 26, 2007 2:56 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Increment or replace? Rocky - couldn't you assume the + sign as the default? Only subtract IF they enter a minus sign? Kath ----- Original Message ----- From: Rocky Smolin at Beach Access Software To: 'Access Developers discussion and problem solving' Sent: Tuesday, February 27, 2007 9:42 AM Subject: [AccessD] Increment or replace? Dear List: I have a text box on a sub form bound to a numeric field which contains, obviously, a numeric quantity. If the user inputs a value in this box preceded by a '+' or '-' sign, I want to add or subtract the value entered from the current value. If they enter a value without a preceding sign, I want to replace old the value with the input value. I can obviously see if they entered a minus sign because the number is negative. But how can I know if they preceded the input value with a '+'? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.4/702 - Release Date: 2/25/2007 3:16 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pcs at azizaz.com Mon Feb 26 23:45:06 2007 From: pcs at azizaz.com (pcs at azizaz.com) Date: Tue, 27 Feb 2007 15:45:06 +1000 Subject: [AccessD] Memo fields; Access and SQL Server Message-ID: Hi, I am currently grinding my teeth on SQL Server 2005 after having upsized an Access FE BE mdb. Only upsized the BE and am now using ODBC to link tables in SQL Server back into the Access FE. A few questions: 1) Access Memo fields have been upsized to the ntext() data type. However, the online documentation for SQL 2005 recommends using the nvarchar(max) rather than ntext() saying that ntext() will be dropped in future SQL release. Can I safely ignore this for the time being, or should I change all ntext() to the nvarchar(max) ? 2) In the old Access FE BE world I could safely update a memofield with a SQL update using the following code snippet: Set Wsp = DBEngine.Workspaces(0) Wsp.BeginTrans On Error GoTo ErrorTransaction Set Db = CurrentDb Db.Execute strSQL, dbFailOnError Wsp.CommitTrans This dao code does not work well in general with SQL Server tables as the backend, but needs to have added the option dbSeeChanges like this: Set Wsp = DBEngine.Workspaces(0) Wsp.BeginTrans On Error GoTo ErrorTransaction Set db = CurrentDb db.Execute strSQL, dbFailOnError + dbSeeChanges Wsp.CommitTrans But using this dao code snippet will NOT!! update a memo field, SQL Server truncates around the 256 character. The strSQL string being built in the code contains ALL the memofield text. Creating this ado code snippet and using a stored procedure does the trick: Dim cn As New ADODB.Connection Dim lngRecsAffected As Long With cn .Provider = "Microsoft.Access.OLEDB.10.0" .Properties("Data Provider").Value = "SQLOLEDB" .Properties("Data Source").Value = CurrentSQLOLEDB_DataSource .Properties("User ID").Value = CurrentODBC_UID .Properties("Password").Value = CurrentODBC_PWD .Properties("Initial Catalog").Value = CurrentSQLOLEDB_InitialCatalog .Open End With On Error GoTo ErrorTransaction cn.BeginTrans cn.Execute strParameterString, lngRecsAffected, adExecuteNoRecords Debug.Print lngRecsAffected cn.CommitTrans (The connection properties are set using some static function calls, the strParameterString contains the stored procedure name and all the parameter values including the Memo text; the adExecuteNoRecords is apparently important for procedures that do not return records; the lngRecsAffected is optional and is given the value of -1 when running the execute command) This procedure runs ok and updates the ntext() / memo fields fine. Any text with single quotes should have the single quotes doubled in order for the sp to run though. So the string variable that holds the memo is massaged with a strMemo = replace(strMemo,"'", "''") And date fields should be parsed in a strings like 'yyyy-mm- dd'.... Now my questions from this experience are: Is this the best way to do an update of a record (unbound form), i.e. stored procedure and adodb connection? Apart from not handling memo fields are there other areas where dao code will fall short when working with odbc linked SQL server tables? Currently I am ending up with code that is a mix of dao and ado - adodb being using wherever we see the code fall over and not behave properly. regards borge From shamil at users.mns.ru Tue Feb 27 10:13:01 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Tue, 27 Feb 2007 19:13:01 +0300 Subject: [AccessD] OT: Correct bureaucratic English for some private docs... Message-ID: <003a01c75a8a$27c66a90$6401a8c0@nant> Hi All, I'm sorry for off-topic but I need to make here quick translation in English of several private docs from the following list: - Birth Certificate - Marriage Certificate - Real Estate Property Ownership Certificate - Bank Account Balance - Employment Information I need them for tomorrow morning and therefore I can't use services of translation companies here, which are closed currently because it's evening here in St.Petersburg, Russia... Question: is there somewhere on Internet a good source where I can find such docs samples/templates and especially bureaucratic English lexicon? Thank you. -- Shamil From cfoust at infostatsystems.com Tue Feb 27 10:29:03 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 27 Feb 2007 08:29:03 -0800 Subject: [AccessD] Checkbox contents disappear in Word In-Reply-To: <006901c75781$99049300$aeb82ad1@SUSANONE> References: <006901c75781$99049300$aeb82ad1@SUSANONE> Message-ID: Publishing a report to Word puts it in rtf format, which doesn't properly handle the graphics in Access reports. This has been that way forever. One of the reasons I always hated the Publish to Word "feature". Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Friday, February 23, 2007 11:34 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Checkbox contents disappear in Word I published an Access report to Word and the checkbox contents disappeared. I don't remember this happening before -- can't Word handle checkmarks? Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at setel.com Tue Feb 27 10:48:49 2007 From: ssharkins at setel.com (Susan Harkins) Date: Tue, 27 Feb 2007 11:48:49 -0500 Subject: [AccessD] Checkbox contents disappear in Word In-Reply-To: Message-ID: <006601c75a8f$285327f0$6334fad1@SUSANONE> Thanks Charlotte -- of course you're right. It just surprised me at first. I changed the Check Box format at the table level to Text Box. Interestingly, the bound report still displayed check box controls. I had to delete the original and replace them -- now it displays Yes and No. Not really what I wanted, but works. Susan H. Publishing a report to Word puts it in rtf format, which doesn't properly handle the graphics in Access reports. This has been that way forever. One of the reasons I always hated the Publish to Word "feature". From rockysmolin at bchacc.com Tue Feb 27 11:01:27 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Tue, 27 Feb 2007 09:01:27 -0800 Subject: [AccessD] Increment or replace? In-Reply-To: <003a01c75a06$269aeee0$6401a8c0@office> Message-ID: <000001c75a90$ec5ee160$0201a8c0@HAL9005> Well, I slept on it but it didn't do any good. It's JC's fault. This was working just fine as an unbound form :o) So I think for each field where I need this capability, I have to use a popup form triggered by the click event, collect the number from the user as text and process it. Any better ideas anyone? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Monday, February 26, 2007 4:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Increment or replace? Rocky - it sounds a little strange to me that they can add to a field by overtyping it with an additional amount (maybe I have misunderstood). Do you mean that the field might hold eg. 100 and if they type +10 then the result should be 110? If they just type 10 then it should replace the 100 with the 10? If that's right then I think I would separate the fields and have the additional amounts (plus or minus) in a sep. text box. They could still replace the entire amount by overwriting the original amount. Kath ----- Original Message ----- From: Rocky Smolin at Beach Access Software To: 'Access Developers discussion and problem solving' Sent: Tuesday, February 27, 2007 11:04 AM Subject: Re: [AccessD] Increment or replace? Kath: I need them to be able to either add to or replace the value. This is a continuous form, BTW. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Monday, February 26, 2007 2:56 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Increment or replace? Rocky - couldn't you assume the + sign as the default? Only subtract IF they enter a minus sign? Kath ----- Original Message ----- From: Rocky Smolin at Beach Access Software To: 'Access Developers discussion and problem solving' Sent: Tuesday, February 27, 2007 9:42 AM Subject: [AccessD] Increment or replace? Dear List: I have a text box on a sub form bound to a numeric field which contains, obviously, a numeric quantity. If the user inputs a value in this box preceded by a '+' or '-' sign, I want to add or subtract the value entered from the current value. If they enter a value without a preceding sign, I want to replace old the value with the input value. I can obviously see if they entered a minus sign because the number is negative. But how can I know if they preceded the input value with a '+'? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.4/702 - Release Date: 2/25/2007 3:16 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.4/702 - Release Date: 2/25/2007 3:16 PM From rockysmolin at bchacc.com Tue Feb 27 11:01:27 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Tue, 27 Feb 2007 09:01:27 -0800 Subject: [AccessD] OT: Correct bureaucratic English for some private docs... In-Reply-To: <003a01c75a8a$27c66a90$6401a8c0@nant> Message-ID: <000401c75a90$edecfb70$0201a8c0@HAL9005> Shamil: Max and I use freetranslation.com. I have also used babelfish: http://world.altavista.com/. And I have used http://www.worldlingo.com/en/products_services/worldlingo_translator.html for Chinese but looks good for other languages. If you can get a crude translation done on line, you could send it to me off line and I could polish it up for you. It's raining so I should be at my desk all day. :( Regards, Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Tuesday, February 27, 2007 8:13 AM To: 'Access-D' Subject: [AccessD] OT: Correct bureaucratic English for some private docs... Hi All, I'm sorry for off-topic but I need to make here quick translation in English of several private docs from the following list: - Birth Certificate - Marriage Certificate - Real Estate Property Ownership Certificate - Bank Account Balance - Employment Information I need them for tomorrow morning and therefore I can't use services of translation companies here, which are closed currently because it's evening here in St.Petersburg, Russia... Question: is there somewhere on Internet a good source where I can find such docs samples/templates and especially bureaucratic English lexicon? Thank you. -- Shamil -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.4/703 - Release Date: 2/26/2007 2:56 PM From rockysmolin at bchacc.com Tue Feb 27 11:05:06 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Tue, 27 Feb 2007 09:05:06 -0800 Subject: [AccessD] Checkbox contents disappear in Word In-Reply-To: <006601c75a8f$285327f0$6334fad1@SUSANONE> Message-ID: <000701c75a91$6f3fd300$0201a8c0@HAL9005> Susan: When I really needed it to say something besides yes and no, or 0 and -1, I put an unbound box on the report and set the value in the Format event of the detail section. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Tuesday, February 27, 2007 8:49 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Checkbox contents disappear in Word Thanks Charlotte -- of course you're right. It just surprised me at first. I changed the Check Box format at the table level to Text Box. Interestingly, the bound report still displayed check box controls. I had to delete the original and replace them -- now it displays Yes and No. Not really what I wanted, but works. Susan H. Publishing a report to Word puts it in rtf format, which doesn't properly handle the graphics in Access reports. This has been that way forever. One of the reasons I always hated the Publish to Word "feature". -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.4/703 - Release Date: 2/26/2007 2:56 PM From ssharkins at setel.com Tue Feb 27 11:12:21 2007 From: ssharkins at setel.com (Susan Harkins) Date: Tue, 27 Feb 2007 12:12:21 -0500 Subject: [AccessD] Checkbox contents disappear in Word In-Reply-To: <000701c75a91$6f3fd300$0201a8c0@HAL9005> Message-ID: <007a01c75a92$71ac22a0$6334fad1@SUSANONE> When I really needed it to say something besides yes and no, or 0 and -1, I put an unbound box on the report and set the value in the Format event of the detail section. =======The report will be published on the web, and I really wanted to display the checkmarks, but I didn't know how to do it and retain them all the way to the web. Susan H. From garykjos at gmail.com Tue Feb 27 11:55:56 2007 From: garykjos at gmail.com (Gary Kjos) Date: Tue, 27 Feb 2007 11:55:56 -0600 Subject: [AccessD] Increment or replace? In-Reply-To: <000001c75a90$ec5ee160$0201a8c0@HAL9005> References: <003a01c75a06$269aeee0$6401a8c0@office> <000001c75a90$ec5ee160$0201a8c0@HAL9005> Message-ID: You can't just do an instring function in the before update event for the control and if you find a + or - sign add the value and if you don't you replace it? Or even a left or a right to compare for a + or - sign? then do the corresponding math or replacement? GK On 2/27/07, Rocky Smolin at Beach Access Software wrote: > Well, I slept on it but it didn't do any good. It's JC's fault. This was > working just fine as an unbound form :o) > > So I think for each field where I need this capability, I have to use a > popup form triggered by the click event, collect the number from the user as > text and process it. > > Any better ideas anyone? > > TIA > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti > Sent: Monday, February 26, 2007 4:28 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Increment or replace? > > Rocky - it sounds a little strange to me that they can add to a field by > overtyping it with an additional amount (maybe I have misunderstood). Do you > mean that the field might hold eg. 100 and if they type +10 then the result > should be 110? If they just type 10 then it should replace the 100 with the > 10? > > If that's right then I think I would separate the fields and have the > additional amounts (plus or minus) in a sep. text box. They could still > replace the entire amount by overwriting the original amount. > > Kath > ----- Original Message ----- > From: Rocky Smolin at Beach Access Software > To: 'Access Developers discussion and problem solving' > Sent: Tuesday, February 27, 2007 11:04 AM > Subject: Re: [AccessD] Increment or replace? > > > Kath: > > I need them to be able to either add to or replace the value. This is a > continuous form, BTW. > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti > Sent: Monday, February 26, 2007 2:56 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Increment or replace? > > Rocky - couldn't you assume the + sign as the default? Only subtract IF > they > enter a minus sign? > > Kath > ----- Original Message ----- > From: Rocky Smolin at Beach Access Software > To: 'Access Developers discussion and problem solving' > Sent: Tuesday, February 27, 2007 9:42 AM > Subject: [AccessD] Increment or replace? > > > Dear List: > > I have a text box on a sub form bound to a numeric field which contains, > obviously, a numeric quantity. > > If the user inputs a value in this box preceded by a '+' or '-' sign, I > want > to add or subtract the value entered from the current value. If they > enter > a value without a preceding sign, I want to replace old the value with > the > input value. > > I can obviously see if they entered a minus sign because the number is > negative. But how can I know if they preceded the input value with a > '+'? > > MTIA > > Rocky > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.446 / Virus Database: 268.18.4/702 - Release Date: 2/25/2007 > 3:16 PM > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.446 / Virus Database: 268.18.4/702 - Release Date: 2/25/2007 > 3:16 PM > > > -- > 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 markamatte at hotmail.com Tue Feb 27 12:08:22 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 27 Feb 2007 18:08:22 +0000 Subject: [AccessD] Checkbox contents disappear in Word:SOLVED??? In-Reply-To: <007a01c75a92$71ac22a0$6334fad1@SUSANONE> Message-ID: I thought this should be possible...so I googled "unicode checkmark vba" and found an example...and it actually works and displays a check mark on .RTF Below are the steps and a link to the page where I found it. Good Luck... Mark A. Matte The steps Open the report in design view. If you already have a check box on your report, delete it. Add a text box for your Yes/No field. Set these properties: Control Source: Name of your yes/no field here. Font Name: WingDings Width: 0.18 in Type these characters into the Format property of the text box: Hold down the Alt key, and type 0168 on the numeric keypad (the character for False), semicolon (the separator between False and True formats), backslash (indicating the next character is a literal), Hold down the Alt key, and type 0254 on the numeric keypad (the character for True), You can now increase the Font Size, set the Fore Color or Back Color, and so on. The characters Select the characters from this list: Character Keypad number Description Alt+0254 Checked box Alt+0253 Crossed box Alt+0252 Check mark (unboxed) Alt+0251 Cross mark (unboxed) Alt+0168 Empty box http://www.everythingaccess.com/tutorials.asp?ID=Check-boxes-in-reports >From: "Susan Harkins" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] Checkbox contents disappear in Word >Date: Tue, 27 Feb 2007 12:12:21 -0500 > > >When I really needed it to say something besides yes and no, or 0 and -1, >I >put an unbound box on the report and set the value in the Format event of >the detail section. > >=======The report will be published on the web, and I really wanted to >display the checkmarks, but I didn't know how to do it and retain them all >the way to the web. > >Susan H. > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ The average US Credit Score is 675. The cost to see yours: $0 by Experian. http://www.freecreditreport.com/pm/default.aspx?sc=660600&bcd=EMAILFOOTERAVERAGE From markamatte at hotmail.com Tue Feb 27 12:13:57 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 27 Feb 2007 18:13:57 +0000 Subject: [AccessD] Max Date of Week In-Reply-To: Message-ID: Hello All, I can't seem to get the SQL for this...I have a date field...I need to group by week, but display the greatest date value in that week. Any ideas? Thanks, Mark A. Matte _________________________________________________________________ Don?t miss your chance to WIN 10 hours of private jet travel from Microsoft? Office Live http://clk.atdmt.com/MRT/go/mcrssaub0540002499mrt/direct/01/ From rockysmolin at bchacc.com Tue Feb 27 12:21:56 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Tue, 27 Feb 2007 10:21:56 -0800 Subject: [AccessD] Increment or replace? In-Reply-To: Message-ID: <002701c75a9c$29f3ccb0$0201a8c0@HAL9005> Gary: No, the "+" sign is not part of the input. Access is stripping it off. I entered +50 and in the before update event tried both MsgBox Left(Me.QuantityDue, 1) and MsgBox Left(Trim(str(Me.QuantityDue)), 1) and both printed 5. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Tuesday, February 27, 2007 9:56 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Increment or replace? You can't just do an instring function in the before update event for the control and if you find a + or - sign add the value and if you don't you replace it? Or even a left or a right to compare for a + or - sign? then do the corresponding math or replacement? GK On 2/27/07, Rocky Smolin at Beach Access Software wrote: > Well, I slept on it but it didn't do any good. It's JC's fault. This > was working just fine as an unbound form :o) > > So I think for each field where I need this capability, I have to use > a popup form triggered by the click event, collect the number from the > user as text and process it. > > Any better ideas anyone? > > TIA > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath > Pelletti > Sent: Monday, February 26, 2007 4:28 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Increment or replace? > > Rocky - it sounds a little strange to me that they can add to a field > by overtyping it with an additional amount (maybe I have > misunderstood). Do you mean that the field might hold eg. 100 and if > they type +10 then the result should be 110? If they just type 10 then > it should replace the 100 with the 10? > > If that's right then I think I would separate the fields and have the > additional amounts (plus or minus) in a sep. text box. They could > still replace the entire amount by overwriting the original amount. > > Kath > ----- Original Message ----- > From: Rocky Smolin at Beach Access Software > To: 'Access Developers discussion and problem solving' > Sent: Tuesday, February 27, 2007 11:04 AM > Subject: Re: [AccessD] Increment or replace? > > > Kath: > > I need them to be able to either add to or replace the value. This > is a continuous form, BTW. > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath > Pelletti > Sent: Monday, February 26, 2007 2:56 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Increment or replace? > > Rocky - couldn't you assume the + sign as the default? Only subtract > IF they enter a minus sign? > > Kath > ----- Original Message ----- > From: Rocky Smolin at Beach Access Software > To: 'Access Developers discussion and problem solving' > Sent: Tuesday, February 27, 2007 9:42 AM > Subject: [AccessD] Increment or replace? > > > Dear List: > > I have a text box on a sub form bound to a numeric field which contains, > obviously, a numeric quantity. > > If the user inputs a value in this box preceded by a '+' or '-' > sign, I want > to add or subtract the value entered from the current value. If > they enter > a value without a preceding sign, I want to replace old the value > with the > input value. > > I can obviously see if they entered a minus sign because the number is > negative. But how can I know if they preceded the input value with > a '+'? > > MTIA > > Rocky > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.446 / Virus Database: 268.18.4/702 - Release Date: > 2/25/2007 > 3:16 PM > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.446 / Virus Database: 268.18.4/702 - Release Date: > 2/25/2007 > 3:16 PM > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.4/703 - Release Date: 2/26/2007 2:56 PM From ssharkins at setel.com Tue Feb 27 12:26:01 2007 From: ssharkins at setel.com (Susan Harkins) Date: Tue, 27 Feb 2007 13:26:01 -0500 Subject: [AccessD] Checkbox contents disappear in Word:SOLVED??? In-Reply-To: Message-ID: <008a01c75a9c$bc7a2cf0$6334fad1@SUSANONE> Wow! Thanks! Susan H. I thought this should be possible...so I googled "unicode checkmark vba" and found an example...and it actually works and displays a check mark on .RTF From garykjos at gmail.com Tue Feb 27 12:30:59 2007 From: garykjos at gmail.com (Gary Kjos) Date: Tue, 27 Feb 2007 12:30:59 -0600 Subject: [AccessD] Increment or replace? In-Reply-To: <002701c75a9c$29f3ccb0$0201a8c0@HAL9005> References: <002701c75a9c$29f3ccb0$0201a8c0@HAL9005> Message-ID: You got some kind of input mask or format on it? GK On 2/27/07, Rocky Smolin at Beach Access Software wrote: > Gary: > > No, the "+" sign is not part of the input. Access is stripping it off. > > I entered +50 and in the before update event tried both > > MsgBox Left(Me.QuantityDue, 1) > > and > > MsgBox Left(Trim(str(Me.QuantityDue)), 1) > > and both printed 5. > > Rocky > > > > > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > Sent: Tuesday, February 27, 2007 9:56 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Increment or replace? > > You can't just do an instring function in the before update event for the > control and if you find a + or - sign add the value and if you don't you > replace it? > > Or even a left or a right to compare for a + or - sign? then do the > corresponding math or replacement? > > GK > > On 2/27/07, Rocky Smolin at Beach Access Software > wrote: > > Well, I slept on it but it didn't do any good. It's JC's fault. This > > was working just fine as an unbound form :o) > > > > So I think for each field where I need this capability, I have to use > > a popup form triggered by the click event, collect the number from the > > user as text and process it. > > > > Any better ideas anyone? > > > > TIA > > > > Rocky > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath > > Pelletti > > Sent: Monday, February 26, 2007 4:28 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Increment or replace? > > > > Rocky - it sounds a little strange to me that they can add to a field > > by overtyping it with an additional amount (maybe I have > > misunderstood). Do you mean that the field might hold eg. 100 and if > > they type +10 then the result should be 110? If they just type 10 then > > it should replace the 100 with the 10? > > > > If that's right then I think I would separate the fields and have the > > additional amounts (plus or minus) in a sep. text box. They could > > still replace the entire amount by overwriting the original amount. > > > > Kath > > ----- Original Message ----- > > From: Rocky Smolin at Beach Access Software > > To: 'Access Developers discussion and problem solving' > > Sent: Tuesday, February 27, 2007 11:04 AM > > Subject: Re: [AccessD] Increment or replace? > > > > > > Kath: > > > > I need them to be able to either add to or replace the value. This > > is a continuous form, BTW. > > > > Rocky > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath > > Pelletti > > Sent: Monday, February 26, 2007 2:56 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Increment or replace? > > > > Rocky - couldn't you assume the + sign as the default? Only subtract > > IF they enter a minus sign? > > > > Kath > > ----- Original Message ----- > > From: Rocky Smolin at Beach Access Software > > To: 'Access Developers discussion and problem solving' > > Sent: Tuesday, February 27, 2007 9:42 AM > > Subject: [AccessD] Increment or replace? > > > > > > Dear List: > > > > I have a text box on a sub form bound to a numeric field which > contains, > > obviously, a numeric quantity. > > > > If the user inputs a value in this box preceded by a '+' or '-' > > sign, I want > > to add or subtract the value entered from the current value. If > > they enter > > a value without a preceding sign, I want to replace old the value > > with the > > input value. > > > > I can obviously see if they entered a minus sign because the number is > > negative. But how can I know if they preceded the input value with > > a '+'? > > > > MTIA > > > > Rocky > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > No virus found in this incoming message. > > Checked by AVG Free Edition. > > Version: 7.5.446 / Virus Database: 268.18.4/702 - Release Date: > > 2/25/2007 > > 3:16 PM > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > No virus found in this incoming message. > > Checked by AVG Free Edition. > > Version: 7.5.446 / Virus Database: 268.18.4/702 - Release Date: > > 2/25/2007 > > 3:16 PM > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > -- > Gary Kjos > garykjos at gmail.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.446 / Virus Database: 268.18.4/703 - Release Date: 2/26/2007 > 2:56 PM > > > -- > 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 Gustav at cactus.dk Tue Feb 27 12:30:49 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 27 Feb 2007 19:30:49 +0100 Subject: [AccessD] Increment or replace? Message-ID: Hi Rocky You would need to use the Text property of the Textbox to get the entered string. Property Value is the store value. /gustav >>> rockysmolin at bchacc.com 27-02-2007 19:21:56 >>> Gary: No, the "+" sign is not part of the input. Access is stripping it off. I entered +50 and in the before update event tried both MsgBox Left(Me.QuantityDue, 1) and MsgBox Left(Trim(str(Me.QuantityDue)), 1) and both printed 5. Rocky From adtp at hotmail.com Tue Feb 27 12:39:21 2007 From: adtp at hotmail.com (A.D.TEJPAL) Date: Wed, 28 Feb 2007 00:09:21 +0530 Subject: [AccessD] Checkbox contents disappear in Word References: <007a01c75a92$71ac22a0$6334fad1@SUSANONE> Message-ID: If you are very keen to show a tick mark in word document (in lieu of Yes values in Access report), you can try the following course of action: In Access report, use a special character like ~ in lieu of Yes value. Send the report to Word. In Word, save the exported rtf file as doc file. Then run the subroutine P_InsertCheckMarks() as given below. The cursor can be anywhere in the document when the procedure is run. This will result in replacement of all instances of ~ by a tick mark (?) A.D.Tejpal --------------- =============================== Sub P_InsertCheckMarks() ' Replaces ~ by Check Marks With Selection.Find .Text = "~" .Replacement.Text = ChrW(8730) .Forward = True .Wrap = wdFindContinue End With Selection.Find.Execute Replace:=wdReplaceAll End Sub =============================== ----- Original Message ----- From: Susan Harkins To: 'Access Developers discussion and problem solving' Sent: Tuesday, February 27, 2007 22:42 Subject: Re: [AccessD] Checkbox contents disappear in Word When I really needed it to say something besides yes and no, or 0 and -1, I put an unbound box on the report and set the value in the Format event of the detail section. =======The report will be published on the web, and I really wanted to display the checkmarks, but I didn't know how to do it and retain them all the way to the web. Susan H. From rockysmolin at bchacc.com Tue Feb 27 12:46:39 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Tue, 27 Feb 2007 10:46:39 -0800 Subject: [AccessD] Increment or replace? In-Reply-To: Message-ID: <004901c75a9f$9e430240$0201a8c0@HAL9005> No input mask. It's bound to a numeric field. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Tuesday, February 27, 2007 10:31 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Increment or replace? You got some kind of input mask or format on it? GK On 2/27/07, Rocky Smolin at Beach Access Software wrote: > Gary: > > No, the "+" sign is not part of the input. Access is stripping it off. > > I entered +50 and in the before update event tried both > > MsgBox Left(Me.QuantityDue, 1) > > and > > MsgBox Left(Trim(str(Me.QuantityDue)), 1) > > and both printed 5. > > Rocky > > > > > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > Sent: Tuesday, February 27, 2007 9:56 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Increment or replace? > > You can't just do an instring function in the before update event for > the control and if you find a + or - sign add the value and if you > don't you replace it? > > Or even a left or a right to compare for a + or - sign? then do the > corresponding math or replacement? > > GK > > On 2/27/07, Rocky Smolin at Beach Access Software > > wrote: > > Well, I slept on it but it didn't do any good. It's JC's fault. > > This was working just fine as an unbound form :o) > > > > So I think for each field where I need this capability, I have to > > use a popup form triggered by the click event, collect the number > > from the user as text and process it. > > > > Any better ideas anyone? > > > > TIA > > > > Rocky > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath > > Pelletti > > Sent: Monday, February 26, 2007 4:28 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Increment or replace? > > > > Rocky - it sounds a little strange to me that they can add to a > > field by overtyping it with an additional amount (maybe I have > > misunderstood). Do you mean that the field might hold eg. 100 and if > > they type +10 then the result should be 110? If they just type 10 > > then it should replace the 100 with the 10? > > > > If that's right then I think I would separate the fields and have > > the additional amounts (plus or minus) in a sep. text box. They > > could still replace the entire amount by overwriting the original amount. > > > > Kath > > ----- Original Message ----- > > From: Rocky Smolin at Beach Access Software > > To: 'Access Developers discussion and problem solving' > > Sent: Tuesday, February 27, 2007 11:04 AM > > Subject: Re: [AccessD] Increment or replace? > > > > > > Kath: > > > > I need them to be able to either add to or replace the value. This > > is a continuous form, BTW. > > > > Rocky > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath > > Pelletti > > Sent: Monday, February 26, 2007 2:56 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Increment or replace? > > > > Rocky - couldn't you assume the + sign as the default? Only > > subtract IF they enter a minus sign? > > > > Kath > > ----- Original Message ----- > > From: Rocky Smolin at Beach Access Software > > To: 'Access Developers discussion and problem solving' > > Sent: Tuesday, February 27, 2007 9:42 AM > > Subject: [AccessD] Increment or replace? > > > > > > Dear List: > > > > I have a text box on a sub form bound to a numeric field which > contains, > > obviously, a numeric quantity. > > > > If the user inputs a value in this box preceded by a '+' or '-' > > sign, I want > > to add or subtract the value entered from the current value. If > > they enter > > a value without a preceding sign, I want to replace old the value > > with the > > input value. > > > > I can obviously see if they entered a minus sign because the number is > > negative. But how can I know if they preceded the input value > > with a '+'? > > > > MTIA > > > > Rocky > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > No virus found in this incoming message. > > Checked by AVG Free Edition. > > Version: 7.5.446 / Virus Database: 268.18.4/702 - Release Date: > > 2/25/2007 > > 3:16 PM > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > No virus found in this incoming message. > > Checked by AVG Free Edition. > > Version: 7.5.446 / Virus Database: 268.18.4/702 - Release Date: > > 2/25/2007 > > 3:16 PM > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > -- > Gary Kjos > garykjos at gmail.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.446 / Virus Database: 268.18.4/703 - Release Date: > 2/26/2007 > 2:56 PM > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.4/703 - Release Date: 2/26/2007 2:56 PM From rockysmolin at bchacc.com Tue Feb 27 12:51:13 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Tue, 27 Feb 2007 10:51:13 -0800 Subject: [AccessD] Increment or replace? In-Reply-To: Message-ID: <004a01c75aa0$41c623c0$0201a8c0@HAL9005> Text property. THAT'S what I was looking for. Works perfectly. Thanks Gustav. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, February 27, 2007 10:31 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Increment or replace? Hi Rocky You would need to use the Text property of the Textbox to get the entered string. Property Value is the store value. /gustav >>> rockysmolin at bchacc.com 27-02-2007 19:21:56 >>> Gary: No, the "+" sign is not part of the input. Access is stripping it off. I entered +50 and in the before update event tried both MsgBox Left(Me.QuantityDue, 1) and MsgBox Left(Trim(str(Me.QuantityDue)), 1) and both printed 5. Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.4/703 - Release Date: 2/26/2007 2:56 PM From adtp at hotmail.com Tue Feb 27 12:55:28 2007 From: adtp at hotmail.com (A.D.TEJPAL) Date: Wed, 28 Feb 2007 00:25:28 +0530 Subject: [AccessD] Checkbox contents disappear in Word:SOLVED??? References: Message-ID: That is an excellent solution Mark! Much better & straightforward than the work-around mentioned in my post. My best compliments. A.D.Tejpal --------------- ----- Original Message ----- From: Mark A Matte To: accessd at databaseadvisors.com Sent: Tuesday, February 27, 2007 23:38 Subject: Re: [AccessD] Checkbox contents disappear in Word:SOLVED??? I thought this should be possible...so I googled "unicode checkmark vba" and found an example...and it actually works and displays a check mark on .RTF Below are the steps and a link to the page where I found it. Good Luck... Mark A. Matte The steps Open the report in design view. If you already have a check box on your report, delete it. Add a text box for your Yes/No field. Set these properties: Control Source: Name of your yes/no field here. Font Name: WingDings Width: 0.18 in Type these characters into the Format property of the text box: Hold down the Alt key, and type 0168 on the numeric keypad (the character for False), semicolon (the separator between False and True formats), backslash (indicating the next character is a literal), Hold down the Alt key, and type 0254 on the numeric keypad (the character for True), You can now increase the Font Size, set the Fore Color or Back Color, and so on. The characters Select the characters from this list: Character Keypad number Description Alt+0254 Checked box Alt+0253 Crossed box Alt+0252 Check mark (unboxed) Alt+0251 Cross mark (unboxed) Alt+0168 Empty box http://www.everythingaccess.com/tutorials.asp?ID=Check-boxes-in-reports >From: "Susan Harkins" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] Checkbox contents disappear in Word >Date: Tue, 27 Feb 2007 12:12:21 -0500 > >When I really needed it to say something besides yes and no, or 0 and -1, I put an unbound box on the report and set the value in the Format event of the detail section. > >=======The report will be published on the web, and I really wanted to display the checkmarks, but I didn't know how to do it and retain them all the way to the web. > >Susan H. From markamatte at hotmail.com Tue Feb 27 13:09:12 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 27 Feb 2007 19:09:12 +0000 Subject: [AccessD] Checkbox contents disappear in Word:SOLVED??? Message-ID: Wow...Thank you very much for your gracious compliment...I wish I could take credit for the process...but I just searched for the right key words to find it. Thanks, Mark A. Matte >From: "A.D.TEJPAL" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Checkbox contents disappear in Word:SOLVED??? >Date: Wed, 28 Feb 2007 00:25:28 +0530 > > That is an excellent solution Mark! Much better & straightforward >than the work-around mentioned in my post. > > My best compliments. > >A.D.Tejpal >--------------- > > ----- Original Message ----- > From: Mark A Matte > To: accessd at databaseadvisors.com > Sent: Tuesday, February 27, 2007 23:38 > Subject: Re: [AccessD] Checkbox contents disappear in Word:SOLVED??? > > > I thought this should be possible...so I googled "unicode checkmark vba" >and found an example...and it actually works and displays a check mark on >.RTF > > Below are the steps and a link to the page where I found it. Good >Luck... > > Mark A. Matte > > The steps > Open the report in design view. > If you already have a check box on your report, delete it. > Add a text box for your Yes/No field. > Set these properties: > Control Source: Name of your yes/no field here. > Font Name: WingDings > Width: 0.18 in > > Type these characters into the Format property of the text box: > Hold down the Alt key, and type 0168 on the numeric keypad (the >character for False), semicolon (the separator between False and True >formats), backslash (indicating the next character is a literal), > Hold down the Alt key, and type 0254 on the numeric keypad (the >character for True), > You can now increase the Font Size, set the Fore Color or Back Color, >and so on. > > The characters > Select the characters from this list: > > Character Keypad number Description > Alt+0254 Checked box > Alt+0253 Crossed box > Alt+0252 Check mark (unboxed) > Alt+0251 Cross mark (unboxed) > Alt+0168 Empty box > > http://www.everythingaccess.com/tutorials.asp?ID=Check-boxes-in-reports > > >From: "Susan Harkins" > >Reply-To: Access Developers discussion and problem > >solving > >To: "'Access Developers discussion and problem > >solving'" > >Subject: Re: [AccessD] Checkbox contents disappear in Word > >Date: Tue, 27 Feb 2007 12:12:21 -0500 > > > >When I really needed it to say something besides yes and no, or 0 and >-1, I put an unbound box on the report and set the value in the Format >event of the detail section. > > > >=======The report will be published on the web, and I really wanted to >display the checkmarks, but I didn't know how to do it and retain them all >the way to the web. > > > >Susan H. >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Refi Now: Rates near 39yr lows! $430,000 Mortgage for $1,399/mo - Calculate new payment http://www.lowermybills.com/lre/index.jsp?sourceid=lmb-9632-17727&moid=7581 From Gustav at cactus.dk Tue Feb 27 13:15:11 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 27 Feb 2007 20:15:11 +0100 Subject: [AccessD] Max Date of Week Message-ID: Hi Mark For Monday as the first day of a week, it could be: SELECT Max([DateField]) As DateMax, DatePart("ww", [DateField], 2, 2) As WeekNo FROM tblYourTable GROUP BY DatePart("ww", [DateField], 2, 2) If this is for critical use and you need the correct ISO 8601:1988 weeknumber for week 53 as well, you should use the function for this I've posted many times: ISO_WeekNumber /gustav >>> markamatte at hotmail.com 27-02-2007 19:13:57 >>> Hello All, I can't seem to get the SQL for this...I have a date field...I need to group by week, but display the greatest date value in that week. Any ideas? Thanks, Mark A. Matte From markamatte at hotmail.com Tue Feb 27 13:31:48 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 27 Feb 2007 19:31:48 +0000 Subject: [AccessD] Max Date of Week In-Reply-To: Message-ID: Thanks Gustav, Thats what I thought I did yesterday...and it didn't work...hence my confusion. And of course it works now...I must be losing my mind. Thanks, Mark A. Matte >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] Max Date of Week >Date: Tue, 27 Feb 2007 20:15:11 +0100 > >Hi Mark > >For Monday as the first day of a week, it could be: > > SELECT > Max([DateField]) As DateMax, > DatePart("ww", [DateField], 2, 2) As WeekNo > FROM > tblYourTable > GROUP BY > DatePart("ww", [DateField], 2, 2) > >If this is for critical use and you need the correct ISO 8601:1988 >weeknumber for week 53 as well, you should use the function for this I've >posted many times: >ISO_WeekNumber > >/gustav > > > >>> markamatte at hotmail.com 27-02-2007 19:13:57 >>> >Hello All, > >I can't seem to get the SQL for this...I have a date field...I need to >group >by week, but display the greatest date value in that week. > >Any ideas? > >Thanks, > >Mark A. Matte > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Want a degree but can't afford to quit? Top school degrees online - in as fast as 1 year http://forms.nextag.com/goto.jsp?url=/serv/main/buyer/education.jsp?doSearch=n&tm=y&search=education_text_links_88_h288c&s=4079&p=5116 From Gustav at cactus.dk Tue Feb 27 13:40:32 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 27 Feb 2007 20:40:32 +0100 Subject: [AccessD] Max Date of Week Message-ID: Hi Mark Or just too busy? /gustav >>> markamatte at hotmail.com 27-02-2007 20:31:48 >>> Thanks Gustav, Thats what I thought I did yesterday...and it didn't work...hence my confusion. And of course it works now...I must be losing my mind. Thanks, Mark A. Matte >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] Max Date of Week >Date: Tue, 27 Feb 2007 20:15:11 +0100 > >Hi Mark > >For Monday as the first day of a week, it could be: > > SELECT > Max([DateField]) As DateMax, > DatePart("ww", [DateField], 2, 2) As WeekNo > FROM > tblYourTable > GROUP BY > DatePart("ww", [DateField], 2, 2) > >If this is for critical use and you need the correct ISO 8601:1988 >weeknumber for week 53 as well, you should use the function for this I've >posted many times: >ISO_WeekNumber > >/gustav > > > >>> markamatte at hotmail.com 27-02-2007 19:13:57 >>> >Hello All, > >I can't seem to get the SQL for this...I have a date field...I need to >group >by week, but display the greatest date value in that week. > >Any ideas? > >Thanks, > >Mark A. Matte From askolits at ot.com Tue Feb 27 19:55:03 2007 From: askolits at ot.com (John Skolits) Date: Tue, 27 Feb 2007 20:55:03 -0500 Subject: [AccessD] Informix and Access In-Reply-To: Message-ID: <005201c75adb$76fbce60$0f01a8c0@officexp> Anyone ever have any luck connecting to an Infomix database. I'm trying to set up an ODBC for Access and can't quite figure out the configuration. Here are the ODBC settings I'm trying. Server Name: office-xp (This is the computer name of my PC) Host Name: 192.168.1.15 (This is the IP address of my PC) Service: 1525 Protocol: olsoctcp Options: Database Name: c:\Test Infomix\InfomixDatabaseFolder\ UserID: ??? Pwd: ??? I was given a User name and password from someone who uses the database but it didn't work. I'm thinking I need to put in "my" Pc's login info as I'm the administrator? The error I'm receiving when trying to 'test the connection' is: "Test Connection was NOT successful.[Informix][Informix ODBC Driver]Attempt to connect to database server (office-xp) failed." Any idea? Thanks, John Skolits From dw-murphy at cox.net Tue Feb 27 21:21:23 2007 From: dw-murphy at cox.net (Doug Murphy) Date: Tue, 27 Feb 2007 19:21:23 -0800 Subject: [AccessD] Informix and Access In-Reply-To: <005201c75adb$76fbce60$0f01a8c0@officexp> Message-ID: <005201c75ae7$865178e0$0200a8c0@murphy3234aaf1> Don't know how pertinent this is but try http://www.connectionstrings.com/?carrier=informix -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Tuesday, February 27, 2007 5:55 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Informix and Access Anyone ever have any luck connecting to an Infomix database. I'm trying to set up an ODBC for Access and can't quite figure out the configuration. Here are the ODBC settings I'm trying. Server Name: office-xp (This is the computer name of my PC) Host Name: 192.168.1.15 (This is the IP address of my PC) Service: 1525 Protocol: olsoctcp Options: Database Name: c:\Test Infomix\InfomixDatabaseFolder\ UserID: ??? Pwd: ??? I was given a User name and password from someone who uses the database but it didn't work. I'm thinking I need to put in "my" Pc's login info as I'm the administrator? The error I'm receiving when trying to 'test the connection' is: "Test Connection was NOT successful.[Informix][Informix ODBC Driver]Attempt to connect to database server (office-xp) failed." Any idea? Thanks, John Skolits -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed Feb 28 00:15:10 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 27 Feb 2007 22:15:10 -0800 Subject: [AccessD] Informix and Access In-Reply-To: <005201c75adb$76fbce60$0f01a8c0@officexp> Message-ID: <0JE500IC9T8OCXD0@l-daemon> Hi John: If you go to the DBA web site > Reference Lists > Miscellaneous there is a link to a site that lists connection strings for various databases, on of them being Informix: http://www.databaseadvisors.com/reference/referenceMisc.asp If an ODBC driver was used to connect to the database the username and password is in the registry of the host/client computer that was connecting. Not very secure but if you have access to the original computer check it out. So go to your client's site and go to a computer that use to connect to the INFORMIX DB. First: Start the ODBC Data Source Administrator (Start > Control Panel > Administrative Tools > Data Sources (ODBC)) Second: Check the System DNS Sources tab and the name of CONNECTION should be listed and the particular Driver. The Driver type will let you know you are on the right track. Third: With the name in hand, start RegEdit (Start > Run... regedit) and do a full search (keys/values/Data) for the CONNECTION name. When you find the Key a couple of the associated values should be the correct username and password. Then you can go back home and login. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Tuesday, February 27, 2007 5:55 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Informix and Access Anyone ever have any luck connecting to an Infomix database. I'm trying to set up an ODBC for Access and can't quite figure out the configuration. Here are the ODBC settings I'm trying. Server Name: office-xp (This is the computer name of my PC) Host Name: 192.168.1.15 (This is the IP address of my PC) Service: 1525 Protocol: olsoctcp Options: Database Name: c:\Test Infomix\InfomixDatabaseFolder\ UserID: ??? Pwd: ??? I was given a User name and password from someone who uses the database but it didn't work. I'm thinking I need to put in "my" Pc's login info as I'm the administrator? The error I'm receiving when trying to 'test the connection' is: "Test Connection was NOT successful.[Informix][Informix ODBC Driver]Attempt to connect to database server (office-xp) failed." Any idea? Thanks, John Skolits -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Wed Feb 28 02:26:16 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 28 Feb 2007 09:26:16 +0100 Subject: [AccessD] Informix and Access Message-ID: Hi John Sounds like Informix is running on another machine. Thus, servername and hostname(address) must be those of the server. /gustav >>> askolits at ot.com 28-02-2007 02:55:03 >>> Anyone ever have any luck connecting to an Infomix database. I'm trying to set up an ODBC for Access and can't quite figure out the configuration. Here are the ODBC settings I'm trying. Server Name: office-xp (This is the computer name of my PC) Host Name: 192.168.1.15 (This is the IP address of my PC) Service: 1525 Protocol: olsoctcp Options: Database Name: c:\Test Infomix\InfomixDatabaseFolder\ UserID: ??? Pwd: ??? I was given a User name and password from someone who uses the database but it didn't work. I'm thinking I need to put in "my" Pc's login info as I'm the administrator? The error I'm receiving when trying to 'test the connection' is: "Test Connection was NOT successful.[Informix][Informix ODBC Driver]Attempt to connect to database server (office-xp) failed." Any idea? Thanks, John Skolits From askolits at ot.com Wed Feb 28 06:37:55 2007 From: askolits at ot.com (John Skolits) Date: Wed, 28 Feb 2007 07:37:55 -0500 Subject: [AccessD] Informix and Access In-Reply-To: Message-ID: <018801c75b35$4551ede0$6701a8c0@LaptopXP> Can't I access the data directly from the files?? I copied the files to my PC and then tried to create the ODBC connection supplying the folder where all the files are located. Is Infomix like SQLServer where it has to be running on a server in order for a client to access it? That's probably the issue. John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, February 28, 2007 3:26 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Informix and Access Hi John Sounds like Informix is running on another machine. Thus, servername and hostname(address) must be those of the server. /gustav >>> askolits at ot.com 28-02-2007 02:55:03 >>> Anyone ever have any luck connecting to an Infomix database. I'm trying to set up an ODBC for Access and can't quite figure out the configuration. Here are the ODBC settings I'm trying. Server Name: office-xp (This is the computer name of my PC) Host Name: 192.168.1.15 (This is the IP address of my PC) Service: 1525 Protocol: olsoctcp Options: Database Name: c:\Test Infomix\InfomixDatabaseFolder\ UserID: ??? Pwd: ??? I was given a User name and password from someone who uses the database but it didn't work. I'm thinking I need to put in "my" Pc's login info as I'm the administrator? The error I'm receiving when trying to 'test the connection' is: "Test Connection was NOT successful.[Informix][Informix ODBC Driver]Attempt to connect to database server (office-xp) failed." Any idea? Thanks, John Skolits -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Wed Feb 28 06:50:50 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 28 Feb 2007 13:50:50 +0100 Subject: [AccessD] Informix and Access Message-ID: Hi John Oh, certainly, one of the old boys: http://www.informix.com /gustav >>> askolits at ot.com 28-02-2007 13:37:55 >>> Is Infomix like SQLServer where it has to be running on a server in order for a client to access it? From askolits at ot.com Wed Feb 28 07:10:08 2007 From: askolits at ot.com (John Skolits) Date: Wed, 28 Feb 2007 08:10:08 -0500 Subject: [AccessD] Informix and Access In-Reply-To: Message-ID: <00cf01c75b39$c595a290$0f01a8c0@officexp> Oh well, I have no intention of buying it. I'll have to work on it by getting onto my customer's network through remote desktop or something. I thought I could access the files directly. Thanks, John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, February 28, 2007 7:51 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Informix and Access Hi John Oh, certainly, one of the old boys: http://www.informix.com /gustav >>> askolits at ot.com 28-02-2007 13:37:55 >>> Is Infomix like SQLServer where it has to be running on a server in order for a client to access it? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ebarro at verizon.net Wed Feb 28 08:05:21 2007 From: ebarro at verizon.net (Eric Barro) Date: Wed, 28 Feb 2007 06:05:21 -0800 Subject: [AccessD] Informix and Access In-Reply-To: <00cf01c75b39$c595a290$0f01a8c0@officexp> Message-ID: <0JE600M7OF4WI3O3@vms040.mailsrvcs.net> Check if they can set you up for a VPN connection so that you can access it through the network. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Wednesday, February 28, 2007 5:10 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Informix and Access Oh well, I have no intention of buying it. I'll have to work on it by getting onto my customer's network through remote desktop or something. I thought I could access the files directly. Thanks, John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, February 28, 2007 7:51 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Informix and Access Hi John Oh, certainly, one of the old boys: http://www.informix.com /gustav >>> askolits at ot.com 28-02-2007 13:37:55 >>> Is Infomix like SQLServer where it has to be running on a server in order for a client to access it? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.4/705 - Release Date: 2/27/2007 3:24 PM From askolits at ot.com Wed Feb 28 08:54:11 2007 From: askolits at ot.com (John Skolits) Date: Wed, 28 Feb 2007 09:54:11 -0500 Subject: [AccessD] Informix and Access In-Reply-To: <0JE600M7OF4WI3O3@vms040.mailsrvcs.net> Message-ID: <01a601c75b48$4ebfbcf0$6701a8c0@LaptopXP> Thanks, I may try that also. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Wednesday, February 28, 2007 9:05 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Informix and Access Check if they can set you up for a VPN connection so that you can access it through the network. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Wednesday, February 28, 2007 5:10 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Informix and Access Oh well, I have no intention of buying it. I'll have to work on it by getting onto my customer's network through remote desktop or something. I thought I could access the files directly. Thanks, John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, February 28, 2007 7:51 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Informix and Access Hi John Oh, certainly, one of the old boys: http://www.informix.com /gustav >>> askolits at ot.com 28-02-2007 13:37:55 >>> Is Infomix like SQLServer where it has to be running on a server in order for a client to access it? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.4/705 - Release Date: 2/27/2007 3:24 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at setel.com Wed Feb 28 09:48:03 2007 From: ssharkins at setel.com (Susan Harkins) Date: Wed, 28 Feb 2007 10:48:03 -0500 Subject: [AccessD] Can't Alter Values in a Query with Subquery Message-ID: <002701c75b4f$d60256d0$3fb82ad1@SUSANONE> I've found that I can't alter values in a query with a subquery -- can't alter any value in the query -- even values not evaluated in the subquery. I'm sure there's a reason why, just curious -- never noticed this before. Susan H. From garykjos at gmail.com Wed Feb 28 09:57:26 2007 From: garykjos at gmail.com (Gary Kjos) Date: Wed, 28 Feb 2007 09:57:26 -0600 Subject: [AccessD] Can't Alter Values in a Query with Subquery In-Reply-To: <002701c75b4f$d60256d0$3fb82ad1@SUSANONE> References: <002701c75b4f$d60256d0$3fb82ad1@SUSANONE> Message-ID: http://msdn2.microsoft.com/en-us/library/aa198446(office.10).aspx GK On 2/28/07, Susan Harkins wrote: > I've found that I can't alter values in a query with a subquery -- can't > alter any value in the query -- even values not evaluated in the subquery. > I'm sure there's a reason why, just curious -- never noticed this before. > > Susan H. > > -- > 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 jwcolby at colbyconsulting.com Wed Feb 28 10:00:31 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 28 Feb 2007 11:00:31 -0500 Subject: [AccessD] Can't Alter Values in a Query with Subquery In-Reply-To: <002701c75b4f$d60256d0$3fb82ad1@SUSANONE> References: <002701c75b4f$d60256d0$3fb82ad1@SUSANONE> Message-ID: <001101c75b51$935bbd10$6c7aa8c0@m6805> I run into this occasionally as well. Are there any calculated values in either query? That can cause this IIRC. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, February 28, 2007 10:48 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Can't Alter Values in a Query with Subquery I've found that I can't alter values in a query with a subquery -- can't alter any value in the query -- even values not evaluated in the subquery. I'm sure there's a reason why, just curious -- never noticed this before. 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 Wed Feb 28 10:08:12 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 28 Feb 2007 08:08:12 -0800 Subject: [AccessD] Can't Alter Values in a Query with Subquery In-Reply-To: <002701c75b4f$d60256d0$3fb82ad1@SUSANONE> References: <002701c75b4f$d60256d0$3fb82ad1@SUSANONE> Message-ID: You've done something to make the query non-updateable, Susan. You'll have to post the SQL before anyone can figure it out. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, February 28, 2007 7:48 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Can't Alter Values in a Query with Subquery I've found that I can't alter values in a query with a subquery -- can't alter any value in the query -- even values not evaluated in the subquery. I'm sure there's a reason why, just curious -- never noticed this before. Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at setel.com Wed Feb 28 10:10:44 2007 From: ssharkins at setel.com (Susan Harkins) Date: Wed, 28 Feb 2007 11:10:44 -0500 Subject: [AccessD] Can't Alter Values in a Query with Subquery In-Reply-To: <001101c75b51$935bbd10$6c7aa8c0@m6805> Message-ID: <003d01c75b53$00a699c0$3fb82ad1@SUSANONE> Yes, the subquery is calculating values that are also in the main query. Other values, not in the subquery, and not calculated remain fixed -- can't change ANY value in the main query at all, regardless of whether it's evaluated by the subquery or not. The solution would be, I guess, to base a second query on the calculating subquery query, but I thought I'd like to know what behavior is at play. Susan H. I run into this occasionally as well. Are there any calculated values in either query? That can cause this IIRC. From rockysmolin at bchacc.com Wed Feb 28 10:38:47 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Wed, 28 Feb 2007 08:38:47 -0800 Subject: [AccessD] Can't Alter Values in a Query with Subquery In-Reply-To: <003d01c75b53$00a699c0$3fb82ad1@SUSANONE> Message-ID: <004501c75b56$eb5c0560$0201a8c0@HAL9005> Susan: I get that non-updateable query thing when I have more than (IIRC) 3 tables in the query. There's a help screen in Access that explains it. Search on something like updateable query. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, February 28, 2007 8:11 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Can't Alter Values in a Query with Subquery Yes, the subquery is calculating values that are also in the main query. Other values, not in the subquery, and not calculated remain fixed -- can't change ANY value in the main query at all, regardless of whether it's evaluated by the subquery or not. The solution would be, I guess, to base a second query on the calculating subquery query, but I thought I'd like to know what behavior is at play. Susan H. I run into this occasionally as well. Are there any calculated values in either query? That can cause this IIRC. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.4/705 - Release Date: 2/27/2007 3:24 PM From ssharkins at setel.com Wed Feb 28 10:41:28 2007 From: ssharkins at setel.com (Susan Harkins) Date: Wed, 28 Feb 2007 11:41:28 -0500 Subject: [AccessD] Can't Alter Values in a Query with Subquery In-Reply-To: Message-ID: <004601c75b57$4d74a180$3fb82ad1@SUSANONE> Yelp... calculated field. You know, I've written about this at least three times, and I can't even remember it myself. :( Interestingly, a query based on the non-updateable query is also non-updateable. Don't really know a way around that. What do you guys do? Susan H. http://msdn2.microsoft.com/en-us/library/aa198446(office.10).aspx From garykjos at gmail.com Wed Feb 28 10:50:24 2007 From: garykjos at gmail.com (Gary Kjos) Date: Wed, 28 Feb 2007 10:50:24 -0600 Subject: [AccessD] Can't Alter Values in a Query with Subquery In-Reply-To: <004601c75b57$4d74a180$3fb82ad1@SUSANONE> References: <004601c75b57$4d74a180$3fb82ad1@SUSANONE> Message-ID: I would write the results of the non-updateable query out to a temp file and then join that temp table to the table I want to update and do my update. It's an extra step but for the largely one time stuff I do it's not that bad. Keeps me from beating my head against it insisting it SHOULD BE ABLE TO update in the other one. But if Access says it's not updatable it's no use arguing with it. It's not listening to my arguements to the contrary. GK On 2/28/07, Susan Harkins wrote: > Yelp... calculated field. You know, I've written about this at least three > times, and I can't even remember it myself. :( > > Interestingly, a query based on the non-updateable query is also > non-updateable. Don't really know a way around that. What do you guys do? > > Susan H. > > http://msdn2.microsoft.com/en-us/library/aa198446(office.10).aspx > > > -- > 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 jwcolby at colbyconsulting.com Wed Feb 28 11:14:21 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 28 Feb 2007 12:14:21 -0500 Subject: [AccessD] Faking an SQL record Message-ID: <001501c75b5b$e3bdd950$6c7aa8c0@m6805> I vaguely remember someone supplying a syntax for "faking" a record in SQL without having to actually supply a table name. I want to return a single record from SQL that looks like: HSomeCompanyName20061227 This is not data pulled out of any table, it is just "made up". I can do this by aliasing the three fields and then telling SQL that it came FROM SomeRealTable and then use a distinct clause etc. But I seem to remember some way of doing this without even supplying the name of a real table. Anyone have a clue what I am saying and how to do this? John W. Colby Colby Consulting www.ColbyConsulting.com From ebarro at verizon.net Wed Feb 28 11:18:24 2007 From: ebarro at verizon.net (Eric Barro) Date: Wed, 28 Feb 2007 09:18:24 -0800 Subject: [AccessD] Faking an SQL record In-Reply-To: <001501c75b5b$e3bdd950$6c7aa8c0@m6805> Message-ID: <0JE600MBKO2QIA24@vms040.mailsrvcs.net> SELECT 'HSomeCompanyName20061227' as MadeUp -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, February 28, 2007 9:14 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Faking an SQL record I vaguely remember someone supplying a syntax for "faking" a record in SQL without having to actually supply a table name. I want to return a single record from SQL that looks like: HSomeCompanyName20061227 This is not data pulled out of any table, it is just "made up". I can do this by aliasing the three fields and then telling SQL that it came FROM SomeRealTable and then use a distinct clause etc. But I seem to remember some way of doing this without even supplying the name of a real table. Anyone have a clue what I am saying and how to do this? John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.4/705 - Release Date: 2/27/2007 3:24 PM From Gustav at cactus.dk Wed Feb 28 11:19:48 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 28 Feb 2007 18:19:48 +0100 Subject: [AccessD] Faking an SQL record Message-ID: Hi John Yes. Refer to one of the MSys system tables. /gustav >>> jwcolby at colbyconsulting.com 28-02-2007 18:14:21 >>> Anyone have a clue what I am saying and how to do this? From jwcolby at colbyconsulting.com Wed Feb 28 11:24:46 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 28 Feb 2007 12:24:46 -0500 Subject: [AccessD] Faking an SQL record In-Reply-To: <0JE600MBKO2QIA24@vms040.mailsrvcs.net> References: <001501c75b5b$e3bdd950$6c7aa8c0@m6805> <0JE600MBKO2QIA24@vms040.mailsrvcs.net> Message-ID: <001b01c75b5d$58585aa0$6c7aa8c0@m6805> Eric, if I don't include a FROM clause, the bang symbol doesn't ungray and allow me to run the query. If I put in FROM SomeMadeUpTableName I get an error when I run the query that it "can't find SomeMadeUpTableName". John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Wednesday, February 28, 2007 12:18 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Faking an SQL record SELECT 'HSomeCompanyName20061227' as MadeUp -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, February 28, 2007 9:14 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Faking an SQL record I vaguely remember someone supplying a syntax for "faking" a record in SQL without having to actually supply a table name. I want to return a single record from SQL that looks like: HSomeCompanyName20061227 This is not data pulled out of any table, it is just "made up". I can do this by aliasing the three fields and then telling SQL that it came FROM SomeRealTable and then use a distinct clause etc. But I seem to remember some way of doing this without even supplying the name of a real table. Anyone have a clue what I am saying and how to do this? John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.4/705 - Release Date: 2/27/2007 3:24 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ebarro at verizon.net Wed Feb 28 11:36:40 2007 From: ebarro at verizon.net (Eric Barro) Date: Wed, 28 Feb 2007 09:36:40 -0800 Subject: [AccessD] Faking an SQL record In-Reply-To: <001b01c75b5d$58585aa0$6c7aa8c0@m6805> Message-ID: <0JE6000O4OX9AF53@vms048.mailsrvcs.net> John, What interface are you using? Is this in the Access query or SQL query analyzer? If you run it in SQL query analyzer it runs fine. Eric -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, February 28, 2007 9:25 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Faking an SQL record Eric, if I don't include a FROM clause, the bang symbol doesn't ungray and allow me to run the query. If I put in FROM SomeMadeUpTableName I get an error when I run the query that it "can't find SomeMadeUpTableName". John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Wednesday, February 28, 2007 12:18 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Faking an SQL record SELECT 'HSomeCompanyName20061227' as MadeUp -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, February 28, 2007 9:14 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Faking an SQL record I vaguely remember someone supplying a syntax for "faking" a record in SQL without having to actually supply a table name. I want to return a single record from SQL that looks like: HSomeCompanyName20061227 This is not data pulled out of any table, it is just "made up". I can do this by aliasing the three fields and then telling SQL that it came FROM SomeRealTable and then use a distinct clause etc. But I seem to remember some way of doing this without even supplying the name of a real table. Anyone have a clue what I am saying and how to do this? John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.4/705 - Release Date: 2/27/2007 3:24 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.4/705 - Release Date: 2/27/2007 3:24 PM From jwcolby at colbyconsulting.com Wed Feb 28 11:45:32 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 28 Feb 2007 12:45:32 -0500 Subject: [AccessD] Faking an SQL record In-Reply-To: <0JE6000O4OX9AF53@vms048.mailsrvcs.net> References: <001b01c75b5d$58585aa0$6c7aa8c0@m6805> <0JE6000O4OX9AF53@vms048.mailsrvcs.net> Message-ID: <001c01c75b60$3e9e53a0$6c7aa8c0@m6805> Sorry. This is in Access, QBE grid. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Wednesday, February 28, 2007 12:37 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Faking an SQL record John, What interface are you using? Is this in the Access query or SQL query analyzer? If you run it in SQL query analyzer it runs fine. Eric -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, February 28, 2007 9:25 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Faking an SQL record Eric, if I don't include a FROM clause, the bang symbol doesn't ungray and allow me to run the query. If I put in FROM SomeMadeUpTableName I get an error when I run the query that it "can't find SomeMadeUpTableName". John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Wednesday, February 28, 2007 12:18 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Faking an SQL record SELECT 'HSomeCompanyName20061227' as MadeUp -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, February 28, 2007 9:14 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Faking an SQL record I vaguely remember someone supplying a syntax for "faking" a record in SQL without having to actually supply a table name. I want to return a single record from SQL that looks like: HSomeCompanyName20061227 This is not data pulled out of any table, it is just "made up". I can do this by aliasing the three fields and then telling SQL that it came FROM SomeRealTable and then use a distinct clause etc. But I seem to remember some way of doing this without even supplying the name of a real table. Anyone have a clue what I am saying and how to do this? John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.4/705 - Release Date: 2/27/2007 3:24 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.4/705 - Release Date: 2/27/2007 3:24 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Wed Feb 28 11:48:38 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 28 Feb 2007 18:48:38 +0100 Subject: [AccessD] Faking an SQL record Message-ID: Hi John SELECT TOP 1 "HSomeCompanyName20061227" AS Company FROM MSysObjects; /gustav >>> jwcolby at colbyconsulting.com 28-02-2007 18:24:46 >>> Eric, if I don't include a FROM clause, the bang symbol doesn't ungray and allow me to run the query. If I put in FROM SomeMadeUpTableName I get an error when I run the query that it "can't find SomeMadeUpTableName". From jwcolby at colbyconsulting.com Wed Feb 28 11:55:43 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 28 Feb 2007 12:55:43 -0500 Subject: [AccessD] Faking an SQL record In-Reply-To: References: Message-ID: <001d01c75b61$aad24210$6c7aa8c0@m6805> Bueno, Thanks Gustav, that's the one. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, February 28, 2007 12:49 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Faking an SQL record Hi John SELECT TOP 1 "HSomeCompanyName20061227" AS Company FROM MSysObjects; /gustav >>> jwcolby at colbyconsulting.com 28-02-2007 18:24:46 >>> Eric, if I don't include a FROM clause, the bang symbol doesn't ungray and allow me to run the query. If I put in FROM SomeMadeUpTableName I get an error when I run the query that it "can't find SomeMadeUpTableName". -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at hotmail.com Wed Feb 28 12:23:00 2007 From: adtp at hotmail.com (A.D.TEJPAL) Date: Wed, 28 Feb 2007 23:53:00 +0530 Subject: [AccessD] Can't Alter Values in a Query with Subquery References: <004601c75b57$4d74a180$3fb82ad1@SUSANONE> Message-ID: If the result of a subquery is not required to be displayed, but merely to be used for setting up a criteria, the query remains updateable. On the other hand, if the subquery result has to represent a displayed column, the query becomes non-updateable. Following alternative remedial measures can be considered so as to ensure that the main query remains updateable: (a) Adoption of user defined functions in lieu of subquery. (b) Adoption of domain aggregate functions in lieu of subquery. It is also observed that calculated fields based upon subqueries can lead to problems if used for grouping levels in a report. That problem also stands addressed by the remedial measures suggested above. A.D.Tejpal --------------- ----- Original Message ----- From: Susan Harkins To: 'Access Developers discussion and problem solving' Sent: Wednesday, February 28, 2007 22:11 Subject: Re: [AccessD] Can't Alter Values in a Query with Subquery Yelp... calculated field. You know, I've written about this at least three times, and I can't even remember it myself. :( Interestingly, a query based on the non-updateable query is also non-updateable. Don't really know a way around that. What do you guys do? Susan H. From BarbaraRyan at cox.net Wed Feb 28 12:30:16 2007 From: BarbaraRyan at cox.net (Barbara Ryan) Date: Wed, 28 Feb 2007 13:30:16 -0500 Subject: [AccessD] Database Design Message-ID: <008d01c75b66$7ea62d00$0a00a8c0@PCRURI35> I am designing a new Access database for a therapeutic equestrian riding facility. The database holds names of all the "partners' (individuals, groups, and companies) who volunteer, donate, and/or ride horses. This database will primarily be used for mailing thank you notes, information about upcoming events, etc. Each "partner" will have a mailing address and (optionally) a billing address. Many partners will share the same mailing address (e.g., handicapped individuals who live in a facility, or a family where mom and dad are volunteers and their child is a rider). Selection of partners for mailings needs to be very flexible --- sometimes a mailing is "one per household" --- however, each rider in a facility should receive a separate letter. Sometimes mailings will only go to donors and volunteers; sometimes just to riders, etc, etc. Would you split addresses into a separate table or include mailing/billing address information in the Partners table (and provide a mechanism to "copy" an address from an existing in the same household)? Thanks, Barb Ryan From wdhindman at dejpolsystems.com Wed Feb 28 14:15:30 2007 From: wdhindman at dejpolsystems.com (William Hindman) Date: Wed, 28 Feb 2007 15:15:30 -0500 Subject: [AccessD] Database Design References: <008d01c75b66$7ea62d00$0a00a8c0@PCRURI35> Message-ID: <002901c75b75$3394a7b0$9258eb44@50NM721> ...I'd use a separate street address table with yes/nos for mailing and billing ...this ideally allows sharing of common addresses such as family or business...as well as a separate table for geo data including postal code, city, state, the geoID being an fk in the address table. ...more important than the address considerations, is the structure of your entityIDs because you need to be able to track familial and business relationships that often overlap ...I prefer using a super entity table with sub-entities such as companies and individuals as child tables. ...the street address table then becomes a child of the super entity as well ...along with tables for phones, e-mail, etc ...this approach would give you a 3rd normal relational design and the ability to do highly accurate mailings ...although it is easier to maintain, it does require more join tables and more complex queries than the default alternative of keeping addresses in the same table with the entity data. William Hindman ----- Original Message ----- From: "Barbara Ryan" To: "Access List" Sent: Wednesday, February 28, 2007 1:30 PM Subject: [AccessD] Database Design >I am designing a new Access database for a therapeutic equestrian riding >facility. > > The database holds names of all the "partners' (individuals, groups, and > companies) who volunteer, donate, and/or ride horses. This database will > primarily be used for mailing thank you notes, information about upcoming > events, etc. Each "partner" will have a mailing address and (optionally) > a billing address. Many partners will share the same mailing address > (e.g., handicapped individuals who live in a facility, or a family where > mom and dad are volunteers and their child is a rider). > > Selection of partners for mailings needs to be very flexible --- sometimes > a mailing is "one per household" --- however, each rider in a facility > should receive a separate letter. Sometimes mailings will only go to > donors and volunteers; sometimes just to riders, etc, etc. > > Would you split addresses into a separate table or include mailing/billing > address information in the Partners table (and provide a mechanism to > "copy" an address from an existing in the same household)? > > Thanks, > Barb Ryan > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From BarbaraRyan at cox.net Wed Feb 28 14:58:52 2007 From: BarbaraRyan at cox.net (Barbara Ryan) Date: Wed, 28 Feb 2007 15:58:52 -0500 Subject: [AccessD] Database Design References: <008d01c75b66$7ea62d00$0a00a8c0@PCRURI35> <002901c75b75$3394a7b0$9258eb44@50NM721> Message-ID: <009d01c75b7b$40f8ca20$0a00a8c0@PCRURI35> Thanks, William...would you happen to know of a sample database that I could look at that incorporates these concepts? (e.g. "Northwind Therapeutic Riding" :-)....Barb ----- Original Message ----- From: "William Hindman" To: "Access Developers discussion and problem solving" Sent: Wednesday, February 28, 2007 3:15 PM Subject: Re: [AccessD] Database Design > ...I'd use a separate street address table with yes/nos for mailing and > billing ...this ideally allows sharing of common addresses such as family > or > business...as well as a separate table for geo data including postal code, > city, state, the geoID being an fk in the address table. > > ...more important than the address considerations, is the structure of > your > entityIDs because you need to be able to track familial and business > relationships that often overlap ...I prefer using a super entity table > with > sub-entities such as companies and individuals as child tables. > > ...the street address table then becomes a child of the super entity as > well > ...along with tables for phones, e-mail, etc > > ...this approach would give you a 3rd normal relational design and the > ability to do highly accurate mailings ...although it is easier to > maintain, > it does require more join tables and more complex queries than the default > alternative of keeping addresses in the same table with the entity data. > > William Hindman > > ----- Original Message ----- > From: "Barbara Ryan" > To: "Access List" > Sent: Wednesday, February 28, 2007 1:30 PM > Subject: [AccessD] Database Design > > >>I am designing a new Access database for a therapeutic equestrian riding >>facility. >> >> The database holds names of all the "partners' (individuals, groups, and >> companies) who volunteer, donate, and/or ride horses. This database will >> primarily be used for mailing thank you notes, information about upcoming >> events, etc. Each "partner" will have a mailing address and (optionally) >> a billing address. Many partners will share the same mailing address >> (e.g., handicapped individuals who live in a facility, or a family where >> mom and dad are volunteers and their child is a rider). >> >> Selection of partners for mailings needs to be very flexible --- >> sometimes >> a mailing is "one per household" --- however, each rider in a facility >> should receive a separate letter. Sometimes mailings will only go to >> donors and volunteers; sometimes just to riders, etc, etc. >> >> Would you split addresses into a separate table or include >> mailing/billing >> address information in the Partners table (and provide a mechanism to >> "copy" an address from an existing in the same household)? >> >> Thanks, >> Barb Ryan >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Feb 28 15:54:28 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 28 Feb 2007 16:54:28 -0500 Subject: [AccessD] Cleaned up my downloads Message-ID: <004401c75b83$05454e60$6c7aa8c0@m6805> I just found and fixed a bunch of dead links to the files on my web site. I had a site previous to this hosted at an entirely different company and apparently had links back to that site for some of the files. I shut down that site awhile back and in the process those links went dead. If anyone was trying to get at the zip files for my framework lecture series for example, the links should now be working again. Sorry for any inconvenience. John W. Colby Colby Consulting www.ColbyConsulting.com From artful at rogers.com Wed Feb 28 18:01:52 2007 From: artful at rogers.com (artful at rogers.com) Date: Wed, 28 Feb 2007 16:01:52 -0800 (PST) Subject: [AccessD] OT: Correct bureaucratic English for some private docs... Message-ID: <245037.24272.qm@web88202.mail.re2.yahoo.com> In terms of Canada, you already have everything correct except the third one. Here in Canada and also in Britain, it is a Deed, and I believe that the same term applies in the USA but wait for confirmation on that before committing to it. A. ----- Original Message ---- From: Shamil Salakhetdinov To: Access-D Sent: Tuesday, February 27, 2007 11:13:01 AM Subject: [AccessD] OT: Correct bureaucratic English for some private docs... Hi All, I'm sorry for off-topic but I need to make here quick translation in English of several private docs from the following list: - Birth Certificate - Marriage Certificate - Real Estate Property Ownership Certificate - Bank Account Balance - Employment Information I need them for tomorrow morning and therefore I can't use services of translation companies here, which are closed currently because it's evening here in St.Petersburg, Russia... Question: is there somewhere on Internet a good source where I can find such docs samples/templates and especially bureaucratic English lexicon? Thank you. -- Shamil -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Wed Feb 28 18:24:32 2007 From: artful at rogers.com (artful at rogers.com) Date: Wed, 28 Feb 2007 16:24:32 -0800 (PST) Subject: [AccessD] Increment or replace? Message-ID: <948176.30094.qm@web88202.mail.re2.yahoo.com> I thought that I already provided you a way better idea. Trap the plus and minus keys and then increment or decrement the value to suit. Along the lines of: grab the keystroke if it's plus me.control = me.control + 1 elseif it's minus me.control = me.control - 1 end if Arthur ----- Original Message ---- From: Rocky Smolin at Beach Access Software To: Access Developers discussion and problem solving Sent: Tuesday, February 27, 2007 12:01:27 PM Subject: Re: [AccessD] Increment or replace? Well, I slept on it but it didn't do any good. It's JC's fault. This was working just fine as an unbound form :o) So I think for each field where I need this capability, I have to use a popup form triggered by the click event, collect the number from the user as text and process it. Any better ideas anyone? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Monday, February 26, 2007 4:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Increment or replace? Rocky - it sounds a little strange to me that they can add to a field by overtyping it with an additional amount (maybe I have misunderstood). Do you mean that the field might hold eg. 100 and if they type +10 then the result should be 110? If they just type 10 then it should replace the 100 with the 10? If that's right then I think I would separate the fields and have the additional amounts (plus or minus) in a sep. text box. They could still replace the entire amount by overwriting the original amount. Kath ----- Original Message ----- From: Rocky Smolin at Beach Access Software To: 'Access Developers discussion and problem solving' Sent: Tuesday, February 27, 2007 11:04 AM Subject: Re: [AccessD] Increment or replace? Kath: I need them to be able to either add to or replace the value. This is a continuous form, BTW. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Monday, February 26, 2007 2:56 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Increment or replace? Rocky - couldn't you assume the + sign as the default? Only subtract IF they enter a minus sign? Kath ----- Original Message ----- From: Rocky Smolin at Beach Access Software To: 'Access Developers discussion and problem solving' Sent: Tuesday, February 27, 2007 9:42 AM Subject: [AccessD] Increment or replace? Dear List: I have a text box on a sub form bound to a numeric field which contains, obviously, a numeric quantity. If the user inputs a value in this box preceded by a '+' or '-' sign, I want to add or subtract the value entered from the current value. If they enter a value without a preceding sign, I want to replace old the value with the input value. I can obviously see if they entered a minus sign because the number is negative. But how can I know if they preceded the input value with a '+'? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.4/702 - Release Date: 2/25/2007 3:16 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.4/702 - Release Date: 2/25/2007 3:16 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Wed Feb 28 18:54:03 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Wed, 28 Feb 2007 16:54:03 -0800 Subject: [AccessD] Increment or replace? In-Reply-To: <948176.30094.qm@web88202.mail.re2.yahoo.com> Message-ID: <00b701c75b9c$1bdf18e0$0201a8c0@HAL9005> That's the way I used to do it. But is always seemed a little kludgey to me. But Gustav turned me on to the .Text property and from that I can see if initial character is + or -. I think that's probably the slickest way to do it. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Wednesday, February 28, 2007 4:25 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Increment or replace? I thought that I already provided you a way better idea. Trap the plus and minus keys and then increment or decrement the value to suit. Along the lines of: grab the keystroke if it's plus me.control = me.control + 1 elseif it's minus me.control = me.control - 1 end if Arthur ----- Original Message ---- From: Rocky Smolin at Beach Access Software To: Access Developers discussion and problem solving Sent: Tuesday, February 27, 2007 12:01:27 PM Subject: Re: [AccessD] Increment or replace? Well, I slept on it but it didn't do any good. It's JC's fault. This was working just fine as an unbound form :o) So I think for each field where I need this capability, I have to use a popup form triggered by the click event, collect the number from the user as text and process it. Any better ideas anyone? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Monday, February 26, 2007 4:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Increment or replace? Rocky - it sounds a little strange to me that they can add to a field by overtyping it with an additional amount (maybe I have misunderstood). Do you mean that the field might hold eg. 100 and if they type +10 then the result should be 110? If they just type 10 then it should replace the 100 with the 10? If that's right then I think I would separate the fields and have the additional amounts (plus or minus) in a sep. text box. They could still replace the entire amount by overwriting the original amount. Kath ----- Original Message ----- From: Rocky Smolin at Beach Access Software To: 'Access Developers discussion and problem solving' Sent: Tuesday, February 27, 2007 11:04 AM Subject: Re: [AccessD] Increment or replace? Kath: I need them to be able to either add to or replace the value. This is a continuous form, BTW. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Monday, February 26, 2007 2:56 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Increment or replace? Rocky - couldn't you assume the + sign as the default? Only subtract IF they enter a minus sign? Kath ----- Original Message ----- From: Rocky Smolin at Beach Access Software To: 'Access Developers discussion and problem solving' Sent: Tuesday, February 27, 2007 9:42 AM Subject: [AccessD] Increment or replace? Dear List: I have a text box on a sub form bound to a numeric field which contains, obviously, a numeric quantity. If the user inputs a value in this box preceded by a '+' or '-' sign, I want to add or subtract the value entered from the current value. If they enter a value without a preceding sign, I want to replace old the value with the input value. I can obviously see if they entered a minus sign because the number is negative. But how can I know if they preceded the input value with a '+'? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.4/702 - Release Date: 2/25/2007 3:16 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.4/702 - Release Date: 2/25/2007 3:16 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.4/705 - Release Date: 2/27/2007 3:24 PM From artful at rogers.com Wed Feb 28 18:57:18 2007 From: artful at rogers.com (artful at rogers.com) Date: Wed, 28 Feb 2007 16:57:18 -0800 (PST) Subject: [AccessD] Increment or replace? Message-ID: <198340.19661.qm@web88203.mail.re2.yahoo.com> I can't seem to locate the code that I wrote to do this. Please someone remind me what the opposite of SendKeys is: I want to remove the keystroke from the buffer. I have the rest working already but I need that component. A. ----- Original Message ---- From: Rocky Smolin at Beach Access Software To: Access Developers discussion and problem solving Sent: Tuesday, February 27, 2007 1:21:56 PM Subject: Re: [AccessD] Increment or replace? Gary: No, the "+" sign is not part of the input. Access is stripping it off. I entered +50 and in the before update event tried both MsgBox Left(Me.QuantityDue, 1) and MsgBox Left(Trim(str(Me.QuantityDue)), 1) and both printed 5. Rocky From andy at minstersystems.co.uk Thu Feb 1 01:39:12 2007 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 1 Feb 2007 07:39:12 -0000 Subject: [AccessD] My Book and Thanks In-Reply-To: Message-ID: <00b601c745d4$11538ce0$453b0c54@minster33c3r25> Great stuff Martin. Must have been a lot of hard work. Hats off to you. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid > Sent: 31 January 2007 21:15 > To: Access Developers discussion and problem solving > Subject: [AccessD] My Book and Thanks > > > I just finished writing Professional Access 2007 for Apress. > This is not an ad. I just wanted to thank the following > individuals and this list in general for all the assistance I > received when writing this book. from people reading and > commenting chapters to individuals testing code to people who > allowed me to reuse their code adn indeed in John and Drews > case their class postings. If I have left your name out > forgive me. So in no order thank you to the following > > John Colby for code and writing and trying to teach me about > classes Marty Connelly for amazing examples. and teaching AD > for permissions and being a gentleman Drew for code and > writing and classes Rocky for permissions and review and > being a friend Shamil for code (GUIDs) Steve for reveiw > > Others whose code I have put into the book will see their > name in print at some point in the book and a big thank you > to all. Many books begin with thanks and I could not have > done it without you statements. In this case that is so true, > I would never have finished this book where it not for this > list and the unselfish actions of its many members. > > Overall the book is my creation (with exceptions mentioned) I > hope it is well received it took 8 months of work every > evening and contains what I think are pointers to the > direction Access is going. Its dosnt contain mind blowing > code examples, nothing new or origional (excepts Marty > Connellys example) but its my first book "alone" and > personally whatever the amazon reviews say I will be proud of > it. I cant of course forgot Susan Harkins whose fault this all is. > > Finally in the immortal words of Rocky > > "Yo Adrian I DID IT" > > > Martin > > Martin WP Reid > Training and Assessment Unit > Riddle Hall > Belfast > > tel: 02890 974477 > > From JHewson at karta.com Thu Feb 1 07:56:24 2007 From: JHewson at karta.com (Jim Hewson) Date: Thu, 1 Feb 2007 07:56:24 -0600 Subject: [AccessD] OT: Are you ready for vista? Message-ID: <9C382E065F54AE48BC3AA7925DCBB01C04D9A2B1@karta-exc-int.Karta.com> Jim jhewson at karta.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Wednesday, January 31, 2007 8:43 PM To: dba-ot at databaseadvisors.com Cc: 'Access Developers discussion and problem solving' Subject: [AccessD] OT: Are you ready for vista? Spotted by a colleague: Check out the Vista Upgrade Advisor. You download this little app and it scans your system and tells you what you might have problems with, both software and hardware. http://www.microsoft.com/windows/products/windowsvista/buyorupgrade/upgradeadvisor.mspx Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Chester_Kaup at kindermorgan.com Thu Feb 1 08:00:02 2007 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Thu, 1 Feb 2007 08:00:02 -0600 Subject: [AccessD] Interesting Wilcard Action Message-ID: I have two tables in a query. One is a native Access table and one is a linked SQL Server table. The Access table has a 14 character text field. The SQL Server table with a 10 character text field. I verified all character positions are filled using a Len statement. When I join these two tables on these fields no matching records are found as expected. If I put a criteria using a wildcard (Like "PAT*") on another field in the Access table suddenly the two joined fields are equal. However if I use a wildcard criteria using the % sign (Like "PAT%") no matching records are found. Interesting! Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. From hollisvj at pgdp.usec.com Thu Feb 1 09:27:47 2007 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Thu, 01 Feb 2007 09:27:47 -0600 Subject: [AccessD] Six Month Review Message-ID: <703BDA18A87DFA4CB265A86F42E4178D01E75F59@c2k3exchange.pgdp.corp.usec.com> I need to determine the next semi-annual review date. So if the review date is 2/22/2007, the next review should be 8/22/2007. I have DateReview & DateNxtReview fields - how do I get the DateNxtReview to add 6 months to the DateReview field? Virginia From EdTesiny at oasas.state.ny.us Thu Feb 1 09:44:24 2007 From: EdTesiny at oasas.state.ny.us (Tesiny, Ed) Date: Thu, 1 Feb 2007 10:44:24 -0500 Subject: [AccessD] Six Month Review In-Reply-To: <703BDA18A87DFA4CB265A86F42E4178D01E75F59@c2k3exchange.pgdp.corp.usec.com> References: <703BDA18A87DFA4CB265A86F42E4178D01E75F59@c2k3exchange.pgdp.corp.usec.com> Message-ID: I think the DateAdd function would do it...DateAdd("m",6,[DateReview]) Ed Tesiny EdTesiny at oasas.state.ny.us > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Hollis, Virginia > Sent: Thursday, February 01, 2007 10:28 AM > To: accessD at databaseadvisors.com > Subject: [AccessD] Six Month Review > > I need to determine the next semi-annual review date. So if the review > date is 2/22/2007, the next review should be 8/22/2007. I have > DateReview & DateNxtReview fields - how do I get the DateNxtReview to > add 6 months to the DateReview field? > > > > Virginia > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From RRANTHON at sentara.com Thu Feb 1 09:52:08 2007 From: RRANTHON at sentara.com (RANDALL R ANTHONY) Date: Thu, 01 Feb 2007 10:52:08 -0500 Subject: [AccessD] Six Month Review In-Reply-To: References: <703BDA18A87DFA4CB265A86F42E4178D01E75F59@c2k3exchange.pgdp.corp.usec.com> Message-ID: <200702011552.l11FqWL28473@databaseadvisors.com> Ed's on the money, I use something similar, it takes today's date and gets the exact 6 month prior: RollingDate = Format(DateAdd("m", -6, Now), "mm/dd/yyyy") >>> "Tesiny, Ed" 2/1/2007 10:44 AM >>> I think the DateAdd function would do it...DateAdd("m",6,[DateReview]) Ed Tesiny EdTesiny at oasas.state.ny.us > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Hollis, Virginia > Sent: Thursday, February 01, 2007 10:28 AM > To: accessD at databaseadvisors.com > Subject: [AccessD] Six Month Review > > I need to determine the next semi-annual review date. So if the review > date is 2/22/2007, the next review should be 8/22/2007. I have > DateReview & DateNxtReview fields - how do I get the DateNxtReview to > add 6 months to the DateReview field? > > > > Virginia > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 setel.com Thu Feb 1 10:11:53 2007 From: ssharkins at setel.com (Susan Harkins) Date: Thu, 1 Feb 2007 11:11:53 -0500 Subject: [AccessD] Interesting Wilcard Action In-Reply-To: Message-ID: <003b01c7461b$b2b86a00$f6b62ad1@SUSANONE> That's because the wildcards for Jet SQL and T-SQL aren't the same. ADO's a problem too -- well, problem's the wrong word. You just have to know which wildcards the engine/library supports. http://articles.techrepublic.com.com/5100-10877-6154704.html See tips 8 and 9. Susan H. I have two tables in a query. One is a native Access table and one is a linked SQL Server table. The Access table has a 14 character text field. The SQL Server table with a 10 character text field. I verified all character positions are filled using a Len statement. When I join these two tables on these fields no matching records are found as expected. If I put a criteria using a wildcard (Like "PAT*") on another field in the Access table suddenly the two joined fields are equal. However if I use a wildcard criteria using the % sign (Like "PAT%") no matching records are found. Interesting! Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 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 -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.17.14/657 - Release Date: 1/29/2007 9:04 AM From DWUTKA at marlow.com Thu Feb 1 10:14:14 2007 From: DWUTKA at marlow.com (Drew Wutka) Date: Thu, 1 Feb 2007 10:14:14 -0600 Subject: [AccessD] Six Month Review Message-ID: <17724746D360394AA3BFE5B8D40A9C1B01A03362@marlow_main2.marlow.ii-vi.net> My personal preference is the DateSerial function: DateNxtReview=DateSerial(Month(DateReview)+6,Year(DateReview), Day(DateReview)) Drew -----Original Message----- From: Hollis, Virginia [mailto:hollisvj at pgdp.usec.com] Sent: Thursday, February 01, 2007 9:28 AM To: accessD at databaseadvisors.com Subject: [AccessD] Six Month Review I need to determine the next semi-annual review date. So if the review date is 2/22/2007, the next review should be 8/22/2007. I have DateReview & DateNxtReview fields - how do I get the DateNxtReview to add 6 months to the DateReview field? Virginia -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Thu Feb 1 10:14:39 2007 From: DWUTKA at marlow.com (Drew Wutka) Date: Thu, 1 Feb 2007 10:14:39 -0600 Subject: [AccessD] BringToFront Message-ID: <17724746D360394AA3BFE5B8D40A9C1B01A03363@marlow_main2.marlow.ii-vi.net> Well, did it do the trick? Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Wednesday, January 31, 2007 4:10 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] BringToFront What do you mean it doesn't stick. Will it stick long enough for the user to click the button and cause that form to close? John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Wednesday, January 31, 2007 5:00 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] BringToFront Private Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, _ ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, ByVal _ cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long Private Const SWP_NOMOVE = &H2 Private Const SWP_NOSIZE = &H1 Private Const HWND_TOPMOST = -1 Private Sub PutMeOnTop() SetWindowPos Me.Hwnd, HWND_TOPMOST, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End Sub This will put the form in front of everything. It doesn't 'stick' though. Access forms are subclassed windows, so to put it truly always on top is a little trickier. Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Wednesday, January 31, 2007 3:41 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] BringToFront Is there a Bring To Front for a FORM? I may have a series of progress meters, which open modal, and as it happens centered and right on top of each other. I have devised a way to display an OK button which I display the very last line as that process finishes IF I want the user to know that a specific process finished. The problem is that things being the way they are, the one that is finishing may be physically hidden by another progress meter on top. I need to cause the progress meter that is displaying the "OK to continue" to pop in front of anything else that may be currently displayed. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at verizon.net Thu Feb 1 10:20:04 2007 From: jimdettman at verizon.net (Jim Dettman) Date: Thu, 01 Feb 2007 11:20:04 -0500 Subject: [AccessD] database is not digitally signed In-Reply-To: Message-ID: <020f01c7461c$d7ad5cc0$8abea8c0@XPS> Note that there is no programmatic way to turn this off; the user must do it through the Access UI. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Francisco Tapia Sent: Wednesday, January 31, 2007 8:16 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] database is not digitally signed Nevermind I found the help on MSDN, I had to go to Tools > Security > Low :) On 1/31/07, Francisco Tapia wrote: > I used sagekey to install a demo copy of my own db for my end users, > version Access2003, I had been using the 2000 for years now w/o any > problems. > > Now the error that I am seeing is described here > http://office.microsoft.com/en-us/access/HA011225981033.aspx#080 > > "Access cannot open the file due to security restrictions. Security > settings restrict access to the file because it is not digitally > signed" > > but what it does NOT tell you is how to set the macro security level > to low so that I CAN open the projects I was opening before I did the > wise install (sagekey) install. I called Sagekey and the guy there > was stunned and asked me to re-install Access 2003... but that of > course has not fixed anything... :( > > > > > -- > -Francisco > http://sqlthis.blogspot.com | Tsql and More... > -- -Francisco http://sqlthis.blogspot.com | Tsql and More... -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at verizon.net Thu Feb 1 10:20:04 2007 From: jimdettman at verizon.net (Jim Dettman) Date: Thu, 01 Feb 2007 11:20:04 -0500 Subject: [AccessD] My Book and Thanks In-Reply-To: Message-ID: <021001c7461c$daa12150$8abea8c0@XPS> Very nice! I look forward to picking up a copy. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Wednesday, January 31, 2007 4:15 PM To: Access Developers discussion and problem solving Subject: [AccessD] My Book and Thanks I just finished writing Professional Access 2007 for Apress. This is not an ad. I just wanted to thank the following individuals and this list in general for all the assistance I received when writing this book. from people reading and commenting chapters to individuals testing code to people who allowed me to reuse their code adn indeed in John and Drews case their class postings. If I have left your name out forgive me. So in no order thank you to the following John Colby for code and writing and trying to teach me about classes Marty Connelly for amazing examples. and teaching AD for permissions and being a gentleman Drew for code and writing and classes Rocky for permissions and review and being a friend Shamil for code (GUIDs) Steve for reveiw Others whose code I have put into the book will see their name in print at some point in the book and a big thank you to all. Many books begin with thanks and I could not have done it without you statements. In this case that is so true, I would never have finished this book where it not for this list and the unselfish actions of its many members. Overall the book is my creation (with exceptions mentioned) I hope it is well received it took 8 months of work every evening and contains what I think are pointers to the direction Access is going. Its dosnt contain mind blowing code examples, nothing new or origional (excepts Marty Connellys example) but its my first book "alone" and personally whatever the amazon reviews say I will be proud of it. I cant of course forgot Susan Harkins whose fault this all is. Finally in the immortal words of Rocky "Yo Adrian I DID IT" Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From reuben at gfconsultants.com Thu Feb 1 10:26:20 2007 From: reuben at gfconsultants.com (Reuben Cummings) Date: Thu, 1 Feb 2007 11:26:20 -0500 Subject: [AccessD] Six Month Review In-Reply-To: Message-ID: I agree. But you should also make sure the new date falls into your work week rather than a week end. Check if it's a Saturday or Sunday and add one or two days. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Tesiny, Ed > Sent: Thursday, February 01, 2007 10:44 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Six Month Review > > > I think the DateAdd function would do it...DateAdd("m",6,[DateReview]) > > Ed Tesiny > EdTesiny at oasas.state.ny.us > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > Hollis, Virginia > > Sent: Thursday, February 01, 2007 10:28 AM > > To: accessD at databaseadvisors.com > > Subject: [AccessD] Six Month Review > > > > I need to determine the next semi-annual review date. So if the review > > date is 2/22/2007, the next review should be 8/22/2007. I have > > DateReview & DateNxtReview fields - how do I get the DateNxtReview to > > add 6 months to the DateReview field? > > > > > > > > Virginia > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From cfoust at infostatsystems.com Thu Feb 1 10:26:46 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 1 Feb 2007 08:26:46 -0800 Subject: [AccessD] OT: Are you ready for vista? In-Reply-To: <00f301c745aa$bd3eb9f0$0201a8c0@HAL9005> References: <00f301c745aa$bd3eb9f0$0201a8c0@HAL9005> Message-ID: Check out the latest Windows Secrets newsletter at WindowsSecrets.com for more information and some additional links. The Office Watch newsletter suggests waiting until SP1 before installing Vista! Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Wednesday, January 31, 2007 6:43 PM To: dba-ot at databaseadvisors.com Cc: 'Access Developers discussion and problem solving' Subject: [AccessD] OT: Are you ready for vista? Spotted by a colleague: Check out the Vista Upgrade Advisor. You download this little app and it scans your system and tells you what you might have problems with, both software and hardware. http://www.microsoft.com/windows/products/windowsvista/buyorupgrade/upgr adea dvisor.mspx Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at setel.com Thu Feb 1 10:31:11 2007 From: ssharkins at setel.com (Susan Harkins) Date: Thu, 1 Feb 2007 11:31:11 -0500 Subject: [AccessD] Six Month Review In-Reply-To: <17724746D360394AA3BFE5B8D40A9C1B01A03362@marlow_main2.marlow.ii-vi.net> Message-ID: <004401c7461e$62f7aaf0$f6b62ad1@SUSANONE> Why? Is it superior to the shorter expression in some way? Susan H. My personal preference is the DateSerial function: DateNxtReview=DateSerial(Month(DateReview)+6,Year(DateReview), Day(DateReview)) From DWUTKA at marlow.com Thu Feb 1 10:37:27 2007 From: DWUTKA at marlow.com (Drew Wutka) Date: Thu, 1 Feb 2007 10:37:27 -0600 Subject: [AccessD] Six Month Review Message-ID: <17724746D360394AA3BFE5B8D40A9C1B01A03376@marlow_main2.marlow.ii-vi.net> I doubt it. I like the DateSerial method because if I am building a date, I don't have to worry abut the format of a date, or international standard. DateSerial is always month, year, day. Just a personal quirk, I guess. Drew -----Original Message----- From: Susan Harkins [mailto:ssharkins at setel.com] Sent: Thursday, February 01, 2007 10:31 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Six Month Review Why? Is it superior to the shorter expression in some way? Susan H. My personal preference is the DateSerial function: DateNxtReview=DateSerial(Month(DateReview)+6,Year(DateReview), Day(DateReview)) -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Thu Feb 1 10:40:45 2007 From: john at winhaven.net (John Bartow) Date: Thu, 1 Feb 2007 10:40:45 -0600 Subject: [AccessD] database is not digitally signed In-Reply-To: <020f01c7461c$d7ad5cc0$8abea8c0@XPS> References: <020f01c7461c$d7ad5cc0$8abea8c0@XPS> Message-ID: <05a101c7461f$b8f39490$6502a8c0@ScuzzPaq> http://www.sagekey.com/access_2003.aspx Key Features Digital Certificate not required - Installations built using our tools will not display the Macro Security Warning Message "The file may not be safe if it contains code that was intended to harm your computer" when run without a digital signature. It works for me. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Thursday, February 01, 2007 10:20 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] database is not digitally signed Note that there is no programmatic way to turn this off; the user must do it through the Access UI. Jim. From jimdettman at verizon.net Thu Feb 1 10:13:20 2007 From: jimdettman at verizon.net (Jim Dettman) Date: Thu, 01 Feb 2007 11:13:20 -0500 Subject: [AccessD] database is not digitally signed In-Reply-To: Message-ID: <020e01c7461b$ef43fca0$8abea8c0@XPS> Note that there is no programmatic way to turn this off; the user must do it through the Access UI. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Francisco Tapia Sent: Wednesday, January 31, 2007 8:16 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] database is not digitally signed Nevermind I found the help on MSDN, I had to go to Tools > Security > Low :) On 1/31/07, Francisco Tapia wrote: > I used sagekey to install a demo copy of my own db for my end users, > version Access2003, I had been using the 2000 for years now w/o any > problems. > > Now the error that I am seeing is described here > http://office.microsoft.com/en-us/access/HA011225981033.aspx#080 > > "Access cannot open the file due to security restrictions. Security > settings restrict access to the file because it is not digitally > signed" > > but what it does NOT tell you is how to set the macro security level > to low so that I CAN open the projects I was opening before I did the > wise install (sagekey) install. I called Sagekey and the guy there > was stunned and asked me to re-install Access 2003... but that of > course has not fixed anything... :( > > > > > -- > -Francisco > http://sqlthis.blogspot.com | Tsql and More... > -- -Francisco http://sqlthis.blogspot.com | Tsql and More... -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at setel.com Thu Feb 1 10:48:49 2007 From: ssharkins at setel.com (Susan Harkins) Date: Thu, 1 Feb 2007 11:48:49 -0500 Subject: [AccessD] Six Month Review In-Reply-To: <17724746D360394AA3BFE5B8D40A9C1B01A03376@marlow_main2.marlow.ii-vi.net> Message-ID: <004c01c74620$d9660c70$f6b62ad1@SUSANONE> Well, not a quirk if there's a good reason. Your explanation is reasonable. Sorry, you can't call yourself quirky today. :) Try again tomorrow. :) Susan H. I doubt it. I like the DateSerial method because if I am building a date, I don't have to worry abut the format of a date, or international standard. DateSerial is always month, year, day. Just a personal quirk, I guess. From ssharkins at setel.com Thu Feb 1 10:50:09 2007 From: ssharkins at setel.com (Susan Harkins) Date: Thu, 1 Feb 2007 11:50:09 -0500 Subject: [AccessD] How to bypass the opening security measures Message-ID: <005201c74621$092a9840$f6b62ad1@SUSANONE> A long time ago, I did something to inhibit the opening security warnings, but I don't remember what I did. I ran a repair on Office and reset everything and now I'm getting the annoying security warnings again. Anybody remember how to inhibit those? Susan H. From andy at minstersystems.co.uk Thu Feb 1 10:52:14 2007 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 1 Feb 2007 16:52:14 +0000 Subject: [AccessD] Six Month Review Message-ID: <20070201165220.2B2AE67AE5@smtp.nildram.co.uk> That's odd because here in the UK DateSerial takes year, month, day! How can that be? Also DateSerial and DateAdd give differing results when handling month-end situations. Add 6 months to the last day of August 2007 and DateAdd gives the last day of Feb 2008, whereas DateSerial gives 1st March. You'd need to be aware if that's significant. -- 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] Six Month Review Date: 01/02/07 16:41 I doubt it. I like the DateSerial method because if I am building a date, I don't have to worry abut the format of a date, or international standard. DateSerial is always month, year, day. Just a personal quirk, I guess. Drew -----Original Message----- From: Susan Harkins [mailto:ssharkins at setel.com] Sent: Thursday, February 01, 2007 10:31 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Six Month Review Why? Is it superior to the shorter expression in some way? Susan H. My personal preference is the DateSerial function: DateNxtReview=DateSerial(Month(DateReview)+6,Year(DateReview), Day(DateReview)) -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 DWUTKA at marlow.com Thu Feb 1 10:50:34 2007 From: DWUTKA at marlow.com (Drew Wutka) Date: Thu, 1 Feb 2007 10:50:34 -0600 Subject: [AccessD] Six Month Review Message-ID: <17724746D360394AA3BFE5B8D40A9C1B01A0337E@marlow_main2.marlow.ii-vi.net> LOL. Ok, I don't mind being quirky, or not quirky, as long as I don't hear 'bad practice', I'm good. ;) Drew -----Original Message----- From: Susan Harkins [mailto:ssharkins at setel.com] Sent: Thursday, February 01, 2007 10:49 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Six Month Review Well, not a quirk if there's a good reason. Your explanation is reasonable. Sorry, you can't call yourself quirky today. :) Try again tomorrow. :) Susan H. I doubt it. I like the DateSerial method because if I am building a date, I don't have to worry abut the format of a date, or international standard. DateSerial is always month, year, day. Just a personal quirk, I guess. -- 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 Feb 1 10:57:12 2007 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Thu, 1 Feb 2007 10:57:12 -0600 Subject: [AccessD] How to bypass the opening security measures Message-ID: <34C8A2AB1EF3564CB0D64DB6AFFDD5C201200F7E@xlivmbx35.aig.com> Susan, In Excel go Tool/Options/Security, then hit the Macro Security button and set the security level to Medium. That should do it. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Thursday, February 01, 2007 11:50 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] How to bypass the opening security measures A long time ago, I did something to inhibit the opening security warnings, but I don't remember what I did. I ran a repair on Office and reset everything and now I'm getting the annoying security warnings again. Anybody remember how to inhibit those? Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Feb 1 10:59:42 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Thu, 1 Feb 2007 11:59:42 -0500 Subject: [AccessD] BringToFront In-Reply-To: <17724746D360394AA3BFE5B8D40A9C1B01A03363@marlow_main2.marlow.ii-vi.net> Message-ID: <011501c74622$6a174210$657aa8c0@m6805> I haven't tested it yet. Other fires to put out, you know how that is. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, February 01, 2007 11:15 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] BringToFront Well, did it do the trick? Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Wednesday, January 31, 2007 4:10 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] BringToFront What do you mean it doesn't stick. Will it stick long enough for the user to click the button and cause that form to close? John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Wednesday, January 31, 2007 5:00 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] BringToFront Private Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, _ ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, ByVal _ cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long Private Const SWP_NOMOVE = &H2 Private Const SWP_NOSIZE = &H1 Private Const HWND_TOPMOST = -1 Private Sub PutMeOnTop() SetWindowPos Me.Hwnd, HWND_TOPMOST, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End Sub This will put the form in front of everything. It doesn't 'stick' though. Access forms are subclassed windows, so to put it truly always on top is a little trickier. Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Wednesday, January 31, 2007 3:41 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] BringToFront Is there a Bring To Front for a FORM? I may have a series of progress meters, which open modal, and as it happens centered and right on top of each other. I have devised a way to display an OK button which I display the very last line as that process finishes IF I want the user to know that a specific process finished. The problem is that things being the way they are, the one that is finishing may be physically hidden by another progress meter on top. I need to cause the progress meter that is displaying the "OK to continue" to pop in front of anything else that may be currently displayed. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Thu Feb 1 10:57:55 2007 From: DWUTKA at marlow.com (Drew Wutka) Date: Thu, 1 Feb 2007 10:57:55 -0600 Subject: [AccessD] Six Month Review Message-ID: <17724746D360394AA3BFE5B8D40A9C1B01A03387@marlow_main2.marlow.ii-vi.net> It is Year, Month, Day..... sorry, still working on first cup of coffee, and Outlook still doesn't use Intellisense!!! ;) Good point on the differences. Drew -----Original Message----- From: Andy Lacey [mailto:andy at minstersystems.co.uk] Sent: Thursday, February 01, 2007 10:52 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Six Month Review That's odd because here in the UK DateSerial takes year, month, day! How can that be? Also DateSerial and DateAdd give differing results when handling month-end situations. Add 6 months to the last day of August 2007 and DateAdd gives the last day of Feb 2008, whereas DateSerial gives 1st March. You'd need to be aware if that's significant. -- 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] Six Month Review Date: 01/02/07 16:41 I doubt it. I like the DateSerial method because if I am building a date, I don't have to worry abut the format of a date, or international standard. DateSerial is always month, year, day. Just a personal quirk, I guess. Drew -----Original Message----- From: Susan Harkins [mailto:ssharkins at setel.com] Sent: Thursday, February 01, 2007 10:31 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Six Month Review Why? Is it superior to the shorter expression in some way? Susan H. My personal preference is the DateSerial function: DateNxtReview=DateSerial(Month(DateReview)+6,Year(DateReview), Day(DateReview)) -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Thu Feb 1 11:00:47 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Thu, 1 Feb 2007 12:00:47 -0500 Subject: [AccessD] Six Month Review In-Reply-To: <17724746D360394AA3BFE5B8D40A9C1B01A0337E@marlow_main2.marlow.ii-vi.net> Message-ID: <011601c74622$8a4bbc00$657aa8c0@m6805> Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! ;~) John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, February 01, 2007 11:51 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Six Month Review LOL. Ok, I don't mind being quirky, or not quirky, as long as I don't hear 'bad practice', I'm good. ;) Drew -----Original Message----- From: Susan Harkins [mailto:ssharkins at setel.com] Sent: Thursday, February 01, 2007 10:49 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Six Month Review Well, not a quirk if there's a good reason. Your explanation is reasonable. Sorry, you can't call yourself quirky today. :) Try again tomorrow. :) Susan H. I doubt it. I like the DateSerial method because if I am building a date, I don't have to worry abut the format of a date, or international standard. DateSerial is always month, year, day. Just a personal quirk, I guess. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 setel.com Thu Feb 1 11:03:05 2007 From: ssharkins at setel.com (Susan Harkins) Date: Thu, 1 Feb 2007 12:03:05 -0500 Subject: [AccessD] How to bypass the opening security measures In-Reply-To: <34C8A2AB1EF3564CB0D64DB6AFFDD5C201200F7E@xlivmbx35.aig.com> Message-ID: <005801c74622$d7a6be50$f6b62ad1@SUSANONE> No Security tab in Access. Susan H. In Excel go Tool/Options/Security, then hit the Macro Security button and set the security level to Medium. That should do it. From Kwilliamson at RTKL.com Thu Feb 1 11:11:55 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Thu, 1 Feb 2007 12:11:55 -0500 Subject: [AccessD] Six Month Review In-Reply-To: <011601c74622$8a4bbc00$657aa8c0@m6805> References: <17724746D360394AA3BFE5B8D40A9C1B01A0337E@marlow_main2.marlow.ii-vi.net> <011601c74622$8a4bbc00$657aa8c0@m6805> Message-ID: So.....what exactly are you saying??? This is bad practice?? :) Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, February 01, 2007 12:01 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Six Month Review Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! ;~) John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, February 01, 2007 11:51 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Six Month Review LOL. Ok, I don't mind being quirky, or not quirky, as long as I don't hear 'bad practice', I'm good. ;) Drew -----Original Message----- From: Susan Harkins [mailto:ssharkins at setel.com] Sent: Thursday, February 01, 2007 10:49 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Six Month Review Well, not a quirk if there's a good reason. Your explanation is reasonable. Sorry, you can't call yourself quirky today. :) Try again tomorrow. :) Susan H. I doubt it. I like the DateSerial method because if I am building a date, I don't have to worry abut the format of a date, or international standard. DateSerial is always month, year, day. Just a personal quirk, I guess. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Thu Feb 1 11:04:42 2007 From: DWUTKA at marlow.com (Drew Wutka) Date: Thu, 1 Feb 2007 11:04:42 -0600 Subject: [AccessD] Six Month Review Message-ID: <17724746D360394AA3BFE5B8D40A9C1B01A0338D@marlow_main2.marlow.ii-vi.net> Oh, but from you that's different. I can ignore you! ;) Hey, did that SetWindowPos API work? I'm curious. You posted later how you were opening the form. I still think the API would work on the form's window, but Access is funny with it's 'windows'. Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Thursday, February 01, 2007 11:01 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Six Month Review Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! ;~) John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, February 01, 2007 11:51 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Six Month Review LOL. Ok, I don't mind being quirky, or not quirky, as long as I don't hear 'bad practice', I'm good. ;) Drew -----Original Message----- From: Susan Harkins [mailto:ssharkins at setel.com] Sent: Thursday, February 01, 2007 10:49 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Six Month Review Well, not a quirk if there's a good reason. Your explanation is reasonable. Sorry, you can't call yourself quirky today. :) Try again tomorrow. :) Susan H. I doubt it. I like the DateSerial method because if I am building a date, I don't have to worry abut the format of a date, or international standard. DateSerial is always month, year, day. Just a personal quirk, I guess. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kens.programming at verizon.net Thu Feb 1 10:59:02 2007 From: kens.programming at verizon.net (kens.programming) Date: Thu, 01 Feb 2007 08:59:02 -0800 Subject: [AccessD] How to bypass the opening security measures In-Reply-To: <005201c74621$092a9840$f6b62ad1@SUSANONE> References: <005201c74621$092a9840$f6b62ad1@SUSANONE> Message-ID: <000c01c74622$474253b0$6b01a8c0@Stoker.com> Are you asking about where you go to Tools --> Macros --> Security and select Low (Not Recommended)? Ken -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Thursday, February 01, 2007 8:50 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] How to bypass the opening security measures A long time ago, I did something to inhibit the opening security warnings, but I don't remember what I did. I ran a repair on Office and reset everything and now I'm getting the annoying security warnings again. Anybody remember how to inhibit those? Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.17.18/662 - Release Date: 1/31/2007 3:16 PM -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.17.18/662 - Release Date: 1/31/2007 3:16 PM From DWUTKA at marlow.com Thu Feb 1 11:05:10 2007 From: DWUTKA at marlow.com (Drew Wutka) Date: Thu, 1 Feb 2007 11:05:10 -0600 Subject: [AccessD] BringToFront Message-ID: <17724746D360394AA3BFE5B8D40A9C1B01A0338E@marlow_main2.marlow.ii-vi.net> Ah, asked again in a different thread. Let me know, I'm curious, with how you are opening those forms. Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Thursday, February 01, 2007 11:00 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] BringToFront I haven't tested it yet. Other fires to put out, you know how that is. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, February 01, 2007 11:15 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] BringToFront Well, did it do the trick? Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Wednesday, January 31, 2007 4:10 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] BringToFront What do you mean it doesn't stick. Will it stick long enough for the user to click the button and cause that form to close? John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Wednesday, January 31, 2007 5:00 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] BringToFront Private Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, _ ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, ByVal _ cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long Private Const SWP_NOMOVE = &H2 Private Const SWP_NOSIZE = &H1 Private Const HWND_TOPMOST = -1 Private Sub PutMeOnTop() SetWindowPos Me.Hwnd, HWND_TOPMOST, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End Sub This will put the form in front of everything. It doesn't 'stick' though. Access forms are subclassed windows, so to put it truly always on top is a little trickier. Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Wednesday, January 31, 2007 3:41 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] BringToFront Is there a Bring To Front for a FORM? I may have a series of progress meters, which open modal, and as it happens centered and right on top of each other. I have devised a way to display an OK button which I display the very last line as that process finishes IF I want the user to know that a specific process finished. The problem is that things being the way they are, the one that is finishing may be physically hidden by another progress meter on top. I need to cause the progress meter that is displaying the "OK to continue" to pop in front of anything else that may be currently displayed. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Thu Feb 1 11:12:40 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 01 Feb 2007 18:12:40 +0100 Subject: [AccessD] Six Month Review Message-ID: Hi Drew Never missed an appointment? DateSerial is year, month, day! /gustav >>> ssharkins at setel.com 01-02-2007 17:48:49 >>> Well, not a quirk if there's a good reason. Your explanation is reasonable. Sorry, you can't call yourself quirky today. :) Try again tomorrow. :) Susan H. I doubt it. I like the DateSerial method because if I am building a date, I don't have to worry abut the format of a date, or international standard. DateSerial is always month, year, day. Just a personal quirk, I guess. From jwcolby at colbyconsulting.com Thu Feb 1 11:27:17 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Thu, 1 Feb 2007 12:27:17 -0500 Subject: [AccessD] BringToFront In-Reply-To: <17724746D360394AA3BFE5B8D40A9C1B01A0338E@marlow_main2.marlow.ii-vi.net> Message-ID: <011a01c74626$3b40c2f0$657aa8c0@m6805> It should work. When I open the form, the class grabs a pointer to the form. So while it Me. Refers to the form class, mfrm. Refers to the form and I can (and have) grabbed a pointer to the form window that way. I am attempting to use a similar set of API calls to reposition the window. Haven't got that code straightened out yet either though. Other fires to put out, you know. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, February 01, 2007 12:05 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] BringToFront Ah, asked again in a different thread. Let me know, I'm curious, with how you are opening those forms. Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Thursday, February 01, 2007 11:00 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] BringToFront I haven't tested it yet. Other fires to put out, you know how that is. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, February 01, 2007 11:15 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] BringToFront Well, did it do the trick? Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Wednesday, January 31, 2007 4:10 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] BringToFront What do you mean it doesn't stick. Will it stick long enough for the user to click the button and cause that form to close? John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Wednesday, January 31, 2007 5:00 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] BringToFront Private Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, _ ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, ByVal _ cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long Private Const SWP_NOMOVE = &H2 Private Const SWP_NOSIZE = &H1 Private Const HWND_TOPMOST = -1 Private Sub PutMeOnTop() SetWindowPos Me.Hwnd, HWND_TOPMOST, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End Sub This will put the form in front of everything. It doesn't 'stick' though. Access forms are subclassed windows, so to put it truly always on top is a little trickier. Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Wednesday, January 31, 2007 3:41 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] BringToFront Is there a Bring To Front for a FORM? I may have a series of progress meters, which open modal, and as it happens centered and right on top of each other. I have devised a way to display an OK button which I display the very last line as that process finishes IF I want the user to know that a specific process finished. The problem is that things being the way they are, the one that is finishing may be physically hidden by another progress meter on top. I need to cause the progress meter that is displaying the "OK to continue" to pop in front of anything else that may be currently displayed. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Thu Feb 1 11:28:36 2007 From: DWUTKA at marlow.com (Drew Wutka) Date: Thu, 1 Feb 2007 11:28:36 -0600 Subject: [AccessD] Six Month Review Message-ID: <17724746D360394AA3BFE5B8D40A9C1B01A033A1@marlow_main2.marlow.ii-vi.net> Your honor, it was lack of coffee and lack of intellisense. I plead the 5th! ;) Drew -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Thursday, February 01, 2007 11:13 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Six Month Review Hi Drew Never missed an appointment? DateSerial is year, month, day! /gustav >>> ssharkins at setel.com 01-02-2007 17:48:49 >>> Well, not a quirk if there's a good reason. Your explanation is reasonable. Sorry, you can't call yourself quirky today. :) Try again tomorrow. :) Susan H. I doubt it. I like the DateSerial method because if I am building a date, I don't have to worry abut the format of a date, or international standard. DateSerial is always month, year, day. Just a personal quirk, I guess. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Thu Feb 1 11:33:12 2007 From: DWUTKA at marlow.com (Drew Wutka) Date: Thu, 1 Feb 2007 11:33:12 -0600 Subject: [AccessD] BringToFront Message-ID: <17724746D360394AA3BFE5B8D40A9C1B01A033A5@marlow_main2.marlow.ii-vi.net> I hear ya. I think it should work too, but I've done enough playing around with the windows in Access to know that there's a chance it won't. Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Thursday, February 01, 2007 11:27 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] BringToFront It should work. When I open the form, the class grabs a pointer to the form. So while it Me. Refers to the form class, mfrm. Refers to the form and I can (and have) grabbed a pointer to the form window that way. I am attempting to use a similar set of API calls to reposition the window. Haven't got that code straightened out yet either though. Other fires to put out, you know. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, February 01, 2007 12:05 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] BringToFront Ah, asked again in a different thread. Let me know, I'm curious, with how you are opening those forms. Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Thursday, February 01, 2007 11:00 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] BringToFront I haven't tested it yet. Other fires to put out, you know how that is. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, February 01, 2007 11:15 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] BringToFront Well, did it do the trick? Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Wednesday, January 31, 2007 4:10 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] BringToFront What do you mean it doesn't stick. Will it stick long enough for the user to click the button and cause that form to close? John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Wednesday, January 31, 2007 5:00 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] BringToFront Private Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, _ ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, ByVal _ cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long Private Const SWP_NOMOVE = &H2 Private Const SWP_NOSIZE = &H1 Private Const HWND_TOPMOST = -1 Private Sub PutMeOnTop() SetWindowPos Me.Hwnd, HWND_TOPMOST, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End Sub This will put the form in front of everything. It doesn't 'stick' though. Access forms are subclassed windows, so to put it truly always on top is a little trickier. Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Wednesday, January 31, 2007 3:41 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] BringToFront Is there a Bring To Front for a FORM? I may have a series of progress meters, which open modal, and as it happens centered and right on top of each other. I have devised a way to display an OK button which I display the very last line as that process finishes IF I want the user to know that a specific process finished. The problem is that things being the way they are, the one that is finishing may be physically hidden by another progress meter on top. I need to cause the progress meter that is displaying the "OK to continue" to pop in front of anything else that may be currently displayed. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Feb 1 11:39:43 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 1 Feb 2007 09:39:43 -0800 Subject: [AccessD] Six Month Review In-Reply-To: <011601c74622$8a4bbc00$657aa8c0@m6805> References: <17724746D360394AA3BFE5B8D40A9C1B01A0337E@marlow_main2.marlow.ii-vi.net> <011601c74622$8a4bbc00$657aa8c0@m6805> Message-ID: ROTFL! You beat me to it, John! Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, February 01, 2007 9:01 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Six Month Review Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! ;~) John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, February 01, 2007 11:51 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Six Month Review LOL. Ok, I don't mind being quirky, or not quirky, as long as I don't hear 'bad practice', I'm good. ;) Drew -----Original Message----- From: Susan Harkins [mailto:ssharkins at setel.com] Sent: Thursday, February 01, 2007 10:49 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Six Month Review Well, not a quirk if there's a good reason. Your explanation is reasonable. Sorry, you can't call yourself quirky today. :) Try again tomorrow. :) Susan H. I doubt it. I like the DateSerial method because if I am building a date, I don't have to worry abut the format of a date, or international standard. DateSerial is always month, year, day. Just a personal quirk, I guess. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at sc.rr.com Thu Feb 1 11:43:13 2007 From: bheid at sc.rr.com (Bobby Heid) Date: Thu, 1 Feb 2007 12:43:13 -0500 Subject: [AccessD] OT: Are you ready for vista? In-Reply-To: <00f801c745b0$da8c0ac0$0201a8c0@HAL9005> References: <0JCR00AT8KRBCX90@l-daemon> <00f801c745b0$da8c0ac0$0201a8c0@HAL9005> Message-ID: <001e01c74628$72f0d350$2d01a8c0@bhxp> It did not tell me that I might have problems with my VS 2005. Are your VS 2005 patches up-to-date? I have Vista business that I got at the launch. I just have to wait for a good time to redo my system. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Wednesday, January 31, 2007 10:27 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Are you ready for vista? What I found noteworthy was the number of apps I have installed that I'm warned may have "minor" compatibility issues with Vista - Sygate, Ghost, Musicmatch, SQL Server VSS writer, Messenger, Outlook 2003(!!!!), Visual Studio 2005 Standard, Dell Utilities and others. Hopefully, they all these vendors would have updates on their websites. I'd also need a DVD drive or have to order Vista on CD. It told me that 1GB memory is OK but I've heard that you really need 2. Rocky From cfoust at infostatsystems.com Thu Feb 1 11:42:09 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 1 Feb 2007 09:42:09 -0800 Subject: [AccessD] Six Month Review In-Reply-To: References: <17724746D360394AA3BFE5B8D40A9C1B01A0337E@marlow_main2.marlow.ii-vi.net><011601c74622$8a4bbc00$657aa8c0@m6805> Message-ID: No, he's just triggering Drew's urge to react to hearing "Bad Practice"! Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, February 01, 2007 9:12 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Six Month Review So.....what exactly are you saying??? This is bad practice?? :) Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, February 01, 2007 12:01 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Six Month Review Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! ;~) John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, February 01, 2007 11:51 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Six Month Review LOL. Ok, I don't mind being quirky, or not quirky, as long as I don't hear 'bad practice', I'm good. ;) Drew -----Original Message----- From: Susan Harkins [mailto:ssharkins at setel.com] Sent: Thursday, February 01, 2007 10:49 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Six Month Review Well, not a quirk if there's a good reason. Your explanation is reasonable. Sorry, you can't call yourself quirky today. :) Try again tomorrow. :) Susan H. I doubt it. I like the DateSerial method because if I am building a date, I don't have to worry abut the format of a date, or international standard. DateSerial is always month, year, day. Just a personal quirk, I guess. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Feb 1 11:48:26 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Thu, 1 Feb 2007 12:48:26 -0500 Subject: [AccessD] Six Month Review In-Reply-To: Message-ID: <011b01c74629$2dee8bc0$657aa8c0@m6805> BWAAAAHHAAAAAHAAAAA John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, February 01, 2007 12:42 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Six Month Review No, he's just triggering Drew's urge to react to hearing "Bad Practice"! Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, February 01, 2007 9:12 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Six Month Review So.....what exactly are you saying??? This is bad practice?? :) Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, February 01, 2007 12:01 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Six Month Review Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! ;~) John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, February 01, 2007 11:51 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Six Month Review LOL. Ok, I don't mind being quirky, or not quirky, as long as I don't hear 'bad practice', I'm good. ;) Drew -----Original Message----- From: Susan Harkins [mailto:ssharkins at setel.com] Sent: Thursday, February 01, 2007 10:49 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Six Month Review Well, not a quirk if there's a good reason. Your explanation is reasonable. Sorry, you can't call yourself quirky today. :) Try again tomorrow. :) Susan H. I doubt it. I like the DateSerial method because if I am building a date, I don't have to worry abut the format of a date, or international standard. DateSerial is always month, year, day. Just a personal quirk, I guess. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Thu Feb 1 11:56:47 2007 From: DWUTKA at marlow.com (Drew Wutka) Date: Thu, 1 Feb 2007 11:56:47 -0600 Subject: [AccessD] Six Month Review Message-ID: <17724746D360394AA3BFE5B8D40A9C1B01A033B5@marlow_main2.marlow.ii-vi.net> Luckily, lack of coffee kept me from reacting too quickly... ;) Drew -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Thursday, February 01, 2007 11:42 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Six Month Review No, he's just triggering Drew's urge to react to hearing "Bad Practice"! Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, February 01, 2007 9:12 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Six Month Review So.....what exactly are you saying??? This is bad practice?? :) Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, February 01, 2007 12:01 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Six Month Review Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! ;~) John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, February 01, 2007 11:51 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Six Month Review LOL. Ok, I don't mind being quirky, or not quirky, as long as I don't hear 'bad practice', I'm good. ;) Drew -----Original Message----- From: Susan Harkins [mailto:ssharkins at setel.com] Sent: Thursday, February 01, 2007 10:49 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Six Month Review Well, not a quirk if there's a good reason. Your explanation is reasonable. Sorry, you can't call yourself quirky today. :) Try again tomorrow. :) Susan H. I doubt it. I like the DateSerial method because if I am building a date, I don't have to worry abut the format of a date, or international standard. DateSerial is always month, year, day. Just a personal quirk, I guess. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Thu Feb 1 11:57:18 2007 From: DWUTKA at marlow.com (Drew Wutka) Date: Thu, 1 Feb 2007 11:57:18 -0600 Subject: [AccessD] Six Month Review Message-ID: <17724746D360394AA3BFE5B8D40A9C1B01A033B6@marlow_main2.marlow.ii-vi.net> Sooner or later that was BOUND to happen. Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Thursday, February 01, 2007 11:48 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Six Month Review BWAAAAHHAAAAAHAAAAA John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, February 01, 2007 12:42 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Six Month Review No, he's just triggering Drew's urge to react to hearing "Bad Practice"! Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, February 01, 2007 9:12 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Six Month Review So.....what exactly are you saying??? This is bad practice?? :) Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, February 01, 2007 12:01 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Six Month Review Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! Bad practice! ;~) John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, February 01, 2007 11:51 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Six Month Review LOL. Ok, I don't mind being quirky, or not quirky, as long as I don't hear 'bad practice', I'm good. ;) Drew -----Original Message----- From: Susan Harkins [mailto:ssharkins at setel.com] Sent: Thursday, February 01, 2007 10:49 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Six Month Review Well, not a quirk if there's a good reason. Your explanation is reasonable. Sorry, you can't call yourself quirky today. :) Try again tomorrow. :) Susan H. I doubt it. I like the DateSerial method because if I am building a date, I don't have to worry abut the format of a date, or international standard. DateSerial is always month, year, day. Just a personal quirk, I guess. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dmcafee at pacbell.net Thu Feb 1 12:13:46 2007 From: dmcafee at pacbell.net (David Mcafee) Date: Thu, 1 Feb 2007 10:13:46 -0800 (PST) Subject: [AccessD] Six Month Review Message-ID: <20070201181346.94867.qmail@web80813.mail.mud.yahoo.com> I also agree with Rueben. I made a similar function for my wife's database. She required that patients records be reviewed 90 days from their admit date. I had to make sure the the date didn't fall on a Saturday or Sunday. Let me know if you want a copy of the function so I can dig it up for you. David ----- Original Message ---- From: Reuben Cummings To: Access Developers discussion and problem solving Sent: Thursday, February 1, 2007 8:26:20 AM Subject: Re: [AccessD] Six Month Review I agree. But you should also make sure the new date falls into your work week rather than a week end. Check if it's a Saturday or Sunday and add one or two days. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Tesiny, Ed > Sent: Thursday, February 01, 2007 10:44 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Six Month Review > > > I think the DateAdd function would do it...DateAdd("m",6,[DateReview]) > > Ed Tesiny > EdTesiny at oasas.state.ny.us > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > Hollis, Virginia > > Sent: Thursday, February 01, 2007 10:28 AM > > To: accessD at databaseadvisors.com > > Subject: [AccessD] Six Month Review > > > > I need to determine the next semi-annual review date. So if the review > > date is 2/22/2007, the next review should be 8/22/2007. I have > > DateReview & DateNxtReview fields - how do I get the DateNxtReview to > > add 6 months to the DateReview field? > > > > > > > > Virginia > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Feb 1 12:31:06 2007 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Thu, 1 Feb 2007 13:31:06 -0500 Subject: [AccessD] How to bypass the opening security measures Message-ID: <34C8A2AB1EF3564CB0D64DB6AFFDD5C201200F80@xlivmbx35.aig.com> I know, but I think that the setting is actually global to all Office apps. Give it a whirl in Excel and see if it changes the way Access behaves. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Thursday, February 01, 2007 12:03 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How to bypass the opening security measures No Security tab in Access. Susan H. In Excel go Tool/Options/Security, then hit the Macro Security button and set the security level to Medium. That should do it. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at setel.com Thu Feb 1 12:37:36 2007 From: ssharkins at setel.com (Susan Harkins) Date: Thu, 1 Feb 2007 13:37:36 -0500 Subject: [AccessD] favor -- someone to run a quick test Message-ID: <006201c74630$0c3b35d0$f6b62ad1@SUSANONE> =[Form].[RecordsetClone].[Fields](1).[Name] =======Gustav and I are working on an article together and the above expression works for him, but not for me. There are no missing references and the RecordsetClone class is present on my system. What this expression does is return the name of underlying fields in a text box control in a form. Just add a text box to any bound form and enter the above expression as the Control Source and let me know if it returns the field name or the name? error. I'm using Access 2003 and this is the second name? error that's turned up that I can't explain. Susan H. From ssharkins at setel.com Thu Feb 1 12:48:36 2007 From: ssharkins at setel.com (Susan Harkins) Date: Thu, 1 Feb 2007 13:48:36 -0500 Subject: [AccessD] How to bypass the opening security measures In-Reply-To: <34C8A2AB1EF3564CB0D64DB6AFFDD5C201200F80@xlivmbx35.aig.com> Message-ID: <006801c74631$9637ce50$f6b62ad1@SUSANONE> Well, that didn't work. My problem -- Help says I can find this setting through Tools | Macro | Security |Security Tab There's no Security submenu off the Macro submenu. There's a Security menu off the Tools menu, but it doesn't offer anything that takes me to a Security Level setting. I'm using 2003. Does anyone else have these settings? I don't know if Help is wrong or if my system is choking. Susan H. I know, but I think that the setting is actually global to all Office apps. Give it a whirl in Excel and see if it changes the way Access behaves. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Thursday, February 01, 2007 12:03 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How to bypass the opening security measures No Security tab in Access. Susan H. In Excel go Tool/Options/Security, then hit the Macro Security button and set the security level to Medium. That should do it. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.17.14/657 - Release Date: 1/29/2007 9:04 AM From JHewson at karta.com Thu Feb 1 12:56:51 2007 From: JHewson at karta.com (Jim Hewson) Date: Thu, 1 Feb 2007 12:56:51 -0600 Subject: [AccessD] favor -- someone to run a quick test Message-ID: <9C382E065F54AE48BC3AA7925DCBB01C04D9A2FC@karta-exc-int.Karta.com> I got the field name - using A2003. Jim jhewson at karta.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Thursday, February 01, 2007 12:38 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] favor -- someone to run a quick test =[Form].[RecordsetClone].[Fields](1).[Name] =======Gustav and I are working on an article together and the above expression works for him, but not for me. There are no missing references and the RecordsetClone class is present on my system. What this expression does is return the name of underlying fields in a text box control in a form. Just add a text box to any bound form and enter the above expression as the Control Source and let me know if it returns the field name or the name? error. I'm using Access 2003 and this is the second name? error that's turned up that I can't explain. Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kens.programming at verizon.net Thu Feb 1 12:57:58 2007 From: kens.programming at verizon.net (kens.programming) Date: Thu, 01 Feb 2007 10:57:58 -0800 Subject: [AccessD] How to bypass the opening security measures In-Reply-To: <006801c74631$9637ce50$f6b62ad1@SUSANONE> References: <34C8A2AB1EF3564CB0D64DB6AFFDD5C201200F80@xlivmbx35.aig.com> <006801c74631$9637ce50$f6b62ad1@SUSANONE> Message-ID: <001b01c74632$e733a8a0$6b01a8c0@Stoker.com> I double-checked in my Access 2003 before I responded earlier and I found it at Tools --> Macros --> Security and there were three radio buttons on the first tab, High, Medium, Low. You have to set it to Low for the message to stop appearing. Ken -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Thursday, February 01, 2007 10:49 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How to bypass the opening security measures Well, that didn't work. My problem -- Help says I can find this setting through Tools | Macro | Security |Security Tab There's no Security submenu off the Macro submenu. There's a Security menu off the Tools menu, but it doesn't offer anything that takes me to a Security Level setting. I'm using 2003. Does anyone else have these settings? I don't know if Help is wrong or if my system is choking. Susan H. I know, but I think that the setting is actually global to all Office apps. Give it a whirl in Excel and see if it changes the way Access behaves. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Thursday, February 01, 2007 12:03 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How to bypass the opening security measures No Security tab in Access. Susan H. In Excel go Tool/Options/Security, then hit the Macro Security button and set the security level to Medium. That should do it. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.17.14/657 - Release Date: 1/29/2007 9:04 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.17.19/663 - Release Date: 2/1/2007 2:28 PM -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.17.19/663 - Release Date: 2/1/2007 2:28 PM From JHewson at karta.com Thu Feb 1 12:59:36 2007 From: JHewson at karta.com (Jim Hewson) Date: Thu, 1 Feb 2007 12:59:36 -0600 Subject: [AccessD] How to bypass the opening security measures Message-ID: <9C382E065F54AE48BC3AA7925DCBB01C04D9A2FD@karta-exc-int.Karta.com> I found Tools | Macro | Security | Security Level tab. A2003... Jim jhewson at karta.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Thursday, February 01, 2007 12:49 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How to bypass the opening security measures Well, that didn't work. My problem -- Help says I can find this setting through Tools | Macro | Security |Security Tab There's no Security submenu off the Macro submenu. There's a Security menu off the Tools menu, but it doesn't offer anything that takes me to a Security Level setting. I'm using 2003. Does anyone else have these settings? I don't know if Help is wrong or if my system is choking. Susan H. I know, but I think that the setting is actually global to all Office apps. Give it a whirl in Excel and see if it changes the way Access behaves. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Thursday, February 01, 2007 12:03 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How to bypass the opening security measures No Security tab in Access. Susan H. In Excel go Tool/Options/Security, then hit the Macro Security button and set the security level to Medium. That should do it. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.17.14/657 - Release Date: 1/29/2007 9:04 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Thu Feb 1 13:02:58 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 01 Feb 2007 11:02:58 -0800 Subject: [AccessD] database is not digitally signed In-Reply-To: <020f01c7461c$d7ad5cc0$8abea8c0@XPS> References: <020f01c7461c$d7ad5cc0$8abea8c0@XPS> Message-ID: <45C23962.20202@shaw.ca> Well there is one way if you create a vbs file and open it from a shortcut, this assumes the network nabobs allow vbscript to run A bit more difficult if using a .msw file Const cDatabaseToOpen = "C:\Access files\Access2003 samples\Using Parameters with Queries and Reports.mdb" On Error Resume Next Dim AcApp Set AcApp = CreateObject("Access.Application.11") If AcApp.Version >= 11 Then AcApp.AutomationSecurity = 1 ' msoAutomationSecurityLow End If AcApp.Visible = True AcApp.OpenCurrentDatabase cDatabaseToOpen If AcApp.CurrentProject.FullName <> "" Then AcApp.UserControl = True Else AcApp.Quit MsgBox "Failed to open '" & cDatabaseToOpen & "'." End If Jim Dettman wrote: > Note that there is no programmatic way to turn this off; the user must do >it through the Access UI. > >Jim. > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Francisco Tapia >Sent: Wednesday, January 31, 2007 8:16 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] database is not digitally signed > >Nevermind I found the help on MSDN, I had to go to Tools > Security > Low >:) > > >On 1/31/07, Francisco Tapia wrote: > > >>I used sagekey to install a demo copy of my own db for my end users, >>version Access2003, I had been using the 2000 for years now w/o any >>problems. >> >>Now the error that I am seeing is described here >>http://office.microsoft.com/en-us/access/HA011225981033.aspx#080 >> >>"Access cannot open the file due to security restrictions. Security >>settings restrict access to the file because it is not digitally >>signed" >> >>but what it does NOT tell you is how to set the macro security level >>to low so that I CAN open the projects I was opening before I did the >>wise install (sagekey) install. I called Sagekey and the guy there >>was stunned and asked me to re-install Access 2003... but that of >>course has not fixed anything... :( >> >> >> >> >>-- >>-Francisco >>http://sqlthis.blogspot.com | Tsql and More... >> >> >> > > > > -- Marty Connelly Victoria, B.C. Canada From ssharkins at setel.com Thu Feb 1 13:19:18 2007 From: ssharkins at setel.com (Susan Harkins) Date: Thu, 1 Feb 2007 14:19:18 -0500 Subject: [AccessD] How to bypass the opening security measures In-Reply-To: <9C382E065F54AE48BC3AA7925DCBB01C04D9A2FD@karta-exc-int.Karta.com> Message-ID: <006a01c74635$e1a02b90$f6b62ad1@SUSANONE> Yeah, something's definitely wrong on my end -- I just don't know what it is or how to fix it. I ran a repair the other day. Guess I'll start there and run it again -- can't hurt. Susan H. I found Tools | Macro | Security | Security Level tab. A2003... From ssharkins at setel.com Thu Feb 1 13:19:18 2007 From: ssharkins at setel.com (Susan Harkins) Date: Thu, 1 Feb 2007 14:19:18 -0500 Subject: [AccessD] favor -- someone to run a quick test In-Reply-To: <9C382E065F54AE48BC3AA7925DCBB01C04D9A2FC@karta-exc-int.Karta.com> Message-ID: <006b01c74635$e263c9b0$f6b62ad1@SUSANONE> Thanks Jim -- now if I could figure out what's wrong on my end. Susan H. I got the field name - using A2003. From adtp at airtelbroadband.in Thu Feb 1 13:37:41 2007 From: adtp at airtelbroadband.in (A.D.TEJPAL) Date: Fri, 2 Feb 2007 01:07:41 +0530 Subject: [AccessD] favor -- someone to run a quick test References: <006201c74630$0c3b35d0$f6b62ad1@SUSANONE> Message-ID: <016b01c74638$820ecf30$110365cb@pcadt> All the four expressions ( in a calculated text box) as given below, return correct name of pertinent bound field (Access 2003) - =[Form].[RecordsetClone].[Fields](1).[Name] =[Form].[Recordset].[Fields](1).[Name] =[RecordsetClone].[Fields](1).[Name] =[Recordset].[Fields](1).[Name] A.D.Tejpal --------------- ----- Original Message ----- From: Susan Harkins To: 'Access Developers discussion and problem solving' Sent: Friday, February 02, 2007 00:07 Subject: [AccessD] favor -- someone to run a quick test =[Form].[RecordsetClone].[Fields](1).[Name] =======Gustav and I are working on an article together and the above expression works for him, but not for me. There are no missing references and the RecordsetClone class is present on my system. What this expression does is return the name of underlying fields in a text box control in a form. Just add a text box to any bound form and enter the above expression as the Control Source and let me know if it returns the field name or the name? error. I'm using Access 2003 and this is the second name? error that's turned up that I can't explain. Susan H. From martyconnelly at shaw.ca Thu Feb 1 13:40:36 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 01 Feb 2007 11:40:36 -0800 Subject: [AccessD] How to bypass the opening security measures In-Reply-To: <006801c74631$9637ce50$f6b62ad1@SUSANONE> References: <006801c74631$9637ce50$f6b62ad1@SUSANONE> Message-ID: <45C24234.1000806@shaw.ca> Reset the toolbars in Access 2003 Important If you reset the toolbars in Access 2003 to their original settings, you may lose the custom changes that are implemented in the toolbars. 1. Start Access 2003. 2. On the Tools menu, click Customize. 3. On the Toolbars tab, click to select the Menu Bar check box on the Customize dialog box. 4. Click Reset, and then click OK. 5. Click to select the Database check box, click Reset, and then click OK. 6. Click Close. See Menu items are missing after you upgrade from an earlier version of Microsoft Access to Microsoft Office Access 2003 http://support.microsoft.com/kb/833219 Susan Harkins wrote: >Well, that didn't work. > >My problem -- Help says I can find this setting through Tools | Macro | >Security |Security Tab > >There's no Security submenu off the Macro submenu. There's a Security menu >off the Tools menu, but it doesn't offer anything that takes me to a >Security Level setting. > >I'm using 2003. Does anyone else have these settings? I don't know if Help >is wrong or if my system is choking. > >Susan H. > >I know, but I think that the setting is actually global to all Office apps. >Give it a whirl in Excel and see if it changes the way Access behaves. > >Lambert > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins >Sent: Thursday, February 01, 2007 12:03 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] How to bypass the opening security measures > > >No Security tab in Access. > >Susan H. > >In Excel go Tool/Options/Security, then hit the Macro Security button and >set the security level to Medium. That should do it. > > > > -- Marty Connelly Victoria, B.C. Canada From fhtapia at gmail.com Thu Feb 1 14:10:04 2007 From: fhtapia at gmail.com (Francisco Tapia) Date: Thu, 1 Feb 2007 12:10:04 -0800 Subject: [AccessD] database is not digitally signed In-Reply-To: <037101c745aa$c814c630$6502a8c0@ScuzzPaq> References: <037101c745aa$c814c630$6502a8c0@ScuzzPaq> Message-ID: Hi John, Thanks for replying... In fact I created an ADE from the ADP, and packaged that via sagekey+wise (there is only one version on their site, I just checked today). What I had not anticipated was that my install changed the default behavior for the full version of access2003, not only the runtime version. I started searching for the keywords in google for the problem but I wasn't getting a solution, just simply that Access required a digitally signed certificate for the app, since I didn't know what had happend, I kinda went into a panic and started trying to query google w/ every keyword combination I could think of, :). I gave up and decided to search my gmail to find out if anyone had posted something in the last 2 years, and i was amazed that it didn't show up in my results :). So I posted it :) On 1/31/07, John Bartow wrote: > Hi Francisco! > Long time no hear. I haven't had that issue. Are you using the icons the > install places or opening Access and then the application? As far as I > understand SageKey's scripts will eliminate that problem but you do have to > let it do its thing. > > SageKey does post updates every now and again and they have a FAQ section on > their website. > > In order to test this I just turned macro security to high with my Access > 2003 full version. I installed an application which uses Wise/SageKey to > install Access 2003 runtime and shortcuts. I started the application and it > did not give me the error message. I then opened the same access app's file > but by opening (Access full version) and then selecting the file. this gave > me the error concerning the security setting. > > So I'm guessing that your opening it via full Access or your shortcut icon > is not referencing the runtime version of access that SageKey installs. > > If you want, I can help troubleshoot you through the install script. Contact > me off list. > > HTH > John B. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Francisco Tapia > Sent: Wednesday, January 31, 2007 6:49 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] database is not digitally signed > > I used sagekey to install a demo copy of my own db for my end users, version > Access2003, I had been using the 2000 for years now w/o any problems. > > Now the error that I am seeing is described here > http://office.microsoft.com/en-us/access/HA011225981033.aspx#080 > > "Access cannot open the file due to security restrictions. Security settings > restrict access to the file because it is not digitally signed" > > but what it does NOT tell you is how to set the macro security level to low > so that I CAN open the projects I was opening before I did the wise install > (sagekey) install. I called Sagekey and the guy there was stunned and asked > me to re-install Access 2003... but that of course has not fixed anything... > :( > > > > > -- > -Francisco > http://sqlthis.blogspot.com | Tsql and More... > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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://sqlthis.blogspot.com | Tsql and More... From fhtapia at gmail.com Thu Feb 1 14:10:56 2007 From: fhtapia at gmail.com (Francisco Tapia) Date: Thu, 1 Feb 2007 12:10:56 -0800 Subject: [AccessD] database is not digitally signed In-Reply-To: <45C23962.20202@shaw.ca> References: <020f01c7461c$d7ad5cc0$8abea8c0@XPS> <45C23962.20202@shaw.ca> Message-ID: SWEET! thank you :) On 2/1/07, MartyConnelly wrote: > Well there is one way if you create a vbs file and open it from a > shortcut, this assumes the network nabobs allow vbscript to run > A bit more difficult if using a .msw file > > Const cDatabaseToOpen = "C:\Access files\Access2003 samples\Using > Parameters with Queries and Reports.mdb" > On Error Resume Next > Dim AcApp > Set AcApp = CreateObject("Access.Application.11") > If AcApp.Version >= 11 Then > AcApp.AutomationSecurity = 1 ' msoAutomationSecurityLow > End If > AcApp.Visible = True > AcApp.OpenCurrentDatabase cDatabaseToOpen > If AcApp.CurrentProject.FullName <> "" Then > AcApp.UserControl = True > Else > AcApp.Quit > MsgBox "Failed to open '" & cDatabaseToOpen & "'." > End If > > Jim Dettman wrote: > > > Note that there is no programmatic way to turn this off; the user must do > >it through the Access UI. > > > >Jim. > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Francisco Tapia > >Sent: Wednesday, January 31, 2007 8:16 PM > >To: Access Developers discussion and problem solving > >Subject: Re: [AccessD] database is not digitally signed > > > >Nevermind I found the help on MSDN, I had to go to Tools > Security > Low > >:) > > > > > >On 1/31/07, Francisco Tapia wrote: > > > > > >>I used sagekey to install a demo copy of my own db for my end users, > >>version Access2003, I had been using the 2000 for years now w/o any > >>problems. > >> > >>Now the error that I am seeing is described here > >>http://office.microsoft.com/en-us/access/HA011225981033.aspx#080 > >> > >>"Access cannot open the file due to security restrictions. Security > >>settings restrict access to the file because it is not digitally > >>signed" > >> > >>but what it does NOT tell you is how to set the macro security level > >>to low so that I CAN open the projects I was opening before I did the > >>wise install (sagekey) install. I called Sagekey and the guy there > >>was stunned and asked me to re-install Access 2003... but that of > >>course has not fixed anything... :( > >> > >> > >> > >> > >>-- > >>-Francisco > >>http://sqlthis.blogspot.com | Tsql and More... > >> > >> > >> > > > > > > > > > > -- > Marty Connelly > Victoria, B.C. > Canada > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- -Francisco http://sqlthis.blogspot.com | Tsql and More... From jimdettman at verizon.net Thu Feb 1 14:27:50 2007 From: jimdettman at verizon.net (Jim Dettman) Date: Thu, 01 Feb 2007 15:27:50 -0500 Subject: [AccessD] database is not digitally signed In-Reply-To: <05a101c7461f$b8f39490$6502a8c0@ScuzzPaq> Message-ID: <002501c7463f$72be5a30$8abea8c0@XPS> John, They must be supplying a digital certificate as part of the install. I have found nothing that will allow me to go in and set the security to low (now that I say that, I wonder if it's a registry hack...hum). Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Thursday, February 01, 2007 11:41 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] database is not digitally signed http://www.sagekey.com/access_2003.aspx Key Features Digital Certificate not required - Installations built using our tools will not display the Macro Security Warning Message "The file may not be safe if it contains code that was intended to harm your computer" when run without a digital signature. It works for me. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Thursday, February 01, 2007 10:20 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] database is not digitally signed Note that there is no programmatic way to turn this off; the user must do it through the Access UI. Jim. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Thu Feb 1 14:29:06 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 01 Feb 2007 21:29:06 +0100 Subject: [AccessD] database is not digitally signed Message-ID: Hi Francisco I haven't followed the thread but if you wish to digitally sign your A2003 code, here is how: http://msdn2.microsoft.com/en-us/library/aa167281(office.11).aspx If selfcertification is not enough, you can obtain a free certificate here at CAcert: http://www.cacert.org/ /gustav >>> fhtapia at gmail.com 01-02-2007 21:10:04 >>> Hi John, Thanks for replying... In fact I created an ADE from the ADP, and packaged that via sagekey+wise (there is only one version on their site, I just checked today). What I had not anticipated was that my install changed the default behavior for the full version of access2003, not only the runtime version. I started searching for the keywords in google for the problem but I wasn't getting a solution, just simply that Access required a digitally signed certificate for the app, since I didn't know what had happend, I kinda went into a panic and started trying to query google w/ every keyword combination I could think of, :). I gave up and decided to search my gmail to find out if anyone had posted something in the last 2 years, and i was amazed that it didn't show up in my results :). So I posted it :) On 1/31/07, John Bartow wrote: > Hi Francisco! > Long time no hear. I haven't had that issue. Are you using the icons the > install places or opening Access and then the application? As far as I > understand SageKey's scripts will eliminate that problem but you do have to > let it do its thing. > > SageKey does post updates every now and again and they have a FAQ section on > their website. > > In order to test this I just turned macro security to high with my Access > 2003 full version. I installed an application which uses Wise/SageKey to > install Access 2003 runtime and shortcuts. I started the application and it > did not give me the error message. I then opened the same access app's file > but by opening (Access full version) and then selecting the file. this gave > me the error concerning the security setting. > > So I'm guessing that your opening it via full Access or your shortcut icon > is not referencing the runtime version of access that SageKey installs. > > If you want, I can help troubleshoot you through the install script. Contact > me off list. > > HTH > John B. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Francisco Tapia > Sent: Wednesday, January 31, 2007 6:49 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] database is not digitally signed > > I used sagekey to install a demo copy of my own db for my end users, version > Access2003, I had been using the 2000 for years now w/o any problems. > > Now the error that I am seeing is described here > http://office.microsoft.com/en-us/access/HA011225981033.aspx#080 > > "Access cannot open the file due to security restrictions. Security settings > restrict access to the file because it is not digitally signed" > > but what it does NOT tell you is how to set the macro security level to low > so that I CAN open the projects I was opening before I did the wise install > (sagekey) install. I called Sagekey and the guy there was stunned and asked > me to re-install Access 2003... but that of course has not fixed anything... > :( From gwsmith at iowatelecom.net Thu Feb 1 14:34:03 2007 From: gwsmith at iowatelecom.net (Greg Smith) Date: Thu, 1 Feb 2007 14:34:03 -0600 (CST) Subject: [AccessD] OT: Are you ready for vista? In-Reply-To: <001e01c74628$72f0d350$2d01a8c0@bhxp> References: <0JCR00AT8KRBCX90@l-daemon> <00f801c745b0$da8c0ac0$0201a8c0@HAL9005> <001e01c74628$72f0d350$2d01a8c0@bhxp> Message-ID: <19404.65.118.249.214.1170362043.squirrel@webmail.iowatelecom.net> Apparently NOT. I've found that my HP7140xi multifunction all-in-one networked (jet direct card) printer driver will not work with Vista (advanced features for sure) ?and HP is NOT going to update it.? Printer is about 2 years old.? So if I install Vista on my computer, I can no longer print to or scan from that device as a network device.? It's almost like HP is surprised that Microsoft really released Vista.? They've only been talking about it for the last YEAR or so... I was going to upgrade this weekend, but I think NOT now...particularly if VS2005 is hosed as well.? Greg <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< It did not tell me that I might have problems with my VS 2005. Are your VS 2005 patches up-to-date? I have Vista business that I got at the launch. I just have to wait for a good time to redo my system. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Wednesday, January 31, 2007 10:27 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Are you ready for vista? What I found noteworthy was the number of apps I have installed that I'm warned may have "minor" compatibility issues with Vista - Sygate, Ghost, Musicmatch, SQL Server VSS writer, Messenger, Outlook 2003(!!!!), Visual Studio 2005 Standard, Dell Utilities and others. Hopefully, they all these vendors would have updates on their websites. I'd also need a DVD drive or have to order Vista on CD. It told me that 1GB memory is OK but I've heard that you really need 2. Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Kwilliamson at RTKL.com Thu Feb 1 14:45:18 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Thu, 1 Feb 2007 15:45:18 -0500 Subject: [AccessD] Revisit Copy from Access Issue Message-ID: Well....I made sure that I only had ONE version of excel open....and still the same problem (from earlier this week.) I run a query, copy the result, and try to paste into excel. I get a weird option, when trying to paste special (so that I don't overwrite my formatted cells in excel).....Paste Special will only let me paste as one of the following: Biff5 HTML Unicode Text Text Csv Maybe I never tried to paste special before...only paste. But still....it seems odd. Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com From EdTesiny at oasas.state.ny.us Thu Feb 1 14:52:44 2007 From: EdTesiny at oasas.state.ny.us (Tesiny, Ed) Date: Thu, 1 Feb 2007 15:52:44 -0500 Subject: [AccessD] Revisit Copy from Access Issue In-Reply-To: References: Message-ID: My paste special has Microsoft Excel 8.0 Format as the first choice and then the ones you listed below Ed Tesiny EdTesiny at oasas.state.ny.us > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Keith Williamson > Sent: Thursday, February 01, 2007 3:45 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Revisit Copy from Access Issue > > Well....I made sure that I only had ONE version of excel open....and > still the same problem (from earlier this week.) I run a query, copy > the result, and try to paste into excel. I get a weird option, when > trying to paste special (so that I don't overwrite my > formatted cells in > excel).....Paste Special will only let me paste as one of the > following: > > Biff5 > > HTML > > Unicode Text > > Text > > Csv > > > > Maybe I never tried to paste special before...only paste. But > still....it seems odd. > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.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 Thu Feb 1 15:08:55 2007 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Thu, 1 Feb 2007 15:08:55 -0600 Subject: [AccessD] Revisit Copy from Access Issue Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DE276@corp-es01.fleetpride.com> Paste special has always behaved like that for me. Paste, however, should work just fine. What is the weird option you are getting? Jim Hale -----Original Message----- From: Keith Williamson [mailto:Kwilliamson at rtkl.com] Sent: Thursday, February 01, 2007 2:45 PM To: Access Developers discussion and problem solving Subject: [AccessD] Revisit Copy from Access Issue Well....I made sure that I only had ONE version of excel open....and still the same problem (from earlier this week.) I run a query, copy the result, and try to paste into excel. I get a weird option, when trying to paste special (so that I don't overwrite my formatted cells in excel).....Paste Special will only let me paste as one of the following: Biff5 HTML Unicode Text Text Csv Maybe I never tried to paste special before...only paste. But still....it seems odd. Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.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 Lambert.Heenan at AIG.com Thu Feb 1 15:12:01 2007 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Thu, 1 Feb 2007 15:12:01 -0600 Subject: [AccessD] Revisit Copy from Access Issue Message-ID: <34C8A2AB1EF3564CB0D64DB6AFFDD5C201200F91@xlivmbx35.aig.com> Regardless of the missing Excel x.x --- you should choose "Text". That leaves the preexisting format untouched. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, February 01, 2007 3:45 PM To: Access Developers discussion and problem solving Subject: [AccessD] Revisit Copy from Access Issue Well....I made sure that I only had ONE version of excel open....and still the same problem (from earlier this week.) I run a query, copy the result, and try to paste into excel. I get a weird option, when trying to paste special (so that I don't overwrite my formatted cells in excel).....Paste Special will only let me paste as one of the following: Biff5 HTML Unicode Text Text Csv Maybe I never tried to paste special before...only paste. But still....it seems odd. Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jim.moss at jlmoss.net Thu Feb 1 15:05:59 2007 From: jim.moss at jlmoss.net (Jim Moss) Date: Thu, 1 Feb 2007 15:05:59 -0600 (CST) Subject: [AccessD] Revisit Copy from Access Issue Message-ID: <46404.65.196.182.34.1170363959.squirrel@65.196.182.34> Keith, Why don't you just build a formatted excel file in vba and be done with it? Jim Well....I made sure that I only had ONE version of excel open....and still the same problem (from earlier this week.) I run a query, copy the result, and try to paste into excel. I get a weird option, when trying to paste special (so that I don't overwrite my formatted cells in excel).....Paste Special will only let me paste as one of the following: Biff5 HTML Unicode Text Text Csv Maybe I never tried to paste special before...only paste. But still....it seems odd. Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.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 Thu Feb 1 15:24:50 2007 From: dw-murphy at cox.net (Doug Murphy) Date: Thu, 1 Feb 2007 13:24:50 -0800 Subject: [AccessD] database is not digitally signed In-Reply-To: <002501c7463f$72be5a30$8abea8c0@XPS> Message-ID: <007b01c74647$682b77d0$0200a8c0@murphy3234aaf1> This is a registry setting, so Sagekey could be changing. When you use the Sagekey installer the shortcut actually runs a little exe called runaccess.exe which opens the runtime. It takes care of setting the registry so that if you run several versions of Access on the same computer that the next time you open an access file directly it does not try to open in the runtime. I would assume that if they do this they set the security setting. These are assumptions on my part based on a little knowledge of how the Sagekey scripts work. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Thursday, February 01, 2007 12:28 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] database is not digitally signed John, They must be supplying a digital certificate as part of the install. I have found nothing that will allow me to go in and set the security to low (now that I say that, I wonder if it's a registry hack...hum). Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Thursday, February 01, 2007 11:41 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] database is not digitally signed http://www.sagekey.com/access_2003.aspx Key Features Digital Certificate not required - Installations built using our tools will not display the Macro Security Warning Message "The file may not be safe if it contains code that was intended to harm your computer" when run without a digital signature. It works for me. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Thursday, February 01, 2007 10:20 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] database is not digitally signed Note that there is no programmatic way to turn this off; the user must do it through the Access UI. Jim. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Thu Feb 1 15:30:15 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 01 Feb 2007 13:30:15 -0800 Subject: [AccessD] database is not digitally signed In-Reply-To: References: Message-ID: <45C25BE7.5010500@shaw.ca> Just remember on a network, the digital signature cache can be locked down for general users. Gustav Brock wrote: >Hi Francisco > >I haven't followed the thread but if you wish to digitally sign your A2003 code, here is how: > >http://msdn2.microsoft.com/en-us/library/aa167281(office.11).aspx > >If selfcertification is not enough, you can obtain a free certificate here at CAcert: > >http://www.cacert.org/ > >/gustav > > > >>>>fhtapia at gmail.com 01-02-2007 21:10:04 >>> >>>> >>>> >Hi John, > Thanks for replying... In fact I created an ADE from the ADP, and >packaged that via sagekey+wise (there is only one version on their >site, I just checked today). What I had not anticipated was that my >install changed the default behavior for the full version of >access2003, not only the runtime version. > >I started searching for the keywords in google for the problem but I >wasn't getting a solution, just simply that Access required a >digitally signed certificate for the app, since I didn't know what had >happend, I kinda went into a panic and started trying to query google >w/ every keyword combination I could think of, :). I gave up and >decided to search my gmail to find out if anyone had posted something >in the last 2 years, and i was amazed that it didn't show up in my >results :). So I posted it :) > > > >On 1/31/07, John Bartow wrote: > > >>Hi Francisco! >>Long time no hear. I haven't had that issue. Are you using the icons the >>install places or opening Access and then the application? As far as I >>understand SageKey's scripts will eliminate that problem but you do have to >>let it do its thing. >> >>SageKey does post updates every now and again and they have a FAQ section on >>their website. >> >>In order to test this I just turned macro security to high with my Access >>2003 full version. I installed an application which uses Wise/SageKey to >>install Access 2003 runtime and shortcuts. I started the application and it >>did not give me the error message. I then opened the same access app's file >>but by opening (Access full version) and then selecting the file. this gave >>me the error concerning the security setting. >> >>So I'm guessing that your opening it via full Access or your shortcut icon >>is not referencing the runtime version of access that SageKey installs. >> >>If you want, I can help troubleshoot you through the install script. Contact >>me off list. >> >>HTH >>John B. >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Francisco Tapia >>Sent: Wednesday, January 31, 2007 6:49 PM >>To: Access Developers discussion and problem solving >>Subject: [AccessD] database is not digitally signed >> >>I used sagekey to install a demo copy of my own db for my end users, version >>Access2003, I had been using the 2000 for years now w/o any problems. >> >>Now the error that I am seeing is described here >>http://office.microsoft.com/en-us/access/HA011225981033.aspx#080 >> >>"Access cannot open the file due to security restrictions. Security settings >>restrict access to the file because it is not digitally signed" >> >>but what it does NOT tell you is how to set the macro security level to low >>so that I CAN open the projects I was opening before I did the wise install >>(sagekey) install. I called Sagekey and the guy there was stunned and asked >>me to re-install Access 2003... but that of course has not fixed anything... >>:( >> >> > > > > -- Marty Connelly Victoria, B.C. Canada From darrend at nimble.com.au Thu Feb 1 15:47:50 2007 From: darrend at nimble.com.au (Darren DICK) Date: Fri, 2 Feb 2007 08:47:50 +1100 Subject: [AccessD] A2003:Determining Background colour of the desktop Message-ID: <200702012147.l11LloL12935@databaseadvisors.com> Hi Team Does anyone know how to determine the background colour of the desktop? I have a form I want to set its background colour to match Many thanks Darren From DWUTKA at marlow.com Thu Feb 1 15:50:16 2007 From: DWUTKA at marlow.com (Drew Wutka) Date: Thu, 1 Feb 2007 15:50:16 -0600 Subject: [AccessD] A2003:Determining Background colour of the desktop Message-ID: <17724746D360394AA3BFE5B8D40A9C1B01A03452@marlow_main2.marlow.ii-vi.net> That may be a little tricky if someone has a picture in the background. Theoretically you can get the desktop 'window' with an API, and I'm pretty sure you can capture the 'pic' in a window with an API, so then you would just have to paint that picture into your form. All theory, mind you. Drew -----Original Message----- From: Darren DICK [mailto:darrend at nimble.com.au] Sent: Thursday, February 01, 2007 3:48 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2003:Determining Background colour of the desktop Hi Team Does anyone know how to determine the background colour of the desktop? I have a form I want to set its background colour to match 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 Feb 1 16:16:14 2007 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 02 Feb 2007 08:16:14 +1000 Subject: [AccessD] A2003:Determining Background colour of the desktop In-Reply-To: <200702012147.l11LloL12935@databaseadvisors.com> References: <200702012147.l11LloL12935@databaseadvisors.com> Message-ID: <45C266AE.27258.2EDB385@stuart.lexacorp.com.pg> On 2 Feb 2007 at 8:47, Darren DICK wrote: > Does anyone know how to determine the background colour of the desktop? > > I have a form I want to set its background colour to match Look up "System Color Constants" in VBA Help (remember to omit the "u" ) Specifically "vbDesktop 0x80000001 Desktop color " So set the Detail Backcolor property to &H80000001 or to -2147483647 -- Stuart From kp at sdsonline.net Thu Feb 1 17:42:45 2007 From: kp at sdsonline.net (Kath Pelletti) Date: Fri, 2 Feb 2007 10:42:45 +1100 Subject: [AccessD] My Book and Thanks References: <007001c743c9$d5e72010$0201a8c0@HAL9005><00b201c74544$f0355c30$731665cb@pcadt> Message-ID: <019101c7465a$acad7bc0$6401a8c0@office> Martin - congratulations. People who come home from their day job and write books like that in their 'spare time' amaze me. Such a huge effort and I look forward to reading it. Kath ----- Original Message ----- From: Martin Reid To: Access Developers discussion and problem solving Sent: Thursday, February 01, 2007 8:14 AM Subject: [AccessD] My Book and Thanks I just finished writing Professional Access 2007 for Apress. This is not an ad. I just wanted to thank the following individuals and this list in general for all the assistance I received when writing this book. from people reading and commenting chapters to individuals testing code to people who allowed me to reuse their code adn indeed in John and Drews case their class postings. If I have left your name out forgive me. So in no order thank you to the following John Colby for code and writing and trying to teach me about classes Marty Connelly for amazing examples. and teaching AD for permissions and being a gentleman Drew for code and writing and classes Rocky for permissions and review and being a friend Shamil for code (GUIDs) Steve for reveiw Others whose code I have put into the book will see their name in print at some point in the book and a big thank you to all. Many books begin with thanks and I could not have done it without you statements. In this case that is so true, I would never have finished this book where it not for this list and the unselfish actions of its many members. Overall the book is my creation (with exceptions mentioned) I hope it is well received it took 8 months of work every evening and contains what I think are pointers to the direction Access is going. Its dosnt contain mind blowing code examples, nothing new or origional (excepts Marty Connellys example) but its my first book "alone" and personally whatever the amazon reviews say I will be proud of it. I cant of course forgot Susan Harkins whose fault this all is. Finally in the immortal words of Rocky "Yo Adrian I DID IT" Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ------------------------------------------------------------------------------ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Thu Feb 1 18:01:59 2007 From: DWUTKA at marlow.com (Drew Wutka) Date: Thu, 1 Feb 2007 18:01:59 -0600 Subject: [AccessD] A2003:Determining Background colour of the desktop Message-ID: <17724746D360394AA3BFE5B8D40A9C1B01A03486@marlow_main2.marlow.ii-vi.net> Bad news on my idea. You can get the 'desktop' window, but that is what is actively being displayed, not the background. Plus, there's another downside. I setup a test to 'paint' the desktop window to an access form. In VB, it worked great. In Access, it was a complete PITA, because access forms don't have child windows like other windows, the form window itself has a few child windows, but the controls on that form are not separate windows, they are literally painted onto one specific window. That is the background. So, in my test db, I created a form, 'found' that background window, and painted it with the desktop window, on a timer. Great effect (because if you move the form around it kaleidoscopes if when it gets in the corner (because it is painting itself, over and over). Bad news is, the controls disappear. Giving the controls focus makes them reappear, but the timer kills them again. Someone just posted about getting system information, that's probably a better option. Drew -----Original Message----- From: Darren DICK [mailto:darrend at nimble.com.au] Sent: Thursday, February 01, 2007 3:48 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2003:Determining Background colour of the desktop Hi Team Does anyone know how to determine the background colour of the desktop? I have a form I want to set its background colour to match Many thanks Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From darrend at nimble.com.au Thu Feb 1 18:35:39 2007 From: darrend at nimble.com.au (Darren DICK) Date: Fri, 2 Feb 2007 11:35:39 +1100 Subject: [AccessD] Six Month Review In-Reply-To: <20070201181346.94867.qmail@web80813.mail.mud.yahoo.com> Message-ID: <200702020036.l120anL30168@databaseadvisors.com> Hi David Would you care to post it to the list? Many thanks Darren ------------------ -----Original Message----- From: David Mcafee [mailto:dmcafee at pacbell.net] Sent: Friday, 2 February 2007 5:14 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Six Month Review I also agree with Rueben. I made a similar function for my wife's database. She required that patients records be reviewed 90 days from their admit date. I had to make sure the the date didn't fall on a Saturday or Sunday. Let me know if you want a copy of the function so I can dig it up for you. David ----- Original Message ---- From: Reuben Cummings To: Access Developers discussion and problem solving Sent: Thursday, February 1, 2007 8:26:20 AM Subject: Re: [AccessD] Six Month Review I agree. But you should also make sure the new date falls into your work week rather than a week end. Check if it's a Saturday or Sunday and add one or two days. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Tesiny, Ed > Sent: Thursday, February 01, 2007 10:44 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Six Month Review > > > I think the DateAdd function would do it...DateAdd("m",6,[DateReview]) > > Ed Tesiny > EdTesiny at oasas.state.ny.us > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > Hollis, Virginia > > Sent: Thursday, February 01, 2007 10:28 AM > > To: accessD at databaseadvisors.com > > Subject: [AccessD] Six Month Review > > > > I need to determine the next semi-annual review date. So if the review > > date is 2/22/2007, the next review should be 8/22/2007. I have > > DateReview & DateNxtReview fields - how do I get the DateNxtReview to > > add 6 months to the DateReview field? > > > > > > > > Virginia > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From darrend at nimble.com.au Thu Feb 1 18:40:42 2007 From: darrend at nimble.com.au (Darren DICK) Date: Fri, 2 Feb 2007 11:40:42 +1100 Subject: [AccessD] BringToFront In-Reply-To: <17724746D360394AA3BFE5B8D40A9C1B01A03363@marlow_main2.marlow.ii-vi.net> Message-ID: <200702020041.l120fqL31911@databaseadvisors.com> Hi Drew Thanks for the ASP email - I will review it (plus the million others I have from Gurus on the list) soon I tried the BringMeToTheFront code on a small clock that sits on the desktop Works beautifully - Even sits on top of Task manager - hee hee Many thanks Have a great day Darren ------------------ T: 0424 696 433 -----Original Message----- From: Drew Wutka [mailto:DWUTKA at marlow.com] Sent: Friday, 2 February 2007 3:15 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] BringToFront Well, did it do the trick? Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Wednesday, January 31, 2007 4:10 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] BringToFront What do you mean it doesn't stick. Will it stick long enough for the user to click the button and cause that form to close? John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Wednesday, January 31, 2007 5:00 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] BringToFront Private Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, _ ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, ByVal _ cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long Private Const SWP_NOMOVE = &H2 Private Const SWP_NOSIZE = &H1 Private Const HWND_TOPMOST = -1 Private Sub PutMeOnTop() SetWindowPos Me.Hwnd, HWND_TOPMOST, 0, 0, 0, 0, _ SWP_NOMOVE Or SWP_NOSIZE End Sub This will put the form in front of everything. It doesn't 'stick' though. Access forms are subclassed windows, so to put it truly always on top is a little trickier. Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Wednesday, January 31, 2007 3:41 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] BringToFront Is there a Bring To Front for a FORM? I may have a series of progress meters, which open modal, and as it happens centered and right on top of each other. I have devised a way to display an OK button which I display the very last line as that process finishes IF I want the user to know that a specific process finished. The problem is that things being the way they are, the one that is finishing may be physically hidden by another progress meter on top. I need to cause the progress meter that is displaying the "OK to continue" to pop in front of anything else that may be currently displayed. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd666 at yahoo.com Fri Feb 2 04:35:58 2007 From: accessd666 at yahoo.com (Sad Der) Date: Fri, 2 Feb 2007 02:35:58 -0800 (PST) Subject: [AccessD] Let Excel object live? Message-ID: <262660.77033.qm@web31603.mail.mud.yahoo.com> Hi group, I've got a form that opens an Excel template and fills it with data. I've got the following line: Private objXL As cExcel this is a 'form level variabel'. When the user presses the 'export button' this line is called (on click event): Set objXL = New cExcel In the initiate of this Class I call a function that checks if there is an Excel instance: If objExcel Is Nothing Then Set ExcelObject = CreateObject("Excel.Application") Else 'do nothing, object already alive End If So at this point I have a form. In the properties of the form there is an objXL. When I close the form: DoCmd.Close acForm, Me.Name, acSaveNo The Excel object (objXL) is destroyed and thus the terminate event is triggered. This event closes/kills the object and Excel itself is closed. How can I keep this object alive and still close the form? Maybe not closing the form but hiding it? But how do I hide the form and when opening the form first check if it's open? Regards, Sander ____________________________________________________________________________________ Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com From Gustav at cactus.dk Fri Feb 2 05:18:00 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 02 Feb 2007 12:18:00 +0100 Subject: [AccessD] Six Month Review Message-ID: Hi Andy (and Drew) That's not odd. You ask for two different things. datDate = #8/31/2007# datNext = DateAdd("m", 6, datDate) This will add 6 months to 2007-08-31. As there is no later day in February this year than 29, it returns 2008-02-29. datNext = DateSerial(Year(datDate), Month(datDate) + 6, Day(datDate)) This will build datNext from year-month 2007-08, add 6 months giving 2008-02 and then add 31 days to 2008-02-00 (which is the last day of Jan.). As the day count of 2008-02 is only 29, 2 days will fall in the next month giving 2008-03-02. It's important to distinguish between the two functions. DateAdd() does what humans think, while DateSerial takes a more mathematical approach. This might light a second thought for Drew, as DateSerial is capable of turning most "invalid" dates - like 2008-02-31 - into something meaningful. /gustav >>> andy at minstersystems.co.uk 01-02-2007 17:52 >>> That's odd because here in the UK DateSerial takes year, month, day! How can that be? Also DateSerial and DateAdd give differing results when handling month-end situations. Add 6 months to the last day of August 2007 and DateAdd gives the last day of Feb 2008, whereas DateSerial gives 1st March. You'd need to be aware if that's significant. -- 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] Six Month Review Date: 01/02/07 16:41 I doubt it. I like the DateSerial method because if I am building a date, I don't have to worry abut the format of a date, or international standard. DateSerial is always month, year, day. Just a personal quirk, I guess. Drew -----Original Message----- From: Susan Harkins [mailto:ssharkins at setel.com] Sent: Thursday, February 01, 2007 10:31 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Six Month Review Why? Is it superior to the shorter expression in some way? Susan H. My personal preference is the DateSerial function: DateNxtReview=DateSerial(Month(DateReview)+6,Year(DateReview), Day(DateReview)) From sgoodhall at comcast.net Fri Feb 2 07:39:27 2007 From: sgoodhall at comcast.net (sgoodhall at comcast.net) Date: Fri, 02 Feb 2007 13:39:27 +0000 Subject: [AccessD] Let Excel object live? Message-ID: <020220071339.8722.45C33F0F0009A70400002212220076106404040E080B0101099C@comcast.net> As much as I hate globals, I think this might be a valid use. You could make the Excel Application a global in another module, and it would stay open until you destroy it. You will need to ensure that it gets destroyed before the application terminates, or you may end up with a zombie task. If your user kills the application with the Windows control box, you may not be able to intercept it. Unless you make it visible, it will be hard to get rid of. Regards, Steve Goodhall -------------- Original message ---------------------- From: Sad Der > Hi group, > > I've got a form that opens an Excel template and fills > it with data. > > I've got the following line: > Private objXL As cExcel > > this is a 'form level variabel'. > When the user presses the 'export button' this line is > called (on click event): > Set objXL = New cExcel > In the initiate of this Class I call a function that > checks if there is an Excel instance: > If objExcel Is Nothing Then > Set ExcelObject = > CreateObject("Excel.Application") > Else > 'do nothing, object already alive > End If > > So at this point I have a form. In the properties of > the form there is an objXL. > When I close the form: > DoCmd.Close acForm, Me.Name, acSaveNo > > The Excel object (objXL) is destroyed and thus the > terminate event is triggered. This event closes/kills > the object and Excel itself is closed. > How can I keep this object alive and still close the > form? > > Maybe not closing the form but hiding it? But how do I > hide the form and when opening the form first check if > it's open? > Regards, > > Sander > > > > ________________________________________________________________________________ > ____ > Do you Yahoo!? > Everyone is raving about the all-new Yahoo! Mail beta. > http://new.mail.yahoo.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From dwaters at usinternet.com Fri Feb 2 07:58:09 2007 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 2 Feb 2007 07:58:09 -0600 Subject: [AccessD] Connections and Performance Message-ID: <005b01c746d2$2c59d630$0200a8c0@danwaters> I've read several times that maintaining a connection between a FE and a BE will increase the performance of the FE because it doesn't need to reconnect before transferring data. The connection here would be a bound form connected by a table link to a table in the BE. But, the connection limit for one BE is 5 FE's. So, will maintaining connections on more than 5 FE's reduce performance? Seems logical, but I was wondering if this is correct or is there more to it? Thanks! Dan Waters From jwcolby at colbyconsulting.com Fri Feb 2 08:01:38 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Fri, 2 Feb 2007 09:01:38 -0500 Subject: [AccessD] Connections and Performance In-Reply-To: <005b01c746d2$2c59d630$0200a8c0@danwaters> Message-ID: <018001c746d2$a90e4670$657aa8c0@m6805> >But, the connection limit for one BE is 5 FE's. What does this mean? I have never heard of any such thing. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 02, 2007 8:58 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Connections and Performance I've read several times that maintaining a connection between a FE and a BE will increase the performance of the FE because it doesn't need to reconnect before transferring data. The connection here would be a bound form connected by a table link to a table in the BE. But, the connection limit for one BE is 5 FE's. So, will maintaining connections on more than 5 FE's reduce performance? Seems logical, but I was wondering if this is correct or is there more to it? Thanks! Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From hollisvj at pgdp.usec.com Fri Feb 2 08:06:49 2007 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Fri, 02 Feb 2007 08:06:49 -0600 Subject: [AccessD] Six Month Review Message-ID: <703BDA18A87DFA4CB265A86F42E4178D01E75FA9@c2k3exchange.pgdp.corp.usec.com> Oh, yes, that would be great to have a copy. Virginia ******************* I also agree with Rueben. I made a similar function for my wife's database. She required that patients records be reviewed 90 days from their admit date. I had to make sure the the date didn't fall on a Saturday or Sunday. Let me know if you want a copy of the function so I can dig it up for you. David From hollisvj at pgdp.usec.com Fri Feb 2 08:15:01 2007 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Fri, 02 Feb 2007 08:15:01 -0600 Subject: [AccessD] Fields with Null Message-ID: <703BDA18A87DFA4CB265A86F42E4178D01E75FAA@c2k3exchange.pgdp.corp.usec.com> I am using the below in a query to join 3 field into one. Each field is designated by the description. My problem is I need to check for null fields. The way I have it now, if Comments are null and Remarks has text in it, it leaves a line & starts Remarks in the middle of the field. I need an Iff Null somewhere. Ex: COMMENTS: this is the comments REMARKS: remarks go here INV COMMENTS: Other comments What it is doing: REMARKS: remarks go here INV COMMENTS: Other comments Desc: ("COMMENTS: "+[Comments]) & (Chr(13) & Chr(10) & "REMARKS: "+[Remarks]) & (Chr(13) & Chr(10) & "INV COMMENTS: "+[InvComments]) Virginia From Gustav at cactus.dk Fri Feb 2 08:21:07 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 02 Feb 2007 15:21:07 +0100 Subject: [AccessD] Six Month Review Message-ID: Hi Virginia We use this function: Public Function DateSkipWeekend( _ ByVal datDate As Date, _ Optional ByVal booReverse As Boolean) _ As Date ' Purpose: Calculate first working day equal to or following/preceding datDate. ' Assumes: 5 or 6 working days per week. Weekend is (Saturday and) Sunday. ' Limitation: Does not count for public holidays. ' ' May be freely used and distributed. ' 1999-07-03, Gustav Brock, Cactus Data ApS, Copenhagen Const cintWorkdaysOfWeek As Integer = 5 Dim bytSunday As Byte Dim bytWeekday As Byte bytSunday = WeekDay(vbSunday, vbMonday) bytWeekday = WeekDay(datDate, vbMonday) If bytWeekday > cintWorkdaysOfWeek Then ' Weekend. If booReverse = False Then ' Get following workday. datDate = DateAdd("d", 1 + bytSunday - bytWeekday, datDate) Else ' Get preceding workday. datDate = DateAdd("d", cintWorkdaysOfWeek - bytWeekday, datDate) End If End If DateSkipWeekend = datDate End Function /gustav >>> hollisvj at pgdp.usec.com 02-02-2007 15:06:49 >>> Oh, yes, that would be great to have a copy. Virginia ******************* I also agree with Rueben. I made a similar function for my wife's database. She required that patients records be reviewed 90 days from their admit date. I had to make sure the the date didn't fall on a Saturday or Sunday. Let me know if you want a copy of the function so I can dig it up for you. David From Chester_Kaup at kindermorgan.com Fri Feb 2 08:22:19 2007 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Fri, 2 Feb 2007 08:22:19 -0600 Subject: [AccessD] Fields with Null In-Reply-To: <703BDA18A87DFA4CB265A86F42E4178D01E75FAA@c2k3exchange.pgdp.corp.usec.com> References: <703BDA18A87DFA4CB265A86F42E4178D01E75FAA@c2k3exchange.pgdp.corp.usec.com> Message-ID: How about something like this off the top of my head Desc: ("COMMENTS: "+If([Comments]is null,"",[Comments]) & (Chr(13) & Chr(10) & "REMARKS: "+[Remarks]) & (Chr(13) & Chr(10) & "INV COMMENTS: "+[InvComments]) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis, Virginia Sent: Friday, February 02, 2007 8:15 AM To: accessD at databaseadvisors.com Subject: [AccessD] Fields with Null I am using the below in a query to join 3 field into one. Each field is designated by the description. My problem is I need to check for null fields. The way I have it now, if Comments are null and Remarks has text in it, it leaves a line & starts Remarks in the middle of the field. I need an Iff Null somewhere. Ex: COMMENTS: this is the comments REMARKS: remarks go here INV COMMENTS: Other comments What it is doing: REMARKS: remarks go here INV COMMENTS: Other comments Desc: ("COMMENTS: "+[Comments]) & (Chr(13) & Chr(10) & "REMARKS: "+[Remarks]) & (Chr(13) & Chr(10) & "INV COMMENTS: "+[InvComments]) Virginia -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Fri Feb 2 08:23:26 2007 From: andy at minstersystems.co.uk (Andy Lacey) Date: Fri, 2 Feb 2007 14:23:26 +0000 Subject: [AccessD] Fields with Null Message-ID: <20070202142330.C58EC2B5D66@smtp.nildram.co.uk> Hi Virginia, try Desc: "COMMENTS: " + [Comments] + vbcrlf) & "REMARKS: " + [Remarks] & vbcrlf) & "INV COMMENTS: " + [InvComments] (I prefer the vbcrlf to chr(13) & chr(10) but they do the same) -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "accessD at databaseadvisors.com" Subject: [AccessD] Fields with Null Date: 02/02/07 14:16 I am using the below in a query to join 3 field into one. Each field is designated by the description. My problem is I need to check for null fields. The way I have it now, if Comments are null and Remarks has text in it, it leaves a line & starts Remarks in the middle of the field. I need an Iff Null somewhere. Ex: COMMENTS: this is the comments REMARKS: remarks go here INV COMMENTS: Other comments What it is doing: REMARKS: remarks go here INV COMMENTS: Other comments Desc: ("COMMENTS: "+[Comments]) & (Chr(13) & Chr(10) & "REMARKS: "+[Remarks]) & (Chr(13) & Chr(10) & "INV COMMENTS: "+[InvComments]) Virginia ________________________________________________ Message sent using UebiMiau 2.7.2 From Gustav at cactus.dk Fri Feb 2 08:26:30 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 02 Feb 2007 15:26:30 +0100 Subject: [AccessD] Fields with Null Message-ID: Hi Virginia Modify it like this: Desc: ("COMMENTS: "+[Comments] + Chr(13) & Chr(10)) & ("REMARKS: "+[Remarks] + Chr(13) & Chr(10)) & ("INV COMMENTS: "+ [InvComments]) /gustav >>> hollisvj at pgdp.usec.com 02-02-2007 15:15:01 >>> I am using the below in a query to join 3 field into one. Each field is designated by the description. My problem is I need to check for null fields. The way I have it now, if Comments are null and Remarks has text in it, it leaves a line & starts Remarks in the middle of the field. I need an Iff Null somewhere. Ex: COMMENTS: this is the comments REMARKS: remarks go here INV COMMENTS: Other comments What it is doing: REMARKS: remarks go here INV COMMENTS: Other comments Desc: ("COMMENTS: "+[Comments]) & (Chr(13) & Chr(10) & "REMARKS: "+[Remarks]) & (Chr(13) & Chr(10) & "INV COMMENTS: "+[InvComments]) Virginia From jwcolby at colbyconsulting.com Fri Feb 2 08:37:05 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Fri, 2 Feb 2007 09:37:05 -0500 Subject: [AccessD] Break a float into it's parts Message-ID: <018101c746d7$9f3d82f0$657aa8c0@m6805> How do I get the integer part and the decimal part of a floating point number 23.456 how do I get the 23 how do I get the .456 Using clng for example "rounds" the number up or down which isn't what I want for the integer portion John W. Colby Colby Consulting www.ColbyConsulting.com From reuben at gfconsultants.com Fri Feb 2 08:38:58 2007 From: reuben at gfconsultants.com (Reuben Cummings) Date: Fri, 2 Feb 2007 09:38:58 -0500 Subject: [AccessD] Six Month Review In-Reply-To: <20070201181346.94867.qmail@web80813.mail.mud.yahoo.com> Message-ID: You can do something like this...put in its own function or right where you need it... Select case datepart("w",YourDate) case 1 'Sunday YourDate = DateAdd("d", 1, YourDate) case 7 'Saturday YourDate = DateAdd("d", 2, YourDate) End Select Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of David Mcafee > Sent: Thursday, February 01, 2007 1:14 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Six Month Review > > > I also agree with Rueben. I made a similar function for my wife's > database. > She required that patients records be reviewed 90 days from their > admit date. > I had to make sure the the date didn't fall on a Saturday or Sunday. > > Let me know if you want a copy of the function so I can dig it up for you. > > David > > ----- Original Message ---- > From: Reuben Cummings > To: Access Developers discussion and problem solving > > Sent: Thursday, February 1, 2007 8:26:20 AM > Subject: Re: [AccessD] Six Month Review > > I agree. But you should also make sure the new date falls into your work > week rather than a week end. Check if it's a Saturday or Sunday > and add one > or two days. > > Reuben Cummings > GFC, LLC > 812.523.1017 > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Tesiny, Ed > > Sent: Thursday, February 01, 2007 10:44 AM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Six Month Review > > > > > > I think the DateAdd function would do it...DateAdd("m",6,[DateReview]) > > > > Ed Tesiny > > EdTesiny at oasas.state.ny.us > > > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > > Hollis, Virginia > > > Sent: Thursday, February 01, 2007 10:28 AM > > > To: accessD at databaseadvisors.com > > > Subject: [AccessD] Six Month Review > > > > > > I need to determine the next semi-annual review date. So if the review > > > date is 2/22/2007, the next review should be 8/22/2007. I have > > > DateReview & DateNxtReview fields - how do I get the DateNxtReview to > > > add 6 months to the DateReview field? > > > > > > > > > > > > Virginia > > > > > > -- > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Fri Feb 2 08:44:39 2007 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 2 Feb 2007 08:44:39 -0600 Subject: [AccessD] Connections and Performance In-Reply-To: <10240589.1170425284734.JavaMail.root@sniper34> References: <005b01c746d2$2c59d630$0200a8c0@danwaters> <10240589.1170425284734.JavaMail.root@sniper34> Message-ID: <005f01c746d8$ab3fe4c0$0200a8c0@danwaters> Access has the potential for 8 simultaneous connections, but 3 of them are reserved for the system's use. That leaves five for users. Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Friday, February 02, 2007 8:02 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance >But, the connection limit for one BE is 5 FE's. What does this mean? I have never heard of any such thing. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 02, 2007 8:58 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Connections and Performance I've read several times that maintaining a connection between a FE and a BE will increase the performance of the FE because it doesn't need to reconnect before transferring data. The connection here would be a bound form connected by a table link to a table in the BE. But, the connection limit for one BE is 5 FE's. So, will maintaining connections on more than 5 FE's reduce performance? Seems logical, but I was wondering if this is correct or is there more to it? Thanks! Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From hollisvj at pgdp.usec.com Fri Feb 2 08:46:04 2007 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Fri, 02 Feb 2007 08:46:04 -0600 Subject: [AccessD] Fields with Null Message-ID: <703BDA18A87DFA4CB265A86F42E4178D01E75FB0@c2k3exchange.pgdp.corp.usec.com> Gustav: This one gives me 2 little squares where the COMMENTS would be, and then it puts the REMARKS on the 2nd line. Chester: This gives me an error: Undefinded Function If: Desc: ("COMMENTS: "+If([Comments] Is Null,"",[Comments]) & (Chr(13) & Chr(10) & "REMARKS:"+[Remarks]) & (Chr(13) & Chr(10) & "INV COMMENTS: "+[InvComments])) Andy: First it gives, too many closing parenthesis, so I added some like before ([Comments]. But then it wants a parameter for vbcrlf. Desc: "COMMENTS: " + [Comments] + vbcrlf) & "REMARKS: " + [Remarks] & vbcrlf) & "INV COMMENTS: " + [InvComments] ******************** Hi Virginia Modify it like this: Desc: ("COMMENTS: "+[Comments] + Chr(13) & Chr(10)) & ("REMARKS: "+[Remarks] + Chr(13) & Chr(10)) & ("INV COMMENTS: "+ [InvComments]) /gustav From stuart at lexacorp.com.pg Fri Feb 2 08:46:56 2007 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 03 Feb 2007 00:46:56 +1000 Subject: [AccessD] Connections and Performance In-Reply-To: <018001c746d2$a90e4670$657aa8c0@m6805> References: <005b01c746d2$2c59d630$0200a8c0@danwaters>, <018001c746d2$a90e4670$657aa8c0@m6805> Message-ID: <45C34EE0.12712.678B7CF@stuart.lexacorp.com.pg> ? I regularly run apps with up to 30 FEs accessing the BE with no performance degradation. > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Friday, February 02, 2007 8:58 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Connections and Performance > > I've read several times that maintaining a connection between a FE and a BE > will increase the performance of the FE because it doesn't need to reconnect > before transferring data. The connection here would be a bound form > connected by a table link to a table in the BE. > > But, the connection limit for one BE is 5 FE's. So, will maintaining > connections on more than 5 FE's reduce performance? Seems logical, but I > was wondering if this is correct or is there more to it? > > Thanks! > > Dan Waters -- Stuart From Chester_Kaup at kindermorgan.com Fri Feb 2 08:50:20 2007 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Fri, 2 Feb 2007 08:50:20 -0600 Subject: [AccessD] Fields with Null In-Reply-To: <703BDA18A87DFA4CB265A86F42E4178D01E75FB0@c2k3exchange.pgdp.corp.usec.com> References: <703BDA18A87DFA4CB265A86F42E4178D01E75FB0@c2k3exchange.pgdp.corp.usec.com> Message-ID: That should be IIf not If. I forget switching back and forth between Access and Excel. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis, Virginia Sent: Friday, February 02, 2007 8:46 AM To: accessd at databaseadvisors.com Subject: [AccessD] Fields with Null Gustav: This one gives me 2 little squares where the COMMENTS would be, and then it puts the REMARKS on the 2nd line. Chester: This gives me an error: Undefinded Function If: Desc: ("COMMENTS: "+If([Comments] Is Null,"",[Comments]) & (Chr(13) & Chr(10) & "REMARKS:"+[Remarks]) & (Chr(13) & Chr(10) & "INV COMMENTS: "+[InvComments])) Andy: First it gives, too many closing parenthesis, so I added some like before ([Comments]. But then it wants a parameter for vbcrlf. Desc: "COMMENTS: " + [Comments] + vbcrlf) & "REMARKS: " + [Remarks] & vbcrlf) & "INV COMMENTS: " + [InvComments] ******************** Hi Virginia Modify it like this: Desc: ("COMMENTS: "+[Comments] + Chr(13) & Chr(10)) & ("REMARKS: "+[Remarks] + Chr(13) & Chr(10)) & ("INV COMMENTS: "+ [InvComments]) /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Feb 2 08:51:45 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Fri, 2 Feb 2007 09:51:45 -0500 Subject: [AccessD] Connections and Performance In-Reply-To: <45C34EE0.12712.678B7CF@stuart.lexacorp.com.pg> Message-ID: <018701c746d9$a9891790$657aa8c0@m6805> Likewise, though how do you tell???? John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, February 02, 2007 9:47 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance ? I regularly run apps with up to 30 FEs accessing the BE with no performance degradation. > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Friday, February 02, 2007 8:58 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Connections and Performance > > I've read several times that maintaining a connection between a FE and > a BE will increase the performance of the FE because it doesn't need > to reconnect before transferring data. The connection here would be a > bound form connected by a table link to a table in the BE. > > But, the connection limit for one BE is 5 FE's. So, will maintaining > connections on more than 5 FE's reduce performance? Seems logical, > but I was wondering if this is correct or is there more to it? > > Thanks! > > Dan Waters -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Fri Feb 2 08:56:14 2007 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 03 Feb 2007 00:56:14 +1000 Subject: [AccessD] Break a float into it's parts In-Reply-To: <018101c746d7$9f3d82f0$657aa8c0@m6805> References: <018101c746d7$9f3d82f0$657aa8c0@m6805> Message-ID: <45C3510E.20364.681399B@stuart.lexacorp.com.pg> Use Fix() for the integer part. (Int() will screw up on negative numbers) Use Abs(myNum - Fix(myNum)) to return the decimal part - assuming you always want the decimal part positive. On 2 Feb 2007 at 9:37, JWColby wrote: > How do I get the integer part and the decimal part of a floating point > number > > 23.456 > > how do I get the 23 > how do I get the .456 > > Using clng for example "rounds" the number up or down which isn't what I > want for the integer portion > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- Stuart From hollisvj at pgdp.usec.com Fri Feb 2 08:56:28 2007 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Fri, 02 Feb 2007 08:56:28 -0600 Subject: [AccessD] Fields with Null Message-ID: <703BDA18A87DFA4CB265A86F42E4178D01E75FB4@c2k3exchange.pgdp.corp.usec.com> Ok, getting close. But now it shows the word COMMENTS: at the beginning each field even if there isn't anything entered in the comments. ******************** That should be IIf not If. I forget switching back and forth between Access and Excel. Chester: This gives me an error: Undefinded Function If: Desc: ("COMMENTS: "+If([Comments] Is Null,"",[Comments]) & (Chr(13) & Chr(10) & "REMARKS:"+[Remarks]) & (Chr(13) & Chr(10) & "INV COMMENTS: "+[InvComments])) From Gustav at cactus.dk Fri Feb 2 08:57:17 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 02 Feb 2007 15:57:17 +0100 Subject: [AccessD] Break a float into it's parts Message-ID: Hi John Use Int() as here: ' Retrieve date (integer) part. dblDate = Int(datTime) ' Retrieve time (decimal) part. dblTime = datTime - dblDate ' Assemble date and time part. datTime = CVDate(dblDate + dblTime) /gustav >>> jwcolby at colbyconsulting.com 02-02-2007 15:37:05 >>> How do I get the integer part and the decimal part of a floating point number 23.456 how do I get the 23 how do I get the .456 Using clng for example "rounds" the number up or down which isn't what I want for the integer portion John W. Colby Colby Consulting www.ColbyConsulting.com From stuart at lexacorp.com.pg Fri Feb 2 08:57:46 2007 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 03 Feb 2007 00:57:46 +1000 Subject: [AccessD] Connections and Performance In-Reply-To: <018701c746d9$a9891790$657aa8c0@m6805> References: <45C34EE0.12712.678B7CF@stuart.lexacorp.com.pg>, <018701c746d9$a9891790$657aa8c0@m6805> Message-ID: <45C3516A.8447.682A214@stuart.lexacorp.com.pg> It doesn't seem any faster when only a couple of people are using it :-) On 2 Feb 2007 at 9:51, JWColby wrote: > Likewise, though how do you tell???? > > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan > Sent: Friday, February 02, 2007 9:47 AM To: Access Developers discussion and > problem solving Subject: Re: [AccessD] Connections and Performance > > ? > I regularly run apps with up to 30 FEs accessing the BE with no performance > degradation. > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > > Sent: Friday, February 02, 2007 8:58 AM To: 'Access Developers discussion > > and problem solving' Subject: [AccessD] Connections and Performance > > > > I've read several times that maintaining a connection between a FE and a > > BE will increase the performance of the FE because it doesn't need to > > reconnect before transferring data. The connection here would be a bound > > form connected by a table link to a table in the BE. > > > > But, the connection limit for one BE is 5 FE's. So, will maintaining > > connections on more than 5 FE's reduce performance? Seems logical, but I > > was wondering if this is correct or is there more to it? > > > > Thanks! > > > > Dan Waters > -- > 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 -- Stuart From jwcolby at colbyconsulting.com Fri Feb 2 08:57:49 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Fri, 2 Feb 2007 09:57:49 -0500 Subject: [AccessD] Connections and Performance In-Reply-To: <005f01c746d8$ab3fe4c0$0200a8c0@danwaters> Message-ID: <018801c746da$82ffb740$657aa8c0@m6805> >Access has the potential for 8 simultaneous connections, but 3 of them are reserved for the system's use. But what does this mean? Where does this come from? I have Bes which have 30-40 Fes connected to them, i.e. have "links" to the tables in them. Is this what you are calling a "connection"? In this case I have 30-40 "connections" to my Bes. IIRC Access has a limit of 255 simultaneous connections, but that has to do with the lock file (the LDB). Each FE with a link to ANY number of tables in the BE has a single lock file entry in the LDB. I have no idea what happens if you run a query that uses the "in X:\MyMDB.mdb", but my assumption is that would share the lock if any, and create a lock if none existed already for that FE. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 02, 2007 9:45 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance Access has the potential for 8 simultaneous connections, but 3 of them are reserved for the system's use. That leaves five for users. Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Friday, February 02, 2007 8:02 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance >But, the connection limit for one BE is 5 FE's. What does this mean? I have never heard of any such thing. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 02, 2007 8:58 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Connections and Performance I've read several times that maintaining a connection between a FE and a BE will increase the performance of the FE because it doesn't need to reconnect before transferring data. The connection here would be a bound form connected by a table link to a table in the BE. But, the connection limit for one BE is 5 FE's. So, will maintaining connections on more than 5 FE's reduce performance? Seems logical, but I was wondering if this is correct or is there more to it? Thanks! Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BarbaraRyan at cox.net Fri Feb 2 08:59:06 2007 From: BarbaraRyan at cox.net (Barbara Ryan) Date: Fri, 2 Feb 2007 09:59:06 -0500 Subject: [AccessD] Database size Message-ID: <007301c746da$af607ea0$0a00a8c0@PCRURI35> I just deleted many objects (probably 75 forms, queries, reports) from an Access 2002 database (using Access 2003). I then compiled and compacted. However, the database actually increased in size by 4MG!!! (from 26 to 30MG). What happened? :-( Thanks, Barb Ryan From andy at minstersystems.co.uk Fri Feb 2 08:59:41 2007 From: andy at minstersystems.co.uk (Andy Lacey) Date: Fri, 2 Feb 2007 14:59:41 +0000 Subject: [AccessD] Fields with Null Message-ID: <20070202145945.9F8D02BB98B@smtp.nildram.co.uk> Aah you're using this in SQL aren't you, not code. Vbcrlf is VBA so code-only. Ok, so going back to the chr(13) & chr(10) try: ("COMMENTS: "+[Comments]+(Chr(13) & Chr(10))) & ("REMARKS: "+[Remarks]+(Chr(13) & Chr(10))) & ("INV COMMENTS: "+[InvComments]) -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "accessd at databaseadvisors.com" Subject: [AccessD] Fields with Null Date: 02/02/07 14:47 Gustav: This one gives me 2 little squares where the COMMENTS would be, and then it puts the REMARKS on the 2nd line. Chester: This gives me an error: Undefinded Function If: Desc: ("COMMENTS: "+If([Comments] Is Null,"",[Comments]) & (Chr(13) & Chr(10) & "REMARKS:"+[Remarks]) & (Chr(13) & Chr(10) & "INV COMMENTS: "+[InvComments])) Andy: First it gives, too many closing parenthesis, so I added some like before ([Comments]. But then it wants a parameter for vbcrlf. Desc: "COMMENTS: " + [Comments] + vbcrlf) & "REMARKS: " + [Remarks] & vbcrlf) & "INV COMMENTS: " + [InvComments] ******************** Hi Virginia Modify it like this: Desc: ("COMMENTS: "+[Comments] + Chr(13) & Chr(10)) & ("REMARKS: "+[Remarks] + Chr(13) & Chr(10)) & ("INV COMMENTS: "+ [InvComments]) /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 hollisvj at pgdp.usec.com Fri Feb 2 09:03:02 2007 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Fri, 02 Feb 2007 09:03:02 -0600 Subject: [AccessD] Fields with Null Message-ID: <703BDA18A87DFA4CB265A86F42E4178D01E75FB7@c2k3exchange.pgdp.corp.usec.com> Yes, it is for reports. This works, but same as Chesters - It shows the COMMENTS in each field even if there aren't any comments. It doesn't do that for the REMARKS or INV COMMENTS. ******************* Aah you're using this in SQL aren't you, not code. Vbcrlf is VBA so code-only. Ok, so going back to the chr(13) & chr(10) try: ("COMMENTS: "+[Comments]+(Chr(13) & Chr(10))) & ("REMARKS: "+[Remarks]+(Chr(13) & Chr(10))) & ("INV COMMENTS: "+[InvComments]) -- Andy Lacey http://www.minstersystems.co.uk From Gustav at cactus.dk Fri Feb 2 09:02:55 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 02 Feb 2007 16:02:55 +0100 Subject: [AccessD] Fields with Null Message-ID: Hi Virginia Oops, missed a paranthesis or two: Desc: ("COMMENTS: "+[Comments] + (Chr(13) & Chr(10))) & ("REMARKS: "+[Remarks] + (Chr(13) & Chr(10))) & ("INV COMMENTS: "+ [InvComments]) >>> hollisvj at pgdp.usec.com 02-02-2007 15:46:04 >>> Gustav: This one gives me 2 little squares where the COMMENTS would be, and then it puts the REMARKS on the 2nd line. From rockysmolin at bchacc.com Fri Feb 2 09:04:06 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Fri, 2 Feb 2007 07:04:06 -0800 Subject: [AccessD] Break a float into it's parts In-Reply-To: <018101c746d7$9f3d82f0$657aa8c0@m6805> Message-ID: <006001c746db$62eab6c0$0201a8c0@HAL9005> JC: Will this do it? Dim dblNumber As Double Dim dblIntegerPart As Double Dim dblDecimalPart As Double dblNumber = 23.567 dblIntegerPart = Int(dblNumber) dblDecimalPart = dblNumber - dblIntegerPart MsgBox dblIntegerPart & " - " & dblDecimalPart Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Friday, February 02, 2007 6:37 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Break a float into it's parts How do I get the integer part and the decimal part of a floating point number 23.456 how do I get the 23 how do I get the .456 Using clng for example "rounds" the number up or down which isn't what I want for the integer portion John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.17.19/663 - Release Date: 2/1/2007 2:28 PM From stuart at lexacorp.com.pg Fri Feb 2 09:04:58 2007 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 03 Feb 2007 01:04:58 +1000 Subject: [AccessD] Break a float into it's parts In-Reply-To: <018101c746d7$9f3d82f0$657aa8c0@m6805> References: <018101c746d7$9f3d82f0$657aa8c0@m6805> Message-ID: <45C3531A.4.6893AEC@stuart.lexacorp.com.pg> Use Fix() for the integer part. (Int() will screw up on negative numbers) Use Abs(myNum - Fix(myNum)) to return the decimal part - assuming you always want the decimal part positive. On 2 Feb 2007 at 9:37, JWColby wrote: > How do I get the integer part and the decimal part of a floating point > number > > 23.456 > > how do I get the 23 > how do I get the .456 > > Using clng for example "rounds" the number up or down which isn't what I > want for the integer portion > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- Stuart From mmattys at rochester.rr.com Fri Feb 2 09:07:26 2007 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Fri, 2 Feb 2007 10:07:26 -0500 Subject: [AccessD] Connections and Performance References: <005b01c746d2$2c59d630$0200a8c0@danwaters> <018001c746d2$a90e4670$657aa8c0@m6805> <45C34EE0.12712.678B7CF@stuart.lexacorp.com.pg> Message-ID: <007d01c746db$db47dad0$0202a8c0@default> Heh :) It took me a few minutes, but I found this 'explanation' http://www.crystaltech.com/Newsletters/news2006-08tech.aspx Access vs. MS SQL or MySQL If you are utilizing a Microsoft Access database with your website, one strong recommendation would be to change to SQL or MySQL. Access uses a file server system approach where each user reads and writes directly to the raw data tables, making it ideal for use as a desktop solution at home. However, Access is not optimized for use with a large number of concurrent connections and does not scale for large databases. As more users connect to an Access database, the performance starts to degrade rapidly. Even moderately-trafficked websites can easily have 5 or more users at one time which can cause Access to lock the number of connections. MySQL and SQL, which utilize a more efficient client-server structure, can support hundreds, even thousands of concurrent users for a much more secure and stable level of performance. Since they can be configured to effectively accommodate multiple users with a high level of uptime, reliability and scalability that Access cannot offer, they are ideal for an online production environment. Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "Stuart McLachlan" To: "Access Developers discussion and problem solving" Sent: Friday, February 02, 2007 9:46 AM Subject: Re: [AccessD] Connections and Performance >? > I regularly run apps with up to 30 FEs accessing the BE with no > performance > degradation. > >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >> Sent: Friday, February 02, 2007 8:58 AM >> To: 'Access Developers discussion and problem solving' >> Subject: [AccessD] Connections and Performance >> >> I've read several times that maintaining a connection between a FE and a >> BE >> will increase the performance of the FE because it doesn't need to >> reconnect >> before transferring data. The connection here would be a bound form >> connected by a table link to a table in the BE. >> >> But, the connection limit for one BE is 5 FE's. So, will maintaining >> connections on more than 5 FE's reduce performance? Seems logical, but I >> was wondering if this is correct or is there more to it? >> >> Thanks! >> >> Dan Waters > -- > Stuart > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Feb 2 09:08:16 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Fri, 2 Feb 2007 10:08:16 -0500 Subject: [AccessD] Database size In-Reply-To: <007301c746da$af607ea0$0a00a8c0@PCRURI35> Message-ID: <018a01c746db$f8bd34c0$657aa8c0@m6805> Call Ghostbusters... John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Barbara Ryan Sent: Friday, February 02, 2007 9:59 AM To: Access List Subject: [AccessD] Database size I just deleted many objects (probably 75 forms, queries, reports) from an Access 2002 database (using Access 2003). I then compiled and compacted. However, the database actually increased in size by 4MG!!! (from 26 to 30MG). What happened? :-( Thanks, Barb Ryan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Fri Feb 2 09:09:04 2007 From: andy at minstersystems.co.uk (Andy Lacey) Date: Fri, 2 Feb 2007 15:09:04 +0000 Subject: [AccessD] Fields with Null Message-ID: <20070202150909.5F4A756FC1@smtp.nildram.co.uk> Mmm, doesn't do that for me. Are you sure the Comments field is null? Could it have blank spaces in it somehow? Add this to your query: TestNull: IsNull([Comments]) Do the "empty" Comments records return -1 (ie True)? -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "accessd at databaseadvisors.com" Subject: [AccessD] Fields with Null Date: 02/02/07 15:04 Yes, it is for reports. This works, but same as Chesters - It shows the COMMENTS in each field even if there aren't any comments. It doesn't do that for the REMARKS or INV COMMENTS. ******************* Aah you're using this in SQL aren't you, not code. Vbcrlf is VBA so code-only. Ok, so going back to the chr(13) & chr(10) try: ("COMMENTS: "+[Comments]+(Chr(13) & Chr(10))) & ("REMARKS: "+[Remarks]+(Chr(13) & Chr(10))) & ("INV COMMENTS: "+[InvComments]) -- 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 jwcolby at colbyconsulting.com Fri Feb 2 09:09:18 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Fri, 2 Feb 2007 10:09:18 -0500 Subject: [AccessD] Connections and Performance In-Reply-To: <45C3516A.8447.682A214@stuart.lexacorp.com.pg> Message-ID: <018b01c746dc$1da34fe0$657aa8c0@m6805> LOL< yea but there is so much external to the database (networks, server speed etc.). But yea, and that is why I say the same thing. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, February 02, 2007 9:58 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance It doesn't seem any faster when only a couple of people are using it :-) On 2 Feb 2007 at 9:51, JWColby wrote: > Likewise, though how do you tell???? > > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > McLachlan > Sent: Friday, February 02, 2007 9:47 AM To: Access Developers > discussion and problem solving Subject: Re: [AccessD] Connections and > Performance > > ? > I regularly run apps with up to 30 FEs accessing the BE with no > performance degradation. > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan > > Waters > > Sent: Friday, February 02, 2007 8:58 AM To: 'Access Developers > > discussion and problem solving' Subject: [AccessD] Connections and > > Performance > > > > I've read several times that maintaining a connection between a FE > > and a BE will increase the performance of the FE because it doesn't > > need to reconnect before transferring data. The connection here > > would be a bound form connected by a table link to a table in the BE. > > > > But, the connection limit for one BE is 5 FE's. So, will > > maintaining connections on more than 5 FE's reduce performance? > > Seems logical, but I was wondering if this is correct or is there more to it? > > > > Thanks! > > > > Dan Waters > -- > 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 -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Feb 2 09:12:02 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Fri, 2 Feb 2007 10:12:02 -0500 Subject: [AccessD] Break a float into it's parts In-Reply-To: <45C3510E.20364.681399B@stuart.lexacorp.com.pg> Message-ID: <018c01c746dc$84c10460$657aa8c0@m6805> Them's the ones. I could not find FIX to save my soul. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, February 02, 2007 9:56 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Break a float into it's parts Use Fix() for the integer part. (Int() will screw up on negative numbers) Use Abs(myNum - Fix(myNum)) to return the decimal part - assuming you always want the decimal part positive. On 2 Feb 2007 at 9:37, JWColby wrote: > How do I get the integer part and the decimal part of a floating point > number > > 23.456 > > how do I get the 23 > how do I get the .456 > > Using clng for example "rounds" the number up or down which isn't what I > want for the integer portion > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From hollisvj at pgdp.usec.com Fri Feb 2 09:15:29 2007 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Fri, 02 Feb 2007 09:15:29 -0600 Subject: [AccessD] Fields with Null Message-ID: <703BDA18A87DFA4CB265A86F42E4178D01E75FBC@c2k3exchange.pgdp.corp.usec.com> I get -1 **************** Mmm, doesn't do that for me. Are you sure the Comments field is null? Could it have blank spaces in it somehow? Add this to your query: TestNull: IsNull([Comments]) Do the "empty" Comments records return -1 (ie True)? -- Andy Lacey http://www.minstersystems.co.uk From stuart at lexacorp.com.pg Fri Feb 2 09:17:00 2007 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 03 Feb 2007 01:17:00 +1000 Subject: [AccessD] Connections and Performance In-Reply-To: <007d01c746db$db47dad0$0202a8c0@default> References: <005b01c746d2$2c59d630$0200a8c0@danwaters>, <007d01c746db$db47dad0$0202a8c0@default> Message-ID: <45C355EC.4998.6943F1D@stuart.lexacorp.com.pg> On 2 Feb 2007 at 10:07, Michael R Mattys wrote: > Heh :) It took me a few minutes, but I found this 'explanation' > http://www.crystaltech.com/Newsletters/news2006-08tech.aspx ... > However, Access is not optimized for use with a large number of > concurrent connections and does not scale for large databases. As more > users connect to an Access database, the performance starts to degrade > rapidly. Even moderately-trafficked websites can easily have 5 or more > users at one time which can cause Access to lock the number of connections. Alternatively: http://www.2020datashed.com/help/Topics/DataProviders.html The database cannot handle more than 255 concurrent connections. This topic is very complex and many programmers will argue that this number is misleading. Under the right conditions, if lock-type is managed carefully and each of the concurrent users are connected to different resources/tables in the database, and the users' connectivity is properly managed via OLE, then 255 distinct users can be connected simultaneously to the MS Access database. (As discussed in MS Knowledge Base article: 176670.) However the number of available concurrent connections drops significantly when multiple tables are in use by a single connection and if the data is not sufficiently locked while communicating with the data. This number of course does not represent "people"...it represents "users" which is often a different concept altogether. In a web-based application each connection to the database can be opened, queried, and closed within a few milliseconds, the number of "people" which can browse the web site simultaneously is not limited to 255. In conclusion: this particular limitation is a concern but shouldn't worry you unless your web site consistently receives a significant amount of traffic. Perhaps more than a few thousand visitors per day. Sean Nicholson of www.informit.com (Article) has this to say: "Microsoft lists 255 as the maximum number of concurrent users to an Access database. This means that only 255 users can actively interact with the database at the same time. This might be theoretically true in Microsoft's labs under the ideal circumstances, but the reality of working with an Access database is that performance falls off sharply when more than 25 or 30 concurrent requests are made. This means that although Access remains suitable for small Web applications, those that experience growth where they are experiencing more than 25 concurrent connections should consider upgrading to a more robust database." -- Stuart From hollisvj at pgdp.usec.com Fri Feb 2 09:18:10 2007 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Fri, 02 Feb 2007 09:18:10 -0600 Subject: [AccessD] Fields with Null Message-ID: <703BDA18A87DFA4CB265A86F42E4178D01E75FBD@c2k3exchange.pgdp.corp.usec.com> TaaDaaaa that did it. Thanks guys. Virginia ******************* Hi Virginia Oops, missed a paranthesis or two: Desc: ("COMMENTS: "+[Comments] + (Chr(13) & Chr(10))) & ("REMARKS: "+[Remarks] + (Chr(13) & Chr(10))) & ("INV COMMENTS: "+ [InvComments]) From BarbaraRyan at cox.net Fri Feb 2 09:19:26 2007 From: BarbaraRyan at cox.net (Barbara Ryan) Date: Fri, 2 Feb 2007 10:19:26 -0500 Subject: [AccessD] Database size References: <018a01c746db$f8bd34c0$657aa8c0@m6805> Message-ID: <009b01c746dd$86a58660$0a00a8c0@PCRURI35> What's their number? :-) ----- Original Message ----- From: "JWColby" To: "'Access Developers discussion and problem solving'" Sent: Friday, February 02, 2007 10:08 AM Subject: Re: [AccessD] Database size > Call Ghostbusters... > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Barbara Ryan > Sent: Friday, February 02, 2007 9:59 AM > To: Access List > Subject: [AccessD] Database size > > I just deleted many objects (probably 75 forms, queries, reports) from an > Access 2002 database (using Access 2003). I then compiled and compacted. > However, the database actually increased in size by 4MG!!! (from 26 to > 30MG). > > What happened? :-( > > Thanks, > Barb Ryan > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From stuart at lexacorp.com.pg Fri Feb 2 09:23:25 2007 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 03 Feb 2007 01:23:25 +1000 Subject: [AccessD] Database size In-Reply-To: <009b01c746dd$86a58660$0a00a8c0@PCRURI35> References: <018a01c746db$f8bd34c0$657aa8c0@m6805>, <009b01c746dd$86a58660$0a00a8c0@PCRURI35> Message-ID: <45C3576D.19415.69A1BE8@stuart.lexacorp.com.pg> 44678-2878377 :-) On 2 Feb 2007 at 10:19, Barbara Ryan wrote: > What's their number? :-) > > ----- Original Message ----- > From: "JWColby" > To: "'Access Developers discussion and problem solving'" > > Sent: Friday, February 02, 2007 10:08 AM > Subject: Re: [AccessD] Database size > > > > Call Ghostbusters... > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Barbara Ryan > > Sent: Friday, February 02, 2007 9:59 AM To: Access List Subject: [AccessD] > > Database size > > > > I just deleted many objects (probably 75 forms, queries, reports) from an > > Access 2002 database (using Access 2003). I then compiled and compacted. > > However, the database actually increased in size by 4MG!!! (from 26 to > > 30MG). > > > > What happened? :-( > > > > Thanks, > > Barb Ryan > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- Stuart From Gustav at cactus.dk Fri Feb 2 09:26:17 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 02 Feb 2007 16:26:17 +0100 Subject: [AccessD] Break a float into it's parts Message-ID: Hi John Stuart is right, you should have negative numbers in mind as well. However, what is more important is, that you cannot subtract a Double from an Integer reliably, indeed not to retrieve the digits. Thus, CDec must be used: dblNum = 23.01456 lngInt = Fix(dblNum) dblDec = CDec(dblNum) - lngInt Wrap in Abs() if you wish to strip signs. /gustav >>> Gustav at cactus.dk 02-02-2007 15:57:17 >>> Hi John Use Int() as here: ' Retrieve date (integer) part. dblDate = Int(datTime) ' Retrieve time (decimal) part. dblTime = datTime - dblDate ' Assemble date and time part. datTime = CVDate(dblDate + dblTime) /gustav >>> jwcolby at colbyconsulting.com 02-02-2007 15:37:05 >>> How do I get the integer part and the decimal part of a floating point number 23.456 how do I get the 23 how do I get the .456 Using clng for example "rounds" the number up or down which isn't what I want for the integer portion John W. Colby Colby Consulting www.ColbyConsulting.com From jwcolby at colbyconsulting.com Fri Feb 2 09:28:48 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Fri, 2 Feb 2007 10:28:48 -0500 Subject: [AccessD] Connections and Performance In-Reply-To: <45C355EC.4998.6943F1D@stuart.lexacorp.com.pg> Message-ID: <018d01c746de$d7e0dab0$657aa8c0@m6805> >This means that although Access remains suitable for small Web applications, those that experience growth where they are experiencing more than 25 concurrent connections should consider upgrading to a more robust database." And what lab does he use for his perspective? I tried to go read the article but just got the main page and no further. It would be useful to see real numbers with understandable (to use programmers) test methods. I have never seen any such thing, nor do I have the time right now to build such a test system. I might have to though since my applications are extremely complex and this might be something to watch. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, February 02, 2007 10:17 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance On 2 Feb 2007 at 10:07, Michael R Mattys wrote: > Heh :) It took me a few minutes, but I found this 'explanation' > http://www.crystaltech.com/Newsletters/news2006-08tech.aspx ... > However, Access is not optimized for use with a large number of > concurrent connections and does not scale for large databases. As more > users connect to an Access database, the performance starts to degrade > rapidly. Even moderately-trafficked websites can easily have 5 or more > users at one time which can cause Access to lock the number of connections. Alternatively: http://www.2020datashed.com/help/Topics/DataProviders.html The database cannot handle more than 255 concurrent connections. This topic is very complex and many programmers will argue that this number is misleading. Under the right conditions, if lock-type is managed carefully and each of the concurrent users are connected to different resources/tables in the database, and the users' connectivity is properly managed via OLE, then 255 distinct users can be connected simultaneously to the MS Access database. (As discussed in MS Knowledge Base article: 176670.) However the number of available concurrent connections drops significantly when multiple tables are in use by a single connection and if the data is not sufficiently locked while communicating with the data. This number of course does not represent "people"...it represents "users" which is often a different concept altogether. In a web-based application each connection to the database can be opened, queried, and closed within a few milliseconds, the number of "people" which can browse the web site simultaneously is not limited to 255. In conclusion: this particular limitation is a concern but shouldn't worry you unless your web site consistently receives a significant amount of traffic. Perhaps more than a few thousand visitors per day. Sean Nicholson of www.informit.com (Article) has this to say: "Microsoft lists 255 as the maximum number of concurrent users to an Access database. This means that only 255 users can actively interact with the database at the same time. This might be theoretically true in Microsoft's labs under the ideal circumstances, but the reality of working with an Access database is that performance falls off sharply when more than 25 or 30 concurrent requests are made. This means that although Access remains suitable for small Web applications, those that experience growth where they are experiencing more than 25 concurrent connections should consider upgrading to a more robust database." -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Fri Feb 2 09:26:27 2007 From: DWUTKA at marlow.com (Drew Wutka) Date: Fri, 2 Feb 2007 09:26:27 -0600 Subject: [AccessD] Connections and Performance Message-ID: <17724746D360394AA3BFE5B8D40A9C1B01A03536@marlow_main2.marlow.ii-vi.net> Where are you getting these numbers. Access can have up to 255 connections. Drew -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Friday, February 02, 2007 8:45 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance Access has the potential for 8 simultaneous connections, but 3 of them are reserved for the system's use. That leaves five for users. Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Friday, February 02, 2007 8:02 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance >But, the connection limit for one BE is 5 FE's. What does this mean? I have never heard of any such thing. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 02, 2007 8:58 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Connections and Performance I've read several times that maintaining a connection between a FE and a BE will increase the performance of the FE because it doesn't need to reconnect before transferring data. The connection here would be a bound form connected by a table link to a table in the BE. But, the connection limit for one BE is 5 FE's. So, will maintaining connections on more than 5 FE's reduce performance? Seems logical, but I was wondering if this is correct or is there more to it? Thanks! Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Fri Feb 2 09:38:50 2007 From: john at winhaven.net (John Bartow) Date: Fri, 2 Feb 2007 09:38:50 -0600 Subject: [AccessD] Database size In-Reply-To: <007301c746da$af607ea0$0a00a8c0@PCRURI35> References: <007301c746da$af607ea0$0a00a8c0@PCRURI35> Message-ID: <01ad01c746e0$3cc2da90$39360c0a@AceInTheHole> Hi Barb, Try the /decompile switch Then close it - open it and compact Also - I'm not sure if 2002 DB could not have Unicode or not but 2003 DB will so that could have been the culprit too. Unicode can essentially double the size of the db. Anyone else know for sure whether 2002 forced Unicode? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Barbara Ryan Sent: Friday, February 02, 2007 8:59 AM To: Access List Subject: [AccessD] Database size I just deleted many objects (probably 75 forms, queries, reports) from an Access 2002 database (using Access 2003). I then compiled and compacted. However, the database actually increased in size by 4MG!!! (from 26 to 30MG). What happened? :-( Thanks, Barb Ryan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.17.12/653 - Release Date: 1/26/2007 11:11 AM -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.17.12/653 - Release Date: 1/26/2007 11:11 AM From DWUTKA at marlow.com Fri Feb 2 09:36:38 2007 From: DWUTKA at marlow.com (Drew Wutka) Date: Fri, 2 Feb 2007 09:36:38 -0600 Subject: [AccessD] Connections and Performance Message-ID: <17724746D360394AA3BFE5B8D40A9C1B01A03545@marlow_main2.marlow.ii-vi.net> Actually, a website using an Access backend can handle far more then a thousand users a day. You would need a HUGE upload capability to task an Access .mdb running behind a website. Both our website AND our Intranet are packed with .mdb driven things. In fact, our Intranet main page is completely built from a database. That is everyone's home page here, we have roughly 150 users. Our website gets several hundred unique visitors a day. Drew -----Original Message----- From: Stuart McLachlan [mailto:stuart at lexacorp.com.pg] Sent: Friday, February 02, 2007 9:17 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance On 2 Feb 2007 at 10:07, Michael R Mattys wrote: > Heh :) It took me a few minutes, but I found this 'explanation' > http://www.crystaltech.com/Newsletters/news2006-08tech.aspx ... > However, Access is not optimized for use with a large number of > concurrent connections and does not scale for large databases. As more > users connect to an Access database, the performance starts to degrade > rapidly. Even moderately-trafficked websites can easily have 5 or more > users at one time which can cause Access to lock the number of connections. Alternatively: http://www.2020datashed.com/help/Topics/DataProviders.html The database cannot handle more than 255 concurrent connections. This topic is very complex and many programmers will argue that this number is misleading. Under the right conditions, if lock-type is managed carefully and each of the concurrent users are connected to different resources/tables in the database, and the users' connectivity is properly managed via OLE, then 255 distinct users can be connected simultaneously to the MS Access database. (As discussed in MS Knowledge Base article: 176670.) However the number of available concurrent connections drops significantly when multiple tables are in use by a single connection and if the data is not sufficiently locked while communicating with the data. This number of course does not represent "people"...it represents "users" which is often a different concept altogether. In a web-based application each connection to the database can be opened, queried, and closed within a few milliseconds, the number of "people" which can browse the web site simultaneously is not limited to 255. In conclusion: this particular limitation is a concern but shouldn't worry you unless your web site consistently receives a significant amount of traffic. Perhaps more than a few thousand visitors per day. Sean Nicholson of www.informit.com (Article) has this to say: "Microsoft lists 255 as the maximum number of concurrent users to an Access database. This means that only 255 users can actively interact with the database at the same time. This might be theoretically true in Microsoft's labs under the ideal circumstances, but the reality of working with an Access database is that performance falls off sharply when more than 25 or 30 concurrent requests are made. This means that although Access remains suitable for small Web applications, those that experience growth where they are experiencing more than 25 concurrent connections should consider upgrading to a more robust database." -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BarbaraRyan at cox.net Fri Feb 2 09:42:16 2007 From: BarbaraRyan at cox.net (Barbara Ryan) Date: Fri, 2 Feb 2007 10:42:16 -0500 Subject: [AccessD] Database size References: <018a01c746db$f8bd34c0$657aa8c0@m6805>, <009b01c746dd$86a58660$0a00a8c0@PCRURI35> <45C3576D.19415.69A1BE8@stuart.lexacorp.com.pg> Message-ID: <00cd01c746e0$b72f0880$0a00a8c0@PCRURI35> Stuart... thanks for the number :-) Actually, I found the answer at http://support.microsoft.com/kb/810415 Barb ----- Original Message ----- From: "Stuart McLachlan" To: "Access Developers discussion and problem solving" Sent: Friday, February 02, 2007 10:23 AM Subject: Re: [AccessD] Database size > 44678-2878377 :-) > > On 2 Feb 2007 at 10:19, Barbara Ryan wrote: > >> What's their number? :-) >> >> ----- Original Message ----- >> From: "JWColby" >> To: "'Access Developers discussion and problem solving'" >> >> Sent: Friday, February 02, 2007 10:08 AM >> Subject: Re: [AccessD] Database size >> >> >> > Call Ghostbusters... >> > >> > John W. Colby >> > Colby Consulting >> > www.ColbyConsulting.com >> > >> > -----Original Message----- >> > From: accessd-bounces at databaseadvisors.com >> > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Barbara Ryan >> > Sent: Friday, February 02, 2007 9:59 AM To: Access List Subject: >> > [AccessD] >> > Database size >> > >> > I just deleted many objects (probably 75 forms, queries, reports) from >> > an >> > Access 2002 database (using Access 2003). I then compiled and >> > compacted. >> > However, the database actually increased in size by 4MG!!! (from 26 to >> > 30MG). >> > >> > What happened? :-( >> > >> > Thanks, >> > Barb Ryan >> > -- >> > AccessD mailing list >> > AccessD at databaseadvisors.com >> > http://databaseadvisors.com/mailman/listinfo/accessd >> > Website: http://www.databaseadvisors.com >> > >> > -- >> > AccessD mailing list >> > AccessD at databaseadvisors.com >> > http://databaseadvisors.com/mailman/listinfo/accessd >> > Website: http://www.databaseadvisors.com >> > >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > -- > Stuart > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Fri Feb 2 09:39:31 2007 From: DWUTKA at marlow.com (Drew Wutka) Date: Fri, 2 Feb 2007 09:39:31 -0600 Subject: [AccessD] Connections and Performance Message-ID: <17724746D360394AA3BFE5B8D40A9C1B01A03549@marlow_main2.marlow.ii-vi.net> As soon as I see an article saying Access is bad behind a webserver, I just roll my eyes. In essence, an .mdb placed physically on a webserver is going to crush a SQL server running on another machine, because the data is being read locally, in essentially the same way a SQL server is going to read it's own local data, so you completely drop the time it takes to send and receive the data across a NIC. (On top of no time loss for transaction logs, etc.) Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Friday, February 02, 2007 9:29 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance >This means that although Access remains suitable for small Web applications, those that experience growth where they are experiencing more than 25 concurrent connections should consider upgrading to a more robust database." And what lab does he use for his perspective? I tried to go read the article but just got the main page and no further. It would be useful to see real numbers with understandable (to use programmers) test methods. I have never seen any such thing, nor do I have the time right now to build such a test system. I might have to though since my applications are extremely complex and this might be something to watch. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, February 02, 2007 10:17 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance On 2 Feb 2007 at 10:07, Michael R Mattys wrote: > Heh :) It took me a few minutes, but I found this 'explanation' > http://www.crystaltech.com/Newsletters/news2006-08tech.aspx ... > However, Access is not optimized for use with a large number of > concurrent connections and does not scale for large databases. As more > users connect to an Access database, the performance starts to degrade > rapidly. Even moderately-trafficked websites can easily have 5 or more > users at one time which can cause Access to lock the number of connections. Alternatively: http://www.2020datashed.com/help/Topics/DataProviders.html The database cannot handle more than 255 concurrent connections. This topic is very complex and many programmers will argue that this number is misleading. Under the right conditions, if lock-type is managed carefully and each of the concurrent users are connected to different resources/tables in the database, and the users' connectivity is properly managed via OLE, then 255 distinct users can be connected simultaneously to the MS Access database. (As discussed in MS Knowledge Base article: 176670.) However the number of available concurrent connections drops significantly when multiple tables are in use by a single connection and if the data is not sufficiently locked while communicating with the data. This number of course does not represent "people"...it represents "users" which is often a different concept altogether. In a web-based application each connection to the database can be opened, queried, and closed within a few milliseconds, the number of "people" which can browse the web site simultaneously is not limited to 255. In conclusion: this particular limitation is a concern but shouldn't worry you unless your web site consistently receives a significant amount of traffic. Perhaps more than a few thousand visitors per day. Sean Nicholson of www.informit.com (Article) has this to say: "Microsoft lists 255 as the maximum number of concurrent users to an Access database. This means that only 255 users can actively interact with the database at the same time. This might be theoretically true in Microsoft's labs under the ideal circumstances, but the reality of working with an Access database is that performance falls off sharply when more than 25 or 30 concurrent requests are made. This means that although Access remains suitable for small Web applications, those that experience growth where they are experiencing more than 25 concurrent connections should consider upgrading to a more robust database." -- 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 cfoust at infostatsystems.com Fri Feb 2 10:19:32 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 2 Feb 2007 08:19:32 -0800 Subject: [AccessD] Connections and Performance In-Reply-To: <005b01c746d2$2c59d630$0200a8c0@danwaters> References: <005b01c746d2$2c59d630$0200a8c0@danwaters> Message-ID: I've certainly had more than 5 FEs connected to a single BE. The back end doesn't keep track of connections in Access. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 02, 2007 5:58 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Connections and Performance I've read several times that maintaining a connection between a FE and a BE will increase the performance of the FE because it doesn't need to reconnect before transferring data. The connection here would be a bound form connected by a table link to a table in the BE. But, the connection limit for one BE is 5 FE's. So, will maintaining connections on more than 5 FE's reduce performance? Seems logical, but I was wondering if this is correct or is there more to it? Thanks! Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri Feb 2 10:27:23 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 2 Feb 2007 08:27:23 -0800 Subject: [AccessD] Connections and Performance In-Reply-To: <17724746D360394AA3BFE5B8D40A9C1B01A03549@marlow_main2.marlow.ii-vi.net> References: <17724746D360394AA3BFE5B8D40A9C1B01A03549@marlow_main2.marlow.ii-vi.net> Message-ID: Interesting, Drew. Have you written an article on that? It sounds like useful knowledge. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, February 02, 2007 7:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance As soon as I see an article saying Access is bad behind a webserver, I just roll my eyes. In essence, an .mdb placed physically on a webserver is going to crush a SQL server running on another machine, because the data is being read locally, in essentially the same way a SQL server is going to read it's own local data, so you completely drop the time it takes to send and receive the data across a NIC. (On top of no time loss for transaction logs, etc.) Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Friday, February 02, 2007 9:29 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance >This means that although Access remains suitable for small Web applications, those that experience growth where they are experiencing more than 25 concurrent connections should consider upgrading to a more robust database." And what lab does he use for his perspective? I tried to go read the article but just got the main page and no further. It would be useful to see real numbers with understandable (to use programmers) test methods. I have never seen any such thing, nor do I have the time right now to build such a test system. I might have to though since my applications are extremely complex and this might be something to watch. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, February 02, 2007 10:17 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance On 2 Feb 2007 at 10:07, Michael R Mattys wrote: > Heh :) It took me a few minutes, but I found this 'explanation' > http://www.crystaltech.com/Newsletters/news2006-08tech.aspx ... > However, Access is not optimized for use with a large number of > concurrent connections and does not scale for large databases. As more > users connect to an Access database, the performance starts to degrade > rapidly. Even moderately-trafficked websites can easily have 5 or more > users at one time which can cause Access to lock the number of connections. Alternatively: http://www.2020datashed.com/help/Topics/DataProviders.html The database cannot handle more than 255 concurrent connections. This topic is very complex and many programmers will argue that this number is misleading. Under the right conditions, if lock-type is managed carefully and each of the concurrent users are connected to different resources/tables in the database, and the users' connectivity is properly managed via OLE, then 255 distinct users can be connected simultaneously to the MS Access database. (As discussed in MS Knowledge Base article: 176670.) However the number of available concurrent connections drops significantly when multiple tables are in use by a single connection and if the data is not sufficiently locked while communicating with the data. This number of course does not represent "people"...it represents "users" which is often a different concept altogether. In a web-based application each connection to the database can be opened, queried, and closed within a few milliseconds, the number of "people" which can browse the web site simultaneously is not limited to 255. In conclusion: this particular limitation is a concern but shouldn't worry you unless your web site consistently receives a significant amount of traffic. Perhaps more than a few thousand visitors per day. Sean Nicholson of www.informit.com (Article) has this to say: "Microsoft lists 255 as the maximum number of concurrent users to an Access database. This means that only 255 users can actively interact with the database at the same time. This might be theoretically true in Microsoft's labs under the ideal circumstances, but the reality of working with an Access database is that performance falls off sharply when more than 25 or 30 concurrent requests are made. This means that although Access remains suitable for small Web applications, those that experience growth where they are experiencing more than 25 concurrent connections should consider upgrading to a more robust database." -- 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Feb 2 10:31:06 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Fri, 2 Feb 2007 11:31:06 -0500 Subject: [AccessD] Connections and Performance In-Reply-To: Message-ID: <019d01c746e7$8a42c5d0$657aa8c0@m6805> No, but the lock file does (LDB). I have never really figured out how. If you open it in a text editor it is mostly empty. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, February 02, 2007 11:20 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance I've certainly had more than 5 FEs connected to a single BE. The back end doesn't keep track of connections in Access. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 02, 2007 5:58 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Connections and Performance I've read several times that maintaining a connection between a FE and a BE will increase the performance of the FE because it doesn't need to reconnect before transferring data. The connection here would be a bound form connected by a table link to a table in the BE. But, the connection limit for one BE is 5 FE's. So, will maintaining connections on more than 5 FE's reduce performance? Seems logical, but I was wondering if this is correct or is there more to it? Thanks! Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From askolits at ot.com Fri Feb 2 11:07:51 2007 From: askolits at ot.com (John Skolits) Date: Fri, 2 Feb 2007 12:07:51 -0500 Subject: [AccessD] Quickly - Getting FileSize and date. In-Reply-To: <019d01c746e7$8a42c5d0$657aa8c0@m6805> Message-ID: <008f01c746ec$afa65c10$660a0a0a@LaptopXP> What do I use to get a file's date time and size? Is it the FileSystemObject? John From jimdettman at verizon.net Fri Feb 2 11:15:30 2007 From: jimdettman at verizon.net (Jim Dettman) Date: Fri, 02 Feb 2007 12:15:30 -0500 Subject: [AccessD] Connections and Performance In-Reply-To: <018001c746d2$a90e4670$657aa8c0@m6805> Message-ID: <014501c746ed$be3a8c50$8abea8c0@XPS> John (and all), I think where some of the confusion might be coming in is when talking about a JET backend vs. a MSDE one, the latter of which was throttled to five users. More connections could be made, but it slowed down quite a bit. A JET based BE can of course support up to 255 connections and I've seen 200+ (reporting only app). For a typical read/write app, 30 to 40 is about the most you would want to go, but it is still capable of going right up to 255. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Friday, February 02, 2007 9:02 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance >But, the connection limit for one BE is 5 FE's. What does this mean? I have never heard of any such thing. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 02, 2007 8:58 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Connections and Performance I've read several times that maintaining a connection between a FE and a BE will increase the performance of the FE because it doesn't need to reconnect before transferring data. The connection here would be a bound form connected by a table link to a table in the BE. But, the connection limit for one BE is 5 FE's. So, will maintaining connections on more than 5 FE's reduce performance? Seems logical, but I was wondering if this is correct or is there more to it? Thanks! Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Fri Feb 2 11:24:34 2007 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Fri, 2 Feb 2007 12:24:34 -0500 Subject: [AccessD] Quickly - Getting FileSize and date. Message-ID: <34C8A2AB1EF3564CB0D64DB6AFFDD5C201200FB1@xlivmbx35.aig.com> You can get the file size in plain vanilla VBA: FileLen("Some Path to some file"), and the date is retrieved with FileDateTime("some path"). This is in Access XP (2002), and possibly in Access 2000. 97 has FileLen, but I don't recall if it also had FileDateTime. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Friday, February 02, 2007 12:08 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Quickly - Getting FileSize and date. What do I use to get a file's date time and size? Is it the FileSystemObject? John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at verizon.net Fri Feb 2 11:23:44 2007 From: jimdettman at verizon.net (Jim Dettman) Date: Fri, 02 Feb 2007 12:23:44 -0500 Subject: [AccessD] Database size In-Reply-To: <007301c746da$af607ea0$0a00a8c0@PCRURI35> Message-ID: <014601c746ee$e539a6f0$8abea8c0@XPS> Barb, Use /decompile. You've got some dead code in there. I'm not sure if that will clean it out or not though. Part of the explanation is that when using different versions, Access actually makes a copy of code, then converts the copy leaving the original intact. This happened most notably with A95. You could delete MSysModules without problem (MSysModules2 was the live version). The other part is that often the connection between objects and the VBA project breaks leaving orphaned code in the database and nothing gets cleaned up in the compact like it should. At worst, you may have to import everything into a fresh MDB container. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Barbara Ryan Sent: Friday, February 02, 2007 9:59 AM To: Access List Subject: [AccessD] Database size I just deleted many objects (probably 75 forms, queries, reports) from an Access 2002 database (using Access 2003). I then compiled and compacted. However, the database actually increased in size by 4MG!!! (from 26 to 30MG). What happened? :-( Thanks, Barb Ryan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jim.Hale at FleetPride.com Fri Feb 2 11:24:32 2007 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Fri, 2 Feb 2007 11:24:32 -0600 Subject: [AccessD] Let Excel object live? Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DE27D@corp-es01.fleetpride.com> How about if you put your code in a module and call it from a form. Jim Hale -----Original Message----- From: Sad Der [mailto:accessd666 at yahoo.com] Sent: Friday, February 02, 2007 4:36 AM To: Acces User Group Subject: [AccessD] Let Excel object live? Hi group, I've got a form that opens an Excel template and fills it with data. I've got the following line: Private objXL As cExcel this is a 'form level variabel'. When the user presses the 'export button' this line is called (on click event): Set objXL = New cExcel In the initiate of this Class I call a function that checks if there is an Excel instance: If objExcel Is Nothing Then Set ExcelObject = CreateObject("Excel.Application") Else 'do nothing, object already alive End If So at this point I have a form. In the properties of the form there is an objXL. When I close the form: DoCmd.Close acForm, Me.Name, acSaveNo The Excel object (objXL) is destroyed and thus the terminate event is triggered. This event closes/kills the object and Excel itself is closed. How can I keep this object alive and still close the form? Maybe not closing the form but hiding it? But how do I hide the form and when opening the form first check if it's open? Regards, Sander ____________________________________________________________________________ ________ Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.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 DWUTKA at marlow.com Fri Feb 2 11:24:17 2007 From: DWUTKA at marlow.com (Drew Wutka) Date: Fri, 2 Feb 2007 11:24:17 -0600 Subject: [AccessD] Connections and Performance Message-ID: <17724746D360394AA3BFE5B8D40A9C1B01A035BB@marlow_main2.marlow.ii-vi.net> Never bothered to test it, to have empirical data. It is just obvious. For example, our new website (which isn't up yet), has a navigation process that puts a nav bar at the top of every page. On our current site, that bar is built strictly from a hack into FrontPages navigation structure files. (We use Frontpage to edit the site...well, some people do, I do most stuff in just plain ol HTML.) It's essentially a csv file. The new site has a mix, it gets most stuff from the FrontPage source, but then it also adds in all the products. There are three product pages, a page that shows all the product types, a page that shows all the products of that type, and a page that shows info on just a single product. So, to FrontPage, the Navigation is three pages, but to the user, there are lots of pages based on the content that is stored within the database. So the new site now builds the navigation bars from a mix of the FP navigation, and the product database (which handles everything from the products on the web, the glossary, shopping cart, etc.). It is doing this for every page you load, and it loads as fast as your browser can handle it. The product database is local to the webserver (though not visible on the web itself), so everything that occurs to the db is being done locally by the webserver itself. If you had a SQL Server running on Machine X, and then had an identical machine 'Y' (same processor, hard drives, memory, etc). Which would be faster? Running a query on Machine Y, that is getting data from a SQL Server on Machine X, or running a query (against identical data tables) on Machine Y that is getting data from an Access MDB on Machine Y? There is nothing special about a server side DB that makes it more powerful then Jet at doing the same thing. The only true difference is that with a server side system you have a dedicated system retrieving data. But the way that machine is retrieving data is essentially the same way Jet does. It has to read it's indexes, find the data, put it together, and send it out. Jet does the same thing (though maybe not exactly the same way). Over a network, Jet is pulling chunks of a file across the network, which does take longer then letting a server side system just send the resulting data back. Since most mid to large apps in Access are used in a network environment, we, as Access developers, get hammered by this shortcoming of a end user db system. Putting the .mdb on a webserver, with a web interface, however, is functionally identical to putting the data into a server side db, with the exception of roleback/transaction capabilities. Drew -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Friday, February 02, 2007 10:27 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance Interesting, Drew. Have you written an article on that? It sounds like useful knowledge. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, February 02, 2007 7:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance As soon as I see an article saying Access is bad behind a webserver, I just roll my eyes. In essence, an .mdb placed physically on a webserver is going to crush a SQL server running on another machine, because the data is being read locally, in essentially the same way a SQL server is going to read it's own local data, so you completely drop the time it takes to send and receive the data across a NIC. (On top of no time loss for transaction logs, etc.) Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Friday, February 02, 2007 9:29 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance >This means that although Access remains suitable for small Web applications, those that experience growth where they are experiencing more than 25 concurrent connections should consider upgrading to a more robust database." And what lab does he use for his perspective? I tried to go read the article but just got the main page and no further. It would be useful to see real numbers with understandable (to use programmers) test methods. I have never seen any such thing, nor do I have the time right now to build such a test system. I might have to though since my applications are extremely complex and this might be something to watch. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, February 02, 2007 10:17 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance On 2 Feb 2007 at 10:07, Michael R Mattys wrote: > Heh :) It took me a few minutes, but I found this 'explanation' > http://www.crystaltech.com/Newsletters/news2006-08tech.aspx ... > However, Access is not optimized for use with a large number of > concurrent connections and does not scale for large databases. As more > users connect to an Access database, the performance starts to degrade > rapidly. Even moderately-trafficked websites can easily have 5 or more > users at one time which can cause Access to lock the number of connections. Alternatively: http://www.2020datashed.com/help/Topics/DataProviders.html The database cannot handle more than 255 concurrent connections. This topic is very complex and many programmers will argue that this number is misleading. Under the right conditions, if lock-type is managed carefully and each of the concurrent users are connected to different resources/tables in the database, and the users' connectivity is properly managed via OLE, then 255 distinct users can be connected simultaneously to the MS Access database. (As discussed in MS Knowledge Base article: 176670.) However the number of available concurrent connections drops significantly when multiple tables are in use by a single connection and if the data is not sufficiently locked while communicating with the data. This number of course does not represent "people"...it represents "users" which is often a different concept altogether. In a web-based application each connection to the database can be opened, queried, and closed within a few milliseconds, the number of "people" which can browse the web site simultaneously is not limited to 255. In conclusion: this particular limitation is a concern but shouldn't worry you unless your web site consistently receives a significant amount of traffic. Perhaps more than a few thousand visitors per day. Sean Nicholson of www.informit.com (Article) has this to say: "Microsoft lists 255 as the maximum number of concurrent users to an Access database. This means that only 255 users can actively interact with the database at the same time. This might be theoretically true in Microsoft's labs under the ideal circumstances, but the reality of working with an Access database is that performance falls off sharply when more than 25 or 30 concurrent requests are made. This means that although Access remains suitable for small Web applications, those that experience growth where they are experiencing more than 25 concurrent connections should consider upgrading to a more robust database." -- 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Fri Feb 2 11:32:20 2007 From: DWUTKA at marlow.com (Drew Wutka) Date: Fri, 2 Feb 2007 11:32:20 -0600 Subject: [AccessD] Connections and Performance Message-ID: <17724746D360394AA3BFE5B8D40A9C1B01A035C7@marlow_main2.marlow.ii-vi.net> The Jet LDB white paper explains it. Essentially the .ldb is going to be 64 bytes per user. Each chunk is 32 bytes for the machine name, 32 bytes for the Access User name. Then there is a chunk of bytes in the .mdb itself, 2 or 4(not sure about Jet 4.0, I haven't seen a white paper on it) byte chunks, and there are 255 of them. (The max number of users). The first chunk (in the .mdb) relates to the first 64 byte chunk in the .ldb. The smaller chunks in the .mdb are changed based on the users activity. Actual record locks on the database are stored in the .ldb too, but in a very odd way. When I first read about it, I thought it was the oddest thing. Basically, the max size of an .ldb is going to be 16k. (255*64). However, there is a 'virtual' size of the .ldb. If Jet needs to lock something in the 25th megabyte of an .mdb, it creates a lock on that position in the 'virtual .ldb', even though the .ldb isn't that big, file read/write code can lock bits outside a file's actual space. This prevents any read/write locks on the actual .mdb. Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Friday, February 02, 2007 10:31 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance No, but the lock file does (LDB). I have never really figured out how. If you open it in a text editor it is mostly empty. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, February 02, 2007 11:20 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance I've certainly had more than 5 FEs connected to a single BE. The back end doesn't keep track of connections in Access. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 02, 2007 5:58 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Connections and Performance I've read several times that maintaining a connection between a FE and a BE will increase the performance of the FE because it doesn't need to reconnect before transferring data. The connection here would be a bound form connected by a table link to a table in the BE. But, the connection limit for one BE is 5 FE's. So, will maintaining connections on more than 5 FE's reduce performance? Seems logical, but I was wondering if this is correct or is there more to it? Thanks! Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Fri Feb 2 11:47:08 2007 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Fri, 2 Feb 2007 11:47:08 -0600 Subject: [AccessD] Let Excel object live? Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DE27E@corp-es01.fleetpride.com> Even making it visible often won't kill it (you click close but it remains in the task manager). You have to be careful about destroying ALL object variables or Excel will probably stick around. Jim Hale -----Original Message----- From: sgoodhall at comcast.net [mailto:sgoodhall at comcast.net] Sent: Friday, February 02, 2007 7:39 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Let Excel object live? As much as I hate globals, I think this might be a valid use. You could make the Excel Application a global in another module, and it would stay open until you destroy it. You will need to ensure that it gets destroyed before the application terminates, or you may end up with a zombie task. If your user kills the application with the Windows control box, you may not be able to intercept it. Unless you make it visible, it will be hard to get rid of. Regards, Steve Goodhall -------------- Original message ---------------------- From: Sad Der > Hi group, > > I've got a form that opens an Excel template and fills > it with data. > > I've got the following line: > Private objXL As cExcel > > this is a 'form level variabel'. > When the user presses the 'export button' this line is > called (on click event): > Set objXL = New cExcel > In the initiate of this Class I call a function that > checks if there is an Excel instance: > If objExcel Is Nothing Then > Set ExcelObject = > CreateObject("Excel.Application") > Else > 'do nothing, object already alive > End If > > So at this point I have a form. In the properties of > the form there is an objXL. > When I close the form: > DoCmd.Close acForm, Me.Name, acSaveNo > > The Excel object (objXL) is destroyed and thus the > terminate event is triggered. This event closes/kills > the object and Excel itself is closed. > How can I keep this object alive and still close the > form? > > Maybe not closing the form but hiding it? But how do I > hide the form and when opening the form first check if > it's open? > Regards, > > Sander > > > > ____________________________________________________________________________ ____ > ____ > Do you Yahoo!? > Everyone is raving about the all-new Yahoo! Mail beta. > http://new.mail.yahoo.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 jwcolby at colbyconsulting.com Fri Feb 2 11:56:07 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Fri, 2 Feb 2007 12:56:07 -0500 Subject: [AccessD] Connections and Performance In-Reply-To: <17724746D360394AA3BFE5B8D40A9C1B01A035C7@marlow_main2.marlow.ii-vi.net> Message-ID: <01b001c746f3$6bbca1b0$657aa8c0@m6805> >Actual record locks on the database are stored in the .ldb too, but in a very odd way. When I first read about it, I thought it was the oddest thing. Basically, the max size of an .ldb is going to be 16k. (255*64). However, there is a 'virtual' size of the .ldb. If Jet needs to lock something in the 25th megabyte of an .mdb, it creates a lock on that position in the 'virtual .ldb', even though the .ldb isn't that big, file read/write code can lock bits outside a file's actual space. This prevents any read/write locks on the actual .mdb. Well you lost me down around the "virtual" part. If the "virtual" part is in the LDB file then it has to be inside of the physical LDB file. The OS will not allow writes to physical disk space that is not assigned to that file. If it did allow that then you would get the possibility of overwriting data in areas of the disk that the file doesn't own. The FAT system (and the others as well) specifically assigns sectors to files using a chaining mechanism. While it is possible to work around that fat system using low level calls to the bios, I doubt seriously that Access is doing that. Are you saying that it grows and shrinks the LDB file, placing data out past the first 16 KB, and that area holds the lock info?? I always just assumed that the lock file said "this user is ACTIVELY accessing the MDB RIGHT NOW", and the actual locking info was stored inside of the MDB somewhere. It isn't apparent why an LDB file is even required. The info stored in the LDB could just as easily be stored inside the MDB as well. The only reason I can see is to allow external applications to see who is in the database without having to poke around in the MDB file itself. Your explanation was uhhh... Virtual I suppose. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, February 02, 2007 12:32 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance The Jet LDB white paper explains it. Essentially the .ldb is going to be 64 bytes per user. Each chunk is 32 bytes for the machine name, 32 bytes for the Access User name. Then there is a chunk of bytes in the .mdb itself, 2 or 4(not sure about Jet 4.0, I haven't seen a white paper on it) byte chunks, and there are 255 of them. (The max number of users). The first chunk (in the .mdb) relates to the first 64 byte chunk in the .ldb. The smaller chunks in the .mdb are changed based on the users activity. Actual record locks on the database are stored in the .ldb too, but in a very odd way. When I first read about it, I thought it was the oddest thing. Basically, the max size of an .ldb is going to be 16k. (255*64). However, there is a 'virtual' size of the .ldb. If Jet needs to lock something in the 25th megabyte of an .mdb, it creates a lock on that position in the 'virtual .ldb', even though the .ldb isn't that big, file read/write code can lock bits outside a file's actual space. This prevents any read/write locks on the actual .mdb. Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Friday, February 02, 2007 10:31 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance No, but the lock file does (LDB). I have never really figured out how. If you open it in a text editor it is mostly empty. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, February 02, 2007 11:20 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance I've certainly had more than 5 FEs connected to a single BE. The back end doesn't keep track of connections in Access. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 02, 2007 5:58 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Connections and Performance I've read several times that maintaining a connection between a FE and a BE will increase the performance of the FE because it doesn't need to reconnect before transferring data. The connection here would be a bound form connected by a table link to a table in the BE. But, the connection limit for one BE is 5 FE's. So, will maintaining connections on more than 5 FE's reduce performance? Seems logical, but I was wondering if this is correct or is there more to it? Thanks! Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Fri Feb 2 12:07:54 2007 From: DWUTKA at marlow.com (Drew Wutka) Date: Fri, 2 Feb 2007 12:07:54 -0600 Subject: [AccessD] Connections and Performance Message-ID: <17724746D360394AA3BFE5B8D40A9C1B01A035DE@marlow_main2.marlow.ii-vi.net> A portion of the Jet whitepaper (for 3.51 and earlier, which they would kick one out for 4.0. A lot is the same, but there are some changes (like the inability to see who actually is suspect in the db.)). " Extended byte range locks are locks placed outside the physical boundaries of a file - no data is ever physically locked. An example of this is placing a lock at 10 million hex for a file that has a physical size of only 64 bytes. In other words, a lock is virtually placed at a location that does not exist on the hard disk. This type of locking is used because extended byte range locks are not limited by the size of the physical file, allowing for locking algorithms that would not otherwise be possible. Also, placing locks inside a data file would prevent other users from reading that data. In the early dBASE days, a user could place a lock on a record located in the data file that prevented everyone from reading that data - when printing a report, for example." So, even though the .ldb will never get larger then 16k, it is having locks placed on bytes that don't exist on it. Lots of locks. So when jet goes to read block X from an .mdb, it can read it whether there is a write lock on it or not. Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Friday, February 02, 2007 11:56 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance >Actual record locks on the database are stored in the .ldb too, but in a very odd way. When I first read about it, I thought it was the oddest thing. Basically, the max size of an .ldb is going to be 16k. (255*64). However, there is a 'virtual' size of the .ldb. If Jet needs to lock something in the 25th megabyte of an .mdb, it creates a lock on that position in the 'virtual .ldb', even though the .ldb isn't that big, file read/write code can lock bits outside a file's actual space. This prevents any read/write locks on the actual .mdb. Well you lost me down around the "virtual" part. If the "virtual" part is in the LDB file then it has to be inside of the physical LDB file. The OS will not allow writes to physical disk space that is not assigned to that file. If it did allow that then you would get the possibility of overwriting data in areas of the disk that the file doesn't own. The FAT system (and the others as well) specifically assigns sectors to files using a chaining mechanism. While it is possible to work around that fat system using low level calls to the bios, I doubt seriously that Access is doing that. Are you saying that it grows and shrinks the LDB file, placing data out past the first 16 KB, and that area holds the lock info?? I always just assumed that the lock file said "this user is ACTIVELY accessing the MDB RIGHT NOW", and the actual locking info was stored inside of the MDB somewhere. It isn't apparent why an LDB file is even required. The info stored in the LDB could just as easily be stored inside the MDB as well. The only reason I can see is to allow external applications to see who is in the database without having to poke around in the MDB file itself. Your explanation was uhhh... Virtual I suppose. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, February 02, 2007 12:32 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance The Jet LDB white paper explains it. Essentially the .ldb is going to be 64 bytes per user. Each chunk is 32 bytes for the machine name, 32 bytes for the Access User name. Then there is a chunk of bytes in the .mdb itself, 2 or 4(not sure about Jet 4.0, I haven't seen a white paper on it) byte chunks, and there are 255 of them. (The max number of users). The first chunk (in the .mdb) relates to the first 64 byte chunk in the .ldb. The smaller chunks in the .mdb are changed based on the users activity. Actual record locks on the database are stored in the .ldb too, but in a very odd way. When I first read about it, I thought it was the oddest thing. Basically, the max size of an .ldb is going to be 16k. (255*64). However, there is a 'virtual' size of the .ldb. If Jet needs to lock something in the 25th megabyte of an .mdb, it creates a lock on that position in the 'virtual .ldb', even though the .ldb isn't that big, file read/write code can lock bits outside a file's actual space. This prevents any read/write locks on the actual .mdb. Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Friday, February 02, 2007 10:31 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance No, but the lock file does (LDB). I have never really figured out how. If you open it in a text editor it is mostly empty. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, February 02, 2007 11:20 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance I've certainly had more than 5 FEs connected to a single BE. The back end doesn't keep track of connections in Access. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 02, 2007 5:58 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Connections and Performance I've read several times that maintaining a connection between a FE and a BE will increase the performance of the FE because it doesn't need to reconnect before transferring data. The connection here would be a bound form connected by a table link to a table in the BE. But, the connection limit for one BE is 5 FE's. So, will maintaining connections on more than 5 FE's reduce performance? Seems logical, but I was wondering if this is correct or is there more to it? Thanks! Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 verizon.net Fri Feb 2 12:11:45 2007 From: jimdettman at verizon.net (Jim Dettman) Date: Fri, 02 Feb 2007 13:11:45 -0500 Subject: [AccessD] Connections and Performance In-Reply-To: <01b001c746f3$6bbca1b0$657aa8c0@m6805> Message-ID: <016101c746f5$9a01a780$8abea8c0@XPS> John, Locks are never written to disk. They only exist in the OS/NOS where the file resides. <> Basically, the .LDB file is a place holder for the placing of locks. Yes, it does physically store the user name and machine name and it will never grow physically bigger then 16K, but that info could have been easily placed in the MDB file in the database header page. It's real purpose is to simply exist allowing JET to place locks on it. The locks placed are place on byte ranges that extended beyond the physical limits of the file. Ie. The file will never be bigger then 16K, but nothing stops me from taking a lock out on byte 1,000,000,000. By placing locks on the LDB file and not the MDB, there is never any interference from another process when a process wants to read/write to the database file. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Friday, February 02, 2007 12:56 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance >Actual record locks on the database are stored in the .ldb too, but in a very odd way. When I first read about it, I thought it was the oddest thing. Basically, the max size of an .ldb is going to be 16k. (255*64). However, there is a 'virtual' size of the .ldb. If Jet needs to lock something in the 25th megabyte of an .mdb, it creates a lock on that position in the 'virtual .ldb', even though the .ldb isn't that big, file read/write code can lock bits outside a file's actual space. This prevents any read/write locks on the actual .mdb. Well you lost me down around the "virtual" part. If the "virtual" part is in the LDB file then it has to be inside of the physical LDB file. The OS will not allow writes to physical disk space that is not assigned to that file. If it did allow that then you would get the possibility of overwriting data in areas of the disk that the file doesn't own. The FAT system (and the others as well) specifically assigns sectors to files using a chaining mechanism. While it is possible to work around that fat system using low level calls to the bios, I doubt seriously that Access is doing that. Are you saying that it grows and shrinks the LDB file, placing data out past the first 16 KB, and that area holds the lock info?? I always just assumed that the lock file said "this user is ACTIVELY accessing the MDB RIGHT NOW", and the actual locking info was stored inside of the MDB somewhere. It isn't apparent why an LDB file is even required. The info stored in the LDB could just as easily be stored inside the MDB as well. The only reason I can see is to allow external applications to see who is in the database without having to poke around in the MDB file itself. Your explanation was uhhh... Virtual I suppose. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, February 02, 2007 12:32 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance The Jet LDB white paper explains it. Essentially the .ldb is going to be 64 bytes per user. Each chunk is 32 bytes for the machine name, 32 bytes for the Access User name. Then there is a chunk of bytes in the .mdb itself, 2 or 4(not sure about Jet 4.0, I haven't seen a white paper on it) byte chunks, and there are 255 of them. (The max number of users). The first chunk (in the .mdb) relates to the first 64 byte chunk in the .ldb. The smaller chunks in the .mdb are changed based on the users activity. Actual record locks on the database are stored in the .ldb too, but in a very odd way. When I first read about it, I thought it was the oddest thing. Basically, the max size of an .ldb is going to be 16k. (255*64). However, there is a 'virtual' size of the .ldb. If Jet needs to lock something in the 25th megabyte of an .mdb, it creates a lock on that position in the 'virtual .ldb', even though the .ldb isn't that big, file read/write code can lock bits outside a file's actual space. This prevents any read/write locks on the actual .mdb. Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Friday, February 02, 2007 10:31 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance No, but the lock file does (LDB). I have never really figured out how. If you open it in a text editor it is mostly empty. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, February 02, 2007 11:20 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance I've certainly had more than 5 FEs connected to a single BE. The back end doesn't keep track of connections in Access. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 02, 2007 5:58 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Connections and Performance I've read several times that maintaining a connection between a FE and a BE will increase the performance of the FE because it doesn't need to reconnect before transferring data. The connection here would be a bound form connected by a table link to a table in the BE. But, the connection limit for one BE is 5 FE's. So, will maintaining connections on more than 5 FE's reduce performance? Seems logical, but I was wondering if this is correct or is there more to it? Thanks! Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From prodevmg at yahoo.com Fri Feb 2 12:14:21 2007 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Fri, 2 Feb 2007 10:14:21 -0800 (PST) Subject: [AccessD] Access=>Termial Server=>SQL Server Message-ID: <857533.98557.qm@web33105.mail.mud.yahoo.com> I have an access app that runs on a terminal server and uses SQL Server as a back end. It runs slow alot. I was wondering if there were any tips on performance? May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us ____________________________________________________________________________________ Never miss an email again! Yahoo! Toolbar alerts you the instant new Mail arrives. http://tools.search.yahoo.com/toolbar/features/mail/ From martyconnelly at shaw.ca Fri Feb 2 12:03:13 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 02 Feb 2007 10:03:13 -0800 Subject: [AccessD] Connections and Performance In-Reply-To: References: <005b01c746d2$2c59d630$0200a8c0@danwaters> Message-ID: <45C37CE1.8080008@shaw.ca> I think someone is mixing up SQL 2000 MSDE backends and Access. This MSDE 2000 speed governor restriction to 5 users before degradation is removed in SQL Express. See below, you may have to mouseover and click to see hidden yellow lettering http://betav.com/files/content/whitepapers/msde_files/msde.htm The SQL Server team came up with new technology to limit the performance of their ?free? versions of SQL Server so developers would not be tempted to use MSDE in place of the unbridled versions. They named this technology ?Target Benchmark Users? or TBU for short. TBU keeps all MSDE versions in check. Of course, the Standard and Enterprise editions do not activate TBU governing. Unlike the SQL Server 6.5 thread-based governing used in the past, TBU is not prone to the blocking or other operational artifacts that troubled earlier versions. TBU is ?delay-based?. That is, if the number of concurrent threads is greater than the TBU setting, a variable delay is induced to cap performance. The length of time (in milliseconds) to delay the current operation is calculated based on the number of concurrent worker threads. As more operations (threads) are started, more delay occurs. MSDE?s TBU limit is 8. That means that after 8 (plus 6 to account for system threads) active threads are started, a delay is added to each operation?and this delay gets increasingly longer for each additional thread that?s started. TBU imposes a deterministic, gradual throttle on performance. This provides a more natural, less intrusive way to limit performance without unwanted side effects. TBU does not limit the number of user connections. That is, (almost) any number of connections can be established to MSDE?limited only by your license and system (RAM) resources. However, each of these connections can execute an operation and enable threads?but only when they are ?active?. In other words, if a connection is dormant (the operator is at lunch or simply not doing anything), it?s not running a thread on the server and TBU governing is not impacted. You can also execute multiple operations from a single ?user?. For example, a single application can establish multiple connections?each creating its own thread. This means a single user can consume all of the TBU threads all by itself. The Visual Basic IDE also makes connections on its own. For example, the Data View window or the Data Environment Designer both create one or more connections at design time. When you use a data source control such as the ADODC or one generated by the Data Object Wizard, additional connections (perhaps several) can be opened and threads started. Clearly, a single application can exhaust the limited number of threads made available by MSDE. If you suspect a performance problem when using MSDE, you can use a number of techniques to determine if the TBU governor is causing the delay. The simplest way is to count the number of concurrent users?SELECT COUNT (*) FROM SYSPROCESSES WHERE STATUS <> ?sleeping? will do the trick. If this returns a value less than 14 (8 + 6), then the delay is likely caused by other factors?not the governor. I have used the DBCC method to do this Charlotte Foust wrote: >I've certainly had more than 5 FEs connected to a single BE. The back >end doesn't keep track of connections in Access. > >Charlotte Foust > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >Sent: Friday, February 02, 2007 5:58 AM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] Connections and Performance > >I've read several times that maintaining a connection between a FE and a >BE will increase the performance of the FE because it doesn't need to >reconnect before transferring data. The connection here would be a >bound form connected by a table link to a table in the BE. > >But, the connection limit for one BE is 5 FE's. So, will maintaining >connections on more than 5 FE's reduce performance? Seems logical, but >I was wondering if this is correct or is there more to it? > >Thanks! > >Dan Waters > >-- >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 jwcolby at colbyconsulting.com Fri Feb 2 12:36:24 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Fri, 2 Feb 2007 13:36:24 -0500 Subject: [AccessD] Connections and Performance In-Reply-To: <17724746D360394AA3BFE5B8D40A9C1B01A035DE@marlow_main2.marlow.ii-vi.net> Message-ID: <01ba01c746f9$0c3b6a90$657aa8c0@m6805> OK, I understand now. The lock is not physical data in the file, but rather using the OS' locking mechanisms. Getting a "lock" is literally asking the OS for a lock and getting a lock object from the OS. Is the lock in question a lock on the MDB or a lock on the LDB? So the lock Is placed on the LDB but is interpreted by jet as being on the equivalent byte range in the MDB? John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, February 02, 2007 1:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance A portion of the Jet whitepaper (for 3.51 and earlier, which they would kick one out for 4.0. A lot is the same, but there are some changes (like the inability to see who actually is suspect in the db.)). " Extended byte range locks are locks placed outside the physical boundaries of a file - no data is ever physically locked. An example of this is placing a lock at 10 million hex for a file that has a physical size of only 64 bytes. In other words, a lock is virtually placed at a location that does not exist on the hard disk. This type of locking is used because extended byte range locks are not limited by the size of the physical file, allowing for locking algorithms that would not otherwise be possible. Also, placing locks inside a data file would prevent other users from reading that data. In the early dBASE days, a user could place a lock on a record located in the data file that prevented everyone from reading that data - when printing a report, for example." So, even though the .ldb will never get larger then 16k, it is having locks placed on bytes that don't exist on it. Lots of locks. So when jet goes to read block X from an .mdb, it can read it whether there is a write lock on it or not. Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Friday, February 02, 2007 11:56 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance >Actual record locks on the database are stored in the .ldb too, but in >a very odd way. When I first read about it, I thought it was the oddest thing. Basically, the max size of an .ldb is going to be 16k. (255*64). However, there is a 'virtual' size of the .ldb. If Jet needs to lock something in the 25th megabyte of an .mdb, it creates a lock on that position in the 'virtual .ldb', even though the .ldb isn't that big, file read/write code can lock bits outside a file's actual space. This prevents any read/write locks on the actual .mdb. Well you lost me down around the "virtual" part. If the "virtual" part is in the LDB file then it has to be inside of the physical LDB file. The OS will not allow writes to physical disk space that is not assigned to that file. If it did allow that then you would get the possibility of overwriting data in areas of the disk that the file doesn't own. The FAT system (and the others as well) specifically assigns sectors to files using a chaining mechanism. While it is possible to work around that fat system using low level calls to the bios, I doubt seriously that Access is doing that. Are you saying that it grows and shrinks the LDB file, placing data out past the first 16 KB, and that area holds the lock info?? I always just assumed that the lock file said "this user is ACTIVELY accessing the MDB RIGHT NOW", and the actual locking info was stored inside of the MDB somewhere. It isn't apparent why an LDB file is even required. The info stored in the LDB could just as easily be stored inside the MDB as well. The only reason I can see is to allow external applications to see who is in the database without having to poke around in the MDB file itself. Your explanation was uhhh... Virtual I suppose. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, February 02, 2007 12:32 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance The Jet LDB white paper explains it. Essentially the .ldb is going to be 64 bytes per user. Each chunk is 32 bytes for the machine name, 32 bytes for the Access User name. Then there is a chunk of bytes in the .mdb itself, 2 or 4(not sure about Jet 4.0, I haven't seen a white paper on it) byte chunks, and there are 255 of them. (The max number of users). The first chunk (in the .mdb) relates to the first 64 byte chunk in the .ldb. The smaller chunks in the .mdb are changed based on the users activity. Actual record locks on the database are stored in the .ldb too, but in a very odd way. When I first read about it, I thought it was the oddest thing. Basically, the max size of an .ldb is going to be 16k. (255*64). However, there is a 'virtual' size of the .ldb. If Jet needs to lock something in the 25th megabyte of an .mdb, it creates a lock on that position in the 'virtual .ldb', even though the .ldb isn't that big, file read/write code can lock bits outside a file's actual space. This prevents any read/write locks on the actual .mdb. Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Friday, February 02, 2007 10:31 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance No, but the lock file does (LDB). I have never really figured out how. If you open it in a text editor it is mostly empty. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, February 02, 2007 11:20 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance I've certainly had more than 5 FEs connected to a single BE. The back end doesn't keep track of connections in Access. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 02, 2007 5:58 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Connections and Performance I've read several times that maintaining a connection between a FE and a BE will increase the performance of the FE because it doesn't need to reconnect before transferring data. The connection here would be a bound form connected by a table link to a table in the BE. But, the connection limit for one BE is 5 FE's. So, will maintaining connections on more than 5 FE's reduce performance? Seems logical, but I was wondering if this is correct or is there more to it? Thanks! Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Fri Feb 2 12:42:48 2007 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Fri, 2 Feb 2007 13:42:48 -0500 Subject: [AccessD] Let Excel object live? Message-ID: <34C8A2AB1EF3564CB0D64DB6AFFDD5C201200FBB@xlivmbx35.aig.com> Can I ask *why* you want to keep the Excel object live? What are you going to do to it after the form closes? Whatever you want to do, I doubt that it would be at all difficult to simply reopen the Excel file after you form closes, and (quite correctly) destroys the Excel object. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Friday, February 02, 2007 12:25 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Let Excel object live? How about if you put your code in a module and call it from a form. Jim Hale -----Original Message----- From: Sad Der [mailto:accessd666 at yahoo.com] Sent: Friday, February 02, 2007 4:36 AM To: Acces User Group Subject: [AccessD] Let Excel object live? Hi group, I've got a form that opens an Excel template and fills it with data. I've got the following line: Private objXL As cExcel this is a 'form level variabel'. When the user presses the 'export button' this line is called (on click event): Set objXL = New cExcel In the initiate of this Class I call a function that checks if there is an Excel instance: If objExcel Is Nothing Then Set ExcelObject = CreateObject("Excel.Application") Else 'do nothing, object already alive End If So at this point I have a form. In the properties of the form there is an objXL. When I close the form: DoCmd.Close acForm, Me.Name, acSaveNo The Excel object (objXL) is destroyed and thus the terminate event is triggered. This event closes/kills the object and Excel itself is closed. How can I keep this object alive and still close the form? Maybe not closing the form but hiding it? But how do I hide the form and when opening the form first check if it's open? Regards, Sander ____________________________________________________________________________ ________ Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.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 From DWUTKA at marlow.com Fri Feb 2 12:49:34 2007 From: DWUTKA at marlow.com (Drew Wutka) Date: Fri, 2 Feb 2007 12:49:34 -0600 Subject: [AccessD] Connections and Performance Message-ID: <17724746D360394AA3BFE5B8D40A9C1B01A035F9@marlow_main2.marlow.ii-vi.net> The lock is on the .ldb, and yes, the lock is on the .ldb so Jet can see it, but not be prevented from reading that part of the .mdb. Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Friday, February 02, 2007 12:36 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance OK, I understand now. The lock is not physical data in the file, but rather using the OS' locking mechanisms. Getting a "lock" is literally asking the OS for a lock and getting a lock object from the OS. Is the lock in question a lock on the MDB or a lock on the LDB? So the lock Is placed on the LDB but is interpreted by jet as being on the equivalent byte range in the MDB? John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, February 02, 2007 1:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance A portion of the Jet whitepaper (for 3.51 and earlier, which they would kick one out for 4.0. A lot is the same, but there are some changes (like the inability to see who actually is suspect in the db.)). " Extended byte range locks are locks placed outside the physical boundaries of a file - no data is ever physically locked. An example of this is placing a lock at 10 million hex for a file that has a physical size of only 64 bytes. In other words, a lock is virtually placed at a location that does not exist on the hard disk. This type of locking is used because extended byte range locks are not limited by the size of the physical file, allowing for locking algorithms that would not otherwise be possible. Also, placing locks inside a data file would prevent other users from reading that data. In the early dBASE days, a user could place a lock on a record located in the data file that prevented everyone from reading that data - when printing a report, for example." So, even though the .ldb will never get larger then 16k, it is having locks placed on bytes that don't exist on it. Lots of locks. So when jet goes to read block X from an .mdb, it can read it whether there is a write lock on it or not. Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Friday, February 02, 2007 11:56 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance >Actual record locks on the database are stored in the .ldb too, but in >a very odd way. When I first read about it, I thought it was the oddest thing. Basically, the max size of an .ldb is going to be 16k. (255*64). However, there is a 'virtual' size of the .ldb. If Jet needs to lock something in the 25th megabyte of an .mdb, it creates a lock on that position in the 'virtual .ldb', even though the .ldb isn't that big, file read/write code can lock bits outside a file's actual space. This prevents any read/write locks on the actual .mdb. Well you lost me down around the "virtual" part. If the "virtual" part is in the LDB file then it has to be inside of the physical LDB file. The OS will not allow writes to physical disk space that is not assigned to that file. If it did allow that then you would get the possibility of overwriting data in areas of the disk that the file doesn't own. The FAT system (and the others as well) specifically assigns sectors to files using a chaining mechanism. While it is possible to work around that fat system using low level calls to the bios, I doubt seriously that Access is doing that. Are you saying that it grows and shrinks the LDB file, placing data out past the first 16 KB, and that area holds the lock info?? I always just assumed that the lock file said "this user is ACTIVELY accessing the MDB RIGHT NOW", and the actual locking info was stored inside of the MDB somewhere. It isn't apparent why an LDB file is even required. The info stored in the LDB could just as easily be stored inside the MDB as well. The only reason I can see is to allow external applications to see who is in the database without having to poke around in the MDB file itself. Your explanation was uhhh... Virtual I suppose. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, February 02, 2007 12:32 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance The Jet LDB white paper explains it. Essentially the .ldb is going to be 64 bytes per user. Each chunk is 32 bytes for the machine name, 32 bytes for the Access User name. Then there is a chunk of bytes in the .mdb itself, 2 or 4(not sure about Jet 4.0, I haven't seen a white paper on it) byte chunks, and there are 255 of them. (The max number of users). The first chunk (in the .mdb) relates to the first 64 byte chunk in the .ldb. The smaller chunks in the .mdb are changed based on the users activity. Actual record locks on the database are stored in the .ldb too, but in a very odd way. When I first read about it, I thought it was the oddest thing. Basically, the max size of an .ldb is going to be 16k. (255*64). However, there is a 'virtual' size of the .ldb. If Jet needs to lock something in the 25th megabyte of an .mdb, it creates a lock on that position in the 'virtual .ldb', even though the .ldb isn't that big, file read/write code can lock bits outside a file's actual space. This prevents any read/write locks on the actual .mdb. Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Friday, February 02, 2007 10:31 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance No, but the lock file does (LDB). I have never really figured out how. If you open it in a text editor it is mostly empty. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, February 02, 2007 11:20 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance I've certainly had more than 5 FEs connected to a single BE. The back end doesn't keep track of connections in Access. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 02, 2007 5:58 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Connections and Performance I've read several times that maintaining a connection between a FE and a BE will increase the performance of the FE because it doesn't need to reconnect before transferring data. The connection here would be a bound form connected by a table link to a table in the BE. But, the connection limit for one BE is 5 FE's. So, will maintaining connections on more than 5 FE's reduce performance? Seems logical, but I was wondering if this is correct or is there more to it? Thanks! Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Fri Feb 2 13:05:31 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 02 Feb 2007 11:05:31 -0800 Subject: [AccessD] OT Friday homour In-Reply-To: <34C8A2AB1EF3564CB0D64DB6AFFDD5C201200FBB@xlivmbx35.aig.com> Message-ID: <0JCU00F1FNLSCR10@l-daemon> Hi All: So you think English is easy: 1) The bandage was wound around the wound. 2) The farm was used to produce produce. 3) The dump was so full that it had to refuse more refuse. 4) We must polish the Polish furniture. 5) He could lead if he would get the lead out. 6) The soldier decided to desert his dessert in the desert. 7) Since there is no time like the present, he thought it was time to present the present 8) A bass was painted on the head of the bass drum. 9) When shot at, the dove dove into the bushes. 10) I did not object to the object. 11) The insurance was invalid for the invalid. 12) There was a row among the oarsmen about how to row 13) They were too close to the door to close it. 14) The buck does funny things when the does are present. 15) A seamstress and a sewer fell down into a sewer line. 16) To help with planting, the farmer taught his sow to sow. 17) The wind was too strong to wind the sail 18) Upon seeing the tear in the painting I shed a tear. 19) I had to subject the subject to a series of tests. 20) How can I intimate this to my most intimate friend? ...and another... A Mountie pulled a car over on the Trans Canada about 2 miles West of Winnipeg. When the Mountie asked the driver why he was speeding, the driver answered that he was a magician and a juggler and he was on his way to Brandon to do a show that night at the Shrine Circus and didn't want to be late. The Mountie told the driver he was fascinated by juggling, and if the driver would do a little juggling for him then he wouldn't give him a ticket. The driver told the Mountie that he had sent all of his equipment on ahead and didn't have anything to juggle. The Mountie told him that he had some flares in the trunk of his patrol car and asked if he could juggle them. The juggler stated that he could, so the Mountie got three flares, lit them and handed them to the juggler. While the man was doing his juggling act, a car pulled in behind the patrol car. A drunk, good old boy, driving through from Alberta got out and watched the performance briefly. He then went over to the patrol car, opened the rear door and got in. The Mountie observed him doing this and went over to the patrol car, opened the door and asked the drunk what he thought he was doing. The drunk replied, "You might as well take me to jail, cause there's no friggin` way I can pass that test." Have a good weekend Jim From accessd at shaw.ca Fri Feb 2 13:23:16 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 02 Feb 2007 11:23:16 -0800 Subject: [AccessD] Fields with Null In-Reply-To: <703BDA18A87DFA4CB265A86F42E4178D01E75FBC@c2k3exchange.pgdp.corp.usec.com> Message-ID: <0JCU00LO5OFEOE20@l-daemon> Comment... -1 is TRUE in Access. In MS SQL, TRUE = 1 (Strange?) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis, Virginia Sent: Friday, February 02, 2007 7:15 AM To: accessd at databaseadvisors.com Subject: [AccessD] Fields with Null I get -1 **************** Mmm, doesn't do that for me. Are you sure the Comments field is null? Could it have blank spaces in it somehow? Add this to your query: TestNull: IsNull([Comments]) Do the "empty" Comments records return -1 (ie True)? -- 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 accessd at shaw.ca Fri Feb 2 13:13:08 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 02 Feb 2007 11:13:08 -0800 Subject: [AccessD] Break a float into it's parts In-Reply-To: <018101c746d7$9f3d82f0$657aa8c0@m6805> Message-ID: <0JCU00H4HNYHW270@l-daemon> Hi John: intNumber = int(23.456) lngNumber = 23.456 - intNumber intNumber = 23 lngNumber = .456 Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Friday, February 02, 2007 6:37 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Break a float into it's parts How do I get the integer part and the decimal part of a floating point number 23.456 how do I get the 23 how do I get the .456 Using clng for example "rounds" the number up or down which isn't what I want for the integer portion John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Fri Feb 2 13:48:35 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 02 Feb 2007 11:48:35 -0800 Subject: [AccessD] Arthurs new EBook In-Reply-To: <17724746D360394AA3BFE5B8D40A9C1B01A03545@marlow_main2.marlow.ii-vi.net> Message-ID: <0JCU001DQPLKWL60@l-daemon> Hi All: Arthur's prose on MS Access, the link to his new EBook and Drew's further elaboration has been added to the DBA web site as a new Gazette Article. To view: http://www.databaseadvisors.com/gazette/gazette20070201.asp Jim From jwcolby at colbyconsulting.com Fri Feb 2 13:54:08 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Fri, 2 Feb 2007 14:54:08 -0500 Subject: [AccessD] Arthurs new EBook In-Reply-To: <0JCU001DQPLKWL60@l-daemon> Message-ID: <01ce01c74703$e7dddf60$657aa8c0@m6805> Well done Arthur! John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Friday, February 02, 2007 2:49 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Arthurs new EBook Hi All: Arthur's prose on MS Access, the link to his new EBook and Drew's further elaboration has been added to the DBA web site as a new Gazette Article. To view: http://www.databaseadvisors.com/gazette/gazette20070201.asp Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Fri Feb 2 16:10:10 2007 From: wdhindman at dejpolsystems.com (William Hindman) Date: Fri, 2 Feb 2007 17:10:10 -0500 Subject: [AccessD] Access=>Termial Server=>SQL Server References: <857533.98557.qm@web33105.mail.mud.yahoo.com> Message-ID: <000a01c74716$e88fa890$8d4beb44@50NM721> Lonnie ...first question is your configuration ...do you have a single Access fe with all ts users hitting it or a separate copy installed in each user's ts directory with only that user using that fe copy ...the single Access fe will definitely slow as the number of users increase. William Hindman ----- Original Message ----- From: "Lonnie Johnson" To: "AccessD solving'" Sent: Friday, February 02, 2007 1:14 PM Subject: [AccessD] Access=>Termial Server=>SQL Server >I have an access app that runs on a terminal server and uses SQL Server as >a back end. It runs slow alot. > > I was wondering if there were any tips on performance? > > > > > > > > > > May God bless you beyond your imagination! > Lonnie Johnson > ProDev, Professional Development of MS Access Databases > Visit me at ==> http://www.prodev.us > > > > ____________________________________________________________________________________ > Never miss an email again! > Yahoo! Toolbar alerts you the instant new Mail arrives. > http://tools.search.yahoo.com/toolbar/features/mail/ > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From accessd at shaw.ca Fri Feb 2 16:16:15 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 02 Feb 2007 14:16:15 -0800 Subject: [AccessD] Connections and Performance In-Reply-To: <17724746D360394AA3BFE5B8D40A9C1B01A035BB@marlow_main2.marlow.ii-vi.net> Message-ID: <0JCU00ICAWFOBX70@l-daemon> Hi Drew: I have created and used both Access MDB and MS SQL BE servers in a variety of situations. They both do an excellent job but when it comes to heavy loads or data manipulation MS SQL pulls away very quickly. If you use Store Procedures, in MS SQL, they are highly optimized and compiled and can return a 100,000 records in seconds even when the SP query is 250 lines of code. In web environments MS SQL can scale up to half a million hits an hour. This is not meant to take away from MS Accesses capabilities. MS Access can run a small site without a problem. Just to set the record straight Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, February 02, 2007 9:24 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance Never bothered to test it, to have empirical data. It is just obvious. For example, our new website (which isn't up yet), has a navigation process that puts a nav bar at the top of every page. On our current site, that bar is built strictly from a hack into FrontPages navigation structure files. (We use Frontpage to edit the site...well, some people do, I do most stuff in just plain ol HTML.) It's essentially a csv file. The new site has a mix, it gets most stuff from the FrontPage source, but then it also adds in all the products. There are three product pages, a page that shows all the product types, a page that shows all the products of that type, and a page that shows info on just a single product. So, to FrontPage, the Navigation is three pages, but to the user, there are lots of pages based on the content that is stored within the database. So the new site now builds the navigation bars from a mix of the FP navigation, and the product database (which handles everything from the products on the web, the glossary, shopping cart, etc.). It is doing this for every page you load, and it loads as fast as your browser can handle it. The product database is local to the webserver (though not visible on the web itself), so everything that occurs to the db is being done locally by the webserver itself. If you had a SQL Server running on Machine X, and then had an identical machine 'Y' (same processor, hard drives, memory, etc). Which would be faster? Running a query on Machine Y, that is getting data from a SQL Server on Machine X, or running a query (against identical data tables) on Machine Y that is getting data from an Access MDB on Machine Y? There is nothing special about a server side DB that makes it more powerful then Jet at doing the same thing. The only true difference is that with a server side system you have a dedicated system retrieving data. But the way that machine is retrieving data is essentially the same way Jet does. It has to read it's indexes, find the data, put it together, and send it out. Jet does the same thing (though maybe not exactly the same way). Over a network, Jet is pulling chunks of a file across the network, which does take longer then letting a server side system just send the resulting data back. Since most mid to large apps in Access are used in a network environment, we, as Access developers, get hammered by this shortcoming of a end user db system. Putting the .mdb on a webserver, with a web interface, however, is functionally identical to putting the data into a server side db, with the exception of roleback/transaction capabilities. Drew -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Friday, February 02, 2007 10:27 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance Interesting, Drew. Have you written an article on that? It sounds like useful knowledge. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, February 02, 2007 7:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance As soon as I see an article saying Access is bad behind a webserver, I just roll my eyes. In essence, an .mdb placed physically on a webserver is going to crush a SQL server running on another machine, because the data is being read locally, in essentially the same way a SQL server is going to read it's own local data, so you completely drop the time it takes to send and receive the data across a NIC. (On top of no time loss for transaction logs, etc.) Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Friday, February 02, 2007 9:29 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance >This means that although Access remains suitable for small Web applications, those that experience growth where they are experiencing more than 25 concurrent connections should consider upgrading to a more robust database." And what lab does he use for his perspective? I tried to go read the article but just got the main page and no further. It would be useful to see real numbers with understandable (to use programmers) test methods. I have never seen any such thing, nor do I have the time right now to build such a test system. I might have to though since my applications are extremely complex and this might be something to watch. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, February 02, 2007 10:17 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance On 2 Feb 2007 at 10:07, Michael R Mattys wrote: > Heh :) It took me a few minutes, but I found this 'explanation' > http://www.crystaltech.com/Newsletters/news2006-08tech.aspx ... > However, Access is not optimized for use with a large number of > concurrent connections and does not scale for large databases. As more > users connect to an Access database, the performance starts to degrade > rapidly. Even moderately-trafficked websites can easily have 5 or more > users at one time which can cause Access to lock the number of connections. Alternatively: http://www.2020datashed.com/help/Topics/DataProviders.html The database cannot handle more than 255 concurrent connections. This topic is very complex and many programmers will argue that this number is misleading. Under the right conditions, if lock-type is managed carefully and each of the concurrent users are connected to different resources/tables in the database, and the users' connectivity is properly managed via OLE, then 255 distinct users can be connected simultaneously to the MS Access database. (As discussed in MS Knowledge Base article: 176670.) However the number of available concurrent connections drops significantly when multiple tables are in use by a single connection and if the data is not sufficiently locked while communicating with the data. This number of course does not represent "people"...it represents "users" which is often a different concept altogether. In a web-based application each connection to the database can be opened, queried, and closed within a few milliseconds, the number of "people" which can browse the web site simultaneously is not limited to 255. In conclusion: this particular limitation is a concern but shouldn't worry you unless your web site consistently receives a significant amount of traffic. Perhaps more than a few thousand visitors per day. Sean Nicholson of www.informit.com (Article) has this to say: "Microsoft lists 255 as the maximum number of concurrent users to an Access database. This means that only 255 users can actively interact with the database at the same time. This might be theoretically true in Microsoft's labs under the ideal circumstances, but the reality of working with an Access database is that performance falls off sharply when more than 25 or 30 concurrent requests are made. This means that although Access remains suitable for small Web applications, those that experience growth where they are experiencing more than 25 concurrent connections should consider upgrading to a more robust database." -- 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Feb 2 16:26:43 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 2 Feb 2007 14:26:43 -0800 Subject: [AccessD] OT Friday homour In-Reply-To: <0JCU00F1FNLSCR10@l-daemon> References: <34C8A2AB1EF3564CB0D64DB6AFFDD5C201200FBB@xlivmbx35.aig.com> <0JCU00F1FNLSCR10@l-daemon> Message-ID: Not to mention ... 21) The actor effected an affecting performance. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Friday, February 02, 2007 11:06 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT Friday homour Hi All: So you think English is easy: 1) The bandage was wound around the wound. 2) The farm was used to produce produce. 3) The dump was so full that it had to refuse more refuse. 4) We must polish the Polish furniture. 5) He could lead if he would get the lead out. 6) The soldier decided to desert his dessert in the desert. 7) Since there is no time like the present, he thought it was time to present the present 8) A bass was painted on the head of the bass drum. 9) When shot at, the dove dove into the bushes. 10) I did not object to the object. 11) The insurance was invalid for the invalid. 12) There was a row among the oarsmen about how to row 13) They were too close to the door to close it. 14) The buck does funny things when the does are present. 15) A seamstress and a sewer fell down into a sewer line. 16) To help with planting, the farmer taught his sow to sow. 17) The wind was too strong to wind the sail 18) Upon seeing the tear in the painting I shed a tear. 19) I had to subject the subject to a series of tests. 20) How can I intimate this to my most intimate friend? ...and another... A Mountie pulled a car over on the Trans Canada about 2 miles West of Winnipeg. When the Mountie asked the driver why he was speeding, the driver answered that he was a magician and a juggler and he was on his way to Brandon to do a show that night at the Shrine Circus and didn't want to be late. The Mountie told the driver he was fascinated by juggling, and if the driver would do a little juggling for him then he wouldn't give him a ticket. The driver told the Mountie that he had sent all of his equipment on ahead and didn't have anything to juggle. The Mountie told him that he had some flares in the trunk of his patrol car and asked if he could juggle them. The juggler stated that he could, so the Mountie got three flares, lit them and handed them to the juggler. While the man was doing his juggling act, a car pulled in behind the patrol car. A drunk, good old boy, driving through from Alberta got out and watched the performance briefly. He then went over to the patrol car, opened the rear door and got in. The Mountie observed him doing this and went over to the patrol car, opened the door and asked the drunk what he thought he was doing. The drunk replied, "You might as well take me to jail, cause there's no friggin` way I can pass that test." Have a good weekend Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Fri Feb 2 16:40:49 2007 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 03 Feb 2007 08:40:49 +1000 Subject: [AccessD] OT Friday homour In-Reply-To: References: <34C8A2AB1EF3564CB0D64DB6AFFDD5C201200FBB@xlivmbx35.aig.com>, <0JCU00F1FNLSCR10@l-daemon>, Message-ID: <45C3BDF1.22927.82A9063@stuart.lexacorp.com.pg> "Not to mention ..." - You shouldn't have! :-) The original list is a mixture of homonyms and heteronyms - mainly the latter. You're addition is only a homophone. On 2 Feb 2007 at 14:26, Charlotte Foust wrote: > Not to mention ... > > 21) The actor effected an affecting performance. > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence > Sent: Friday, February 02, 2007 11:06 AM To: 'Access Developers discussion > and problem solving' Subject: [AccessD] OT Friday homour > > Hi All: > > So you think English is easy: > > 1) The bandage was wound around the wound. > > 2) The farm was used to produce produce. > > 3) The dump was so full that it had to refuse more refuse. > > 4) We must polish the Polish furniture. > > 5) He could lead if he would get the lead out. > > 6) The soldier decided to desert his dessert in the desert. > > 7) Since there is no time like the present, he thought it was time to > present the present > > 8) A bass was painted on the head of the bass drum. > > 9) When shot at, the dove dove into the bushes. > > 10) I did not object to the object. > > 11) The insurance was invalid for the invalid. > > 12) There was a row among the oarsmen about how to row > > 13) They were too close to the door to close it. > > 14) The buck does funny things when the does are present. > > 15) A seamstress and a sewer fell down into a sewer line. > > 16) To help with planting, the farmer taught his sow to sow. > > 17) The wind was too strong to wind the sail > > 18) Upon seeing the tear in the painting I shed a tear. > > 19) I had to subject the subject to a series of tests. > > 20) How can I intimate this to my most intimate friend? -- Stuart From DWUTKA at marlow.com Fri Feb 2 16:45:26 2007 From: DWUTKA at marlow.com (Drew Wutka) Date: Fri, 2 Feb 2007 16:45:26 -0600 Subject: [AccessD] Connections and Performance Message-ID: <17724746D360394AA3BFE5B8D40A9C1B01A03668@marlow_main2.marlow.ii-vi.net> My point is, if you have a webserver that can handle half a million hits in an hour, it should be able to do it just fine against an access .mdb. As far as large scale data stores...ok, if we are talking a few million records, yes, JET is going to be slower, but I have systems with hundreds of thousands of records where Jet does fine, couldn't tell if it got any faster. Drew -----Original Message----- From: Jim Lawrence [mailto:accessd at shaw.ca] Sent: Friday, February 02, 2007 4:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance Hi Drew: I have created and used both Access MDB and MS SQL BE servers in a variety of situations. They both do an excellent job but when it comes to heavy loads or data manipulation MS SQL pulls away very quickly. If you use Store Procedures, in MS SQL, they are highly optimized and compiled and can return a 100,000 records in seconds even when the SP query is 250 lines of code. In web environments MS SQL can scale up to half a million hits an hour. This is not meant to take away from MS Accesses capabilities. MS Access can run a small site without a problem. Just to set the record straight Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, February 02, 2007 9:24 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance Never bothered to test it, to have empirical data. It is just obvious. For example, our new website (which isn't up yet), has a navigation process that puts a nav bar at the top of every page. On our current site, that bar is built strictly from a hack into FrontPages navigation structure files. (We use Frontpage to edit the site...well, some people do, I do most stuff in just plain ol HTML.) It's essentially a csv file. The new site has a mix, it gets most stuff from the FrontPage source, but then it also adds in all the products. There are three product pages, a page that shows all the product types, a page that shows all the products of that type, and a page that shows info on just a single product. So, to FrontPage, the Navigation is three pages, but to the user, there are lots of pages based on the content that is stored within the database. So the new site now builds the navigation bars from a mix of the FP navigation, and the product database (which handles everything from the products on the web, the glossary, shopping cart, etc.). It is doing this for every page you load, and it loads as fast as your browser can handle it. The product database is local to the webserver (though not visible on the web itself), so everything that occurs to the db is being done locally by the webserver itself. If you had a SQL Server running on Machine X, and then had an identical machine 'Y' (same processor, hard drives, memory, etc). Which would be faster? Running a query on Machine Y, that is getting data from a SQL Server on Machine X, or running a query (against identical data tables) on Machine Y that is getting data from an Access MDB on Machine Y? There is nothing special about a server side DB that makes it more powerful then Jet at doing the same thing. The only true difference is that with a server side system you have a dedicated system retrieving data. But the way that machine is retrieving data is essentially the same way Jet does. It has to read it's indexes, find the data, put it together, and send it out. Jet does the same thing (though maybe not exactly the same way). Over a network, Jet is pulling chunks of a file across the network, which does take longer then letting a server side system just send the resulting data back. Since most mid to large apps in Access are used in a network environment, we, as Access developers, get hammered by this shortcoming of a end user db system. Putting the .mdb on a webserver, with a web interface, however, is functionally identical to putting the data into a server side db, with the exception of roleback/transaction capabilities. Drew -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Friday, February 02, 2007 10:27 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance Interesting, Drew. Have you written an article on that? It sounds like useful knowledge. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, February 02, 2007 7:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance As soon as I see an article saying Access is bad behind a webserver, I just roll my eyes. In essence, an .mdb placed physically on a webserver is going to crush a SQL server running on another machine, because the data is being read locally, in essentially the same way a SQL server is going to read it's own local data, so you completely drop the time it takes to send and receive the data across a NIC. (On top of no time loss for transaction logs, etc.) Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Friday, February 02, 2007 9:29 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance >This means that although Access remains suitable for small Web applications, those that experience growth where they are experiencing more than 25 concurrent connections should consider upgrading to a more robust database." And what lab does he use for his perspective? I tried to go read the article but just got the main page and no further. It would be useful to see real numbers with understandable (to use programmers) test methods. I have never seen any such thing, nor do I have the time right now to build such a test system. I might have to though since my applications are extremely complex and this might be something to watch. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, February 02, 2007 10:17 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance On 2 Feb 2007 at 10:07, Michael R Mattys wrote: > Heh :) It took me a few minutes, but I found this 'explanation' > http://www.crystaltech.com/Newsletters/news2006-08tech.aspx ... > However, Access is not optimized for use with a large number of > concurrent connections and does not scale for large databases. As more > users connect to an Access database, the performance starts to degrade > rapidly. Even moderately-trafficked websites can easily have 5 or more > users at one time which can cause Access to lock the number of connections. Alternatively: http://www.2020datashed.com/help/Topics/DataProviders.html The database cannot handle more than 255 concurrent connections. This topic is very complex and many programmers will argue that this number is misleading. Under the right conditions, if lock-type is managed carefully and each of the concurrent users are connected to different resources/tables in the database, and the users' connectivity is properly managed via OLE, then 255 distinct users can be connected simultaneously to the MS Access database. (As discussed in MS Knowledge Base article: 176670.) However the number of available concurrent connections drops significantly when multiple tables are in use by a single connection and if the data is not sufficiently locked while communicating with the data. This number of course does not represent "people"...it represents "users" which is often a different concept altogether. In a web-based application each connection to the database can be opened, queried, and closed within a few milliseconds, the number of "people" which can browse the web site simultaneously is not limited to 255. In conclusion: this particular limitation is a concern but shouldn't worry you unless your web site consistently receives a significant amount of traffic. Perhaps more than a few thousand visitors per day. Sean Nicholson of www.informit.com (Article) has this to say: "Microsoft lists 255 as the maximum number of concurrent users to an Access database. This means that only 255 users can actively interact with the database at the same time. This might be theoretically true in Microsoft's labs under the ideal circumstances, but the reality of working with an Access database is that performance falls off sharply when more than 25 or 30 concurrent requests are made. This means that although Access remains suitable for small Web applications, those that experience growth where they are experiencing more than 25 concurrent connections should consider upgrading to a more robust database." -- 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Fri Feb 2 17:14:18 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 02 Feb 2007 15:14:18 -0800 Subject: [AccessD] OT Friday homour In-Reply-To: <45C3BDF1.22927.82A9063@stuart.lexacorp.com.pg> Message-ID: <0JCU00C7FZ4FBOB0@l-daemon> ...and then adding. 22) He will record the record for the record. 23) He would not have been had had he had a choice. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, February 02, 2007 2:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT Friday homour "Not to mention ..." - You shouldn't have! :-) The original list is a mixture of homonyms and heteronyms - mainly the latter. You're addition is only a homophone. On 2 Feb 2007 at 14:26, Charlotte Foust wrote: > Not to mention ... > > 21) The actor effected an affecting performance. > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence > Sent: Friday, February 02, 2007 11:06 AM To: 'Access Developers discussion > and problem solving' Subject: [AccessD] OT Friday homour > > Hi All: > > So you think English is easy: > > 1) The bandage was wound around the wound. > > 2) The farm was used to produce produce. > > 3) The dump was so full that it had to refuse more refuse. > > 4) We must polish the Polish furniture. > > 5) He could lead if he would get the lead out. > > 6) The soldier decided to desert his dessert in the desert. > > 7) Since there is no time like the present, he thought it was time to > present the present > > 8) A bass was painted on the head of the bass drum. > > 9) When shot at, the dove dove into the bushes. > > 10) I did not object to the object. > > 11) The insurance was invalid for the invalid. > > 12) There was a row among the oarsmen about how to row > > 13) They were too close to the door to close it. > > 14) The buck does funny things when the does are present. > > 15) A seamstress and a sewer fell down into a sewer line. > > 16) To help with planting, the farmer taught his sow to sow. > > 17) The wind was too strong to wind the sail > > 18) Upon seeing the tear in the painting I shed a tear. > > 19) I had to subject the subject to a series of tests. > > 20) How can I intimate this to my most intimate friend? -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri Feb 2 18:02:09 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 2 Feb 2007 16:02:09 -0800 Subject: [AccessD] OT Friday homour In-Reply-To: <45C3BDF1.22927.82A9063@stuart.lexacorp.com.pg> References: <34C8A2AB1EF3564CB0D64DB6AFFDD5C201200FBB@xlivmbx35.aig.com>, <0JCU00F1FNLSCR10@l-daemon>, <45C3BDF1.22927.82A9063@stuart.lexacorp.com.pg> Message-ID: Picky!! Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, February 02, 2007 2:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT Friday homour "Not to mention ..." - You shouldn't have! :-) The original list is a mixture of homonyms and heteronyms - mainly the latter. You're addition is only a homophone. On 2 Feb 2007 at 14:26, Charlotte Foust wrote: > Not to mention ... > > 21) The actor effected an affecting performance. > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim > Lawrence > Sent: Friday, February 02, 2007 11:06 AM To: 'Access Developers > discussion and problem solving' Subject: [AccessD] OT Friday homour > > Hi All: > > So you think English is easy: > > 1) The bandage was wound around the wound. > > 2) The farm was used to produce produce. > > 3) The dump was so full that it had to refuse more refuse. > > 4) We must polish the Polish furniture. > > 5) He could lead if he would get the lead out. > > 6) The soldier decided to desert his dessert in the desert. > > 7) Since there is no time like the present, he thought it was time to > present the present > > 8) A bass was painted on the head of the bass drum. > > 9) When shot at, the dove dove into the bushes. > > 10) I did not object to the object. > > 11) The insurance was invalid for the invalid. > > 12) There was a row among the oarsmen about how to row > > 13) They were too close to the door to close it. > > 14) The buck does funny things when the does are present. > > 15) A seamstress and a sewer fell down into a sewer line. > > 16) To help with planting, the farmer taught his sow to sow. > > 17) The wind was too strong to wind the sail > > 18) Upon seeing the tear in the painting I shed a tear. > > 19) I had to subject the subject to a series of tests. > > 20) How can I intimate this to my most intimate friend? -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From prodevmg at yahoo.com Fri Feb 2 18:35:51 2007 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Fri, 2 Feb 2007 16:35:51 -0800 (PST) Subject: [AccessD] Access=>Termial Server=>SQL Server Message-ID: <511507.56976.qm@web33107.mail.mud.yahoo.com> Thanks William, I know the possibilities are enormous because we have three different areas and the network that transmits them. This is an Access front end with linked SQL Server tables that are bound to forms. Each user has their own copy of the app in their network version of MyDocuments. We have a dual terminal server that tries to balance the load of users. I am just shooting in the dark here hoping someone has had simular problems. Thanks again. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us ----- Original Message ---- From: William Hindman To: Access Developers discussion and problem solving Sent: Friday, February 2, 2007 4:10:10 PM Subject: Re: [AccessD] Access=>Termial Server=>SQL Server Lonnie ...first question is your configuration ...do you have a single Access fe with all ts users hitting it or a separate copy installed in each user's ts directory with only that user using that fe copy ...the single Access fe will definitely slow as the number of users increase. William Hindman ----- Original Message ----- From: "Lonnie Johnson" To: "AccessD solving'" Sent: Friday, February 02, 2007 1:14 PM Subject: [AccessD] Access=>Termial Server=>SQL Server >I have an access app that runs on a terminal server and uses SQL Server as >a back end. It runs slow alot. > > I was wondering if there were any tips on performance? > > > > > > > > > > May God bless you beyond your imagination! > Lonnie Johnson > ProDev, Professional Development of MS Access Databases > Visit me at ==> http://www.prodev.us > > > > ____________________________________________________________________________________ > Never miss an email again! > Yahoo! Toolbar alerts you the instant new Mail arrives. > http://tools.search.yahoo.com/toolbar/features/mail/ > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ____________________________________________________________________________________ It's here! Your new message! Get new email alerts with the free Yahoo! Toolbar. http://tools.search.yahoo.com/toolbar/features/mail/ From martyconnelly at shaw.ca Fri Feb 2 20:13:19 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 02 Feb 2007 18:13:19 -0800 Subject: [AccessD] Access=>Termial Server=>SQL Server In-Reply-To: <511507.56976.qm@web33107.mail.mud.yahoo.com> References: <511507.56976.qm@web33107.mail.mud.yahoo.com> Message-ID: <45C3EFBF.5020105@shaw.ca> Maybe some hints here http://www.granite.ab.ca/access/terminalserver.htm Are you running full licensed SQL Server 2000 Lonnie Johnson wrote: >Thanks William, > >I know the possibilities are enormous because we have three different areas and the network that transmits them. > >This is an Access front end with linked SQL Server tables that are bound to forms. Each user has their own copy of the app in their network version of MyDocuments. We have a dual terminal server that tries to balance the load of users. > >I am just shooting in the dark here hoping someone has had simular problems. > >Thanks again. > > > > > > > > > >May God bless you beyond your imagination! >Lonnie Johnson >ProDev, Professional Development of MS Access Databases >Visit me at ==> http://www.prodev.us > > > > > > > > > > >----- Original Message ---- >From: William Hindman >To: Access Developers discussion and problem solving >Sent: Friday, February 2, 2007 4:10:10 PM >Subject: Re: [AccessD] Access=>Termial Server=>SQL Server > > >Lonnie > >...first question is your configuration ...do you have a single Access fe >with all ts users hitting it or a separate copy installed in each user's ts >directory with only that user using that fe copy ...the single Access fe >will definitely slow as the number of users increase. > >William Hindman > >----- Original Message ----- >From: "Lonnie Johnson" >To: "AccessD solving'" >Sent: Friday, February 02, 2007 1:14 PM >Subject: [AccessD] Access=>Termial Server=>SQL Server > > > > >>I have an access app that runs on a terminal server and uses SQL Server as >>a back end. It runs slow alot. >> >>I was wondering if there were any tips on performance? >> >> >> >> >> >> >> >> >> >>May God bless you beyond your imagination! >>Lonnie Johnson >>ProDev, Professional Development of MS Access Databases >>Visit me at ==> http://www.prodev.us >> >> >> >>____________________________________________________________________________________ >>Never miss an email again! >>Yahoo! Toolbar alerts you the instant new Mail arrives. >>http://tools.search.yahoo.com/toolbar/features/mail/ >>-- >>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 dwaters at usinternet.com Fri Feb 2 22:12:53 2007 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 2 Feb 2007 22:12:53 -0600 Subject: [AccessD] Connections and Performance In-Reply-To: <21447087.1170430574567.JavaMail.root@sniper23> References: <21447087.1170430574567.JavaMail.root@sniper23> Message-ID: <006c01c74749$94855820$0200a8c0@danwaters> Drew, I read this somewhere - either in MS documentation or in a book where I believe the author. Here's the reason I was asking: At a certain customer site, they experienced a dramatic performance slowdown at a time when about 10 people were logged on concurrently. Each client PC has it's own FE. I know that they open the system and leave the process screens open, all of which are bound. I want to suggest that they remember to close the process screens so that just the main screen is open, which is not bound. This way a fewer number of connections are being used at any one time and performance would probably be acceptable. This particular customer, I believe, does not have a very good network, so that is part of the problem. But that's unlikely to get improved, so I wanted to provide at least a partial solution, hence my question. I've also heard that a connection is made not based on whether a form is open and bound, but on whether or not there is data traffic between to and from a table, which only takes a small part of a second. So what causes the performance slowdown when only 10 client PC's are logged on, and what could be done to improve this? Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, February 02, 2007 9:26 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance Where are you getting these numbers. Access can have up to 255 connections. Drew -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Friday, February 02, 2007 8:45 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance Access has the potential for 8 simultaneous connections, but 3 of them are reserved for the system's use. That leaves five for users. Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Friday, February 02, 2007 8:02 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance >But, the connection limit for one BE is 5 FE's. What does this mean? I have never heard of any such thing. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 02, 2007 8:58 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Connections and Performance I've read several times that maintaining a connection between a FE and a BE will increase the performance of the FE because it doesn't need to reconnect before transferring data. The connection here would be a bound form connected by a table link to a table in the BE. But, the connection limit for one BE is 5 FE's. So, will maintaining connections on more than 5 FE's reduce performance? Seems logical, but I was wondering if this is correct or is there more to it? Thanks! Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Fri Feb 2 22:13:22 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 02 Feb 2007 20:13:22 -0800 Subject: [AccessD] A busy week In-Reply-To: <45C3EFBF.5020105@shaw.ca> Message-ID: <0JCV001XQCYTJ300@l-daemon> Hi All: Is this a list or is this a LIST... :-) It has been a busy week for members on the DBA list writing articles and finishing books. Read all about it on the DBA site at http://www.databaseadvisors.com/index.asp Best Regards and Congratulations to all... Jim From dwaters at usinternet.com Fri Feb 2 22:22:18 2007 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 2 Feb 2007 22:22:18 -0600 Subject: [AccessD] Database size In-Reply-To: <26506360.1170428760225.JavaMail.root@sniper63> References: <26506360.1170428760225.JavaMail.root@sniper63> Message-ID: <008201c7474a$e4c4e750$0200a8c0@danwaters> Barb, if you can change the database format to Access 2000. Then try decompile/compile. Then compact. There was an issue in 2002 which, I think, prevented decompiling if the database was in 2002 format, but worked fine in 2000 format. Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Barbara Ryan Sent: Friday, February 02, 2007 8:59 AM To: Access List Subject: [AccessD] Database size I just deleted many objects (probably 75 forms, queries, reports) from an Access 2002 database (using Access 2003). I then compiled and compacted. However, the database actually increased in size by 4MG!!! (from 26 to 30MG). What happened? :-( Thanks, Barb Ryan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at hotmail.com Fri Feb 2 22:28:47 2007 From: adtp at hotmail.com (A.D.TEJPAL) Date: Sat, 3 Feb 2007 09:58:47 +0530 Subject: [AccessD] Arthurs new EBook References: <0JCU001DQPLKWL60@l-daemon> Message-ID: My best compliments to Arthur & Drew! A.D.Tejpal --------------- ----- Original Message ----- From: Jim Lawrence To: 'Access Developers discussion and problem solving' Sent: Saturday, February 03, 2007 01:18 Subject: [AccessD] Arthurs new EBook Hi All: Arthur's prose on MS Access, the link to his new EBook and Drew's further elaboration has been added to the DBA web site as a new Gazette Article. To view: http://www.databaseadvisors.com/gazette/gazette20070201.asp Jim From dwaters at usinternet.com Fri Feb 2 22:37:44 2007 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 2 Feb 2007 22:37:44 -0600 Subject: [AccessD] Actual Good News! Message-ID: <000001c7474d$0d3d8d20$0200a8c0@danwaters> http://blogs.msdn.com/access/archive/2007/02/02/access-2007-runtime-and-deve loper-extension-will-be-free.aspx Dan Waters From jwcolby at colbyconsulting.com Fri Feb 2 22:55:31 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Fri, 2 Feb 2007 23:55:31 -0500 Subject: [AccessD] Actual Good News! In-Reply-To: <000001c7474d$0d3d8d20$0200a8c0@danwaters> Message-ID: <01e601c7474f$88c4b610$657aa8c0@m6805> Hmmm... I smell a "let's get developers to move to this" kinda thing going here. And it just might work. ;-) John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 02, 2007 11:38 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Actual Good News! http://blogs.msdn.com/access/archive/2007/02/02/access-2007-runtime-and-deve loper-extension-will-be-free.aspx Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Sat Feb 3 00:48:39 2007 From: wdhindman at dejpolsystems.com (William Hindman) Date: Sat, 3 Feb 2007 01:48:39 -0500 Subject: [AccessD] Actual Good News! References: <01e601c7474f$88c4b610$657aa8c0@m6805> Message-ID: <000c01c7475f$57144580$8d4beb44@50NM721> ...strange marketing move though ...buy one copy of Access and run your whole company without having to buy another one ...it would also appear to kick the Office Pro package in the teeth to the same extent ...not that I mind of course but the end result in MS terms would appear to be more Access dbs with fewer sales ...I'm missing something in the logic behind this. William Hindman ----- Original Message ----- From: "JWColby" To: "'Access Developers discussion and problem solving'" Sent: Friday, February 02, 2007 11:55 PM Subject: Re: [AccessD] Actual Good News! > Hmmm... I smell a "let's get developers to move to this" kinda thing going > here. > > And it just might work. ;-) > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Friday, February 02, 2007 11:38 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Actual Good News! > > http://blogs.msdn.com/access/archive/2007/02/02/access-2007-runtime-and-deve > loper-extension-will-be-free.aspx > > > Dan Waters > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From andy at minstersystems.co.uk Sat Feb 3 03:06:04 2007 From: andy at minstersystems.co.uk (Andy Lacey) Date: Sat, 3 Feb 2007 09:06:04 -0000 Subject: [AccessD] A busy week In-Reply-To: <0JCV001XQCYTJ300@l-daemon> Message-ID: <039901c74772$8bbafdc0$453b0c54@minster33c3r25> Good work Jim -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Jim Lawrence > Sent: 03 February 2007 04:13 > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] A busy week > > > Hi All: > > Is this a list or is this a LIST... :-) > > It has been a busy week for members on the DBA list writing > articles and finishing books. Read all about it on the DBA > site at http://www.databaseadvisors.com/index.asp > > Best Regards and Congratulations to all... > > Jim > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From prodevmg at yahoo.com Sat Feb 3 08:04:50 2007 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Sat, 3 Feb 2007 06:04:50 -0800 (PST) Subject: [AccessD] Access=>Termial Server=>SQL Server Message-ID: <490819.51795.qm@web33111.mail.mud.yahoo.com> Thanks Marty, Some of the links did not exist any more but there was some other interesting information that was sort of unrelated that was helpful. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us ----- Original Message ---- From: MartyConnelly To: Access Developers discussion and problem solving Sent: Friday, February 2, 2007 8:13:19 PM Subject: Re: [AccessD] Access=>Termial Server=>SQL Server Maybe some hints here http://www.granite.ab.ca/access/terminalserver.htm Are you running full licensed SQL Server 2000 Lonnie Johnson wrote: >Thanks William, > >I know the possibilities are enormous because we have three different areas and the network that transmits them. > >This is an Access front end with linked SQL Server tables that are bound to forms. Each user has their own copy of the app in their network version of MyDocuments. We have a dual terminal server that tries to balance the load of users. > >I am just shooting in the dark here hoping someone has had simular problems. > >Thanks again. > > > > > > > > > >May God bless you beyond your imagination! >Lonnie Johnson >ProDev, Professional Development of MS Access Databases >Visit me at ==> http://www.prodev.us > > > > > > > > > > >----- Original Message ---- >From: William Hindman >To: Access Developers discussion and problem solving >Sent: Friday, February 2, 2007 4:10:10 PM >Subject: Re: [AccessD] Access=>Termial Server=>SQL Server > > >Lonnie > >...first question is your configuration ...do you have a single Access fe >with all ts users hitting it or a separate copy installed in each user's ts >directory with only that user using that fe copy ...the single Access fe >will definitely slow as the number of users increase. > >William Hindman > >----- Original Message ----- >From: "Lonnie Johnson" >To: "AccessD solving'" >Sent: Friday, February 02, 2007 1:14 PM >Subject: [AccessD] Access=>Termial Server=>SQL Server > > > > >>I have an access app that runs on a terminal server and uses SQL Server as >>a back end. It runs slow alot. >> >>I was wondering if there were any tips on performance? >> >> >> >> >> >> >> >> >> >>May God bless you beyond your imagination! >>Lonnie Johnson >>ProDev, Professional Development of MS Access Databases >>Visit me at ==> http://www.prodev.us >> >> >> >>____________________________________________________________________________________ >>Never miss an email again! >>Yahoo! Toolbar alerts you the instant new Mail arrives. >>http://tools.search.yahoo.com/toolbar/features/mail/ >>-- >>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 ____________________________________________________________________________________ Want to start your own business? Learn how on Yahoo! Small Business. http://smallbusiness.yahoo.com/r-index From bheid at sc.rr.com Sat Feb 3 08:09:48 2007 From: bheid at sc.rr.com (Bobby Heid) Date: Sat, 3 Feb 2007 09:09:48 -0500 Subject: [AccessD] Connections and Performance In-Reply-To: <006c01c74749$94855820$0200a8c0@danwaters> References: <21447087.1170430574567.JavaMail.root@sniper23> <006c01c74749$94855820$0200a8c0@danwaters> Message-ID: <004201c7479c$fa915fd0$2d01a8c0@bhxp> Could it possibly be network congestion or some other issue with the network? Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 02, 2007 11:13 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance Drew, I read this somewhere - either in MS documentation or in a book where I believe the author. Here's the reason I was asking: At a certain customer site, they experienced a dramatic performance slowdown at a time when about 10 people were logged on concurrently. Each client PC has it's own FE. I know that they open the system and leave the process screens open, all of which are bound. I want to suggest that they remember to close the process screens so that just the main screen is open, which is not bound. This way a fewer number of connections are being used at any one time and performance would probably be acceptable. This particular customer, I believe, does not have a very good network, so that is part of the problem. But that's unlikely to get improved, so I wanted to provide at least a partial solution, hence my question. I've also heard that a connection is made not based on whether a form is open and bound, but on whether or not there is data traffic between to and from a table, which only takes a small part of a second. So what causes the performance slowdown when only 10 client PC's are logged on, and what could be done to improve this? Dan Waters From jwcolby at colbyconsulting.com Sat Feb 3 08:28:16 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Sat, 3 Feb 2007 09:28:16 -0500 Subject: [AccessD] Actual Good News! In-Reply-To: <000c01c7475f$57144580$8d4beb44@50NM721> Message-ID: <01ed01c7479f$8bc64ef0$657aa8c0@m6805> Well, that assumes that you do not use automation of course. If you automate word or excel or any other office app, then a copy of that has to be on the workstation. It really means that they can buy the cheaper version of office without Access. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Saturday, February 03, 2007 1:49 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Actual Good News! ...strange marketing move though ...buy one copy of Access and run your whole company without having to buy another one ...it would also appear to kick the Office Pro package in the teeth to the same extent ...not that I mind of course but the end result in MS terms would appear to be more Access dbs with fewer sales ...I'm missing something in the logic behind this. William Hindman ----- Original Message ----- From: "JWColby" To: "'Access Developers discussion and problem solving'" Sent: Friday, February 02, 2007 11:55 PM Subject: Re: [AccessD] Actual Good News! > Hmmm... I smell a "let's get developers to move to this" kinda thing going > here. > > And it just might work. ;-) > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Friday, February 02, 2007 11:38 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Actual Good News! > > http://blogs.msdn.com/access/archive/2007/02/02/access-2007-runtime-and-deve > loper-extension-will-be-free.aspx > > > Dan Waters > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Sat Feb 3 09:38:48 2007 From: dwaters at usinternet.com (Dan Waters) Date: Sat, 3 Feb 2007 09:38:48 -0600 Subject: [AccessD] Connections and Performance In-Reply-To: <993701.1170511968284.JavaMail.root@sniper53> References: <21447087.1170430574567.JavaMail.root@sniper23><006c01c74749$94855820$0200a8c0@danwaters> <993701.1170511968284.JavaMail.root@sniper53> Message-ID: <008b01c747a9$66d3a520$0200a8c0@danwaters> That's at least part of it! Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Saturday, February 03, 2007 8:10 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance Could it possibly be network congestion or some other issue with the network? Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 02, 2007 11:13 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance Drew, I read this somewhere - either in MS documentation or in a book where I believe the author. Here's the reason I was asking: At a certain customer site, they experienced a dramatic performance slowdown at a time when about 10 people were logged on concurrently. Each client PC has it's own FE. I know that they open the system and leave the process screens open, all of which are bound. I want to suggest that they remember to close the process screens so that just the main screen is open, which is not bound. This way a fewer number of connections are being used at any one time and performance would probably be acceptable. This particular customer, I believe, does not have a very good network, so that is part of the problem. But that's unlikely to get improved, so I wanted to provide at least a partial solution, hence my question. I've also heard that a connection is made not based on whether a form is open and bound, but on whether or not there is data traffic between to and from a table, which only takes a small part of a second. So what causes the performance slowdown when only 10 client PC's are logged on, and what could be done to improve this? Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Sat Feb 3 10:43:55 2007 From: wdhindman at dejpolsystems.com (William Hindman) Date: Sat, 3 Feb 2007 11:43:55 -0500 Subject: [AccessD] Actual Good News! References: <01ed01c7479f$8bc64ef0$657aa8c0@m6805> Message-ID: <000801c747b2$7f6a6b60$8d4beb44@50NM721> ...exactly, more Office Standard vs Office Pro ...don't see any MS revenues in that move ...still makes no sense, thus I await the other shoe dropping. ...maybe the SQL Server group has its own fe .net rad in the wings ...that might explain the Access dev move ...we can always hope. William Hindman ----- Original Message ----- From: "JWColby" To: "'Access Developers discussion and problem solving'" Sent: Saturday, February 03, 2007 9:28 AM Subject: Re: [AccessD] Actual Good News! > Well, that assumes that you do not use automation of course. If you > automate word or excel or any other office app, then a copy of that has to > be on the workstation. It really means that they can buy the cheaper > version of office without Access. > > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman > Sent: Saturday, February 03, 2007 1:49 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Actual Good News! > > ...strange marketing move though ...buy one copy of Access and run your > whole company without having to buy another one ...it would also appear to > kick the Office Pro package in the teeth to the same extent ...not that I > mind of course but the end result in MS terms would appear to be more > Access > dbs with fewer sales ...I'm missing something in the logic behind this. > > William Hindman > > ----- Original Message ----- > From: "JWColby" > To: "'Access Developers discussion and problem solving'" > > Sent: Friday, February 02, 2007 11:55 PM > Subject: Re: [AccessD] Actual Good News! > > >> Hmmm... I smell a "let's get developers to move to this" kinda thing >> going >> here. >> >> And it just might work. ;-) >> >> John W. Colby >> Colby Consulting >> www.ColbyConsulting.com >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >> Sent: Friday, February 02, 2007 11:38 PM >> To: 'Access Developers discussion and problem solving' >> Subject: [AccessD] Actual Good News! >> >> > http://blogs.msdn.com/access/archive/2007/02/02/access-2007-runtime-and-deve >> loper-extension-will-be-free.aspx >> >> >> Dan Waters >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From mwp.reid at qub.ac.uk Sat Feb 3 12:45:53 2007 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Sat, 3 Feb 2007 18:45:53 -0000 Subject: [AccessD] Actual Good News! References: <01ed01c7479f$8bc64ef0$657aa8c0@m6805> <000801c747b2$7f6a6b60$8d4beb44@50NM721> Message-ID: I do know they where hoping the use of templates would take of. They are providing a tool that will shred databases up into templates which can then appear in the interface just like an MS one. I was told this was a distinct tool which they would make available but now its part of the dev tools. Still seems odd though. Not liek them to give you something for nothing. Maritn Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of William Hindman Sent: Sat 03/02/2007 16:43 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Actual Good News! ...exactly, more Office Standard vs Office Pro ...don't see any MS revenues in that move ...still makes no sense, thus I await the other shoe dropping. ...maybe the SQL Server group has its own fe .net rad in the wings ...that might explain the Access dev move ...we can always hope. William Hindman ----- Original Message ----- From: "JWColby" To: "'Access Developers discussion and problem solving'" Sent: Saturday, February 03, 2007 9:28 AM Subject: Re: [AccessD] Actual Good News! > Well, that assumes that you do not use automation of course. If you > automate word or excel or any other office app, then a copy of that has to > be on the workstation. It really means that they can buy the cheaper > version of office without Access. > > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman > Sent: Saturday, February 03, 2007 1:49 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Actual Good News! > > ...strange marketing move though ...buy one copy of Access and run your > whole company without having to buy another one ...it would also appear to > kick the Office Pro package in the teeth to the same extent ...not that I > mind of course but the end result in MS terms would appear to be more > Access > dbs with fewer sales ...I'm missing something in the logic behind this. > > William Hindman > > ----- Original Message ----- > From: "JWColby" > To: "'Access Developers discussion and problem solving'" > > Sent: Friday, February 02, 2007 11:55 PM > Subject: Re: [AccessD] Actual Good News! > > >> Hmmm... I smell a "let's get developers to move to this" kinda thing >> going >> here. >> >> And it just might work. ;-) >> >> John W. Colby >> Colby Consulting >> www.ColbyConsulting.com >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >> Sent: Friday, February 02, 2007 11:38 PM >> To: 'Access Developers discussion and problem solving' >> Subject: [AccessD] Actual Good News! >> >> > http://blogs.msdn.com/access/archive/2007/02/02/access-2007-runtime-and-deve >> loper-extension-will-be-free.aspx >> >> >> Dan Waters >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 setel.com Sun Feb 4 08:54:25 2007 From: ssharkins at setel.com (Susan Harkins) Date: Sun, 4 Feb 2007 09:54:25 -0500 Subject: [AccessD] acwzmain Message-ID: <002301c7486c$5da2b2c0$b234fad1@SUSANONE> After reinstalling Office 2003, I have acwzmain back in my Project Explorer. Now, I thought this was an 2000 or XP thing - I promise, it has not been showing in my 2003 VBE. Is it supposed to be in 2003? If not, how can I get rid of it? Can I at least hide it in the PE? Susan H. From dwaters at usinternet.com Sun Feb 4 10:40:27 2007 From: dwaters at usinternet.com (Dan Waters) Date: Sun, 4 Feb 2007 10:40:27 -0600 Subject: [AccessD] Why is Runtime Free? Message-ID: <00ce01c7487b$2db01440$0200a8c0@danwaters> I've been reading through Microsoft's site on Access 2007, and found a couple of things: 1) The user level security model now in Access 2003 and previous is removed in Access 2007. However, you will be able to upgrade an Access 2003 database and continue to use the current user level security model. 2) You can develop Access Projects (.adp) in Access 2007. Without a security model, developers can't develop useful multi-user databases. By removing security from Access 2007, and making the runtime version free, developers are encouraged to use Access, but forced to use a different BE database. This forcing/encouraging will (MS hopes) lead to more usage of SQL Server 2005 where it's security model can be used to protect the data. The full versions of SQL Server are profitable for MS, as well as competitive with Oracle in some situations (I think). Well - that's my guess! Dan Waters From jengross at gte.net Sun Feb 4 16:05:27 2007 From: jengross at gte.net (Jennifer Gross) Date: Sun, 04 Feb 2007 14:05:27 -0800 Subject: [AccessD] ADO code stopped working Message-ID: <009f01c748a8$9496b9c0$6401a8c0@jefferson> Hi Everyone, W2K SP4 / A2K SP3 / terminal server I have a database that has some DAO and some ADO code. Recently all ADO stopped working. DAO is still working fine. Anytime code utilizing ADO runs it shuts down the database abruptly, leaving the LDB file. We were also having problems with the Windows Management databases locking up and a reinstall of the latest MDAC took care of that problem, but did not solve the ADO problem. ADO was working fine for end of year reporting. There are no missing references. After the MDAC reinstall I unchecked references, closed down, opened up and rechecked references. Any help would be greatly appreciated. Thank you, Jennifer Gross databasics 2839 Shirley Drive Newbury Park, CA 91320-3068 office: (805) 480-1921 fax: (805) 499-0467 From darrend at nimble.com.au Sun Feb 4 16:26:33 2007 From: darrend at nimble.com.au (Darren DICK) Date: Mon, 5 Feb 2007 09:26:33 +1100 Subject: [AccessD] A2003:Determining Background colour of the desktop In-Reply-To: <45C266AE.27258.2EDB385@stuart.lexacorp.com.pg> Message-ID: <200702042226.l14MQdO04505@databaseadvisors.com> Stuart Work of genius - well done and thanks Darren ------------------ -----Original Message----- From: Stuart McLachlan [mailto:stuart at lexacorp.com.pg] Sent: Friday, 2 February 2007 9:16 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2003:Determining Background colour of the desktop On 2 Feb 2007 at 8:47, Darren DICK wrote: > Does anyone know how to determine the background colour of the desktop? > > I have a form I want to set its background colour to match Look up "System Color Constants" in VBA Help (remember to omit the "u" ) Specifically "vbDesktop 0x80000001 Desktop color " So set the Detail Backcolor property to &H80000001 or to -2147483647 -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Sun Feb 4 18:54:36 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Sun, 4 Feb 2007 16:54:36 -0800 Subject: [AccessD] ADO code stopped working In-Reply-To: <009f01c748a8$9496b9c0$6401a8c0@jefferson> Message-ID: <007e01c748c0$354985c0$0201a8c0@HAL9005> I would whip up a small app with some ado code to see if the problem is inside your app or outside of it. Does your app compile? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Sunday, February 04, 2007 2:05 PM To: AccessD List Subject: [AccessD] ADO code stopped working Hi Everyone, W2K SP4 / A2K SP3 / terminal server I have a database that has some DAO and some ADO code. Recently all ADO stopped working. DAO is still working fine. Anytime code utilizing ADO runs it shuts down the database abruptly, leaving the LDB file. We were also having problems with the Windows Management databases locking up and a reinstall of the latest MDAC took care of that problem, but did not solve the ADO problem. ADO was working fine for end of year reporting. There are no missing references. After the MDAC reinstall I unchecked references, closed down, opened up and rechecked references. Any help would be greatly appreciated. Thank you, Jennifer Gross databasics 2839 Shirley Drive Newbury Park, CA 91320-3068 office: (805) 480-1921 fax: (805) 499-0467 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.17.24/668 - Release Date: 2/4/2007 1:30 AM From martyconnelly at shaw.ca Sun Feb 4 19:36:33 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sun, 04 Feb 2007 17:36:33 -0800 Subject: [AccessD] ADO code stopped working In-Reply-To: <009f01c748a8$9496b9c0$6401a8c0@jefferson> References: <009f01c748a8$9496b9c0$6401a8c0@jefferson> Message-ID: <45C68A21.2020108@shaw.ca> If you look at the references you will see Microsoft ActiveX Data Object 2.0 Library Microsoft ActiveX Data Object 2.1 Library Microsoft ActiveX Data Object 2.5 Library Microsoft ActiveX Data Object 2.8 Library However, they refer to the following files (respectively): see path name msado20.tlb msado21.tlb msado25.tlb msado15.tlb Point at which ever is msado15.tlb that is default current one active This applies through all the mdacs http://support.microsoft.com/kb/q201576/ Jennifer Gross wrote: >Hi Everyone, > >W2K SP4 / A2K SP3 / terminal server > >I have a database that has some DAO and some ADO code. Recently all ADO >stopped working. DAO is still working fine. Anytime code utilizing ADO >runs it shuts down the database abruptly, leaving the LDB file. We were >also having problems with the Windows Management databases locking up >and a reinstall of the latest MDAC took care of that problem, but did >not solve the ADO problem. ADO was working fine for end of year >reporting. There are no missing references. After the MDAC reinstall I >unchecked references, closed down, opened up and rechecked references. > >Any help would be greatly appreciated. > >Thank you, > >Jennifer Gross >databasics >2839 Shirley Drive >Newbury Park, CA 91320-3068 >office: (805) 480-1921 >fax: (805) 499-0467 > > > > -- Marty Connelly Victoria, B.C. Canada From wdhindman at dejpolsystems.com Sun Feb 4 21:40:12 2007 From: wdhindman at dejpolsystems.com (William Hindman) Date: Sun, 4 Feb 2007 22:40:12 -0500 Subject: [AccessD] ADO code stopped working References: <009f01c748a8$9496b9c0$6401a8c0@jefferson> <45C68A21.2020108@shaw.ca> Message-ID: <002901c748d7$5844f070$8d4beb44@50NM721> ...another gem for the archive. William Hindman ----- Original Message ----- From: "MartyConnelly" To: "Access Developers discussion and problem solving" Sent: Sunday, February 04, 2007 8:36 PM Subject: Re: [AccessD] ADO code stopped working > If you look at the references you will see > > Microsoft ActiveX Data Object 2.0 Library > Microsoft ActiveX Data Object 2.1 Library > Microsoft ActiveX Data Object 2.5 Library > Microsoft ActiveX Data Object 2.8 Library > > However, they refer to the following files (respectively): see path name > > msado20.tlb > msado21.tlb > msado25.tlb > msado15.tlb > > Point at which ever is msado15.tlb > that is default current one active > > > This applies through all the mdacs > http://support.microsoft.com/kb/q201576/ > > Jennifer Gross wrote: > >>Hi Everyone, >> >>W2K SP4 / A2K SP3 / terminal server >> >>I have a database that has some DAO and some ADO code. Recently all ADO >>stopped working. DAO is still working fine. Anytime code utilizing ADO >>runs it shuts down the database abruptly, leaving the LDB file. We were >>also having problems with the Windows Management databases locking up >>and a reinstall of the latest MDAC took care of that problem, but did >>not solve the ADO problem. ADO was working fine for end of year >>reporting. There are no missing references. After the MDAC reinstall I >>unchecked references, closed down, opened up and rechecked references. >> >>Any help would be greatly appreciated. >> >>Thank you, >> >>Jennifer Gross >>databasics >>2839 Shirley Drive >>Newbury Park, CA 91320-3068 >>office: (805) 480-1921 >>fax: (805) 499-0467 >> >> >> >> > > -- > 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 Sun Feb 4 21:55:15 2007 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 05 Feb 2007 13:55:15 +1000 Subject: [AccessD] ADO code stopped working In-Reply-To: <45C68A21.2020108@shaw.ca> References: <009f01c748a8$9496b9c0$6401a8c0@jefferson>, <45C68A21.2020108@shaw.ca> Message-ID: <45C73743.30829.6CA2FDE4@stuart.lexacorp.com.pg> I think you'll find that it is msado15.dll that you need to point to. The active one is a Dynaic Link Library (.dll), all the other ones will be Type Libraries(.tlb) -- Stuart On 4 Feb 2007 at 17:36, MartyConnelly wrote: > If you look at the references you will see > > Microsoft ActiveX Data Object 2.0 Library > Microsoft ActiveX Data Object 2.1 Library > Microsoft ActiveX Data Object 2.5 Library > Microsoft ActiveX Data Object 2.8 Library > > However, they refer to the following files (respectively): see path name > > msado20.tlb > msado21.tlb > msado25.tlb > msado15.tlb > > Point at which ever is msado15.tlb > that is default current one active > > > This applies through all the mdacs > http://support.microsoft.com/kb/q201576/ > > Jennifer Gross wrote: > > >Hi Everyone, > > > >W2K SP4 / A2K SP3 / terminal server > > > >I have a database that has some DAO and some ADO code. Recently all ADO > >stopped working. DAO is still working fine. Anytime code utilizing ADO > >runs it shuts down the database abruptly, leaving the LDB file. We were > >also having problems with the Windows Management databases locking up > >and a reinstall of the latest MDAC took care of that problem, but did > >not solve the ADO problem. ADO was working fine for end of year > >reporting. There are no missing references. After the MDAC reinstall I > >unchecked references, closed down, opened up and rechecked references. > > > >Any help would be greatly appreciated. > > > >Thank you, > > > >Jennifer Gross > >databasics > >2839 Shirley Drive > >Newbury Park, CA 91320-3068 > >office: (805) 480-1921 > >fax: (805) 499-0467 > > > > > > > > > > -- > 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 jengross at gte.net Sun Feb 4 22:00:43 2007 From: jengross at gte.net (Jennifer Gross) Date: Sun, 04 Feb 2007 20:00:43 -0800 Subject: [AccessD] ADO code stopped working In-Reply-To: <007e01c748c0$354985c0$0201a8c0@HAL9005> Message-ID: <001d01c748da$3984e6b0$6401a8c0@jefferson> Thanks for the suggestions. I set the references like Marty suggested and am still getting the problem. I am using the Getz Developers Handbook code for looping through parameters in a select query: Dim cmd As ADODB.Command Dim rst As ADODB.Recordset Dim prm As ADODB.Parameter Dim cat As ADOX.Catalog Dim prc As ADOX.Procedure Set cat = New ADOX.Catalog * cat.ActiveConnection = CurrentProject.Connection * Set prc = cat.Procedures("TheQuery") Set cmd = prc.Command For Each prm In cmd.Parameters prm.Value = Eval(prm.Name) Next prm Set rst = cmd.Execute If I don't use the query with parameters, but instead base the recordset on the table, then it works fine: Set rst = New ADODB.Recordset Set rst.ActiveConnection = CurrentProject.Connection rst.CursorType = adOpenForwardOnly rst.LockType = adLockReadOnly rst.Open "TheTable" I am getting the same results whether the code is in the existing FE or if I create a new db with the ADO code as Rocky suggested. Any thoughts? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Sunday, February 04, 2007 4:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] ADO code stopped working I would whip up a small app with some ado code to see if the problem is inside your app or outside of it. Does your app compile? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Sunday, February 04, 2007 2:05 PM To: AccessD List Subject: [AccessD] ADO code stopped working Hi Everyone, W2K SP4 / A2K SP3 / terminal server I have a database that has some DAO and some ADO code. Recently all ADO stopped working. DAO is still working fine. Anytime code utilizing ADO runs it shuts down the database abruptly, leaving the LDB file. We were also having problems with the Windows Management databases locking up and a reinstall of the latest MDAC took care of that problem, but did not solve the ADO problem. ADO was working fine for end of year reporting. There are no missing references. After the MDAC reinstall I unchecked references, closed down, opened up and rechecked references. Any help would be greatly appreciated. Thank you, Jennifer Gross databasics 2839 Shirley Drive Newbury Park, CA 91320-3068 office: (805) 480-1921 fax: (805) 499-0467 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.17.24/668 - Release Date: 2/4/2007 1:30 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Sun Feb 4 22:01:26 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sun, 04 Feb 2007 20:01:26 -0800 Subject: [AccessD] ADO code stopped working In-Reply-To: <002901c748d7$5844f070$8d4beb44@50NM721> References: <009f01c748a8$9496b9c0$6401a8c0@jefferson> <45C68A21.2020108@shaw.ca> <002901c748d7$5844f070$8d4beb44@50NM721> Message-ID: <45C6AC16.40006@shaw.ca> Well assuming you have installed MDAC 2.8 The Access reference Microsoft ActiveX Data Object 2.8 Library should point at C:\Program Files\Common Files\System\ado\msado15.dll Depending on the upgrade path you may find the default ADO Access reference pointing at C:\Program Files\Common Files\System\ado\msado21.tlb which is quite antique, circa 1999, so switch it The older tlb versions give MDAC backward compatibility William Hindman wrote: >...another gem for the archive. > >William Hindman > >----- Original Message ----- >From: "MartyConnelly" >To: "Access Developers discussion and problem solving" > >Sent: Sunday, February 04, 2007 8:36 PM >Subject: Re: [AccessD] ADO code stopped working > > > > >>If you look at the references you will see >> >>Microsoft ActiveX Data Object 2.0 Library >>Microsoft ActiveX Data Object 2.1 Library >>Microsoft ActiveX Data Object 2.5 Library >>Microsoft ActiveX Data Object 2.8 Library >> >>However, they refer to the following files (respectively): see path name >> >>msado20.tlb >>msado21.tlb >>msado25.tlb >>msado15.tlb >> >>Point at which ever is msado15.tlb >>that is default current one active >> >> >>This applies through all the mdacs >>http://support.microsoft.com/kb/q201576/ >> >>Jennifer Gross wrote: >> >> >> >>>Hi Everyone, >>> >>>W2K SP4 / A2K SP3 / terminal server >>> >>>I have a database that has some DAO and some ADO code. Recently all ADO >>>stopped working. DAO is still working fine. Anytime code utilizing ADO >>>runs it shuts down the database abruptly, leaving the LDB file. We were >>>also having problems with the Windows Management databases locking up >>>and a reinstall of the latest MDAC took care of that problem, but did >>>not solve the ADO problem. ADO was working fine for end of year >>>reporting. There are no missing references. After the MDAC reinstall I >>>unchecked references, closed down, opened up and rechecked references. >>> >>>Any help would be greatly appreciated. >>> >>>Thank you, >>> >>>Jennifer Gross >>>databasics >>>2839 Shirley Drive >>>Newbury Park, CA 91320-3068 >>>office: (805) 480-1921 >>>fax: (805) 499-0467 >>> >>> >>> >>> >>> >>> >>-- >>Marty Connelly >>Victoria, B.C. >>Canada >> >>-- >>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 jengross at gte.net Sun Feb 4 22:07:38 2007 From: jengross at gte.net (Jennifer Gross) Date: Sun, 04 Feb 2007 20:07:38 -0800 Subject: [AccessD] ADO code stopped working In-Reply-To: <001d01c748da$3984e6b0$6401a8c0@jefferson> Message-ID: <001e01c748db$2fc2c600$6401a8c0@jefferson> Oops, forgot to mention, the code is failing on the starred lines. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Sunday, February 04, 2007 8:01 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] ADO code stopped working Thanks for the suggestions. I set the references like Marty suggested and am still getting the problem. I am using the Getz Developers Handbook code for looping through parameters in a select query: Dim cmd As ADODB.Command Dim rst As ADODB.Recordset Dim prm As ADODB.Parameter Dim cat As ADOX.Catalog Dim prc As ADOX.Procedure Set cat = New ADOX.Catalog * cat.ActiveConnection = CurrentProject.Connection * Set prc = cat.Procedures("TheQuery") Set cmd = prc.Command For Each prm In cmd.Parameters prm.Value = Eval(prm.Name) Next prm Set rst = cmd.Execute If I don't use the query with parameters, but instead base the recordset on the table, then it works fine: Set rst = New ADODB.Recordset Set rst.ActiveConnection = CurrentProject.Connection rst.CursorType = adOpenForwardOnly rst.LockType = adLockReadOnly rst.Open "TheTable" I am getting the same results whether the code is in the existing FE or if I create a new db with the ADO code as Rocky suggested. Any thoughts? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Sunday, February 04, 2007 4:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] ADO code stopped working I would whip up a small app with some ado code to see if the problem is inside your app or outside of it. Does your app compile? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Sunday, February 04, 2007 2:05 PM To: AccessD List Subject: [AccessD] ADO code stopped working Hi Everyone, W2K SP4 / A2K SP3 / terminal server I have a database that has some DAO and some ADO code. Recently all ADO stopped working. DAO is still working fine. Anytime code utilizing ADO runs it shuts down the database abruptly, leaving the LDB file. We were also having problems with the Windows Management databases locking up and a reinstall of the latest MDAC took care of that problem, but did not solve the ADO problem. ADO was working fine for end of year reporting. There are no missing references. After the MDAC reinstall I unchecked references, closed down, opened up and rechecked references. Any help would be greatly appreciated. Thank you, Jennifer Gross databasics 2839 Shirley Drive Newbury Park, CA 91320-3068 office: (805) 480-1921 fax: (805) 499-0467 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.17.24/668 - Release Date: 2/4/2007 1:30 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sun Feb 4 22:16:24 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sun, 04 Feb 2007 20:16:24 -0800 Subject: [AccessD] ADO code stopped working In-Reply-To: <001d01c748da$3984e6b0$6401a8c0@jefferson> References: <001d01c748da$3984e6b0$6401a8c0@jefferson> Message-ID: <45C6AF98.2090203@shaw.ca> tlb/dll My eyeballs get fuzzy watching Superbowl commercials However you are using ADOX, so you need one more additional reference if it is 2.8 MDAC you need a reference to The Access reference Microsoft ActiveX Data Object 2.7 Recordsets Library should point at C:\Program Files\Common Files\System\ado\msador15.dll Jennifer Gross wrote: >Thanks for the suggestions. I set the references like Marty suggested >and am still getting the problem. I am using the Getz Developers >Handbook code for looping through parameters in a select query: > > Dim cmd As ADODB.Command > Dim rst As ADODB.Recordset > Dim prm As ADODB.Parameter > Dim cat As ADOX.Catalog > Dim prc As ADOX.Procedure > > Set cat = New ADOX.Catalog >* cat.ActiveConnection = CurrentProject.Connection >* Set prc = cat.Procedures("TheQuery") > Set cmd = prc.Command > For Each prm In cmd.Parameters > prm.Value = Eval(prm.Name) > Next prm > Set rst = cmd.Execute > >If I don't use the query with parameters, but instead base the recordset >on the table, then it works fine: > > Set rst = New ADODB.Recordset > Set rst.ActiveConnection = CurrentProject.Connection > rst.CursorType = adOpenForwardOnly > rst.LockType = adLockReadOnly > rst.Open "TheTable" > >I am getting the same results whether the code is in the existing FE or >if I create a new db with the ADO code as Rocky suggested. > >Any thoughts? > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin >at Beach Access Software >Sent: Sunday, February 04, 2007 4:55 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] ADO code stopped working > > >I would whip up a small app with some ado code to see if the problem is >inside your app or outside of it. Does your app compile? > >Rocky > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer >Gross >Sent: Sunday, February 04, 2007 2:05 PM >To: AccessD List >Subject: [AccessD] ADO code stopped working > >Hi Everyone, > >W2K SP4 / A2K SP3 / terminal server > >I have a database that has some DAO and some ADO code. Recently all ADO >stopped working. DAO is still working fine. Anytime code utilizing ADO >runs it shuts down the database abruptly, leaving the LDB file. We were >also having problems with the Windows Management databases locking up >and a reinstall of the latest MDAC took care of that problem, but did >not solve the ADO problem. ADO was working fine for end of year >reporting. There are no missing references. After the MDAC reinstall I >unchecked references, closed down, opened up and rechecked references. > >Any help would be greatly appreciated. > >Thank you, > >Jennifer Gross >databasics >2839 Shirley Drive >Newbury Park, CA 91320-3068 >office: (805) 480-1921 >fax: (805) 499-0467 > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >No virus found in this incoming message. >Checked by AVG Free Edition. >Version: 7.5.432 / Virus Database: 268.17.24/668 - Release Date: >2/4/2007 1:30 AM > > > > -- Marty Connelly Victoria, B.C. Canada From jengross at gte.net Sun Feb 4 22:59:40 2007 From: jengross at gte.net (Jennifer Gross) Date: Sun, 04 Feb 2007 20:59:40 -0800 Subject: [AccessD] ADO code stopped working In-Reply-To: <45C6AF98.2090203@shaw.ca> Message-ID: <002501c748e2$74b869c0$6401a8c0@jefferson> Thanks Marty. I have the reference to msado15.dll, it is the latest ActiveX Data Object 2.8 Recordset Library. The code is compiling, but failing. It was running properly in January for end of year reporting and I have made no changes to the code since it ran properly. The DAO code is all still running properly. After 6+ years I finally decided to dip my toe in ADO and it worked well before - I just can't figure out why it is failing now. We have re-installed MDAC. I've unchecked and rechecked the references. I am at a loss. I await the ADO gurus' various ah-ha's. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Sunday, February 04, 2007 8:16 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] ADO code stopped working tlb/dll My eyeballs get fuzzy watching Superbowl commercials However you are using ADOX, so you need one more additional reference if it is 2.8 MDAC you need a reference to The Access reference Microsoft ActiveX Data Object 2.7 Recordsets Library should point at C:\Program Files\Common Files\System\ado\msador15.dll Jennifer Gross wrote: >Thanks for the suggestions. I set the references like Marty suggested >and am still getting the problem. I am using the Getz Developers >Handbook code for looping through parameters in a select query: > > Dim cmd As ADODB.Command > Dim rst As ADODB.Recordset > Dim prm As ADODB.Parameter > Dim cat As ADOX.Catalog > Dim prc As ADOX.Procedure > > Set cat = New ADOX.Catalog >* cat.ActiveConnection = CurrentProject.Connection >* Set prc = cat.Procedures("TheQuery") > Set cmd = prc.Command > For Each prm In cmd.Parameters > prm.Value = Eval(prm.Name) > Next prm > Set rst = cmd.Execute > >If I don't use the query with parameters, but instead base the >recordset on the table, then it works fine: > > Set rst = New ADODB.Recordset > Set rst.ActiveConnection = CurrentProject.Connection > rst.CursorType = adOpenForwardOnly > rst.LockType = adLockReadOnly > rst.Open "TheTable" > >I am getting the same results whether the code is in the existing FE or >if I create a new db with the ADO code as Rocky suggested. > >Any thoughts? > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin >at Beach Access Software >Sent: Sunday, February 04, 2007 4:55 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] ADO code stopped working > > >I would whip up a small app with some ado code to see if the problem is >inside your app or outside of it. Does your app compile? > >Rocky > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer >Gross >Sent: Sunday, February 04, 2007 2:05 PM >To: AccessD List >Subject: [AccessD] ADO code stopped working > >Hi Everyone, > >W2K SP4 / A2K SP3 / terminal server > >I have a database that has some DAO and some ADO code. Recently all >ADO stopped working. DAO is still working fine. Anytime code >utilizing ADO runs it shuts down the database abruptly, leaving the LDB >file. We were also having problems with the Windows Management >databases locking up and a reinstall of the latest MDAC took care of >that problem, but did not solve the ADO problem. ADO was working fine >for end of year reporting. There are no missing references. After the >MDAC reinstall I unchecked references, closed down, opened up and >rechecked references. > >Any help would be greatly appreciated. > >Thank you, > >Jennifer Gross >databasics >2839 Shirley Drive >Newbury Park, CA 91320-3068 >office: (805) 480-1921 >fax: (805) 499-0467 > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >No virus found in this incoming message. >Checked by AVG Free Edition. >Version: 7.5.432 / Virus Database: 268.17.24/668 - Release Date: >2/4/2007 1:30 AM > > > > -- 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 ebarro at verizon.net Sun Feb 4 23:13:44 2007 From: ebarro at verizon.net (Eric Barro) Date: Sun, 04 Feb 2007 21:13:44 -0800 Subject: [AccessD] ADO code stopped working In-Reply-To: <002501c748e2$74b869c0$6401a8c0@jefferson> Message-ID: <0JCZ008OE56O4LYJ@vms042.mailsrvcs.net> Have you tried this? Set cat.ActiveConnection = CurrentProject.Connection --Eric -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Sunday, February 04, 2007 9:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] ADO code stopped working Thanks Marty. I have the reference to msado15.dll, it is the latest ActiveX Data Object 2.8 Recordset Library. The code is compiling, but failing. It was running properly in January for end of year reporting and I have made no changes to the code since it ran properly. The DAO code is all still running properly. After 6+ years I finally decided to dip my toe in ADO and it worked well before - I just can't figure out why it is failing now. We have re-installed MDAC. I've unchecked and rechecked the references. I am at a loss. I await the ADO gurus' various ah-ha's. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Sunday, February 04, 2007 8:16 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] ADO code stopped working tlb/dll My eyeballs get fuzzy watching Superbowl commercials However you are using ADOX, so you need one more additional reference if it is 2.8 MDAC you need a reference to The Access reference Microsoft ActiveX Data Object 2.7 Recordsets Library should point at C:\Program Files\Common Files\System\ado\msador15.dll Jennifer Gross wrote: >Thanks for the suggestions. I set the references like Marty suggested >and am still getting the problem. I am using the Getz Developers >Handbook code for looping through parameters in a select query: > > Dim cmd As ADODB.Command > Dim rst As ADODB.Recordset > Dim prm As ADODB.Parameter > Dim cat As ADOX.Catalog > Dim prc As ADOX.Procedure > > Set cat = New ADOX.Catalog >* cat.ActiveConnection = CurrentProject.Connection >* Set prc = cat.Procedures("TheQuery") > Set cmd = prc.Command > For Each prm In cmd.Parameters > prm.Value = Eval(prm.Name) > Next prm > Set rst = cmd.Execute > >If I don't use the query with parameters, but instead base the >recordset on the table, then it works fine: > > Set rst = New ADODB.Recordset > Set rst.ActiveConnection = CurrentProject.Connection > rst.CursorType = adOpenForwardOnly > rst.LockType = adLockReadOnly > rst.Open "TheTable" > >I am getting the same results whether the code is in the existing FE or >if I create a new db with the ADO code as Rocky suggested. > >Any thoughts? > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin >at Beach Access Software >Sent: Sunday, February 04, 2007 4:55 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] ADO code stopped working > > >I would whip up a small app with some ado code to see if the problem is >inside your app or outside of it. Does your app compile? > >Rocky > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer >Gross >Sent: Sunday, February 04, 2007 2:05 PM >To: AccessD List >Subject: [AccessD] ADO code stopped working > >Hi Everyone, > >W2K SP4 / A2K SP3 / terminal server > >I have a database that has some DAO and some ADO code. Recently all >ADO stopped working. DAO is still working fine. Anytime code >utilizing ADO runs it shuts down the database abruptly, leaving the LDB >file. We were also having problems with the Windows Management >databases locking up and a reinstall of the latest MDAC took care of >that problem, but did not solve the ADO problem. ADO was working fine >for end of year reporting. There are no missing references. After the >MDAC reinstall I unchecked references, closed down, opened up and >rechecked references. > >Any help would be greatly appreciated. > >Thank you, > >Jennifer Gross >databasics >2839 Shirley Drive >Newbury Park, CA 91320-3068 >office: (805) 480-1921 >fax: (805) 499-0467 > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >No virus found in this incoming message. >Checked by AVG Free Edition. >Version: 7.5.432 / Virus Database: 268.17.24/668 - Release Date: >2/4/2007 1:30 AM > > > > -- 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 -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.411 / Virus Database: 268.17.24/668 - Release Date: 2/4/2007 From martyconnelly at shaw.ca Sun Feb 4 23:15:50 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sun, 04 Feb 2007 21:15:50 -0800 Subject: [AccessD] ADO code stopped working In-Reply-To: <002501c748e2$74b869c0$6401a8c0@jefferson> References: <002501c748e2$74b869c0$6401a8c0@jefferson> Message-ID: <45C6BD86.1080300@shaw.ca> You need two references set Microsoft ActiveX Data Object 2.7 Recordsets Library msador15.dll for ADOX and Microsoft ActiveX Data Object 2.8 Library msado15.dll for ADODB Jennifer Gross wrote: >Thanks Marty. I have the reference to msado15.dll, it is the latest >ActiveX Data Object 2.8 Recordset Library. The code is compiling, but >failing. It was running properly in January for end of year reporting >and I have made no changes to the code since it ran properly. The DAO >code is all still running properly. After 6+ years I finally decided to >dip my toe in ADO and it worked well before - I just can't figure out >why it is failing now. We have re-installed MDAC. I've unchecked and >rechecked the references. I am at a loss. I await the ADO gurus' >various ah-ha's. > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly >Sent: Sunday, February 04, 2007 8:16 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] ADO code stopped working > > >tlb/dll My eyeballs get fuzzy watching Superbowl commercials > >However you are using ADOX, so you need one more additional reference if >it is 2.8 MDAC you need a reference to > >The Access reference >Microsoft ActiveX Data Object 2.7 Recordsets Library >should point at >C:\Program Files\Common Files\System\ado\msador15.dll > >Jennifer Gross wrote: > > > >>Thanks for the suggestions. I set the references like Marty suggested >>and am still getting the problem. I am using the Getz Developers >>Handbook code for looping through parameters in a select query: >> >> Dim cmd As ADODB.Command >> Dim rst As ADODB.Recordset >> Dim prm As ADODB.Parameter >> Dim cat As ADOX.Catalog >> Dim prc As ADOX.Procedure >> >> Set cat = New ADOX.Catalog >>* cat.ActiveConnection = CurrentProject.Connection >>* Set prc = cat.Procedures("TheQuery") >> Set cmd = prc.Command >> For Each prm In cmd.Parameters >> prm.Value = Eval(prm.Name) >> Next prm >> Set rst = cmd.Execute >> >>If I don't use the query with parameters, but instead base the >>recordset on the table, then it works fine: >> >> Set rst = New ADODB.Recordset >> Set rst.ActiveConnection = CurrentProject.Connection >> rst.CursorType = adOpenForwardOnly >> rst.LockType = adLockReadOnly >> rst.Open "TheTable" >> >>I am getting the same results whether the code is in the existing FE or >> >> > > > >>if I create a new db with the ADO code as Rocky suggested. >> >>Any thoughts? >> >>Jennifer >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin >> >> > > > >>at Beach Access Software >>Sent: Sunday, February 04, 2007 4:55 PM >>To: 'Access Developers discussion and problem solving' >>Subject: Re: [AccessD] ADO code stopped working >> >> >>I would whip up a small app with some ado code to see if the problem is >> >> > > > >>inside your app or outside of it. Does your app compile? >> >>Rocky >> >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer >>Gross >>Sent: Sunday, February 04, 2007 2:05 PM >>To: AccessD List >>Subject: [AccessD] ADO code stopped working >> >>Hi Everyone, >> >>W2K SP4 / A2K SP3 / terminal server >> >>I have a database that has some DAO and some ADO code. Recently all >>ADO stopped working. DAO is still working fine. Anytime code >>utilizing ADO runs it shuts down the database abruptly, leaving the LDB >> >> > > > >>file. We were also having problems with the Windows Management >>databases locking up and a reinstall of the latest MDAC took care of >>that problem, but did not solve the ADO problem. ADO was working fine >>for end of year reporting. There are no missing references. After the >> >> > > > >>MDAC reinstall I unchecked references, closed down, opened up and >>rechecked references. >> >>Any help would be greatly appreciated. >> >>Thank you, >> >>Jennifer Gross >>databasics >>2839 Shirley Drive >>Newbury Park, CA 91320-3068 >>office: (805) 480-1921 >>fax: (805) 499-0467 >> >> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >>-- >>No virus found in this incoming message. >>Checked by AVG Free Edition. >>Version: 7.5.432 / Virus Database: 268.17.24/668 - Release Date: >>2/4/2007 1:30 AM >> >> >> >> >> >> > > > -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Sun Feb 4 23:39:10 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sun, 04 Feb 2007 21:39:10 -0800 Subject: [AccessD] ADO code stopped working In-Reply-To: <45C6BD86.1080300@shaw.ca> References: <002501c748e2$74b869c0$6401a8c0@jefferson> <45C6BD86.1080300@shaw.ca> Message-ID: <45C6C2FE.50407@shaw.ca> OOps try resetting this reference Microsoft ADO Ext for 2.8 for DDL and Secuirity C:\Program Files\Common Files\System\ado\msadox.dll MartyConnelly wrote: >You need two references set > >Microsoft ActiveX Data Object 2.7 Recordsets Library > >msador15.dll for ADOX >and > >Microsoft ActiveX Data Object 2.8 Library > >msado15.dll for ADODB > > > >Jennifer Gross wrote: > > > >>Thanks Marty. I have the reference to msado15.dll, it is the latest >>ActiveX Data Object 2.8 Recordset Library. The code is compiling, but >>failing. It was running properly in January for end of year reporting >>and I have made no changes to the code since it ran properly. The DAO >>code is all still running properly. After 6+ years I finally decided to >>dip my toe in ADO and it worked well before - I just can't figure out >>why it is failing now. We have re-installed MDAC. I've unchecked and >>rechecked the references. I am at a loss. I await the ADO gurus' >>various ah-ha's. >> >>Jennifer >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly >>Sent: Sunday, February 04, 2007 8:16 PM >>To: Access Developers discussion and problem solving >>Subject: Re: [AccessD] ADO code stopped working >> >> >>tlb/dll My eyeballs get fuzzy watching Superbowl commercials >> >>However you are using ADOX, so you need one more additional reference if >>it is 2.8 MDAC you need a reference to >> >>The Access reference >>Microsoft ActiveX Data Object 2.7 Recordsets Library >>should point at >>C:\Program Files\Common Files\System\ado\msador15.dll >> >>Jennifer Gross wrote: >> >> >> >> >> >>>Thanks for the suggestions. I set the references like Marty suggested >>>and am still getting the problem. I am using the Getz Developers >>>Handbook code for looping through parameters in a select query: >>> >>> Dim cmd As ADODB.Command >>> Dim rst As ADODB.Recordset >>> Dim prm As ADODB.Parameter >>> Dim cat As ADOX.Catalog >>> Dim prc As ADOX.Procedure >>> >>> Set cat = New ADOX.Catalog >>>* cat.ActiveConnection = CurrentProject.Connection >>>* Set prc = cat.Procedures("TheQuery") >>> Set cmd = prc.Command >>> For Each prm In cmd.Parameters >>> prm.Value = Eval(prm.Name) >>> Next prm >>> Set rst = cmd.Execute >>> >>>If I don't use the query with parameters, but instead base the >>>recordset on the table, then it works fine: >>> >>> Set rst = New ADODB.Recordset >>> Set rst.ActiveConnection = CurrentProject.Connection >>> rst.CursorType = adOpenForwardOnly >>> rst.LockType = adLockReadOnly >>> rst.Open "TheTable" >>> >>>I am getting the same results whether the code is in the existing FE or >>> >>> >>> >>> >> >> >> >> >>>if I create a new db with the ADO code as Rocky suggested. >>> >>>Any thoughts? >>> >>>Jennifer >>> >>>-----Original Message----- >>>From: accessd-bounces at databaseadvisors.com >>>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin >>> >>> >>> >>> >> >> >> >> >>>at Beach Access Software >>>Sent: Sunday, February 04, 2007 4:55 PM >>>To: 'Access Developers discussion and problem solving' >>>Subject: Re: [AccessD] ADO code stopped working >>> >>> >>>I would whip up a small app with some ado code to see if the problem is >>> >>> >>> >>> >> >> >> >> >>>inside your app or outside of it. Does your app compile? >>> >>>Rocky >>> >>> >>>-----Original Message----- >>>From: accessd-bounces at databaseadvisors.com >>>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer >>>Gross >>>Sent: Sunday, February 04, 2007 2:05 PM >>>To: AccessD List >>>Subject: [AccessD] ADO code stopped working >>> >>>Hi Everyone, >>> >>>W2K SP4 / A2K SP3 / terminal server >>> >>>I have a database that has some DAO and some ADO code. Recently all >>>ADO stopped working. DAO is still working fine. Anytime code >>>utilizing ADO runs it shuts down the database abruptly, leaving the LDB >>> >>> >>> >>> >> >> >> >> >>>file. We were also having problems with the Windows Management >>>databases locking up and a reinstall of the latest MDAC took care of >>>that problem, but did not solve the ADO problem. ADO was working fine >>>for end of year reporting. There are no missing references. After the >>> >>> >>> >>> >> >> >> >> >>>MDAC reinstall I unchecked references, closed down, opened up and >>>rechecked references. >>> >>>Any help would be greatly appreciated. >>> >>>Thank you, >>> >>>Jennifer Gross >>>databasics >>>2839 Shirley Drive >>>Newbury Park, CA 91320-3068 >>>office: (805) 480-1921 >>>fax: (805) 499-0467 >>> >>> >>>-- >>>AccessD mailing list >>>AccessD at databaseadvisors.com >>>http://databaseadvisors.com/mailman/listinfo/accessd >>>Website: http://www.databaseadvisors.com >>> >>>-- >>>No virus found in this incoming message. >>>Checked by AVG Free Edition. >>>Version: 7.5.432 / Virus Database: 268.17.24/668 - Release Date: >>>2/4/2007 1:30 AM >>> >>> >>> >>> >>> >>> >>> >>> >> >> >> >> > > > -- Marty Connelly Victoria, B.C. Canada From viner at EUnet.yu Mon Feb 5 02:31:44 2007 From: viner at EUnet.yu (Ervin Brindza) Date: Mon, 5 Feb 2007 09:31:44 +0100 Subject: [AccessD] Connections and Performance References: <21447087.1170430574567.JavaMail.root@sniper23> <006c01c74749$94855820$0200a8c0@danwaters> Message-ID: <04ba01c74900$2908d1e0$0100a8c0@RazvojErvin> Dan, how about using temporary tables for adding new records and for reporting? Ervin ----- Original Message ----- From: "Dan Waters" To: "'Access Developers discussion and problem solving'" Sent: Saturday, February 03, 2007 5:12 AM Subject: Re: [AccessD] Connections and Performance > Drew, > > I read this somewhere - either in MS documentation or in a book where I > believe the author. > > Here's the reason I was asking: > > At a certain customer site, they experienced a dramatic performance > slowdown > at a time when about 10 people were logged on concurrently. Each client > PC > has it's own FE. I know that they open the system and leave the process > screens open, all of which are bound. I want to suggest that they > remember > to close the process screens so that just the main screen is open, which > is > not bound. This way a fewer number of connections are being used at any > one > time and performance would probably be acceptable. This particular > customer, I believe, does not have a very good network, so that is part of > the problem. But that's unlikely to get improved, so I wanted to provide > at > least a partial solution, hence my question. > > I've also heard that a connection is made not based on whether a form is > open and bound, but on whether or not there is data traffic between to and > from a table, which only takes a small part of a second. > > So what causes the performance slowdown when only 10 client PC's are > logged > on, and what could be done to improve this? > > Dan Waters > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka > Sent: Friday, February 02, 2007 9:26 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Connections and Performance > > Where are you getting these numbers. Access can have up to 255 > connections. > > Drew > > -----Original Message----- > From: Dan Waters [mailto:dwaters at usinternet.com] > Sent: Friday, February 02, 2007 8:45 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Connections and Performance > > Access has the potential for 8 simultaneous connections, but 3 of them are > reserved for the system's use. That leaves five for users. > > Dan Waters > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby > Sent: Friday, February 02, 2007 8:02 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Connections and Performance > >>But, the connection limit for one BE is 5 FE's. > > What does this mean? I have never heard of any such thing. > > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Friday, February 02, 2007 8:58 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Connections and Performance > > I've read several times that maintaining a connection between a FE and a > BE > will increase the performance of the FE because it doesn't need to > reconnect > before transferring data. The connection here would be a bound form > connected by a table link to a table in the BE. > > But, the connection limit for one BE is 5 FE's. So, will maintaining > connections on more than 5 FE's reduce performance? Seems logical, but I > was wondering if this is correct or is there more to it? > > Thanks! > > Dan Waters > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.432 / Virus Database: 268.17.19/663 - Release Date: 2/1/2007 > 2:28 PM > > From Erwin.Craps at ithelps.eu Mon Feb 5 03:25:52 2007 From: Erwin.Craps at ithelps.eu (Erwin Craps - IT Helps) Date: Mon, 5 Feb 2007 10:25:52 +0100 Subject: [AccessD] Connections and Performance References: <21447087.1170430574567.JavaMail.root@sniper23><006c01c74749$94855820$0200a8c0@danwaters> <04ba01c74900$2908d1e0$0100a8c0@RazvojErvin> Message-ID: <430E80531228BA4497C5EB1A7BA786B002414A@stekelbes.ithelps.local> Did you checked that the virusscanner don't scan mdb? Ik had a bizare problem with a McAfee virusscanner that when eacht time saving a record it pauzed for 2 to 10 seconds. When turning the scanner off it was instant. The client now doesnt use a virusscanner temproraraly, until I get there to find the issue. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Ervin Brindza Sent: Monday, February 05, 2007 9:32 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance Dan, how about using temporary tables for adding new records and for reporting? Ervin ----- Original Message ----- From: "Dan Waters" To: "'Access Developers discussion and problem solving'" Sent: Saturday, February 03, 2007 5:12 AM Subject: Re: [AccessD] Connections and Performance > Drew, > > I read this somewhere - either in MS documentation or in a book where I > believe the author. > > Here's the reason I was asking: > > At a certain customer site, they experienced a dramatic performance > slowdown > at a time when about 10 people were logged on concurrently. Each client > PC > has it's own FE. I know that they open the system and leave the process > screens open, all of which are bound. I want to suggest that they > remember > to close the process screens so that just the main screen is open, which > is > not bound. This way a fewer number of connections are being used at any > one > time and performance would probably be acceptable. This particular > customer, I believe, does not have a very good network, so that is part of > the problem. But that's unlikely to get improved, so I wanted to provide > at > least a partial solution, hence my question. > > I've also heard that a connection is made not based on whether a form is > open and bound, but on whether or not there is data traffic between to and > from a table, which only takes a small part of a second. > > So what causes the performance slowdown when only 10 client PC's are > logged > on, and what could be done to improve this? > > Dan Waters > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka > Sent: Friday, February 02, 2007 9:26 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Connections and Performance > > Where are you getting these numbers. Access can have up to 255 > connections. > > Drew > > -----Original Message----- > From: Dan Waters [mailto:dwaters at usinternet.com] > Sent: Friday, February 02, 2007 8:45 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Connections and Performance > > Access has the potential for 8 simultaneous connections, but 3 of them are > reserved for the system's use. That leaves five for users. > > Dan Waters > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby > Sent: Friday, February 02, 2007 8:02 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Connections and Performance > >>But, the connection limit for one BE is 5 FE's. > > What does this mean? I have never heard of any such thing. > > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Friday, February 02, 2007 8:58 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Connections and Performance > > I've read several times that maintaining a connection between a FE and a > BE > will increase the performance of the FE because it doesn't need to > reconnect > before transferring data. The connection here would be a bound form > connected by a table link to a table in the BE. > > But, the connection limit for one BE is 5 FE's. So, will maintaining > connections on more than 5 FE's reduce performance? Seems logical, but I > was wondering if this is correct or is there more to it? > > Thanks! > > Dan Waters > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.432 / Virus Database: 268.17.19/663 - Release Date: 2/1/2007 > 2:28 PM > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Mon Feb 5 03:46:52 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 05 Feb 2007 10:46:52 +0100 Subject: [AccessD] ADO code stopped working Message-ID: Hi Jennifer You could - for and while debugging - try to separate the connection object: Dim cnn As ADODB.Connection Dim cmd As ADODB.Command Dim rst As ADODB.Recordset Dim prm As ADODB.Parameter Dim cat As ADOX.Catalog Dim prc As ADOX.Procedure Set cat = New ADOX.Catalog Set cnn = CurrentProject.Connection cat.ActiveConnection = cnn I guess you have double-checked the reference: Microsoft ADO Ext. 2.8 for DDL and Security points to ..system32\MSADOX.DLL /gustav >>> jengross at gte.net 05-02-2007 05:00 >>> Thanks for the suggestions. I set the references like Marty suggested and am still getting the problem. I am using the Getz Developers Handbook code for looping through parameters in a select query: Dim cmd As ADODB.Command Dim rst As ADODB.Recordset Dim prm As ADODB.Parameter Dim cat As ADOX.Catalog Dim prc As ADOX.Procedure Set cat = New ADOX.Catalog * cat.ActiveConnection = CurrentProject.Connection * Set prc = cat.Procedures("TheQuery") Set cmd = prc.Command For Each prm In cmd.Parameters prm.Value = Eval(prm.Name) Next prm Set rst = cmd.Execute If I don't use the query with parameters, but instead base the recordset on the table, then it works fine: Set rst = New ADODB.Recordset Set rst.ActiveConnection = CurrentProject.Connection rst.CursorType = adOpenForwardOnly rst.LockType = adLockReadOnly rst.Open "TheTable" I am getting the same results whether the code is in the existing FE or if I create a new db with the ADO code as Rocky suggested. Any thoughts? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Sunday, February 04, 2007 4:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] ADO code stopped working I would whip up a small app with some ado code to see if the problem is inside your app or outside of it. Does your app compile? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Sunday, February 04, 2007 2:05 PM To: AccessD List Subject: [AccessD] ADO code stopped working Hi Everyone, W2K SP4 / A2K SP3 / terminal server I have a database that has some DAO and some ADO code. Recently all ADO stopped working. DAO is still working fine. Anytime code utilizing ADO runs it shuts down the database abruptly, leaving the LDB file. We were also having problems with the Windows Management databases locking up and a reinstall of the latest MDAC took care of that problem, but did not solve the ADO problem. ADO was working fine for end of year reporting. There are no missing references. After the MDAC reinstall I unchecked references, closed down, opened up and rechecked references. Any help would be greatly appreciated. Thank you, Jennifer Gross databasics 2839 Shirley Drive Newbury Park, CA 91320-3068 office: (805) 480-1921 fax: (805) 499-0467 From Gustav at cactus.dk Mon Feb 5 04:01:33 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 05 Feb 2007 11:01:33 +0100 Subject: [AccessD] ADO code stopped working Message-ID: Hi Marty Are you absolutely sure? I have a small test which fills a recordset from a saved query like Jennifer, and I have no reference for the Recordsets Library (never heard of that, by the way, until now - wonder what it does). /gustav >>> martyconnelly at shaw.ca 05-02-2007 06:15 >>> You need two references set Microsoft ActiveX Data Object 2.7 Recordsets Library msador15.dll for ADOX and Microsoft ActiveX Data Object 2.8 Library msado15.dll for ADODB Jennifer Gross wrote: >Thanks Marty. I have the reference to msado15.dll, it is the latest >ActiveX Data Object 2.8 Recordset Library. The code is compiling, but >failing. It was running properly in January for end of year reporting >and I have made no changes to the code since it ran properly. The DAO >code is all still running properly. After 6+ years I finally decided to >dip my toe in ADO and it worked well before - I just can't figure out >why it is failing now. We have re-installed MDAC. I've unchecked and >rechecked the references. I am at a loss. I await the ADO gurus' >various ah-ha's. > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly >Sent: Sunday, February 04, 2007 8:16 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] ADO code stopped working > > >tlb/dll My eyeballs get fuzzy watching Superbowl commercials > >However you are using ADOX, so you need one more additional reference if >it is 2.8 MDAC you need a reference to > >The Access reference >Microsoft ActiveX Data Object 2.7 Recordsets Library >should point at >C:\Program Files\Common Files\System\ado\msador15.dll > >Jennifer Gross wrote: > > > >>Thanks for the suggestions. I set the references like Marty suggested >>and am still getting the problem. I am using the Getz Developers >>Handbook code for looping through parameters in a select query: >> >> Dim cmd As ADODB.Command >> Dim rst As ADODB.Recordset >> Dim prm As ADODB.Parameter >> Dim cat As ADOX.Catalog >> Dim prc As ADOX.Procedure >> >> Set cat = New ADOX.Catalog >>* cat.ActiveConnection = CurrentProject.Connection >>* Set prc = cat.Procedures("TheQuery") >> Set cmd = prc.Command >> For Each prm In cmd.Parameters >> prm.Value = Eval(prm.Name) >> Next prm >> Set rst = cmd.Execute >> >>If I don't use the query with parameters, but instead base the >>recordset on the table, then it works fine: >> >> Set rst = New ADODB.Recordset >> Set rst.ActiveConnection = CurrentProject.Connection >> rst.CursorType = adOpenForwardOnly >> rst.LockType = adLockReadOnly >> rst.Open "TheTable" >> >>I am getting the same results whether the code is in the existing FE or >> >> > > > >>if I create a new db with the ADO code as Rocky suggested. >> >>Any thoughts? >> >>Jennifer >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin >> >> > > > >>at Beach Access Software >>Sent: Sunday, February 04, 2007 4:55 PM >>To: 'Access Developers discussion and problem solving' >>Subject: Re: [AccessD] ADO code stopped working >> >> >>I would whip up a small app with some ado code to see if the problem is >> >> > > > >>inside your app or outside of it. Does your app compile? >> >>Rocky >> >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer >>Gross >>Sent: Sunday, February 04, 2007 2:05 PM >>To: AccessD List >>Subject: [AccessD] ADO code stopped working >> >>Hi Everyone, >> >>W2K SP4 / A2K SP3 / terminal server >> >>I have a database that has some DAO and some ADO code. Recently all >>ADO stopped working. DAO is still working fine. Anytime code >>utilizing ADO runs it shuts down the database abruptly, leaving the LDB >> >> > > > >>file. We were also having problems with the Windows Management >>databases locking up and a reinstall of the latest MDAC took care of >>that problem, but did not solve the ADO problem. ADO was working fine >>for end of year reporting. There are no missing references. After the >> >> > > > >>MDAC reinstall I unchecked references, closed down, opened up and >>rechecked references. >> >>Any help would be greatly appreciated. >> >>Thank you, From dwaters at usinternet.com Mon Feb 5 06:46:22 2007 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 5 Feb 2007 06:46:22 -0600 Subject: [AccessD] Connections and Performance In-Reply-To: <4903052.1170668223026.JavaMail.root@sniper10> References: <21447087.1170430574567.JavaMail.root@sniper23><006c01c74749$94855820$0200a8c0@danwaters><04ba01c74900$2908d1e0$0100a8c0@RazvojErvin> <4903052.1170668223026.JavaMail.root@sniper10> Message-ID: <006f01c74923$bd5d9ba0$0200a8c0@danwaters> Hi Erwin, I think they use McAfee as well! Could you post your solution later on? Thanks! Dan Waters -----Original Message----- Subject: Re: [AccessD] Connections and Performance Did you checked that the virusscanner don't scan mdb? Ik had a bizare problem with a McAfee virusscanner that when eacht time saving a record it pauzed for 2 to 10 seconds. When turning the scanner off it was instant. The client now doesnt use a virusscanner temproraraly, until I get there to find the issue. Erwin -----Original Message----- Subject: Re: [AccessD] Connections and Performance Dan, how about using temporary tables for adding new records and for reporting? Ervin ----- Original Message ----- Subject: Re: [AccessD] Connections and Performance > Drew, > > I read this somewhere - either in MS documentation or in a book where I > believe the author. > > Here's the reason I was asking: > > At a certain customer site, they experienced a dramatic performance > slowdown > at a time when about 10 people were logged on concurrently. Each client > PC > has it's own FE. I know that they open the system and leave the process > screens open, all of which are bound. I want to suggest that they > remember > to close the process screens so that just the main screen is open, which > is > not bound. This way a fewer number of connections are being used at any > one > time and performance would probably be acceptable. This particular > customer, I believe, does not have a very good network, so that is part of > the problem. But that's unlikely to get improved, so I wanted to provide > at > least a partial solution, hence my question. > > I've also heard that a connection is made not based on whether a form is > open and bound, but on whether or not there is data traffic between to and > from a table, which only takes a small part of a second. > > So what causes the performance slowdown when only 10 client PC's are > logged > on, and what could be done to improve this? > > Dan Waters > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka > Sent: Friday, February 02, 2007 9:26 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Connections and Performance > > Where are you getting these numbers. Access can have up to 255 > connections. > > Drew > > -----Original Message----- > From: Dan Waters [mailto:dwaters at usinternet.com] > Sent: Friday, February 02, 2007 8:45 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Connections and Performance > > Access has the potential for 8 simultaneous connections, but 3 of them are > reserved for the system's use. That leaves five for users. > > Dan Waters > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby > Sent: Friday, February 02, 2007 8:02 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Connections and Performance > >>But, the connection limit for one BE is 5 FE's. > > What does this mean? I have never heard of any such thing. > > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Friday, February 02, 2007 8:58 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Connections and Performance > > I've read several times that maintaining a connection between a FE and a > BE > will increase the performance of the FE because it doesn't need to > reconnect > before transferring data. The connection here would be a bound form > connected by a table link to a table in the BE. > > But, the connection limit for one BE is 5 FE's. So, will maintaining > connections on more than 5 FE's reduce performance? Seems logical, but I > was wondering if this is correct or is there more to it? > > Thanks! > > Dan Waters > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.432 / Virus Database: 268.17.19/663 - Release Date: 2/1/2007 > 2:28 PM > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Mon Feb 5 06:46:22 2007 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 5 Feb 2007 06:46:22 -0600 Subject: [AccessD] Connections and Performance In-Reply-To: <4043117.1170664752750.JavaMail.root@sniper56> References: <21447087.1170430574567.JavaMail.root@sniper23><006c01c74749$94855820$0200a8c0@danwaters> <4043117.1170664752750.JavaMail.root@sniper56> Message-ID: <007601c74923$bf2e3cf0$0200a8c0@danwaters> Hi Ervin, Yes - I already do use temp tables in the FE. But - how do you use temp tables for adding new records? That's new to me! Dan Waters -----Original Message----- Subject: Re: [AccessD] Connections and Performance Dan, how about using temporary tables for adding new records and for reporting? Ervin ----- Original Message ----- Subject: Re: [AccessD] Connections and Performance > Drew, > > I read this somewhere - either in MS documentation or in a book where I > believe the author. > > Here's the reason I was asking: > > At a certain customer site, they experienced a dramatic performance > slowdown > at a time when about 10 people were logged on concurrently. Each client > PC > has it's own FE. I know that they open the system and leave the process > screens open, all of which are bound. I want to suggest that they > remember > to close the process screens so that just the main screen is open, which > is > not bound. This way a fewer number of connections are being used at any > one > time and performance would probably be acceptable. This particular > customer, I believe, does not have a very good network, so that is part of > the problem. But that's unlikely to get improved, so I wanted to provide > at > least a partial solution, hence my question. > > I've also heard that a connection is made not based on whether a form is > open and bound, but on whether or not there is data traffic between to and > from a table, which only takes a small part of a second. > > So what causes the performance slowdown when only 10 client PC's are > logged > on, and what could be done to improve this? > > Dan Waters > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka > Sent: Friday, February 02, 2007 9:26 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Connections and Performance > > Where are you getting these numbers. Access can have up to 255 > connections. > > Drew > > -----Original Message----- > From: Dan Waters [mailto:dwaters at usinternet.com] > Sent: Friday, February 02, 2007 8:45 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Connections and Performance > > Access has the potential for 8 simultaneous connections, but 3 of them are > reserved for the system's use. That leaves five for users. > > Dan Waters > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby > Sent: Friday, February 02, 2007 8:02 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Connections and Performance > >>But, the connection limit for one BE is 5 FE's. > > What does this mean? I have never heard of any such thing. > > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Friday, February 02, 2007 8:58 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Connections and Performance > > I've read several times that maintaining a connection between a FE and a > BE > will increase the performance of the FE because it doesn't need to > reconnect > before transferring data. The connection here would be a bound form > connected by a table link to a table in the BE. > > But, the connection limit for one BE is 5 FE's. So, will maintaining > connections on more than 5 FE's reduce performance? Seems logical, but I > was wondering if this is correct or is there more to it? > > Thanks! > > Dan Waters > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.432 / Virus Database: 268.17.19/663 - Release Date: 2/1/2007 > 2:28 PM > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Feb 5 06:52:01 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Mon, 5 Feb 2007 07:52:01 -0500 Subject: [AccessD] Connections and Performance In-Reply-To: <006f01c74923$bd5d9ba0$0200a8c0@danwaters> Message-ID: <003701c74924$6ea7f5e0$657aa8c0@m6805> This happens when the virus scanner attempts to scan the mdb itself (the BE) each time a write occurs. You need to put MDB/MDA/MDE/LDB in the Norton AV file exception list on the SERVER. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, February 05, 2007 7:46 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance Hi Erwin, I think they use McAfee as well! Could you post your solution later on? Thanks! Dan Waters -----Original Message----- Subject: Re: [AccessD] Connections and Performance Did you checked that the virusscanner don't scan mdb? Ik had a bizare problem with a McAfee virusscanner that when eacht time saving a record it pauzed for 2 to 10 seconds. When turning the scanner off it was instant. The client now doesnt use a virusscanner temproraraly, until I get there to find the issue. Erwin -----Original Message----- Subject: Re: [AccessD] Connections and Performance Dan, how about using temporary tables for adding new records and for reporting? Ervin ----- Original Message ----- Subject: Re: [AccessD] Connections and Performance > Drew, > > I read this somewhere - either in MS documentation or in a book where I > believe the author. > > Here's the reason I was asking: > > At a certain customer site, they experienced a dramatic performance > slowdown at a time when about 10 people were logged on concurrently. > Each client > PC > has it's own FE. I know that they open the system and leave the process > screens open, all of which are bound. I want to suggest that they > remember to close the process screens so that just the main screen is > open, which > is > not bound. This way a fewer number of connections are being used at any > one > time and performance would probably be acceptable. This particular > customer, I believe, does not have a very good network, so that is part of > the problem. But that's unlikely to get improved, so I wanted to provide > at > least a partial solution, hence my question. > > I've also heard that a connection is made not based on whether a form is > open and bound, but on whether or not there is data traffic between to and > from a table, which only takes a small part of a second. > > So what causes the performance slowdown when only 10 client PC's are > logged on, and what could be done to improve this? > > Dan Waters > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka > Sent: Friday, February 02, 2007 9:26 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Connections and Performance > > Where are you getting these numbers. Access can have up to 255 > connections. > > Drew > > -----Original Message----- > From: Dan Waters [mailto:dwaters at usinternet.com] > Sent: Friday, February 02, 2007 8:45 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Connections and Performance > > Access has the potential for 8 simultaneous connections, but 3 of them are > reserved for the system's use. That leaves five for users. > > Dan Waters > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby > Sent: Friday, February 02, 2007 8:02 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Connections and Performance > >>But, the connection limit for one BE is 5 FE's. > > What does this mean? I have never heard of any such thing. > > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Friday, February 02, 2007 8:58 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Connections and Performance > > I've read several times that maintaining a connection between a FE and a > BE > will increase the performance of the FE because it doesn't need to > reconnect before transferring data. The connection here would be a > bound form connected by a table link to a table in the BE. > > But, the connection limit for one BE is 5 FE's. So, will maintaining > connections on more than 5 FE's reduce performance? Seems logical, but I > was wondering if this is correct or is there more to it? > > Thanks! > > Dan Waters > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.432 / Virus Database: 268.17.19/663 - Release Date: 2/1/2007 > 2:28 PM > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From viner at EUnet.yu Mon Feb 5 07:38:48 2007 From: viner at EUnet.yu (Ervin Brindza) Date: Mon, 5 Feb 2007 14:38:48 +0100 Subject: [AccessD] Connections and Performance References: <21447087.1170430574567.JavaMail.root@sniper23><006c01c74749$94855820$0200a8c0@danwaters><4043117.1170664752750.JavaMail.root@sniper56> <007601c74923$bf2e3cf0$0200a8c0@danwaters> Message-ID: <009901c7492b$1171a3b0$0100a8c0@RazvojErvin> In my recent project the end users had their own temp tables which resides on their PC. They "fill" the new records in that tables, and that records are moved(e.g. at the end of the work day) to the linked BE tables through VBA code. E. ----- Original Message ----- From: "Dan Waters" To: "'Access Developers discussion and problem solving'" Sent: Monday, February 05, 2007 1:46 PM Subject: Re: [AccessD] Connections and Performance > Hi Ervin, > > Yes - I already do use temp tables in the FE. > > But - how do you use temp tables for adding new records? That's new to > me! > > Dan Waters > > -----Original Message----- > Subject: Re: [AccessD] Connections and Performance > > Dan, > how about using temporary tables for adding new records and for reporting? > Ervin > > ----- Original Message ----- > Subject: Re: [AccessD] Connections and Performance > > >> Drew, >> >> I read this somewhere - either in MS documentation or in a book where I >> believe the author. >> >> Here's the reason I was asking: >> >> At a certain customer site, they experienced a dramatic performance >> slowdown >> at a time when about 10 people were logged on concurrently. Each client >> PC >> has it's own FE. I know that they open the system and leave the process >> screens open, all of which are bound. I want to suggest that they >> remember >> to close the process screens so that just the main screen is open, which >> is >> not bound. This way a fewer number of connections are being used at any >> one >> time and performance would probably be acceptable. This particular >> customer, I believe, does not have a very good network, so that is part >> of >> the problem. But that's unlikely to get improved, so I wanted to provide >> at >> least a partial solution, hence my question. >> >> I've also heard that a connection is made not based on whether a form is >> open and bound, but on whether or not there is data traffic between to >> and >> from a table, which only takes a small part of a second. >> >> So what causes the performance slowdown when only 10 client PC's are >> logged >> on, and what could be done to improve this? >> >> Dan Waters >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka >> Sent: Friday, February 02, 2007 9:26 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Connections and Performance >> >> Where are you getting these numbers. Access can have up to 255 >> connections. >> >> Drew >> >> -----Original Message----- >> From: Dan Waters [mailto:dwaters at usinternet.com] >> Sent: Friday, February 02, 2007 8:45 AM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] Connections and Performance >> >> Access has the potential for 8 simultaneous connections, but 3 of them >> are >> reserved for the system's use. That leaves five for users. >> >> Dan Waters >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby >> Sent: Friday, February 02, 2007 8:02 AM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] Connections and Performance >> >>>But, the connection limit for one BE is 5 FE's. >> >> What does this mean? I have never heard of any such thing. >> >> >> John W. Colby >> Colby Consulting >> www.ColbyConsulting.com >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >> Sent: Friday, February 02, 2007 8:58 AM >> To: 'Access Developers discussion and problem solving' >> Subject: [AccessD] Connections and Performance >> >> I've read several times that maintaining a connection between a FE and a >> BE >> will increase the performance of the FE because it doesn't need to >> reconnect >> before transferring data. The connection here would be a bound form >> connected by a table link to a table in the BE. >> >> But, the connection limit for one BE is 5 FE's. So, will maintaining >> connections on more than 5 FE's reduce performance? Seems logical, but I >> was wondering if this is correct or is there more to it? >> >> Thanks! >> >> Dan Waters >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> >> -- >> No virus found in this incoming message. >> Checked by AVG Free Edition. >> Version: 7.5.432 / Virus Database: 268.17.19/663 - Release Date: 2/1/2007 >> 2:28 PM >> >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.432 / Virus Database: 268.17.19/663 - Release Date: 2/1/2007 > 2:28 PM > > From dwaters at usinternet.com Mon Feb 5 09:04:55 2007 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 5 Feb 2007 09:04:55 -0600 Subject: [AccessD] Connections and Performance In-Reply-To: <18543053.1170683124734.JavaMail.root@sniper25> References: <21447087.1170430574567.JavaMail.root@sniper23><006c01c74749$94855820$0200a8c0@danwaters><4043117.1170664752750.JavaMail.root@sniper56><007601c74923$bf2e3cf0$0200a8c0@danwaters> <18543053.1170683124734.JavaMail.root@sniper25> Message-ID: <00b101c74936$ff0f1a70$0200a8c0@danwaters> Thanks Ervin! I'll need to update immediately, but the concept is the same. Dan -----Original Message----- Subject: Re: [AccessD] Connections and Performance In my recent project the end users had their own temp tables which resides on their PC. They "fill" the new records in that tables, and that records are moved(e.g. at the end of the work day) to the linked BE tables through VBA code. E. ----- Original Message ----- Subject: Re: [AccessD] Connections and Performance > Hi Ervin, > > Yes - I already do use temp tables in the FE. > > But - how do you use temp tables for adding new records? That's new to > me! > > Dan Waters > > -----Original Message----- > Subject: Re: [AccessD] Connections and Performance > > Dan, > how about using temporary tables for adding new records and for reporting? > Ervin > > ----- Original Message ----- > Subject: Re: [AccessD] Connections and Performance > > >> Drew, >> >> I read this somewhere - either in MS documentation or in a book where I >> believe the author. >> >> Here's the reason I was asking: >> >> At a certain customer site, they experienced a dramatic performance >> slowdown >> at a time when about 10 people were logged on concurrently. Each client >> PC >> has it's own FE. I know that they open the system and leave the process >> screens open, all of which are bound. I want to suggest that they >> remember >> to close the process screens so that just the main screen is open, which >> is >> not bound. This way a fewer number of connections are being used at any >> one >> time and performance would probably be acceptable. This particular >> customer, I believe, does not have a very good network, so that is part >> of >> the problem. But that's unlikely to get improved, so I wanted to provide >> at >> least a partial solution, hence my question. >> >> I've also heard that a connection is made not based on whether a form is >> open and bound, but on whether or not there is data traffic between to >> and >> from a table, which only takes a small part of a second. >> >> So what causes the performance slowdown when only 10 client PC's are >> logged >> on, and what could be done to improve this? >> >> Dan Waters >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka >> Sent: Friday, February 02, 2007 9:26 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Connections and Performance >> >> Where are you getting these numbers. Access can have up to 255 >> connections. >> >> Drew >> >> -----Original Message----- >> From: Dan Waters [mailto:dwaters at usinternet.com] >> Sent: Friday, February 02, 2007 8:45 AM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] Connections and Performance >> >> Access has the potential for 8 simultaneous connections, but 3 of them >> are >> reserved for the system's use. That leaves five for users. >> >> Dan Waters >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby >> Sent: Friday, February 02, 2007 8:02 AM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] Connections and Performance >> >>>But, the connection limit for one BE is 5 FE's. >> >> What does this mean? I have never heard of any such thing. >> >> >> John W. Colby >> Colby Consulting >> www.ColbyConsulting.com >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >> Sent: Friday, February 02, 2007 8:58 AM >> To: 'Access Developers discussion and problem solving' >> Subject: [AccessD] Connections and Performance >> >> I've read several times that maintaining a connection between a FE and a >> BE >> will increase the performance of the FE because it doesn't need to >> reconnect >> before transferring data. The connection here would be a bound form >> connected by a table link to a table in the BE. >> >> But, the connection limit for one BE is 5 FE's. So, will maintaining >> connections on more than 5 FE's reduce performance? Seems logical, but I >> was wondering if this is correct or is there more to it? >> >> Thanks! >> >> Dan Waters >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> >> -- >> No virus found in this incoming message. >> Checked by AVG Free Edition. >> Version: 7.5.432 / Virus Database: 268.17.19/663 - Release Date: 2/1/2007 >> 2:28 PM >> >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.432 / Virus Database: 268.17.19/663 - Release Date: 2/1/2007 > 2:28 PM > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From hollisvj at pgdp.usec.com Mon Feb 5 11:38:49 2007 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Mon, 05 Feb 2007 11:38:49 -0600 Subject: [AccessD] Option Group on Report Message-ID: <703BDA18A87DFA4CB265A86F42E4178D01E7604F@c2k3exchange.pgdp.corp.usec.com> I have an option group on a form. How do I get the related word from the selected option to show on a report? Choices for Option group 1- Go 2 - No Go 3 - N/A The report needs to show the words "Go", 'No Go" or "N/A" not the number (1, 2, or 3). Virginia From bheid at sc.rr.com Mon Feb 5 11:53:55 2007 From: bheid at sc.rr.com (Bobby Heid) Date: Mon, 5 Feb 2007 12:53:55 -0500 Subject: [AccessD] Option Group on Report In-Reply-To: <703BDA18A87DFA4CB265A86F42E4178D01E7604F@c2k3exchange.pgdp.corp.usec.com> References: <703BDA18A87DFA4CB265A86F42E4178D01E7604F@c2k3exchange.pgdp.corp.usec.com> Message-ID: <009301c7494e$9af03a20$2d01a8c0@bhxp> Set the (I think it's called recordsource or something like that) of the text field on the report to: =iif([somefield]=1,"Go",iif([somefield]=2,"No Go","N/A")) There is the switch statement that might do what you want and there is another statement that I can't remember what it is called right now that may work. I do not have access to my machine with Access on it at the moment. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis, Virginia Sent: Monday, February 05, 2007 12:39 PM To: accessd at databaseadvisors.com Subject: [AccessD] Option Group on Report I have an option group on a form. How do I get the related word from the selected option to show on a report? Choices for Option group 1- Go 2 - No Go 3 - N/A The report needs to show the words "Go", 'No Go" or "N/A" not the number (1, 2, or 3). Virginia From rockysmolin at bchacc.com Mon Feb 5 11:54:43 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Mon, 5 Feb 2007 09:54:43 -0800 Subject: [AccessD] Option Group on Report In-Reply-To: <703BDA18A87DFA4CB265A86F42E4178D01E7604F@c2k3exchange.pgdp.corp.usec.com> Message-ID: <007f01c7494e$b7619190$0201a8c0@HAL9005> One simple way is to put a bit of code in the Format event and do an if...then putting the right word into an unbound textbox on the report. You could also pull the caption off of the label associated with the option button in the calling form. And there's probably a way with an IIf in the query, if you're using a query as the record source for the report, to convert the value into a word. (Are there nested Iifs?) Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis, Virginia Sent: Monday, February 05, 2007 9:39 AM To: accessd at databaseadvisors.com Subject: [AccessD] Option Group on Report I have an option group on a form. How do I get the related word from the selected option to show on a report? Choices for Option group 1- Go 2 - No Go 3 - N/A The report needs to show the words "Go", 'No Go" or "N/A" not the number (1, 2, or 3). Virginia -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.17.25/669 - Release Date: 2/4/2007 9:58 PM From martyconnelly at shaw.ca Mon Feb 5 12:29:09 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 05 Feb 2007 10:29:09 -0800 Subject: [AccessD] ADO code stopped working In-Reply-To: References: Message-ID: <45C77775.605@shaw.ca> I made a mistake I really meant this reference is need for ADOX Microsoft ADO Ext for 2.8 for DDL and Secuirity C:\Program Files\Common Files\System\ado\msadox.dll Actually msador.dll is only needed for backward compatibility, going back to MDAC 2.1 Originally, ADOR was designed to be a standalone component. However, as ADO has evolved in design and use, this is no longer ADOR's purpose. ADOR is now only a sub to the MSADO15.DLL and exists only to maintain backward compatibility. Gustav Brock wrote: >Hi Marty > >Are you absolutely sure? >I have a small test which fills a recordset from a saved query like Jennifer, and I have no reference for the Recordsets Library (never heard of that, by the way, until now - wonder what it does). > >/gustav > > > >>>>martyconnelly at shaw.ca 05-02-2007 06:15 >>> >>>> >>>> >You need two references set > >Microsoft ActiveX Data Object 2.7 Recordsets Library > >msador15.dll for ADOX >and > >Microsoft ActiveX Data Object 2.8 Library > >msado15.dll for ADODB > > > >Jennifer Gross wrote: > > > >>Thanks Marty. I have the reference to msado15.dll, it is the latest >>ActiveX Data Object 2.8 Recordset Library. The code is compiling, but >>failing. It was running properly in January for end of year reporting >>and I have made no changes to the code since it ran properly. The DAO >>code is all still running properly. After 6+ years I finally decided to >>dip my toe in ADO and it worked well before - I just can't figure out >>why it is failing now. We have re-installed MDAC. I've unchecked and >>rechecked the references. I am at a loss. I await the ADO gurus' >>various ah-ha's. >> >>Jennifer >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly >>Sent: Sunday, February 04, 2007 8:16 PM >>To: Access Developers discussion and problem solving >>Subject: Re: [AccessD] ADO code stopped working >> >> >>tlb/dll My eyeballs get fuzzy watching Superbowl commercials >> >>However you are using ADOX, so you need one more additional reference if >>it is 2.8 MDAC you need a reference to >> >>The Access reference >>Microsoft ActiveX Data Object 2.7 Recordsets Library >>should point at >>C:\Program Files\Common Files\System\ado\msador15.dll >> >>Jennifer Gross wrote: >> >> >> >> >> >>>Thanks for the suggestions. I set the references like Marty suggested >>>and am still getting the problem. I am using the Getz Developers >>>Handbook code for looping through parameters in a select query: >>> >>> Dim cmd As ADODB.Command >>> Dim rst As ADODB.Recordset >>> Dim prm As ADODB.Parameter >>> Dim cat As ADOX.Catalog >>> Dim prc As ADOX.Procedure >>> >>> Set cat = New ADOX.Catalog >>>* cat.ActiveConnection = CurrentProject.Connection >>>* Set prc = cat.Procedures("TheQuery") >>> Set cmd = prc.Command >>> For Each prm In cmd.Parameters >>> prm.Value = Eval(prm.Name) >>> Next prm >>> Set rst = cmd.Execute >>> >>>If I don't use the query with parameters, but instead base the >>>recordset on the table, then it works fine: >>> >>> Set rst = New ADODB.Recordset >>> Set rst.ActiveConnection = CurrentProject.Connection >>> rst.CursorType = adOpenForwardOnly >>> rst.LockType = adLockReadOnly >>> rst.Open "TheTable" >>> >>>I am getting the same results whether the code is in the existing FE or >>> >>> >>> >>> >> >> >> >> >>>if I create a new db with the ADO code as Rocky suggested. >>> >>>Any thoughts? >>> >>>Jennifer >>> >>>-----Original Message----- >>>From: accessd-bounces at databaseadvisors.com >>>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin >>> >>> >>> >>> >> >> >> >> >>>at Beach Access Software >>>Sent: Sunday, February 04, 2007 4:55 PM >>>To: 'Access Developers discussion and problem solving' >>>Subject: Re: [AccessD] ADO code stopped working >>> >>> >>>I would whip up a small app with some ado code to see if the problem is >>> >>> >>> >>> >> >> >> >> >>>inside your app or outside of it. Does your app compile? >>> >>>Rocky >>> >>> >>>-----Original Message----- >>>From: accessd-bounces at databaseadvisors.com >>>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer >>>Gross >>>Sent: Sunday, February 04, 2007 2:05 PM >>>To: AccessD List >>>Subject: [AccessD] ADO code stopped working >>> >>>Hi Everyone, >>> >>>W2K SP4 / A2K SP3 / terminal server >>> >>>I have a database that has some DAO and some ADO code. Recently all >>>ADO stopped working. DAO is still working fine. Anytime code >>>utilizing ADO runs it shuts down the database abruptly, leaving the LDB >>> >>> >>> >>> >> >> >> >> >>>file. We were also having problems with the Windows Management >>>databases locking up and a reinstall of the latest MDAC took care of >>>that problem, but did not solve the ADO problem. ADO was working fine >>>for end of year reporting. There are no missing references. After the >>> >>> >>> >>> >> >> >> >> >>>MDAC reinstall I unchecked references, closed down, opened up and >>>rechecked references. >>> >>>Any help would be greatly appreciated. >>> >>>Thank you, >>> >>> -- Marty Connelly Victoria, B.C. Canada From Donald.A.McGillivray at sprint.com Mon Feb 5 13:01:27 2007 From: Donald.A.McGillivray at sprint.com (McGillivray, Don [IT]) Date: Mon, 5 Feb 2007 13:01:27 -0600 Subject: [AccessD] Option Group on Report In-Reply-To: <007f01c7494e$b7619190$0201a8c0@HAL9005> Message-ID: Try - =Choose(OptionGroupValue,"Go","No Go","N/A") as the data source for the control on your report. Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, February 05, 2007 9:55 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Option Group on Report One simple way is to put a bit of code in the Format event and do an if...then putting the right word into an unbound textbox on the report. You could also pull the caption off of the label associated with the option button in the calling form. And there's probably a way with an IIf in the query, if you're using a query as the record source for the report, to convert the value into a word. (Are there nested Iifs?) Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis, Virginia Sent: Monday, February 05, 2007 9:39 AM To: accessd at databaseadvisors.com Subject: [AccessD] Option Group on Report I have an option group on a form. How do I get the related word from the selected option to show on a report? Choices for Option group 1- Go 2 - No Go 3 - N/A The report needs to show the words "Go", 'No Go" or "N/A" not the number (1, 2, or 3). Virginia -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.17.25/669 - Release Date: 2/4/2007 9:58 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jengross at gte.net Mon Feb 5 13:16:05 2007 From: jengross at gte.net (Jennifer Gross) Date: Mon, 05 Feb 2007 11:16:05 -0800 Subject: [AccessD] ADO code stopped working In-Reply-To: Message-ID: <008201c7495a$18b507f0$6401a8c0@jefferson> Hi Gustav, I have checked all references. The code is compiling. I have created a test database with one table and one query. It is failing in the same spot my original database is failing - Set prc = cat.Procedures("TheQuery") - In the test database I am getting the error 3265 - Item cannot be found in the collection corresponding to the requested name or ordinal. The query does exist - no spelling errors. The same ADO code is working fine on my home office system. It worked fine at the client's site in January. Any thoughts? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, February 05, 2007 1:47 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] ADO code stopped working Hi Jennifer You could - for and while debugging - try to separate the connection object: Dim cnn As ADODB.Connection Dim cmd As ADODB.Command Dim rst As ADODB.Recordset Dim prm As ADODB.Parameter Dim cat As ADOX.Catalog Dim prc As ADOX.Procedure Set cat = New ADOX.Catalog Set cnn = CurrentProject.Connection cat.ActiveConnection = cnn I guess you have double-checked the reference: Microsoft ADO Ext. 2.8 for DDL and Security points to ..system32\MSADOX.DLL /gustav >>> jengross at gte.net 05-02-2007 05:00 >>> Thanks for the suggestions. I set the references like Marty suggested and am still getting the problem. I am using the Getz Developers Handbook code for looping through parameters in a select query: Dim cmd As ADODB.Command Dim rst As ADODB.Recordset Dim prm As ADODB.Parameter Dim cat As ADOX.Catalog Dim prc As ADOX.Procedure Set cat = New ADOX.Catalog * cat.ActiveConnection = CurrentProject.Connection * Set prc = cat.Procedures("TheQuery") Set cmd = prc.Command For Each prm In cmd.Parameters prm.Value = Eval(prm.Name) Next prm Set rst = cmd.Execute If I don't use the query with parameters, but instead base the recordset on the table, then it works fine: Set rst = New ADODB.Recordset Set rst.ActiveConnection = CurrentProject.Connection rst.CursorType = adOpenForwardOnly rst.LockType = adLockReadOnly rst.Open "TheTable" I am getting the same results whether the code is in the existing FE or if I create a new db with the ADO code as Rocky suggested. Any thoughts? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Sunday, February 04, 2007 4:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] ADO code stopped working I would whip up a small app with some ado code to see if the problem is inside your app or outside of it. Does your app compile? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Sunday, February 04, 2007 2:05 PM To: AccessD List Subject: [AccessD] ADO code stopped working Hi Everyone, W2K SP4 / A2K SP3 / terminal server I have a database that has some DAO and some ADO code. Recently all ADO stopped working. DAO is still working fine. Anytime code utilizing ADO runs it shuts down the database abruptly, leaving the LDB file. We were also having problems with the Windows Management databases locking up and a reinstall of the latest MDAC took care of that problem, but did not solve the ADO problem. ADO was working fine for end of year reporting. There are no missing references. After the MDAC reinstall I unchecked references, closed down, opened up and rechecked references. Any help would be greatly appreciated. Thank you, Jennifer Gross databasics 2839 Shirley Drive Newbury Park, CA 91320-3068 office: (805) 480-1921 fax: (805) 499-0467 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From hollisvj at pgdp.usec.com Mon Feb 5 13:58:45 2007 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Mon, 05 Feb 2007 13:58:45 -0600 Subject: [AccessD] Date Format for Month Message-ID: <703BDA18A87DFA4CB265A86F42E4178D01E7606B@c2k3exchange.pgdp.corp.usec.com> I know you guys are probably getting tired of hearing from me lately. It has been several years since I have done this & my mind leaks...... On a report I need to show the date of the next inspection in red & bold (got that part). My problem is that they only care about the month & year due, not the day. How do I get it to pick out the month & year from today's date? So if the report is run for February and the next inspection date is 2/10/2007, it would show in bold & red on the report. If the next inspection date is 11/3/2007. It would be regular font. If Format$([DateNextSAI], "mmm yyyy", 0, 0) = Date Then From jengross at gte.net Mon Feb 5 14:07:00 2007 From: jengross at gte.net (Jennifer Gross) Date: Mon, 05 Feb 2007 12:07:00 -0800 Subject: [AccessD] Date Format for Month In-Reply-To: <703BDA18A87DFA4CB265A86F42E4178D01E7606B@c2k3exchange.pgdp.corp.usec.com> Message-ID: <008d01c74961$3543f550$6401a8c0@jefferson> How about If Month(DateNextSAI) = Month(Date) and Year(DateNextSAI) = Year(Date) Then . . . Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis, Virginia Sent: Monday, February 05, 2007 11:59 AM To: accessd at databaseadvisors.com Subject: [AccessD] Date Format for Month I know you guys are probably getting tired of hearing from me lately. It has been several years since I have done this & my mind leaks...... On a report I need to show the date of the next inspection in red & bold (got that part). My problem is that they only care about the month & year due, not the day. How do I get it to pick out the month & year from today's date? So if the report is run for February and the next inspection date is 2/10/2007, it would show in bold & red on the report. If the next inspection date is 11/3/2007. It would be regular font. If Format$([DateNextSAI], "mmm yyyy", 0, 0) = Date Then -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Mon Feb 5 14:09:37 2007 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 5 Feb 2007 14:09:37 -0600 Subject: [AccessD] Connections and Performance In-Reply-To: <11994734.1170679805281.JavaMail.root@sniper77> References: <006f01c74923$bd5d9ba0$0200a8c0@danwaters> <11994734.1170679805281.JavaMail.root@sniper77> Message-ID: <010401c74961$9031b2e0$0200a8c0@danwaters> Thanks John - I'll ask them to do this. Dan Waters -----Original Message----- Subject: Re: [AccessD] Connections and Performance This happens when the virus scanner attempts to scan the mdb itself (the BE) each time a write occurs. You need to put MDB/MDA/MDE/LDB in the Norton AV file exception list on the SERVER. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- Subject: Re: [AccessD] Connections and Performance Hi Erwin, I think they use McAfee as well! Could you post your solution later on? Thanks! Dan Waters -----Original Message----- Subject: Re: [AccessD] Connections and Performance Did you checked that the virusscanner don't scan mdb? Ik had a bizare problem with a McAfee virusscanner that when eacht time saving a record it pauzed for 2 to 10 seconds. When turning the scanner off it was instant. The client now doesnt use a virusscanner temproraraly, until I get there to find the issue. Erwin -----Original Message----- Subject: Re: [AccessD] Connections and Performance Dan, how about using temporary tables for adding new records and for reporting? Ervin ----- Original Message ----- Subject: Re: [AccessD] Connections and Performance > Drew, > > I read this somewhere - either in MS documentation or in a book where I > believe the author. > > Here's the reason I was asking: > > At a certain customer site, they experienced a dramatic performance > slowdown at a time when about 10 people were logged on concurrently. > Each client > PC > has it's own FE. I know that they open the system and leave the process > screens open, all of which are bound. I want to suggest that they > remember to close the process screens so that just the main screen is > open, which > is > not bound. This way a fewer number of connections are being used at any > one > time and performance would probably be acceptable. This particular > customer, I believe, does not have a very good network, so that is part of > the problem. But that's unlikely to get improved, so I wanted to provide > at > least a partial solution, hence my question. > > I've also heard that a connection is made not based on whether a form is > open and bound, but on whether or not there is data traffic between to and > from a table, which only takes a small part of a second. > > So what causes the performance slowdown when only 10 client PC's are > logged on, and what could be done to improve this? > > Dan Waters > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka > Sent: Friday, February 02, 2007 9:26 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Connections and Performance > > Where are you getting these numbers. Access can have up to 255 > connections. > > Drew > > -----Original Message----- > From: Dan Waters [mailto:dwaters at usinternet.com] > Sent: Friday, February 02, 2007 8:45 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Connections and Performance > > Access has the potential for 8 simultaneous connections, but 3 of them are > reserved for the system's use. That leaves five for users. > > Dan Waters > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby > Sent: Friday, February 02, 2007 8:02 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Connections and Performance > >>But, the connection limit for one BE is 5 FE's. > > What does this mean? I have never heard of any such thing. > > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Friday, February 02, 2007 8:58 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Connections and Performance > > I've read several times that maintaining a connection between a FE and a > BE > will increase the performance of the FE because it doesn't need to > reconnect before transferring data. The connection here would be a > bound form connected by a table link to a table in the BE. > > But, the connection limit for one BE is 5 FE's. So, will maintaining > connections on more than 5 FE's reduce performance? Seems logical, but I > was wondering if this is correct or is there more to it? > > Thanks! > > Dan Waters > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.432 / Virus Database: 268.17.19/663 - Release Date: 2/1/2007 > 2:28 PM > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Mon Feb 5 14:15:14 2007 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 5 Feb 2007 14:15:14 -0600 Subject: [AccessD] Date Format for Month In-Reply-To: <9222390.1170705876692.JavaMail.root@sniper50> References: <9222390.1170705876692.JavaMail.root@sniper50> Message-ID: <010501c74962$58e2a6e0$0200a8c0@danwaters> Hello Virginia, If Format("m",dteCurrentDate) = Format("m",dteInspectionDate) _ And Format("y",dteCurrentDate) = Format("y",dteInspectionDate) Then .... End If HTH, Dan Waters -----Original Message----- Subject: [AccessD] Date Format for Month I know you guys are probably getting tired of hearing from me lately. It has been several years since I have done this & my mind leaks...... On a report I need to show the date of the next inspection in red & bold (got that part). My problem is that they only care about the month & year due, not the day. How do I get it to pick out the month & year from today's date? So if the report is run for February and the next inspection date is 2/10/2007, it would show in bold & red on the report. If the next inspection date is 11/3/2007. It would be regular font. If Format$([DateNextSAI], "mmm yyyy", 0, 0) = Date Then -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From hollisvj at pgdp.usec.com Mon Feb 5 14:15:46 2007 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Mon, 05 Feb 2007 14:15:46 -0600 Subject: [AccessD] Date Format for Month Message-ID: <703BDA18A87DFA4CB265A86F42E4178D01E7606E@c2k3exchange.pgdp.corp.usec.com> Error if DateNextSAI is null. Which is possible if the equipment hasn't been inspected yet. Virginia ********************* How about If Month(DateNextSAI) = Month(Date) and Year(DateNextSAI) = Year(Date) Then . . . Jennifer From jengross at gte.net Mon Feb 5 14:20:45 2007 From: jengross at gte.net (Jennifer Gross) Date: Mon, 05 Feb 2007 12:20:45 -0800 Subject: [AccessD] Date Format for Month In-Reply-To: <703BDA18A87DFA4CB265A86F42E4178D01E7606E@c2k3exchange.pgdp.corp.usec.com> Message-ID: <009901c74963$21711ec0$6401a8c0@jefferson> Check for null first If not IsNull(datenextsai) Then If Month(DateNextSAI) = Month(Date) and Year(DateNextSAI) = Year(Date) Then . . . endif endif -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis, Virginia Sent: Monday, February 05, 2007 12:16 PM To: accessd at databaseadvisors.com Subject: [AccessD] Date Format for Month Error if DateNextSAI is null. Which is possible if the equipment hasn't been inspected yet. Virginia ********************* How about If Month(DateNextSAI) = Month(Date) and Year(DateNextSAI) = Year(Date) Then . . . Jennifer -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Mon Feb 5 14:46:05 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 05 Feb 2007 12:46:05 -0800 Subject: [AccessD] ADO code stopped working In-Reply-To: <008201c7495a$18b507f0$6401a8c0@jefferson> References: <008201c7495a$18b507f0$6401a8c0@jefferson> Message-ID: <45C7978D.9040903@shaw.ca> I am just wondering if TheQuery has to be run once to compile it? or this ACC2000: How to Use Parameters with ActiveX Data Objects (ADO) and Jet http://support.microsoft.com/kb/225897/en-us Method 3: Using an Implicit Parameter NOTE: Implicit parameter names have brackets ([ ]) around them, and you must use the brackets (or the parameter's ordinal position) when referring to implicit parameters in the Parameters collection. If you do not use the brackets, you receive the following error message: Run-time error '3265': ADO could not find the object in the collection corresponding to the name or ordinal reference requested by the application. PRB: Error 3265 When You Access Properties Collection http://support.microsoft.com/?kbid=201826 http://support.microsoft.com/default.aspx?scid=kb;en-us;223212 Jennifer Gross wrote: >Hi Gustav, > >I have checked all references. The code is compiling. I have created a >test database with one table and one query. It is failing in the same >spot my original database is failing - Set prc = >cat.Procedures("TheQuery") - In the test database I am getting the error >3265 - Item cannot be found in the collection corresponding to the >requested name or ordinal. The query does exist - no spelling errors. >The same ADO code is working fine on my home office system. It worked >fine at the client's site in January. Any thoughts? > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >Sent: Monday, February 05, 2007 1:47 AM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] ADO code stopped working > > >Hi Jennifer > >You could - for and while debugging - try to separate the connection >object: > > Dim cnn As ADODB.Connection > Dim cmd As ADODB.Command > Dim rst As ADODB.Recordset > Dim prm As ADODB.Parameter > Dim cat As ADOX.Catalog > Dim prc As ADOX.Procedure > > Set cat = New ADOX.Catalog > Set cnn = CurrentProject.Connection > cat.ActiveConnection = cnn > >I guess you have double-checked the reference: > Microsoft ADO Ext. 2.8 for DDL and Security >points to > ..system32\MSADOX.DLL > >/gustav > > > >>>>jengross at gte.net 05-02-2007 05:00 >>> >>>> >>>> >Thanks for the suggestions. I set the references like Marty suggested >and am still getting the problem. I am using the Getz Developers >Handbook code for looping through parameters in a select query: > > Dim cmd As ADODB.Command > Dim rst As ADODB.Recordset > Dim prm As ADODB.Parameter > Dim cat As ADOX.Catalog > Dim prc As ADOX.Procedure > > Set cat = New ADOX.Catalog >* cat.ActiveConnection = CurrentProject.Connection >* Set prc = cat.Procedures("TheQuery") > Set cmd = prc.Command > For Each prm In cmd.Parameters > prm.Value = Eval(prm.Name) > Next prm > Set rst = cmd.Execute > >If I don't use the query with parameters, but instead base the recordset >on the table, then it works fine: > > Set rst = New ADODB.Recordset > Set rst.ActiveConnection = CurrentProject.Connection > rst.CursorType = adOpenForwardOnly > rst.LockType = adLockReadOnly > rst.Open "TheTable" > >I am getting the same results whether the code is in the existing FE or >if I create a new db with the ADO code as Rocky suggested. > >Any thoughts? > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin >at Beach Access Software >Sent: Sunday, February 04, 2007 4:55 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] ADO code stopped working > > >I would whip up a small app with some ado code to see if the problem is >inside your app or outside of it. Does your app compile? > >Rocky > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer >Gross >Sent: Sunday, February 04, 2007 2:05 PM >To: AccessD List >Subject: [AccessD] ADO code stopped working > >Hi Everyone, > >W2K SP4 / A2K SP3 / terminal server > >I have a database that has some DAO and some ADO code. Recently all ADO >stopped working. DAO is still working fine. Anytime code utilizing ADO >runs it shuts down the database abruptly, leaving the LDB file. We were >also having problems with the Windows Management databases locking up >and a reinstall of the latest MDAC took care of that problem, but did >not solve the ADO problem. ADO was working fine for end of year >reporting. There are no missing references. After the MDAC reinstall I >unchecked references, closed down, opened up and rechecked references. > >Any help would be greatly appreciated. > >Thank you, > >Jennifer Gross >databasics >2839 Shirley Drive >Newbury Park, CA 91320-3068 >office: (805) 480-1921 >fax: (805) 499-0467 > > > -- Marty Connelly Victoria, B.C. Canada From jwcolby at colbyconsulting.com Mon Feb 5 14:55:04 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Mon, 5 Feb 2007 15:55:04 -0500 Subject: [AccessD] Monitoring net traffic to the internet Message-ID: <00a301c74967$eac3ad20$657aa8c0@m6805> Can anyone point me to software that allows monitoring traffic to the internet and tracking it back to the workstation? My client has a very limited bandwidth to the internet and it is being used in an unexplained manner, i.e. the bandwidth is not available to me (for example) if I do an upload or download to FTP, response time is slow for remote desktop etc. We have seen this occur when one of the technical types is downloading large service packs etc which we have arranged to have done "off hours", but there are still times when the internet bandwidth is abnormally low. Thus we want to discover if someone is playing FM radio, watching a video etc. just so we can go rap on their door and ask them to stop. I haven't a clue how to discover what workstation is using bandwidth like this. John W. Colby Colby Consulting www.ColbyConsulting.com From DWUTKA at Marlow.com Mon Feb 5 16:06:18 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 5 Feb 2007 16:06:18 -0600 Subject: [AccessD] Connections and Performance Message-ID: Most 'articles' that 'document' Access performance are doing so based upon poorly designed systems. You have to design your system based on system requirements. If you are going to have 1 to 5 users, you can keep everything bound, and be reasonably assured that things will work well. If you are talking 5 to 30 users, now it's time to pick up some of the slack. Timeout forms and reports that are going to tie up db connections. 30 to 100 users, you better start thinking unbound. 100+ users, better start thinking about something other then Access as a front end (I would recommend ASP). The point is that JET, as a db system, can handle a lot, but Access, as a Front End provides more bells and whistles that tax the backend more. Case in point, we have our production database in Oracle, on it's own honking box. Huge server, loads of memory and disk space, but when certain things are run, even that system gets taken to It's knees. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 02, 2007 10:13 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance Drew, I read this somewhere - either in MS documentation or in a book where I believe the author. Here's the reason I was asking: At a certain customer site, they experienced a dramatic performance slowdown at a time when about 10 people were logged on concurrently. Each client PC has it's own FE. I know that they open the system and leave the process screens open, all of which are bound. I want to suggest that they remember to close the process screens so that just the main screen is open, which is not bound. This way a fewer number of connections are being used at any one time and performance would probably be acceptable. This particular customer, I believe, does not have a very good network, so that is part of the problem. But that's unlikely to get improved, so I wanted to provide at least a partial solution, hence my question. I've also heard that a connection is made not based on whether a form is open and bound, but on whether or not there is data traffic between to and from a table, which only takes a small part of a second. So what causes the performance slowdown when only 10 client PC's are logged on, and what could be done to improve this? Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, February 02, 2007 9:26 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance Where are you getting these numbers. Access can have up to 255 connections. Drew -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Friday, February 02, 2007 8:45 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance Access has the potential for 8 simultaneous connections, but 3 of them are reserved for the system's use. That leaves five for users. Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Friday, February 02, 2007 8:02 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance >But, the connection limit for one BE is 5 FE's. What does this mean? I have never heard of any such thing. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 02, 2007 8:58 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Connections and Performance I've read several times that maintaining a connection between a FE and a BE will increase the performance of the FE because it doesn't need to reconnect before transferring data. The connection here would be a bound form connected by a table link to a table in the BE. But, the connection limit for one BE is 5 FE's. So, will maintaining connections on more than 5 FE's reduce performance? Seems logical, but I was wondering if this is correct or is there more to it? Thanks! Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Mon Feb 5 16:08:23 2007 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Mon, 5 Feb 2007 16:08:23 -0600 Subject: [AccessD] Monitoring net traffic to the internet Message-ID: <34C8A2AB1EF3564CB0D64DB6AFFDD5C201200FDA@xlivmbx35.aig.com> These two tools might be useful... http://www.microsoft.com/technet/sysinternals/Networking/TcpView.mspx http://www.sysinternals.com/Utilities/TdiMon.html Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Monday, February 05, 2007 3:55 PM To: dba-sqlserver at databaseadvisors.com; 'Access Developers discussion and problem solving'; 'Discussion of Hardware and Software issues' Subject: [AccessD] Monitoring net traffic to the internet Can anyone point me to software that allows monitoring traffic to the internet and tracking it back to the workstation? My client has a very limited bandwidth to the internet and it is being used in an unexplained manner, i.e. the bandwidth is not available to me (for example) if I do an upload or download to FTP, response time is slow for remote desktop etc. We have seen this occur when one of the technical types is downloading large service packs etc which we have arranged to have done "off hours", but there are still times when the internet bandwidth is abnormally low. Thus we want to discover if someone is playing FM radio, watching a video etc. just so we can go rap on their door and ask them to stop. I haven't a clue how to discover what workstation is using bandwidth like this. John W. Colby Colby Consulting www.ColbyConsulting.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 Feb 5 16:15:17 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 05 Feb 2007 14:15:17 -0800 Subject: [AccessD] Monitoring net traffic to the internet In-Reply-To: <00a301c74967$eac3ad20$657aa8c0@m6805> Message-ID: <0JD0009I6GE4YNE0@l-daemon> Hi John: Assuming your client does not have an IIS server on their main internet server (Logging of any connections through IIS are automatically kept), then they can go the route of a piece of monitoring software. There are a number of packages out there, some free (http://www.softplatz.com/freeware/bandwidth/) and a number of good commercial packages, some with trial use periods. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Monday, February 05, 2007 12:55 PM To: dba-sqlserver at databaseadvisors.com; 'Access Developers discussion and problem solving'; 'Discussion of Hardware and Software issues' Subject: [AccessD] Monitoring net traffic to the internet Can anyone point me to software that allows monitoring traffic to the internet and tracking it back to the workstation? My client has a very limited bandwidth to the internet and it is being used in an unexplained manner, i.e. the bandwidth is not available to me (for example) if I do an upload or download to FTP, response time is slow for remote desktop etc. We have seen this occur when one of the technical types is downloading large service packs etc which we have arranged to have done "off hours", but there are still times when the internet bandwidth is abnormally low. Thus we want to discover if someone is playing FM radio, watching a video etc. just so we can go rap on their door and ask them to stop. I haven't a clue how to discover what workstation is using bandwidth like this. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jengross at gte.net Mon Feb 5 16:20:04 2007 From: jengross at gte.net (Jennifer Gross) Date: Mon, 05 Feb 2007 14:20:04 -0800 Subject: [AccessD] ADO code stopped working In-Reply-To: <45C7978D.9040903@shaw.ca> Message-ID: <00ba01c74973$cdc6e820$6401a8c0@jefferson> The code ran fine in the past and is running fine on my home office system. I just tried it again at home, it works, and then ported it to the client and it fails. It has to be something with their setup that has changed or become corrupted. We have reinstalled MDAC, and I am on the same version of MDAC as the client - 2.8. The failure though is not in the connection, it is in accessing the query. I am using the Command object to avoid explicitly defining the parameters. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Monday, February 05, 2007 12:46 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] ADO code stopped working I am just wondering if TheQuery has to be run once to compile it? or this ACC2000: How to Use Parameters with ActiveX Data Objects (ADO) and Jet http://support.microsoft.com/kb/225897/en-us Method 3: Using an Implicit Parameter NOTE: Implicit parameter names have brackets ([ ]) around them, and you must use the brackets (or the parameter's ordinal position) when referring to implicit parameters in the Parameters collection. If you do not use the brackets, you receive the following error message: Run-time error '3265': ADO could not find the object in the collection corresponding to the name or ordinal reference requested by the application. PRB: Error 3265 When You Access Properties Collection http://support.microsoft.com/?kbid=201826 http://support.microsoft.com/default.aspx?scid=kb;en-us;223212 Jennifer Gross wrote: >Hi Gustav, > >I have checked all references. The code is compiling. I have created >a test database with one table and one query. It is failing in the >same spot my original database is failing - Set prc = >cat.Procedures("TheQuery") - In the test database I am getting the >error 3265 - Item cannot be found in the collection corresponding to >the requested name or ordinal. The query does exist - no spelling >errors. The same ADO code is working fine on my home office system. It >worked fine at the client's site in January. Any thoughts? > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >Sent: Monday, February 05, 2007 1:47 AM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] ADO code stopped working > > >Hi Jennifer > >You could - for and while debugging - try to separate the connection >object: > > Dim cnn As ADODB.Connection > Dim cmd As ADODB.Command > Dim rst As ADODB.Recordset > Dim prm As ADODB.Parameter > Dim cat As ADOX.Catalog > Dim prc As ADOX.Procedure > > Set cat = New ADOX.Catalog > Set cnn = CurrentProject.Connection > cat.ActiveConnection = cnn > >I guess you have double-checked the reference: > Microsoft ADO Ext. 2.8 for DDL and Security >points to > ..system32\MSADOX.DLL > >/gustav > > > >>>>jengross at gte.net 05-02-2007 05:00 >>> >>>> >>>> >Thanks for the suggestions. I set the references like Marty suggested >and am still getting the problem. I am using the Getz Developers >Handbook code for looping through parameters in a select query: > > Dim cmd As ADODB.Command > Dim rst As ADODB.Recordset > Dim prm As ADODB.Parameter > Dim cat As ADOX.Catalog > Dim prc As ADOX.Procedure > > Set cat = New ADOX.Catalog >* cat.ActiveConnection = CurrentProject.Connection >* Set prc = cat.Procedures("TheQuery") > Set cmd = prc.Command > For Each prm In cmd.Parameters > prm.Value = Eval(prm.Name) > Next prm > Set rst = cmd.Execute > >If I don't use the query with parameters, but instead base the >recordset on the table, then it works fine: > > Set rst = New ADODB.Recordset > Set rst.ActiveConnection = CurrentProject.Connection > rst.CursorType = adOpenForwardOnly > rst.LockType = adLockReadOnly > rst.Open "TheTable" > >I am getting the same results whether the code is in the existing FE or >if I create a new db with the ADO code as Rocky suggested. > >Any thoughts? > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin >at Beach Access Software >Sent: Sunday, February 04, 2007 4:55 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] ADO code stopped working > > >I would whip up a small app with some ado code to see if the problem is >inside your app or outside of it. Does your app compile? > >Rocky > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer >Gross >Sent: Sunday, February 04, 2007 2:05 PM >To: AccessD List >Subject: [AccessD] ADO code stopped working > >Hi Everyone, > >W2K SP4 / A2K SP3 / terminal server > >I have a database that has some DAO and some ADO code. Recently all >ADO stopped working. DAO is still working fine. Anytime code >utilizing ADO runs it shuts down the database abruptly, leaving the LDB >file. We were also having problems with the Windows Management >databases locking up and a reinstall of the latest MDAC took care of >that problem, but did not solve the ADO problem. ADO was working fine >for end of year reporting. There are no missing references. After the >MDAC reinstall I unchecked references, closed down, opened up and >rechecked references. > >Any help would be greatly appreciated. > >Thank you, > >Jennifer Gross >databasics >2839 Shirley Drive >Newbury Park, CA 91320-3068 >office: (805) 480-1921 >fax: (805) 499-0467 > > > -- 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 artful at rogers.com Mon Feb 5 17:07:44 2007 From: artful at rogers.com (artful at rogers.com) Date: Mon, 5 Feb 2007 15:07:44 -0800 (PST) Subject: [AccessD] Exporting objects (forms) to text and back in to Access Message-ID: <20070205230744.91482.qmail@web88213.mail.re2.yahoo.com> I can't find your file, Max. I'm assuming you're referring to Roger's Access Library. What's the exact filename? I couldn't find EAT in a search of the site, and "export to text" didn't turn it up either. TIA, Arthur From dwaters at usinternet.com Mon Feb 5 18:26:29 2007 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 5 Feb 2007 18:26:29 -0600 Subject: [AccessD] Connections and Performance In-Reply-To: <7048068.1170713511646.JavaMail.root@sniper50> References: <7048068.1170713511646.JavaMail.root@sniper50> Message-ID: <013001c74985$72610f30$0200a8c0@danwaters> Thanks Drew, I have asked everyone at my customer's site to close the screens they're not using (these are bound), but told them they can stay logged in because the main screen is not bound. We'll see if that helps. If not then I will need to start timing out the bound forms. I still don't know what is the definition of one connection. Is one bound form a connection? Is a FE with any number of bound forms a connection? Or is a connection defined by the periods of time when data transfer is taking place between a FE and BE? Or . . . ? Thanks for teaching me! Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Monday, February 05, 2007 4:06 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance Most 'articles' that 'document' Access performance are doing so based upon poorly designed systems. You have to design your system based on system requirements. If you are going to have 1 to 5 users, you can keep everything bound, and be reasonably assured that things will work well. If you are talking 5 to 30 users, now it's time to pick up some of the slack. Timeout forms and reports that are going to tie up db connections. 30 to 100 users, you better start thinking unbound. 100+ users, better start thinking about something other then Access as a front end (I would recommend ASP). The point is that JET, as a db system, can handle a lot, but Access, as a Front End provides more bells and whistles that tax the backend more. Case in point, we have our production database in Oracle, on it's own honking box. Huge server, loads of memory and disk space, but when certain things are run, even that system gets taken to It's knees. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 02, 2007 10:13 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance Drew, I read this somewhere - either in MS documentation or in a book where I believe the author. Here's the reason I was asking: At a certain customer site, they experienced a dramatic performance slowdown at a time when about 10 people were logged on concurrently. Each client PC has it's own FE. I know that they open the system and leave the process screens open, all of which are bound. I want to suggest that they remember to close the process screens so that just the main screen is open, which is not bound. This way a fewer number of connections are being used at any one time and performance would probably be acceptable. This particular customer, I believe, does not have a very good network, so that is part of the problem. But that's unlikely to get improved, so I wanted to provide at least a partial solution, hence my question. I've also heard that a connection is made not based on whether a form is open and bound, but on whether or not there is data traffic between to and from a table, which only takes a small part of a second. So what causes the performance slowdown when only 10 client PC's are logged on, and what could be done to improve this? Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, February 02, 2007 9:26 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance Where are you getting these numbers. Access can have up to 255 connections. Drew -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Friday, February 02, 2007 8:45 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance Access has the potential for 8 simultaneous connections, but 3 of them are reserved for the system's use. That leaves five for users. Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Friday, February 02, 2007 8:02 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance >But, the connection limit for one BE is 5 FE's. What does this mean? I have never heard of any such thing. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 02, 2007 8:58 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Connections and Performance I've read several times that maintaining a connection between a FE and a BE will increase the performance of the FE because it doesn't need to reconnect before transferring data. The connection here would be a bound form connected by a table link to a table in the BE. But, the connection limit for one BE is 5 FE's. So, will maintaining connections on more than 5 FE's reduce performance? Seems logical, but I was wondering if this is correct or is there more to it? Thanks! Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Mon Feb 5 18:40:25 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 5 Feb 2007 18:40:25 -0600 Subject: [AccessD] Connections and Performance Message-ID: I believe there is only one connection between a front end and back end. In fact, many databases have better performance when the connection is maintained through a 'linked table'. Create a dummy table (one field, no records), called tblLink. Create a form bound to that table, and open that form, hidden, on startup. That keeps the 'connection' live while the user is in the database. I know in Access 97 that process was recommended in the help files under 'splitting a database'. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, February 05, 2007 6:26 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance Thanks Drew, I have asked everyone at my customer's site to close the screens they're not using (these are bound), but told them they can stay logged in because the main screen is not bound. We'll see if that helps. If not then I will need to start timing out the bound forms. I still don't know what is the definition of one connection. Is one bound form a connection? Is a FE with any number of bound forms a connection? Or is a connection defined by the periods of time when data transfer is taking place between a FE and BE? Or . . . ? Thanks for teaching me! Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Monday, February 05, 2007 4:06 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance Most 'articles' that 'document' Access performance are doing so based upon poorly designed systems. You have to design your system based on system requirements. If you are going to have 1 to 5 users, you can keep everything bound, and be reasonably assured that things will work well. If you are talking 5 to 30 users, now it's time to pick up some of the slack. Timeout forms and reports that are going to tie up db connections. 30 to 100 users, you better start thinking unbound. 100+ users, better start thinking about something other then Access as a front end (I would recommend ASP). The point is that JET, as a db system, can handle a lot, but Access, as a Front End provides more bells and whistles that tax the backend more. Case in point, we have our production database in Oracle, on it's own honking box. Huge server, loads of memory and disk space, but when certain things are run, even that system gets taken to It's knees. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 02, 2007 10:13 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance Drew, I read this somewhere - either in MS documentation or in a book where I believe the author. Here's the reason I was asking: At a certain customer site, they experienced a dramatic performance slowdown at a time when about 10 people were logged on concurrently. Each client PC has it's own FE. I know that they open the system and leave the process screens open, all of which are bound. I want to suggest that they remember to close the process screens so that just the main screen is open, which is not bound. This way a fewer number of connections are being used at any one time and performance would probably be acceptable. This particular customer, I believe, does not have a very good network, so that is part of the problem. But that's unlikely to get improved, so I wanted to provide at least a partial solution, hence my question. I've also heard that a connection is made not based on whether a form is open and bound, but on whether or not there is data traffic between to and from a table, which only takes a small part of a second. So what causes the performance slowdown when only 10 client PC's are logged on, and what could be done to improve this? Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, February 02, 2007 9:26 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance Where are you getting these numbers. Access can have up to 255 connections. Drew -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Friday, February 02, 2007 8:45 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance Access has the potential for 8 simultaneous connections, but 3 of them are reserved for the system's use. That leaves five for users. Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Friday, February 02, 2007 8:02 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance >But, the connection limit for one BE is 5 FE's. What does this mean? I have never heard of any such thing. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 02, 2007 8:58 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Connections and Performance I've read several times that maintaining a connection between a FE and a BE will increase the performance of the FE because it doesn't need to reconnect before transferring data. The connection here would be a bound form connected by a table link to a table in the BE. But, the connection limit for one BE is 5 FE's. So, will maintaining connections on more than 5 FE's reduce performance? Seems logical, but I was wondering if this is correct or is there more to it? Thanks! Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at gmail.com Mon Feb 5 20:02:45 2007 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Mon, 5 Feb 2007 21:02:45 -0500 Subject: [AccessD] DBA Website Message-ID: Jim, Gotta favour to ask next time you are hacking DBAs site. Could you change the listmaster e-mail address to listmaster+www at databaseadvisors.com for me. Just the link parts, and not what is actually displayed. I'm trying a little experiment. -- 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 carbonnb at gmail.com Mon Feb 5 20:13:01 2007 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Mon, 5 Feb 2007 21:13:01 -0500 Subject: [AccessD] DBA Website In-Reply-To: References: Message-ID: On 2/5/07, Bryan Carbonnell wrote: > Jim, > > Gotta favour to ask ... Whoops. Sent this to the wrong place. So what do you say Jim :) OK, so where is that rock? Gotta go and crawl back under it. -- 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 Gustav at cactus.dk Tue Feb 6 04:57:07 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 06 Feb 2007 11:57:07 +0100 Subject: [AccessD] ADO code stopped working Message-ID: Thanks Marty, that explains. /gustav >>> martyconnelly at shaw.ca 05-02-2007 19:29:09 >>> I made a mistake I really meant this reference is need for ADOX Microsoft ADO Ext for 2.8 for DDL and Secuirity C:\Program Files\Common Files\System\ado\msadox.dll Actually msador.dll is only needed for backward compatibility, going back to MDAC 2.1 Originally, ADOR was designed to be a standalone component. However, as ADO has evolved in design and use, this is no longer ADOR's purpose. ADOR is now only a sub to the MSADO15.DLL and exists only to maintain backward compatibility. Gustav Brock wrote: >Hi Marty > >Are you absolutely sure? >I have a small test which fills a recordset from a saved query like Jennifer, and I have no reference for the Recordsets Library (never heard of that, by the way, until now - wonder what it does). > >/gustav > > > >>>>martyconnelly at shaw.ca 05-02-2007 06:15 >>> >>>> >>>> >You need two references set > >Microsoft ActiveX Data Object 2.7 Recordsets Library > >msador15.dll for ADOX >and > >Microsoft ActiveX Data Object 2.8 Library > >msado15.dll for ADODB > > > >Jennifer Gross wrote: > > > >>Thanks Marty. I have the reference to msado15.dll, it is the latest >>ActiveX Data Object 2.8 Recordset Library. The code is compiling, but >>failing. It was running properly in January for end of year reporting >>and I have made no changes to the code since it ran properly. The DAO >>code is all still running properly. After 6+ years I finally decided to >>dip my toe in ADO and it worked well before - I just can't figure out >>why it is failing now. We have re-installed MDAC. I've unchecked and >>rechecked the references. I am at a loss. I await the ADO gurus' >>various ah-ha's. >> >>Jennifer >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly >>Sent: Sunday, February 04, 2007 8:16 PM >>To: Access Developers discussion and problem solving >>Subject: Re: [AccessD] ADO code stopped working >> >> >>tlb/dll My eyeballs get fuzzy watching Superbowl commercials >> >>However you are using ADOX, so you need one more additional reference if >>it is 2.8 MDAC you need a reference to >> >>The Access reference >>Microsoft ActiveX Data Object 2.7 Recordsets Library >>should point at >>C:\Program Files\Common Files\System\ado\msador15.dll >> >>Jennifer Gross wrote: >> >> >> >> >> >>>Thanks for the suggestions. I set the references like Marty suggested >>>and am still getting the problem. I am using the Getz Developers >>>Handbook code for looping through parameters in a select query: >>> >>> Dim cmd As ADODB.Command >>> Dim rst As ADODB.Recordset >>> Dim prm As ADODB.Parameter >>> Dim cat As ADOX.Catalog >>> Dim prc As ADOX.Procedure >>> >>> Set cat = New ADOX.Catalog >>>* cat.ActiveConnection = CurrentProject.Connection >>>* Set prc = cat.Procedures("TheQuery") >>> Set cmd = prc.Command >>> For Each prm In cmd.Parameters >>> prm.Value = Eval(prm.Name) >>> Next prm >>> Set rst = cmd.Execute >>> >>>If I don't use the query with parameters, but instead base the >>>recordset on the table, then it works fine: >>> >>> Set rst = New ADODB.Recordset >>> Set rst.ActiveConnection = CurrentProject.Connection >>> rst.CursorType = adOpenForwardOnly >>> rst.LockType = adLockReadOnly >>> rst.Open "TheTable" >>> >>>I am getting the same results whether the code is in the existing FE or >>> >>> >>> >>> >> >> >> >> >>>if I create a new db with the ADO code as Rocky suggested. >>> >>>Any thoughts? >>> >>>Jennifer >>> >>>-----Original Message----- >>>From: accessd-bounces at databaseadvisors.com >>>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin >>> >>> >>> >>> >> >> >> >> >>>at Beach Access Software >>>Sent: Sunday, February 04, 2007 4:55 PM >>>To: 'Access Developers discussion and problem solving' >>>Subject: Re: [AccessD] ADO code stopped working >>> >>> >>>I would whip up a small app with some ado code to see if the problem is >>> >>> >>> >>> >> >> >> >> >>>inside your app or outside of it. Does your app compile? >>> >>>Rocky >>> >>> >>>-----Original Message----- >>>From: accessd-bounces at databaseadvisors.com >>>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer >>>Gross >>>Sent: Sunday, February 04, 2007 2:05 PM >>>To: AccessD List >>>Subject: [AccessD] ADO code stopped working >>> >>>Hi Everyone, >>> >>>W2K SP4 / A2K SP3 / terminal server >>> >>>I have a database that has some DAO and some ADO code. Recently all >>>ADO stopped working. DAO is still working fine. Anytime code >>>utilizing ADO runs it shuts down the database abruptly, leaving the LDB >>> >>> >>> >>> >> >> >> >> >>>file. We were also having problems with the Windows Management >>>databases locking up and a reinstall of the latest MDAC took care of >>>that problem, but did not solve the ADO problem. ADO was working fine >>>for end of year reporting. There are no missing references. After the >>> >>> >>> >>> >> >> >> >> >>>MDAC reinstall I unchecked references, closed down, opened up and >>>rechecked references. >>> >>>Any help would be greatly appreciated. >>> >>>Thank you, >>> >>> -- Marty Connelly Victoria, B.C. Canada From Gustav at cactus.dk Tue Feb 6 05:17:52 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 06 Feb 2007 12:17:52 +0100 Subject: [AccessD] ADO code stopped working Message-ID: Hi Jennifer The 3265 missing item error is not related to the name of the query but - surprise - to the parameter collection of the query. If the query's parameter collection does have a parameter count of zero, the error is raised. I have tested this in A2002/XP as well as A2003 and the scenario is consistent with ADO 2.8. What has happened could be that in a previous version of ADO the parameter count was not checked. Even if your code indicates the presence of one or more parameters I guess none exists, thus - after a possible update of ADO - the error occurs. On another note, the "smart" way of feeding values to your parameters my not work in Access 2007 as - if I remember correctly - the function Eval is considered "dangerous" and thus has been removed. So, in the future, you better spell out each parameter and the variable you wish to assign. Remember, that a parameter can be identified by its Index: cmd.Parameters(0).Value = /gustav >>> jengross at gte.net 05-02-2007 20:16:05 >>> Hi Gustav, I have checked all references. The code is compiling. I have created a test database with one table and one query. It is failing in the same spot my original database is failing - Set prc = cat.Procedures("TheQuery") - In the test database I am getting the error 3265 - Item cannot be found in the collection corresponding to the requested name or ordinal. The query does exist - no spelling errors. The same ADO code is working fine on my home office system. It worked fine at the client's site in January. Any thoughts? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, February 05, 2007 1:47 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] ADO code stopped working Hi Jennifer You could - for and while debugging - try to separate the connection object: Dim cnn As ADODB.Connection Dim cmd As ADODB.Command Dim rst As ADODB.Recordset Dim prm As ADODB.Parameter Dim cat As ADOX.Catalog Dim prc As ADOX.Procedure Set cat = New ADOX.Catalog Set cnn = CurrentProject.Connection cat.ActiveConnection = cnn I guess you have double-checked the reference: Microsoft ADO Ext. 2.8 for DDL and Security points to ..system32\MSADOX.DLL /gustav >>> jengross at gte.net 05-02-2007 05:00 >>> Thanks for the suggestions. I set the references like Marty suggested and am still getting the problem. I am using the Getz Developers Handbook code for looping through parameters in a select query: Dim cmd As ADODB.Command Dim rst As ADODB.Recordset Dim prm As ADODB.Parameter Dim cat As ADOX.Catalog Dim prc As ADOX.Procedure Set cat = New ADOX.Catalog * cat.ActiveConnection = CurrentProject.Connection * Set prc = cat.Procedures("TheQuery") Set cmd = prc.Command For Each prm In cmd.Parameters prm.Value = Eval(prm.Name) Next prm Set rst = cmd.Execute If I don't use the query with parameters, but instead base the recordset on the table, then it works fine: Set rst = New ADODB.Recordset Set rst.ActiveConnection = CurrentProject.Connection rst.CursorType = adOpenForwardOnly rst.LockType = adLockReadOnly rst.Open "TheTable" I am getting the same results whether the code is in the existing FE or if I create a new db with the ADO code as Rocky suggested. Any thoughts? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Sunday, February 04, 2007 4:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] ADO code stopped working I would whip up a small app with some ado code to see if the problem is inside your app or outside of it. Does your app compile? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Sunday, February 04, 2007 2:05 PM To: AccessD List Subject: [AccessD] ADO code stopped working Hi Everyone, W2K SP4 / A2K SP3 / terminal server I have a database that has some DAO and some ADO code. Recently all ADO stopped working. DAO is still working fine. Anytime code utilizing ADO runs it shuts down the database abruptly, leaving the LDB file. We were also having problems with the Windows Management databases locking up and a reinstall of the latest MDAC took care of that problem, but did not solve the ADO problem. ADO was working fine for end of year reporting. There are no missing references. After the MDAC reinstall I unchecked references, closed down, opened up and rechecked references. Any help would be greatly appreciated. Thank you, Jennifer Gross databasics 2839 Shirley Drive Newbury Park, CA 91320-3068 office: (805) 480-1921 fax: (805) 499-0467 From Gustav at cactus.dk Tue Feb 6 05:45:11 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 06 Feb 2007 12:45:11 +0100 Subject: [AccessD] Option Group on Report Message-ID: Hi Virginia You could use Choose: =Choose([YourOptionGroup], "Go", "No Go", "N/A") /gustav >>> hollisvj at pgdp.usec.com 05-02-2007 18:38:49 >>> I have an option group on a form. How do I get the related word from the selected option to show on a report? Choices for Option group 1- Go 2 - No Go 3 - N/A The report needs to show the words "Go", 'No Go" or "N/A" not the number (1, 2, or 3). Virginia From Gustav at cactus.dk Tue Feb 6 06:23:41 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 06 Feb 2007 13:23:41 +0100 Subject: [AccessD] Date Format for Month Message-ID: Hi Virginia I would use DateDiff: If DateDiff("m", Date, [DateNextSAI]) <= 0 Then or: If DateDiff("m", Date, Nz([DateNextSAI], Date)) <= 0 Then or: If Nz(DateDiff("m", Date, [DateNextSAI]), 0) <= 0 Then /gustav >>> hollisvj at pgdp.usec.com 05-02-2007 20:58:45 >>> I know you guys are probably getting tired of hearing from me lately. It has been several years since I have done this & my mind leaks...... On a report I need to show the date of the next inspection in red & bold (got that part). My problem is that they only care about the month & year due, not the day. How do I get it to pick out the month & year from today's date? So if the report is run for February and the next inspection date is 2/10/2007, it would show in bold & red on the report. If the next inspection date is 11/3/2007. It would be regular font. If Format$([DateNextSAI], "mmm yyyy", 0, 0) = Date Then From jwcolby at colbyconsulting.com Tue Feb 6 06:54:55 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Tue, 6 Feb 2007 07:54:55 -0500 Subject: [AccessD] Excel Default cursor movement Message-ID: <00d001c749ee$00d176c0$657aa8c0@m6805> How do I set the default in excel to have the arrow keys move the cursor from cell to cell. For some reason it causes the viewable area to scroll around, keeping the cursor in the same cell. John W. Colby Colby Consulting www.ColbyConsulting.com From Lambert.Heenan at AIG.com Tue Feb 6 08:28:47 2007 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 6 Feb 2007 08:28:47 -0600 Subject: [AccessD] Excel Default cursor movement Message-ID: <34C8A2AB1EF3564CB0D64DB6AFFDD5C201200FE0@xlivmbx35.aig.com> That happens when the scroll-lock key has been pressed. Hit it again and the arrow keys will be back to 'normal'. If you want to control this in code I have some VAB to do the trick. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Tuesday, February 06, 2007 7:55 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Excel Default cursor movement How do I set the default in excel to have the arrow keys move the cursor from cell to cell. For some reason it causes the viewable area to scroll around, keeping the cursor in the same cell. John W. Colby Colby Consulting www.ColbyConsulting.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 Feb 6 08:41:30 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Tue, 6 Feb 2007 09:41:30 -0500 Subject: [AccessD] Excel Default cursor movement In-Reply-To: <34C8A2AB1EF3564CB0D64DB6AFFDD5C201200FE0@xlivmbx35.aig.com> Message-ID: <00e101c749fc$e47aae60$657aa8c0@m6805> Thanks Lambert, that did it. This happens occasionally and I can never remember how to fix it. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Tuesday, February 06, 2007 9:29 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Excel Default cursor movement That happens when the scroll-lock key has been pressed. Hit it again and the arrow keys will be back to 'normal'. If you want to control this in code I have some VAB to do the trick. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Tuesday, February 06, 2007 7:55 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Excel Default cursor movement How do I set the default in excel to have the arrow keys move the cursor from cell to cell. For some reason it causes the viewable area to scroll around, keeping the cursor in the same cell. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Tue Feb 6 08:57:15 2007 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 6 Feb 2007 08:57:15 -0600 Subject: [AccessD] Connections and Performance In-Reply-To: <638723.1170722665768.JavaMail.root@sniper64> References: <638723.1170722665768.JavaMail.root@sniper64> Message-ID: <00ac01c749ff$17a2c5a0$0200a8c0@danwaters> Hi Drew, Do you know how many FE clients could maintain that type of connection to a BE at the same and still have reasonable performance? Does anyone have experience with this configuration? Dan Waters -----Original Message----- Subject: Re: [AccessD] Connections and Performance I believe there is only one connection between a front end and back end. In fact, many databases have better performance when the connection is maintained through a 'linked table'. Create a dummy table (one field, no records), called tblLink. Create a form bound to that table, and open that form, hidden, on startup. That keeps the 'connection' live while the user is in the database. I know in Access 97 that process was recommended in the help files under 'splitting a database'. Drew -----Original Message----- Subject: Re: [AccessD] Connections and Performance Thanks Drew, I have asked everyone at my customer's site to close the screens they're not using (these are bound), but told them they can stay logged in because the main screen is not bound. We'll see if that helps. If not then I will need to start timing out the bound forms. I still don't know what is the definition of one connection. Is one bound form a connection? Is a FE with any number of bound forms a connection? Or is a connection defined by the periods of time when data transfer is taking place between a FE and BE? Or . . . ? Thanks for teaching me! Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Monday, February 05, 2007 4:06 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance Most 'articles' that 'document' Access performance are doing so based upon poorly designed systems. You have to design your system based on system requirements. If you are going to have 1 to 5 users, you can keep everything bound, and be reasonably assured that things will work well. If you are talking 5 to 30 users, now it's time to pick up some of the slack. Timeout forms and reports that are going to tie up db connections. 30 to 100 users, you better start thinking unbound. 100+ users, better start thinking about something other then Access as a front end (I would recommend ASP). The point is that JET, as a db system, can handle a lot, but Access, as a Front End provides more bells and whistles that tax the backend more. Case in point, we have our production database in Oracle, on it's own honking box. Huge server, loads of memory and disk space, but when certain things are run, even that system gets taken to It's knees. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 02, 2007 10:13 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance Drew, I read this somewhere - either in MS documentation or in a book where I believe the author. Here's the reason I was asking: At a certain customer site, they experienced a dramatic performance slowdown at a time when about 10 people were logged on concurrently. Each client PC has it's own FE. I know that they open the system and leave the process screens open, all of which are bound. I want to suggest that they remember to close the process screens so that just the main screen is open, which is not bound. This way a fewer number of connections are being used at any one time and performance would probably be acceptable. This particular customer, I believe, does not have a very good network, so that is part of the problem. But that's unlikely to get improved, so I wanted to provide at least a partial solution, hence my question. I've also heard that a connection is made not based on whether a form is open and bound, but on whether or not there is data traffic between to and from a table, which only takes a small part of a second. So what causes the performance slowdown when only 10 client PC's are logged on, and what could be done to improve this? Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, February 02, 2007 9:26 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance Where are you getting these numbers. Access can have up to 255 connections. Drew -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Friday, February 02, 2007 8:45 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance Access has the potential for 8 simultaneous connections, but 3 of them are reserved for the system's use. That leaves five for users. Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Friday, February 02, 2007 8:02 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance >But, the connection limit for one BE is 5 FE's. What does this mean? I have never heard of any such thing. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 02, 2007 8:58 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Connections and Performance I've read several times that maintaining a connection between a FE and a BE will increase the performance of the FE because it doesn't need to reconnect before transferring data. The connection here would be a bound form connected by a table link to a table in the BE. But, the connection limit for one BE is 5 FE's. So, will maintaining connections on more than 5 FE's reduce performance? Seems logical, but I was wondering if this is correct or is there more to it? Thanks! Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Tue Feb 6 08:43:29 2007 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Tue, 6 Feb 2007 08:43:29 -0600 Subject: [AccessD] Excel Default cursor movement Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DE28A@corp-es01.fleetpride.com> toggle the scroll lock key Jim Hale -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Tuesday, February 06, 2007 6:55 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Excel Default cursor movement How do I set the default in excel to have the arrow keys move the cursor from cell to cell. For some reason it causes the viewable area to scroll around, keeping the cursor in the same cell. John W. Colby Colby Consulting www.ColbyConsulting.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 DWUTKA at Marlow.com Tue Feb 6 09:34:27 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 6 Feb 2007 09:34:27 -0600 Subject: [AccessD] Connections and Performance Message-ID: Again, it depends on the design of the front end. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, February 06, 2007 8:57 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance Hi Drew, Do you know how many FE clients could maintain that type of connection to a BE at the same and still have reasonable performance? Does anyone have experience with this configuration? Dan Waters -----Original Message----- Subject: Re: [AccessD] Connections and Performance I believe there is only one connection between a front end and back end. In fact, many databases have better performance when the connection is maintained through a 'linked table'. Create a dummy table (one field, no records), called tblLink. Create a form bound to that table, and open that form, hidden, on startup. That keeps the 'connection' live while the user is in the database. I know in Access 97 that process was recommended in the help files under 'splitting a database'. Drew -----Original Message----- Subject: Re: [AccessD] Connections and Performance Thanks Drew, I have asked everyone at my customer's site to close the screens they're not using (these are bound), but told them they can stay logged in because the main screen is not bound. We'll see if that helps. If not then I will need to start timing out the bound forms. I still don't know what is the definition of one connection. Is one bound form a connection? Is a FE with any number of bound forms a connection? Or is a connection defined by the periods of time when data transfer is taking place between a FE and BE? Or . . . ? Thanks for teaching me! Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Monday, February 05, 2007 4:06 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance Most 'articles' that 'document' Access performance are doing so based upon poorly designed systems. You have to design your system based on system requirements. If you are going to have 1 to 5 users, you can keep everything bound, and be reasonably assured that things will work well. If you are talking 5 to 30 users, now it's time to pick up some of the slack. Timeout forms and reports that are going to tie up db connections. 30 to 100 users, you better start thinking unbound. 100+ users, better start thinking about something other then Access as a front end (I would recommend ASP). The point is that JET, as a db system, can handle a lot, but Access, as a Front End provides more bells and whistles that tax the backend more. Case in point, we have our production database in Oracle, on it's own honking box. Huge server, loads of memory and disk space, but when certain things are run, even that system gets taken to It's knees. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 02, 2007 10:13 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance Drew, I read this somewhere - either in MS documentation or in a book where I believe the author. Here's the reason I was asking: At a certain customer site, they experienced a dramatic performance slowdown at a time when about 10 people were logged on concurrently. Each client PC has it's own FE. I know that they open the system and leave the process screens open, all of which are bound. I want to suggest that they remember to close the process screens so that just the main screen is open, which is not bound. This way a fewer number of connections are being used at any one time and performance would probably be acceptable. This particular customer, I believe, does not have a very good network, so that is part of the problem. But that's unlikely to get improved, so I wanted to provide at least a partial solution, hence my question. I've also heard that a connection is made not based on whether a form is open and bound, but on whether or not there is data traffic between to and from a table, which only takes a small part of a second. So what causes the performance slowdown when only 10 client PC's are logged on, and what could be done to improve this? Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, February 02, 2007 9:26 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance Where are you getting these numbers. Access can have up to 255 connections. Drew -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Friday, February 02, 2007 8:45 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance Access has the potential for 8 simultaneous connections, but 3 of them are reserved for the system's use. That leaves five for users. Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Friday, February 02, 2007 8:02 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance >But, the connection limit for one BE is 5 FE's. What does this mean? I have never heard of any such thing. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 02, 2007 8:58 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Connections and Performance I've read several times that maintaining a connection between a FE and a BE will increase the performance of the FE because it doesn't need to reconnect before transferring data. The connection here would be a bound form connected by a table link to a table in the BE. But, the connection limit for one BE is 5 FE's. So, will maintaining connections on more than 5 FE's reduce performance? Seems logical, but I was wondering if this is correct or is there more to it? Thanks! Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Tue Feb 6 09:50:26 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 06 Feb 2007 15:50:26 +0000 Subject: [AccessD] Connections and Performance In-Reply-To: <00ac01c749ff$17a2c5a0$0200a8c0@danwaters> Message-ID: Dan, My experience with this is around is about 6 years ago and with A97. Most of my decisions then were based on this group's input. At that time the average feedback I received with Access as the FE and BE...was 40 users... after that corruption...so I limited them to 40 users. There were a number of things I did to increase performance. I had a seperate computer that housed the BE. Nothing else was done with this machine(just an extra desktop we had). FEs on each users machine. This app was a complaint management system...so continuous lookup/edit existing/adding new. I had an unbound searchscreen...it had a couple of bound subforms to show each user the stats of their cases...and the search results subform was unbound until you hit search. The form to display/edit the case record did not use the filter property...the 'record source' SQL used the searchform as criteria. Hope this helps...let me know if you have any specific questions. Thanks, Mark A. Matte >From: "Dan Waters" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] Connections and Performance >Date: Tue, 6 Feb 2007 08:57:15 -0600 > >Hi Drew, > >Do you know how many FE clients could maintain that type of connection to a >BE at the same and still have reasonable performance? > >Does anyone have experience with this configuration? > >Dan Waters > >-----Original Message----- >Subject: Re: [AccessD] Connections and Performance > >I believe there is only one connection between a front end and back end. >In fact, many databases have better performance when the connection is >maintained through a 'linked table'. Create a dummy table (one field, >no records), called tblLink. Create a form bound to that table, and >open that form, hidden, on startup. That keeps the 'connection' live >while the user is in the database. > >I know in Access 97 that process was recommended in the help files under >'splitting a database'. > >Drew > >-----Original Message----- >Subject: Re: [AccessD] Connections and Performance > >Thanks Drew, > >I have asked everyone at my customer's site to close the screens they're >not >using (these are bound), but told them they can stay logged in because >the >main screen is not bound. We'll see if that helps. If not then I will >need >to start timing out the bound forms. > >I still don't know what is the definition of one connection. Is one >bound >form a connection? Is a FE with any number of bound forms a connection? >Or >is a connection defined by the periods of time when data transfer is >taking >place between a FE and BE? Or . . . ? > > >Thanks for teaching me! >Dan Waters > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka >Sent: Monday, February 05, 2007 4:06 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Connections and Performance > >Most 'articles' that 'document' Access performance are doing so based >upon poorly designed systems. You have to design your system based on >system requirements. If you are going to have 1 to 5 users, you can >keep everything bound, and be reasonably assured that things will work >well. If you are talking 5 to 30 users, now it's time to pick up some >of the slack. Timeout forms and reports that are going to tie up db >connections. 30 to 100 users, you better start thinking unbound. 100+ >users, better start thinking about something other then Access as a >front end (I would recommend ASP). > >The point is that JET, as a db system, can handle a lot, but Access, as >a Front End provides more bells and whistles that tax the backend more. >Case in point, we have our production database in Oracle, on it's own >honking box. Huge server, loads of memory and disk space, but when >certain things are run, even that system gets taken to It's knees. > >Drew > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >Sent: Friday, February 02, 2007 10:13 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Connections and Performance > >Drew, > >I read this somewhere - either in MS documentation or in a book where I >believe the author. > >Here's the reason I was asking: > >At a certain customer site, they experienced a dramatic performance >slowdown >at a time when about 10 people were logged on concurrently. Each client >PC >has it's own FE. I know that they open the system and leave the process >screens open, all of which are bound. I want to suggest that they >remember >to close the process screens so that just the main screen is open, which >is >not bound. This way a fewer number of connections are being used at any >one >time and performance would probably be acceptable. This particular >customer, I believe, does not have a very good network, so that is part >of >the problem. But that's unlikely to get improved, so I wanted to >provide at >least a partial solution, hence my question. > >I've also heard that a connection is made not based on whether a form is >open and bound, but on whether or not there is data traffic between to >and >from a table, which only takes a small part of a second. > >So what causes the performance slowdown when only 10 client PC's are >logged >on, and what could be done to improve this? > >Dan Waters > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka >Sent: Friday, February 02, 2007 9:26 AM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Connections and Performance > >Where are you getting these numbers. Access can have up to 255 >connections. > >Drew > >-----Original Message----- >From: Dan Waters [mailto:dwaters at usinternet.com] >Sent: Friday, February 02, 2007 8:45 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Connections and Performance > >Access has the potential for 8 simultaneous connections, but 3 of them >are >reserved for the system's use. That leaves five for users. > >Dan Waters > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby >Sent: Friday, February 02, 2007 8:02 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Connections and Performance > > >But, the connection limit for one BE is 5 FE's. > >What does this mean? I have never heard of any such thing. > > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >Sent: Friday, February 02, 2007 8:58 AM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] Connections and Performance > >I've read several times that maintaining a connection between a FE and a >BE >will increase the performance of the FE because it doesn't need to >reconnect >before transferring data. The connection here would be a bound form >connected by a table link to a table in the BE. > >But, the connection limit for one BE is 5 FE's. So, will maintaining >connections on more than 5 FE's reduce performance? Seems logical, but >I >was wondering if this is correct or is there more to it? > >Thanks! > >Dan Waters > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Laugh, share and connect with Windows Live Messenger http://clk.atdmt.com/MSN/go/msnnkwme0020000001msn/direct/01/?href=http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=hmtagline From dwaters at usinternet.com Tue Feb 6 10:07:55 2007 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 6 Feb 2007 10:07:55 -0600 Subject: [AccessD] Connections and Performance In-Reply-To: <8325015.1170777396751.JavaMail.root@sniper9> References: <00ac01c749ff$17a2c5a0$0200a8c0@danwaters> <8325015.1170777396751.JavaMail.root@sniper9> Message-ID: <000f01c74a08$f6a1ef70$0200a8c0@danwaters> Thanks Mark! That sounds quite similar to what I do now. Lots of input/output and FE/BE. I'll try the continuous connection technique to see how that works. I'll have to wait till the next time I'm on site though. Dan Waters -----Original Message----- Subject: Re: [AccessD] Connections and Performance Dan, My experience with this is around is about 6 years ago and with A97. Most of my decisions then were based on this group's input. At that time the average feedback I received with Access as the FE and BE...was 40 users... after that corruption...so I limited them to 40 users. There were a number of things I did to increase performance. I had a seperate computer that housed the BE. Nothing else was done with this machine(just an extra desktop we had). FEs on each users machine. This app was a complaint management system...so continuous lookup/edit existing/adding new. I had an unbound searchscreen...it had a couple of bound subforms to show each user the stats of their cases...and the search results subform was unbound until you hit search. The form to display/edit the case record did not use the filter property...the 'record source' SQL used the searchform as criteria. Hope this helps...let me know if you have any specific questions. Thanks, Mark A. Matte >From: "Dan Waters" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] Connections and Performance >Date: Tue, 6 Feb 2007 08:57:15 -0600 > >Hi Drew, > >Do you know how many FE clients could maintain that type of connection to a >BE at the same and still have reasonable performance? > >Does anyone have experience with this configuration? > >Dan Waters > >-----Original Message----- >Subject: Re: [AccessD] Connections and Performance > >I believe there is only one connection between a front end and back end. >In fact, many databases have better performance when the connection is >maintained through a 'linked table'. Create a dummy table (one field, >no records), called tblLink. Create a form bound to that table, and >open that form, hidden, on startup. That keeps the 'connection' live >while the user is in the database. > >I know in Access 97 that process was recommended in the help files under >'splitting a database'. > >Drew > >-----Original Message----- >Subject: Re: [AccessD] Connections and Performance > >Thanks Drew, > >I have asked everyone at my customer's site to close the screens they're >not >using (these are bound), but told them they can stay logged in because >the >main screen is not bound. We'll see if that helps. If not then I will >need >to start timing out the bound forms. > >I still don't know what is the definition of one connection. Is one >bound >form a connection? Is a FE with any number of bound forms a connection? >Or >is a connection defined by the periods of time when data transfer is >taking >place between a FE and BE? Or . . . ? > > >Thanks for teaching me! >Dan Waters > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka >Sent: Monday, February 05, 2007 4:06 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Connections and Performance > >Most 'articles' that 'document' Access performance are doing so based >upon poorly designed systems. You have to design your system based on >system requirements. If you are going to have 1 to 5 users, you can >keep everything bound, and be reasonably assured that things will work >well. If you are talking 5 to 30 users, now it's time to pick up some >of the slack. Timeout forms and reports that are going to tie up db >connections. 30 to 100 users, you better start thinking unbound. 100+ >users, better start thinking about something other then Access as a >front end (I would recommend ASP). > >The point is that JET, as a db system, can handle a lot, but Access, as >a Front End provides more bells and whistles that tax the backend more. >Case in point, we have our production database in Oracle, on it's own >honking box. Huge server, loads of memory and disk space, but when >certain things are run, even that system gets taken to It's knees. > >Drew > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >Sent: Friday, February 02, 2007 10:13 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Connections and Performance > >Drew, > >I read this somewhere - either in MS documentation or in a book where I >believe the author. > >Here's the reason I was asking: > >At a certain customer site, they experienced a dramatic performance >slowdown >at a time when about 10 people were logged on concurrently. Each client >PC >has it's own FE. I know that they open the system and leave the process >screens open, all of which are bound. I want to suggest that they >remember >to close the process screens so that just the main screen is open, which >is >not bound. This way a fewer number of connections are being used at any >one >time and performance would probably be acceptable. This particular >customer, I believe, does not have a very good network, so that is part >of >the problem. But that's unlikely to get improved, so I wanted to >provide at >least a partial solution, hence my question. > >I've also heard that a connection is made not based on whether a form is >open and bound, but on whether or not there is data traffic between to >and >from a table, which only takes a small part of a second. > >So what causes the performance slowdown when only 10 client PC's are >logged >on, and what could be done to improve this? > >Dan Waters > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka >Sent: Friday, February 02, 2007 9:26 AM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Connections and Performance > >Where are you getting these numbers. Access can have up to 255 >connections. > >Drew > >-----Original Message----- >From: Dan Waters [mailto:dwaters at usinternet.com] >Sent: Friday, February 02, 2007 8:45 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Connections and Performance > >Access has the potential for 8 simultaneous connections, but 3 of them >are >reserved for the system's use. That leaves five for users. > >Dan Waters > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby >Sent: Friday, February 02, 2007 8:02 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Connections and Performance > > >But, the connection limit for one BE is 5 FE's. > >What does this mean? I have never heard of any such thing. > > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >Sent: Friday, February 02, 2007 8:58 AM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] Connections and Performance > >I've read several times that maintaining a connection between a FE and a >BE >will increase the performance of the FE because it doesn't need to >reconnect >before transferring data. The connection here would be a bound form >connected by a table link to a table in the BE. > >But, the connection limit for one BE is 5 FE's. So, will maintaining >connections on more than 5 FE's reduce performance? Seems logical, but >I >was wondering if this is correct or is there more to it? > >Thanks! > >Dan Waters > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Laugh, share and connect with Windows Live Messenger http://clk.atdmt.com/MSN/go/msnnkwme0020000001msn/direct/01/?href=http://ima gine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=hmtagline -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Tue Feb 6 10:17:49 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 6 Feb 2007 08:17:49 -0800 Subject: [AccessD] ADO code stopped working In-Reply-To: References: Message-ID: You have to get the datatypes right for the parameters too. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, February 06, 2007 3:18 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] ADO code stopped working Hi Jennifer The 3265 missing item error is not related to the name of the query but - surprise - to the parameter collection of the query. If the query's parameter collection does have a parameter count of zero, the error is raised. I have tested this in A2002/XP as well as A2003 and the scenario is consistent with ADO 2.8. What has happened could be that in a previous version of ADO the parameter count was not checked. Even if your code indicates the presence of one or more parameters I guess none exists, thus - after a possible update of ADO - the error occurs. On another note, the "smart" way of feeding values to your parameters my not work in Access 2007 as - if I remember correctly - the function Eval is considered "dangerous" and thus has been removed. So, in the future, you better spell out each parameter and the variable you wish to assign. Remember, that a parameter can be identified by its Index: cmd.Parameters(0).Value = /gustav >>> jengross at gte.net 05-02-2007 20:16:05 >>> Hi Gustav, I have checked all references. The code is compiling. I have created a test database with one table and one query. It is failing in the same spot my original database is failing - Set prc = cat.Procedures("TheQuery") - In the test database I am getting the error 3265 - Item cannot be found in the collection corresponding to the requested name or ordinal. The query does exist - no spelling errors. The same ADO code is working fine on my home office system. It worked fine at the client's site in January. Any thoughts? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, February 05, 2007 1:47 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] ADO code stopped working Hi Jennifer You could - for and while debugging - try to separate the connection object: Dim cnn As ADODB.Connection Dim cmd As ADODB.Command Dim rst As ADODB.Recordset Dim prm As ADODB.Parameter Dim cat As ADOX.Catalog Dim prc As ADOX.Procedure Set cat = New ADOX.Catalog Set cnn = CurrentProject.Connection cat.ActiveConnection = cnn I guess you have double-checked the reference: Microsoft ADO Ext. 2.8 for DDL and Security points to ..system32\MSADOX.DLL /gustav >>> jengross at gte.net 05-02-2007 05:00 >>> Thanks for the suggestions. I set the references like Marty suggested and am still getting the problem. I am using the Getz Developers Handbook code for looping through parameters in a select query: Dim cmd As ADODB.Command Dim rst As ADODB.Recordset Dim prm As ADODB.Parameter Dim cat As ADOX.Catalog Dim prc As ADOX.Procedure Set cat = New ADOX.Catalog * cat.ActiveConnection = CurrentProject.Connection * Set prc = cat.Procedures("TheQuery") Set cmd = prc.Command For Each prm In cmd.Parameters prm.Value = Eval(prm.Name) Next prm Set rst = cmd.Execute If I don't use the query with parameters, but instead base the recordset on the table, then it works fine: Set rst = New ADODB.Recordset Set rst.ActiveConnection = CurrentProject.Connection rst.CursorType = adOpenForwardOnly rst.LockType = adLockReadOnly rst.Open "TheTable" I am getting the same results whether the code is in the existing FE or if I create a new db with the ADO code as Rocky suggested. Any thoughts? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Sunday, February 04, 2007 4:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] ADO code stopped working I would whip up a small app with some ado code to see if the problem is inside your app or outside of it. Does your app compile? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Sunday, February 04, 2007 2:05 PM To: AccessD List Subject: [AccessD] ADO code stopped working Hi Everyone, W2K SP4 / A2K SP3 / terminal server I have a database that has some DAO and some ADO code. Recently all ADO stopped working. DAO is still working fine. Anytime code utilizing ADO runs it shuts down the database abruptly, leaving the LDB file. We were also having problems with the Windows Management databases locking up and a reinstall of the latest MDAC took care of that problem, but did not solve the ADO problem. ADO was working fine for end of year reporting. There are no missing references. After the MDAC reinstall I unchecked references, closed down, opened up and rechecked references. Any help would be greatly appreciated. Thank you, Jennifer Gross databasics 2839 Shirley Drive Newbury Park, CA 91320-3068 office: (805) 480-1921 fax: (805) 499-0467 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Tue Feb 6 10:27:01 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 6 Feb 2007 10:27:01 -0600 Subject: [AccessD] Connections and Performance Message-ID: Do you have a lot of people editing data? That is a design issue that will cut the performance. Instead of editing, you should add. I know it won't work for everything, but it is feasible in many situations. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, February 06, 2007 10:08 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance Thanks Mark! That sounds quite similar to what I do now. Lots of input/output and FE/BE. I'll try the continuous connection technique to see how that works. I'll have to wait till the next time I'm on site though. Dan Waters -----Original Message----- Subject: Re: [AccessD] Connections and Performance Dan, My experience with this is around is about 6 years ago and with A97. Most of my decisions then were based on this group's input. At that time the average feedback I received with Access as the FE and BE...was 40 users... after that corruption...so I limited them to 40 users. There were a number of things I did to increase performance. I had a seperate computer that housed the BE. Nothing else was done with this machine(just an extra desktop we had). FEs on each users machine. This app was a complaint management system...so continuous lookup/edit existing/adding new. I had an unbound searchscreen...it had a couple of bound subforms to show each user the stats of their cases...and the search results subform was unbound until you hit search. The form to display/edit the case record did not use the filter property...the 'record source' SQL used the searchform as criteria. Hope this helps...let me know if you have any specific questions. Thanks, Mark A. Matte >From: "Dan Waters" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] Connections and Performance >Date: Tue, 6 Feb 2007 08:57:15 -0600 > >Hi Drew, > >Do you know how many FE clients could maintain that type of connection to a >BE at the same and still have reasonable performance? > >Does anyone have experience with this configuration? > >Dan Waters > >-----Original Message----- >Subject: Re: [AccessD] Connections and Performance > >I believe there is only one connection between a front end and back end. >In fact, many databases have better performance when the connection is >maintained through a 'linked table'. Create a dummy table (one field, >no records), called tblLink. Create a form bound to that table, and >open that form, hidden, on startup. That keeps the 'connection' live >while the user is in the database. > >I know in Access 97 that process was recommended in the help files under >'splitting a database'. > >Drew > >-----Original Message----- >Subject: Re: [AccessD] Connections and Performance > >Thanks Drew, > >I have asked everyone at my customer's site to close the screens they're >not >using (these are bound), but told them they can stay logged in because >the >main screen is not bound. We'll see if that helps. If not then I will >need >to start timing out the bound forms. > >I still don't know what is the definition of one connection. Is one >bound >form a connection? Is a FE with any number of bound forms a connection? >Or >is a connection defined by the periods of time when data transfer is >taking >place between a FE and BE? Or . . . ? > > >Thanks for teaching me! >Dan Waters > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka >Sent: Monday, February 05, 2007 4:06 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Connections and Performance > >Most 'articles' that 'document' Access performance are doing so based >upon poorly designed systems. You have to design your system based on >system requirements. If you are going to have 1 to 5 users, you can >keep everything bound, and be reasonably assured that things will work >well. If you are talking 5 to 30 users, now it's time to pick up some >of the slack. Timeout forms and reports that are going to tie up db >connections. 30 to 100 users, you better start thinking unbound. 100+ >users, better start thinking about something other then Access as a >front end (I would recommend ASP). > >The point is that JET, as a db system, can handle a lot, but Access, as >a Front End provides more bells and whistles that tax the backend more. >Case in point, we have our production database in Oracle, on it's own >honking box. Huge server, loads of memory and disk space, but when >certain things are run, even that system gets taken to It's knees. > >Drew > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >Sent: Friday, February 02, 2007 10:13 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Connections and Performance > >Drew, > >I read this somewhere - either in MS documentation or in a book where I >believe the author. > >Here's the reason I was asking: > >At a certain customer site, they experienced a dramatic performance >slowdown >at a time when about 10 people were logged on concurrently. Each client >PC >has it's own FE. I know that they open the system and leave the process >screens open, all of which are bound. I want to suggest that they >remember >to close the process screens so that just the main screen is open, which >is >not bound. This way a fewer number of connections are being used at any >one >time and performance would probably be acceptable. This particular >customer, I believe, does not have a very good network, so that is part >of >the problem. But that's unlikely to get improved, so I wanted to >provide at >least a partial solution, hence my question. > >I've also heard that a connection is made not based on whether a form is >open and bound, but on whether or not there is data traffic between to >and >from a table, which only takes a small part of a second. > >So what causes the performance slowdown when only 10 client PC's are >logged >on, and what could be done to improve this? > >Dan Waters > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka >Sent: Friday, February 02, 2007 9:26 AM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Connections and Performance > >Where are you getting these numbers. Access can have up to 255 >connections. > >Drew > >-----Original Message----- >From: Dan Waters [mailto:dwaters at usinternet.com] >Sent: Friday, February 02, 2007 8:45 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Connections and Performance > >Access has the potential for 8 simultaneous connections, but 3 of them >are >reserved for the system's use. That leaves five for users. > >Dan Waters > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby >Sent: Friday, February 02, 2007 8:02 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Connections and Performance > > >But, the connection limit for one BE is 5 FE's. > >What does this mean? I have never heard of any such thing. > > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >Sent: Friday, February 02, 2007 8:58 AM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] Connections and Performance > >I've read several times that maintaining a connection between a FE and a >BE >will increase the performance of the FE because it doesn't need to >reconnect >before transferring data. The connection here would be a bound form >connected by a table link to a table in the BE. > >But, the connection limit for one BE is 5 FE's. So, will maintaining >connections on more than 5 FE's reduce performance? Seems logical, but >I >was wondering if this is correct or is there more to it? > >Thanks! > >Dan Waters > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Laugh, share and connect with Windows Live Messenger http://clk.atdmt.com/MSN/go/msnnkwme0020000001msn/direct/01/?href=http:/ /ima gine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=hmtagli ne -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at gmail.com Tue Feb 6 12:14:18 2007 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Tue, 6 Feb 2007 13:14:18 -0500 Subject: [AccessD] Design Question Message-ID: I have a design question from a colleague that I can't answer. It may be because I haven't given it enough thought, or that I'm too rusty when designing Access apps, but here goes for you wonderful folks. I have 5 distinct categories, which will be table(s) (normalized): People Facility Hardware Software Service Agreements So far, so simple, right? Now comes the hard part, and where I'm having problems Any one of the tables can be associated with virtually any other table. For example: A piece of hardware can be assigned to a facility or person A piece of software can be assigned to a person or hardware or facility A service agreement can be assigned to hardware, software, person or facility These are just some of the combos that are possible. Multiples are also possible. Multiple pieces of hardware can be assigned to a single or many facilities or people Multiple pieces of software can be assigned to a single or many people / hardware or facilities Multiple service agreements can be assigned to a single or multiple hardware, software, person or facility How would you structure the tables to facilitate this? My brain can't figure it out at the moment. I need to get back to programing and not management. Any guidance or insight will be greatly appreciated. -- 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 jwcolby at colbyconsulting.com Tue Feb 6 12:30:06 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Tue, 6 Feb 2007 13:30:06 -0500 Subject: [AccessD] Design Question In-Reply-To: Message-ID: <00fc01c74a1c$d3efb430$657aa8c0@m6805> Given the possibility of having multiples, I would probably have the individual object tables, then one big m-m "relationship" table where I placed: PEID FACID HDWRID SFTWRID SVCAGRID Probably you would want other info about the relationship such as when the relationship was established and when the relationship terminated: DteEst DteTerm "multiples" come from new records in the relationship table. A person assigned two pieces of software would be two records, with just the peid and softwareid, plus the DteEst. When that person "turned in" the software, the record's DteTerm would be updated. The only issue with this kind of relationship is that one relationship could be terminated while another was not. If that is possible, then each relationship needs to be established individually (separate records in the relationship table), so that you can record when each relationship was established and terminated. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan Carbonnell Sent: Tuesday, February 06, 2007 1:14 PM To: Access Developers discussion and problem solving Subject: [AccessD] Design Question I have a design question from a colleague that I can't answer. It may be because I haven't given it enough thought, or that I'm too rusty when designing Access apps, but here goes for you wonderful folks. I have 5 distinct categories, which will be table(s) (normalized): People Facility Hardware Software Service Agreements So far, so simple, right? Now comes the hard part, and where I'm having problems Any one of the tables can be associated with virtually any other table. For example: A piece of hardware can be assigned to a facility or person A piece of software can be assigned to a person or hardware or facility A service agreement can be assigned to hardware, software, person or facility These are just some of the combos that are possible. Multiples are also possible. Multiple pieces of hardware can be assigned to a single or many facilities or people Multiple pieces of software can be assigned to a single or many people / hardware or facilities Multiple service agreements can be assigned to a single or multiple hardware, software, person or facility How would you structure the tables to facilitate this? My brain can't figure it out at the moment. I need to get back to programing and not management. Any guidance or insight will be greatly appreciated. -- 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 jwcolby at colbyconsulting.com Tue Feb 6 12:31:17 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Tue, 6 Feb 2007 13:31:17 -0500 Subject: [AccessD] Form stopped working Message-ID: <00fd01c74a1c$fed54d40$657aa8c0@m6805> I have a bound form that does initial data entry for claims received. The form has been working for several years, suddenly it doesn't. A virtually identical form still does. The claim table is broken into pieces. There is a main tblClaim where info common to all claims is entered. There are three other tables which are 1 to 1 with tblClaim. There is a tblClaimLTD, tblClaimSTD and tblClaimWP. Each of these three tables have one and only one record in them for each record in tblClaim, but tblClaim will only have a record for STD type claims, tblLTD will only have records for LTD type claims and WP will only have records for WP type claims. In order to enter the data I created three different data input forms, one for STD, LTD and WP. Each looks similar except that the data out in the "claim type specific" table will be displayed on their respective input forms, i.e. the frmLTD form will show data from tblClaim and tblClaimLTD, frmSTD will show data from tblClaim and tblClaimSTD etc. In order to create the record out in the claim type specific table, I use code in the form's BeforeInsert event like the following: Me!CLST_ID = Me!Rec_ID That line is supposed to place the PK just generated by the autonumber in tblClaim into the PKID field of tblClaimSTD. The same code runs in frmLTD except that the control is bound to the PKID in tblClaimLTD. The three forms have worked for several years. Suddenly the STD form fails with an error "the control cannot be updated" on the above line. I have decompiled / compiled / compacted / repaired the FE and the BE. I have created a new form and imported all of the controls and code from the failing form. I have created a new BE and imported all of the tables into the new BE. All of these things have failed to fix the problem. The LTD form still works, the STD form still fails. I have examined the two form's properties, toggling back and forth between them side by side, no differences. I have likewise examined the individual text box's properties side by side, no differences. I have examined properties of the PK field of the two child tables, no differences. I have looked for different indexes on the two table's PKs, no differences. I have run out of things to try, and this still doesn't work. Anything come to mind out in the brain trust? John W. Colby Colby Consulting www.ColbyConsulting.com From jimdettman at verizon.net Tue Feb 6 12:41:56 2007 From: jimdettman at verizon.net (Jim Dettman) Date: Tue, 06 Feb 2007 13:41:56 -0500 Subject: [AccessD] Connections and Performance In-Reply-To: Message-ID: <004d01c74a1e$7b617f90$8abea8c0@XPS> Drew, That practice still should be followed. If you allow a BE to close, there is a lot of overhead that Access/JET goes through opening it back up. Can make a big difference. And it can be any reference to a DB. Even just opening the database in code would keep the connection established. Dan, If the BE is on a NT/2000/2003 server, you may want to investigate turning off opportunistic locking. Be careful with this though because if other apps are running off that server, they may be negatively impacted. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Monday, February 05, 2007 7:40 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance I believe there is only one connection between a front end and back end. In fact, many databases have better performance when the connection is maintained through a 'linked table'. Create a dummy table (one field, no records), called tblLink. Create a form bound to that table, and open that form, hidden, on startup. That keeps the 'connection' live while the user is in the database. I know in Access 97 that process was recommended in the help files under 'splitting a database'. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, February 05, 2007 6:26 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance Thanks Drew, I have asked everyone at my customer's site to close the screens they're not using (these are bound), but told them they can stay logged in because the main screen is not bound. We'll see if that helps. If not then I will need to start timing out the bound forms. I still don't know what is the definition of one connection. Is one bound form a connection? Is a FE with any number of bound forms a connection? Or is a connection defined by the periods of time when data transfer is taking place between a FE and BE? Or . . . ? Thanks for teaching me! Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Monday, February 05, 2007 4:06 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance Most 'articles' that 'document' Access performance are doing so based upon poorly designed systems. You have to design your system based on system requirements. If you are going to have 1 to 5 users, you can keep everything bound, and be reasonably assured that things will work well. If you are talking 5 to 30 users, now it's time to pick up some of the slack. Timeout forms and reports that are going to tie up db connections. 30 to 100 users, you better start thinking unbound. 100+ users, better start thinking about something other then Access as a front end (I would recommend ASP). The point is that JET, as a db system, can handle a lot, but Access, as a Front End provides more bells and whistles that tax the backend more. Case in point, we have our production database in Oracle, on it's own honking box. Huge server, loads of memory and disk space, but when certain things are run, even that system gets taken to It's knees. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 02, 2007 10:13 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance Drew, I read this somewhere - either in MS documentation or in a book where I believe the author. Here's the reason I was asking: At a certain customer site, they experienced a dramatic performance slowdown at a time when about 10 people were logged on concurrently. Each client PC has it's own FE. I know that they open the system and leave the process screens open, all of which are bound. I want to suggest that they remember to close the process screens so that just the main screen is open, which is not bound. This way a fewer number of connections are being used at any one time and performance would probably be acceptable. This particular customer, I believe, does not have a very good network, so that is part of the problem. But that's unlikely to get improved, so I wanted to provide at least a partial solution, hence my question. I've also heard that a connection is made not based on whether a form is open and bound, but on whether or not there is data traffic between to and from a table, which only takes a small part of a second. So what causes the performance slowdown when only 10 client PC's are logged on, and what could be done to improve this? Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, February 02, 2007 9:26 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance Where are you getting these numbers. Access can have up to 255 connections. Drew -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Friday, February 02, 2007 8:45 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance Access has the potential for 8 simultaneous connections, but 3 of them are reserved for the system's use. That leaves five for users. Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Friday, February 02, 2007 8:02 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance >But, the connection limit for one BE is 5 FE's. What does this mean? I have never heard of any such thing. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 02, 2007 8:58 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Connections and Performance I've read several times that maintaining a connection between a FE and a BE will increase the performance of the FE because it doesn't need to reconnect before transferring data. The connection here would be a bound form connected by a table link to a table in the BE. But, the connection limit for one BE is 5 FE's. So, will maintaining connections on more than 5 FE's reduce performance? Seems logical, but I was wondering if this is correct or is there more to it? Thanks! Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DElam at jenkens.com Tue Feb 6 13:07:32 2007 From: DElam at jenkens.com (Elam, Debbie) Date: Tue, 6 Feb 2007 13:07:32 -0600 Subject: [AccessD] Form stopped working Message-ID: <7B1961ED924D1A459E378C9B1BB22B4C068DEC53@natexch.jenkens.com> Do you have a backup of the FE? Sometimes when things suddenly go weird like this, I have gotten a quick fix by looking at the backup FE. Debbie -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Tuesday, February 06, 2007 12:31 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Form stopped working I have a bound form that does initial data entry for claims received. The form has been working for several years, suddenly it doesn't. A virtually identical form still does. The claim table is broken into pieces. There is a main tblClaim where info common to all claims is entered. There are three other tables which are 1 to 1 with tblClaim. There is a tblClaimLTD, tblClaimSTD and tblClaimWP. Each of these three tables have one and only one record in them for each record in tblClaim, but tblClaim will only have a record for STD type claims, tblLTD will only have records for LTD type claims and WP will only have records for WP type claims. In order to enter the data I created three different data input forms, one for STD, LTD and WP. Each looks similar except that the data out in the "claim type specific" table will be displayed on their respective input forms, i.e. the frmLTD form will show data from tblClaim and tblClaimLTD, frmSTD will show data from tblClaim and tblClaimSTD etc. In order to create the record out in the claim type specific table, I use code in the form's BeforeInsert event like the following: Me!CLST_ID = Me!Rec_ID That line is supposed to place the PK just generated by the autonumber in tblClaim into the PKID field of tblClaimSTD. The same code runs in frmLTD except that the control is bound to the PKID in tblClaimLTD. The three forms have worked for several years. Suddenly the STD form fails with an error "the control cannot be updated" on the above line. I have decompiled / compiled / compacted / repaired the FE and the BE. I have created a new form and imported all of the controls and code from the failing form. I have created a new BE and imported all of the tables into the new BE. All of these things have failed to fix the problem. The LTD form still works, the STD form still fails. I have examined the two form's properties, toggling back and forth between them side by side, no differences. I have likewise examined the individual text box's properties side by side, no differences. I have examined properties of the PK field of the two child tables, no differences. I have looked for different indexes on the two table's PKs, no differences. I have run out of things to try, and this still doesn't work. Anything come to mind out in the brain trust? John W. Colby Colby Consulting www.ColbyConsulting.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 Lambert.Heenan at AIG.com Tue Feb 6 13:30:58 2007 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 6 Feb 2007 13:30:58 -0600 Subject: [AccessD] Form stopped working Message-ID: <34C8A2AB1EF3564CB0D64DB6AFFDD5C201200FE7@xlivmbx35.aig.com> About the only thing you have not tried is to import all of the front end objects into a new database *EXCEPT* for the problem form. Then rebuild the problem form from scratch (though as you say it is very similar to the LTD form you might be able to just copy that one and modify it slightly). Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Tuesday, February 06, 2007 1:31 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Form stopped working I have a bound form that does initial data entry for claims received. The form has been working for several years, suddenly it doesn't. A virtually identical form still does. The claim table is broken into pieces. There is a main tblClaim where info common to all claims is entered. There are three other tables which are 1 to 1 with tblClaim. There is a tblClaimLTD, tblClaimSTD and tblClaimWP. Each of these three tables have one and only one record in them for each record in tblClaim, but tblClaim will only have a record for STD type claims, tblLTD will only have records for LTD type claims and WP will only have records for WP type claims. In order to enter the data I created three different data input forms, one for STD, LTD and WP. Each looks similar except that the data out in the "claim type specific" table will be displayed on their respective input forms, i.e. the frmLTD form will show data from tblClaim and tblClaimLTD, frmSTD will show data from tblClaim and tblClaimSTD etc. In order to create the record out in the claim type specific table, I use code in the form's BeforeInsert event like the following: Me!CLST_ID = Me!Rec_ID That line is supposed to place the PK just generated by the autonumber in tblClaim into the PKID field of tblClaimSTD. The same code runs in frmLTD except that the control is bound to the PKID in tblClaimLTD. The three forms have worked for several years. Suddenly the STD form fails with an error "the control cannot be updated" on the above line. I have decompiled / compiled / compacted / repaired the FE and the BE. I have created a new form and imported all of the controls and code from the failing form. I have created a new BE and imported all of the tables into the new BE. All of these things have failed to fix the problem. The LTD form still works, the STD form still fails. I have examined the two form's properties, toggling back and forth between them side by side, no differences. I have likewise examined the individual text box's properties side by side, no differences. I have examined properties of the PK field of the two child tables, no differences. I have looked for different indexes on the two table's PKs, no differences. I have run out of things to try, and this still doesn't work. Anything come to mind out in the brain trust? John W. Colby Colby Consulting www.ColbyConsulting.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 Feb 6 13:55:11 2007 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 6 Feb 2007 13:55:11 -0600 Subject: [AccessD] Connections and Performance In-Reply-To: <28974405.1170779757828.JavaMail.root@sniper30> References: <28974405.1170779757828.JavaMail.root@sniper30> Message-ID: <002b01c74a28$b6a78e50$0200a8c0@danwaters> Yes - lot's of editing. These are mostly process records where a single record can stay available for editing for days or weeks before the record is finally closed. I do have a Vacation Management module which is mostly adding records though. But, due to screen graphics redisplay, it's the slowest of the bunch! I'm going to try to work through this one to see if I can speed it up. Dan Waters -----Original Message----- Subject: Re: [AccessD] Connections and Performance Do you have a lot of people editing data? That is a design issue that will cut the performance. Instead of editing, you should add. I know it won't work for everything, but it is feasible in many situations. Drew -----Original Message----- Subject: Re: [AccessD] Connections and Performance Thanks Mark! That sounds quite similar to what I do now. Lots of input/output and FE/BE. I'll try the continuous connection technique to see how that works. I'll have to wait till the next time I'm on site though. Dan Waters -----Original Message----- Subject: Re: [AccessD] Connections and Performance Dan, My experience with this is around is about 6 years ago and with A97. Most of my decisions then were based on this group's input. At that time the average feedback I received with Access as the FE and BE...was 40 users... after that corruption...so I limited them to 40 users. There were a number of things I did to increase performance. I had a seperate computer that housed the BE. Nothing else was done with this machine(just an extra desktop we had). FEs on each users machine. This app was a complaint management system...so continuous lookup/edit existing/adding new. I had an unbound searchscreen...it had a couple of bound subforms to show each user the stats of their cases...and the search results subform was unbound until you hit search. The form to display/edit the case record did not use the filter property...the 'record source' SQL used the searchform as criteria. Hope this helps...let me know if you have any specific questions. Thanks, Mark A. Matte >From: "Dan Waters" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] Connections and Performance >Date: Tue, 6 Feb 2007 08:57:15 -0600 > >Hi Drew, > >Do you know how many FE clients could maintain that type of connection to a >BE at the same and still have reasonable performance? > >Does anyone have experience with this configuration? > >Dan Waters > >-----Original Message----- >Subject: Re: [AccessD] Connections and Performance > >I believe there is only one connection between a front end and back end. >In fact, many databases have better performance when the connection is >maintained through a 'linked table'. Create a dummy table (one field, >no records), called tblLink. Create a form bound to that table, and >open that form, hidden, on startup. That keeps the 'connection' live >while the user is in the database. > >I know in Access 97 that process was recommended in the help files under >'splitting a database'. > >Drew > >-----Original Message----- >Subject: Re: [AccessD] Connections and Performance > >Thanks Drew, > >I have asked everyone at my customer's site to close the screens they're >not >using (these are bound), but told them they can stay logged in because >the >main screen is not bound. We'll see if that helps. If not then I will >need >to start timing out the bound forms. > >I still don't know what is the definition of one connection. Is one >bound >form a connection? Is a FE with any number of bound forms a connection? >Or >is a connection defined by the periods of time when data transfer is >taking >place between a FE and BE? Or . . . ? > > >Thanks for teaching me! >Dan Waters > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka >Sent: Monday, February 05, 2007 4:06 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Connections and Performance > >Most 'articles' that 'document' Access performance are doing so based >upon poorly designed systems. You have to design your system based on >system requirements. If you are going to have 1 to 5 users, you can >keep everything bound, and be reasonably assured that things will work >well. If you are talking 5 to 30 users, now it's time to pick up some >of the slack. Timeout forms and reports that are going to tie up db >connections. 30 to 100 users, you better start thinking unbound. 100+ >users, better start thinking about something other then Access as a >front end (I would recommend ASP). > >The point is that JET, as a db system, can handle a lot, but Access, as >a Front End provides more bells and whistles that tax the backend more. >Case in point, we have our production database in Oracle, on it's own >honking box. Huge server, loads of memory and disk space, but when >certain things are run, even that system gets taken to It's knees. > >Drew > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >Sent: Friday, February 02, 2007 10:13 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Connections and Performance > >Drew, > >I read this somewhere - either in MS documentation or in a book where I >believe the author. > >Here's the reason I was asking: > >At a certain customer site, they experienced a dramatic performance >slowdown >at a time when about 10 people were logged on concurrently. Each client >PC >has it's own FE. I know that they open the system and leave the process >screens open, all of which are bound. I want to suggest that they >remember >to close the process screens so that just the main screen is open, which >is >not bound. This way a fewer number of connections are being used at any >one >time and performance would probably be acceptable. This particular >customer, I believe, does not have a very good network, so that is part >of >the problem. But that's unlikely to get improved, so I wanted to >provide at >least a partial solution, hence my question. > >I've also heard that a connection is made not based on whether a form is >open and bound, but on whether or not there is data traffic between to >and >from a table, which only takes a small part of a second. > >So what causes the performance slowdown when only 10 client PC's are >logged >on, and what could be done to improve this? > >Dan Waters > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka >Sent: Friday, February 02, 2007 9:26 AM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Connections and Performance > >Where are you getting these numbers. Access can have up to 255 >connections. > >Drew > >-----Original Message----- >From: Dan Waters [mailto:dwaters at usinternet.com] >Sent: Friday, February 02, 2007 8:45 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Connections and Performance > >Access has the potential for 8 simultaneous connections, but 3 of them >are >reserved for the system's use. That leaves five for users. > >Dan Waters > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby >Sent: Friday, February 02, 2007 8:02 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Connections and Performance > > >But, the connection limit for one BE is 5 FE's. > >What does this mean? I have never heard of any such thing. > > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >Sent: Friday, February 02, 2007 8:58 AM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] Connections and Performance > >I've read several times that maintaining a connection between a FE and a >BE >will increase the performance of the FE because it doesn't need to >reconnect >before transferring data. The connection here would be a bound form >connected by a table link to a table in the BE. > >But, the connection limit for one BE is 5 FE's. So, will maintaining >connections on more than 5 FE's reduce performance? Seems logical, but >I >was wondering if this is correct or is there more to it? > >Thanks! > >Dan Waters > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Laugh, share and connect with Windows Live Messenger http://clk.atdmt.com/MSN/go/msnnkwme0020000001msn/direct/01/?href=http:/ /ima gine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=hmtagli ne -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Feb 6 14:15:23 2007 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 6 Feb 2007 14:15:23 -0600 Subject: [AccessD] Connections and Performance In-Reply-To: <27801219.1170787972443.JavaMail.root@sniper57> References: <27801219.1170787972443.JavaMail.root@sniper57> Message-ID: <003201c74a2b$88ebc370$0200a8c0@danwaters> Jim, In a system set up where each FE has a connection automatically established, about how many FE's could do this? I use Edited Record for my databases - this is equivalent to pessimistic locking for Jet, but does Windows Server 2003 supersede the Access setting? In a book I have called MS Jet Database Engine Programmer's Guide (pub. 1997), it talks about a ConnectionTimeout registry key for Jet that is by default set to time out an inactive connection after 10 minutes (600 seconds on my PC). The book suggested that you can change the value using the SetOption method in code, but I believe that the SetOption method actually can't be used for this particular key. It seems as though in an environment where FE apps are competing for connections that reducing this value could be beneficial. Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Tuesday, February 06, 2007 12:42 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance Drew, That practice still should be followed. If you allow a BE to close, there is a lot of overhead that Access/JET goes through opening it back up. Can make a big difference. And it can be any reference to a DB. Even just opening the database in code would keep the connection established. Dan, If the BE is on a NT/2000/2003 server, you may want to investigate turning off opportunistic locking. Be careful with this though because if other apps are running off that server, they may be negatively impacted. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Monday, February 05, 2007 7:40 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance I believe there is only one connection between a front end and back end. In fact, many databases have better performance when the connection is maintained through a 'linked table'. Create a dummy table (one field, no records), called tblLink. Create a form bound to that table, and open that form, hidden, on startup. That keeps the 'connection' live while the user is in the database. I know in Access 97 that process was recommended in the help files under 'splitting a database'. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, February 05, 2007 6:26 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance Thanks Drew, I have asked everyone at my customer's site to close the screens they're not using (these are bound), but told them they can stay logged in because the main screen is not bound. We'll see if that helps. If not then I will need to start timing out the bound forms. I still don't know what is the definition of one connection. Is one bound form a connection? Is a FE with any number of bound forms a connection? Or is a connection defined by the periods of time when data transfer is taking place between a FE and BE? Or . . . ? Thanks for teaching me! Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Monday, February 05, 2007 4:06 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance Most 'articles' that 'document' Access performance are doing so based upon poorly designed systems. You have to design your system based on system requirements. If you are going to have 1 to 5 users, you can keep everything bound, and be reasonably assured that things will work well. If you are talking 5 to 30 users, now it's time to pick up some of the slack. Timeout forms and reports that are going to tie up db connections. 30 to 100 users, you better start thinking unbound. 100+ users, better start thinking about something other then Access as a front end (I would recommend ASP). The point is that JET, as a db system, can handle a lot, but Access, as a Front End provides more bells and whistles that tax the backend more. Case in point, we have our production database in Oracle, on it's own honking box. Huge server, loads of memory and disk space, but when certain things are run, even that system gets taken to It's knees. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 02, 2007 10:13 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance Drew, I read this somewhere - either in MS documentation or in a book where I believe the author. Here's the reason I was asking: At a certain customer site, they experienced a dramatic performance slowdown at a time when about 10 people were logged on concurrently. Each client PC has it's own FE. I know that they open the system and leave the process screens open, all of which are bound. I want to suggest that they remember to close the process screens so that just the main screen is open, which is not bound. This way a fewer number of connections are being used at any one time and performance would probably be acceptable. This particular customer, I believe, does not have a very good network, so that is part of the problem. But that's unlikely to get improved, so I wanted to provide at least a partial solution, hence my question. I've also heard that a connection is made not based on whether a form is open and bound, but on whether or not there is data traffic between to and from a table, which only takes a small part of a second. So what causes the performance slowdown when only 10 client PC's are logged on, and what could be done to improve this? Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, February 02, 2007 9:26 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Connections and Performance Where are you getting these numbers. Access can have up to 255 connections. Drew -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Friday, February 02, 2007 8:45 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance Access has the potential for 8 simultaneous connections, but 3 of them are reserved for the system's use. That leaves five for users. Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Friday, February 02, 2007 8:02 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance >But, the connection limit for one BE is 5 FE's. What does this mean? I have never heard of any such thing. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 02, 2007 8:58 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Connections and Performance I've read several times that maintaining a connection between a FE and a BE will increase the performance of the FE because it doesn't need to reconnect before transferring data. The connection here would be a bound form connected by a table link to a table in the BE. But, the connection limit for one BE is 5 FE's. So, will maintaining connections on more than 5 FE's reduce performance? Seems logical, but I was wondering if this is correct or is there more to it? Thanks! Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ewaldt at gdls.com Tue Feb 6 14:18:01 2007 From: ewaldt at gdls.com (ewaldt at gdls.com) Date: Tue, 6 Feb 2007 15:18:01 -0500 Subject: [AccessD] Exporting help requested In-Reply-To: Message-ID: I have a database with a self-related table. I'll use a simplified example table: PartNumber PartDescription Parent Qty As should be obvious from the field names, the PartNumber is related as a child to its given Parent. Access is not to be the database for this project (sorry for the blasphemy; it's not my idea). There is a vertical application DB (I'll call it VADB) with CAD-type capabilities that Access does not possess (OTOH, the rest of the VADB is 80s technology; it's run in a DOS window, and minimum requirements include DOS 5 and a 386!). I am trying to use Access as an intermediary to convert data from a UNIX flat file to this VADB. I need to produce a text file in the format the VADB requires for importing. The target file would look like this, with each line below representing a line in the target file: Parent (and all data on the parent) .Child (and all data on the child) .Child (and all data on the child) ..Grandchild (and all data on the grandchild) .Child (and all data on the child) And so forth. The leading dots are necessary, although I could probably insert those manually or export the whole puppy to Excel and have Excel do it via VBA. The main point is that all of the lineage has to be included. That is, all of the "grandchildren" have to appear every time they're in a "child'; if the original table has only 200 records, the resulting target file could easily have over 1000, with many of the records repeated many times. The closest I've come is to create a report grouped by the Parent and export it to Excel. However, this only goes down one level, and does not include the leading dots, of course. Is there a way to have Access go down all levels? Is there a better way to do the whole thing? TIA, Tom Ewald GDLS Thomas F. Ewald FCS Database Manager General Dynamics Land Systems (586) 276-1256 This is an e-mail from General Dynamics Land Systems. It is for the intended recipient only and may contain confidential and privileged information. No one else may read, print, store, copy, forward or act in reliance on it or its attachments. If you are not the intended recipient, please return this message to the sender and delete the message and any attachments from your computer. Your cooperation is appreciated. From DWUTKA at Marlow.com Tue Feb 6 14:20:26 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 6 Feb 2007 14:20:26 -0600 Subject: [AccessD] Connections and Performance Message-ID: Ok, process records, let me see if I can take a stab at that. Let's say you have an insurance case. It gets assigned a case number, and you are allowing people to edit the details, as new things happen. This kind of concept should be redesigned so that each individual entry is a new record. It's a simple design, the case number and one time details would be in one table, then a separate table would hold additional entries, each with the foreign key from the original case number. This way, you can view all 'work' done on the case, but each 'change' is a new record, which is just added to the db, instead of tying up the entire record during editing. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, February 06, 2007 1:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Connections and Performance Yes - lot's of editing. These are mostly process records where a single record can stay available for editing for days or weeks before the record is finally closed. I do have a Vacation Management module which is mostly adding records though. But, due to screen graphics redisplay, it's the slowest of the bunch! I'm going to try to work through this one to see if I can speed it up. Dan Waters -----Original Message----- Subject: Re: [AccessD] Connections and Performance Do you have a lot of people editing data? That is a design issue that will cut the performance. Instead of editing, you should add. I know it won't work for everything, but it is feasible in many situations. Drew -----Original Message----- Subject: Re: [AccessD] Connections and Performance Thanks Mark! That sounds quite similar to what I do now. Lots of input/output and FE/BE. I'll try the continuous connection technique to see how that works. I'll have to wait till the next time I'm on site though. Dan Waters -----Original Message----- Subject: Re: [AccessD] Connections and Performance Dan, My experience with this is around is about 6 years ago and with A97. Most of my decisions then were based on this group's input. At that time the average feedback I received with Access as the FE and BE...was 40 users... after that corruption...so I limited them to 40 users. There were a number of things I did to increase performance. I had a seperate computer that housed the BE. Nothing else was done with this machine(just an extra desktop we had). FEs on each users machine. This app was a complaint management system...so continuous lookup/edit existing/adding new. I had an unbound searchscreen...it had a couple of bound subforms to show each user the stats of their cases...and the search results subform was unbound until you hit search. The form to display/edit the case record did not use the filter property...the 'record source' SQL used the searchform as criteria. Hope this helps...let me know if you have any specific questions. Thanks, Mark A. Matte >From: "Dan Waters" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] Connections and Performance >Date: Tue, 6 Feb 2007 08:57:15 -0600 > >Hi Drew, > >Do you know how many FE clients could maintain that type of connection to a >BE at the same and still have reasonable performance? > >Does anyone have experience with this configuration? > >Dan Waters > >-----Original Message----- >Subject: Re: [AccessD] Connections and Performance > >I believe there is only one connection between a front end and back end. >In fact, many databases have better performance when the connection is >maintained through a 'linked table'. Create a dummy table (one field, >no records), called tblLink. Create a form bound to that table, and >open that form, hidden, on startup. That keeps the 'connection' live >while the user is in the database. > >I know in Access 97 that process was recommended in the help files under >'splitting a database'. > >Drew > >-----Original Message----- >Subject: Re: [AccessD] Connections and Performance > >Thanks Drew, > >I have asked everyone at my customer's site to close the screens they're >not >using (these are bound), but told them they can stay logged in because >the >main screen is not bound. We'll see if that helps. If not then I will >need >to start timing out the bound forms. > >I still don't know what is the definition of one connection. Is one >bound >form a connection? Is a FE with any number of bound forms a connection? >Or >is a connection defined by the periods of time when data transfer is >taking >place between a FE and BE? Or . . . ? > > >Thanks for teaching me! >Dan Waters > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka >Sent: Monday, February 05, 2007 4:06 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Connections and Performance > >Most 'articles' that 'document' Access performance are doing so based >upon poorly designed systems. You have to design your system based on >system requirements. If you are going to have 1 to 5 users, you can >keep everything bound, and be reasonably assured that things will work >well. If you are talking 5 to 30 users, now it's time to pick up some >of the slack. Timeout forms and reports that are going to tie up db >connections. 30 to 100 users, you better start thinking unbound. 100+ >users, better start thinking about something other then Access as a >front end (I would recommend ASP). > >The point is that JET, as a db system, can handle a lot, but Access, as >a Front End provides more bells and whistles that tax the backend more. >Case in point, we have our production database in Oracle, on it's own >honking box. Huge server, loads of memory and disk space, but when >certain things are run, even that system gets taken to It's knees. > >Drew > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >Sent: Friday, February 02, 2007 10:13 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Connections and Performance > >Drew, > >I read this somewhere - either in MS documentation or in a book where I >believe the author. > >Here's the reason I was asking: > >At a certain customer site, they experienced a dramatic performance >slowdown >at a time when about 10 people were logged on concurrently. Each client >PC >has it's own FE. I know that they open the system and leave the process >screens open, all of which are bound. I want to suggest that they >remember >to close the process screens so that just the main screen is open, which >is >not bound. This way a fewer number of connections are being used at any >one >time and performance would probably be acceptable. This particular >customer, I believe, does not have a very good network, so that is part >of >the problem. But that's unlikely to get improved, so I wanted to >provide at >least a partial solution, hence my question. > >I've also heard that a connection is made not based on whether a form is >open and bound, but on whether or not there is data traffic between to >and >from a table, which only takes a small part of a second. > >So what causes the performance slowdown when only 10 client PC's are >logged >on, and what could be done to improve this? > >Dan Waters > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka >Sent: Friday, February 02, 2007 9:26 AM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Connections and Performance > >Where are you getting these numbers. Access can have up to 255 >connections. > >Drew > >-----Original Message----- >From: Dan Waters [mailto:dwaters at usinternet.com] >Sent: Friday, February 02, 2007 8:45 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Connections and Performance > >Access has the potential for 8 simultaneous connections, but 3 of them >are >reserved for the system's use. That leaves five for users. > >Dan Waters > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby >Sent: Friday, February 02, 2007 8:02 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Connections and Performance > > >But, the connection limit for one BE is 5 FE's. > >What does this mean? I have never heard of any such thing. > > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >Sent: Friday, February 02, 2007 8:58 AM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] Connections and Performance > >I've read several times that maintaining a connection between a FE and a >BE >will increase the performance of the FE because it doesn't need to >reconnect >before transferring data. The connection here would be a bound form >connected by a table link to a table in the BE. > >But, the connection limit for one BE is 5 FE's. So, will maintaining >connections on more than 5 FE's reduce performance? Seems logical, but >I >was wondering if this is correct or is there more to it? > >Thanks! > >Dan Waters > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Laugh, share and connect with Windows Live Messenger http://clk.atdmt.com/MSN/go/msnnkwme0020000001msn/direct/01/?href=http:/ /ima gine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=hmtagli ne -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From garykjos at gmail.com Tue Feb 6 14:36:11 2007 From: garykjos at gmail.com (Gary Kjos) Date: Tue, 6 Feb 2007 14:36:11 -0600 Subject: [AccessD] Exporting help requested In-Reply-To: References: Message-ID: I think I would be inclined to write this file out using File IO and to read the data using DAO with Do While loops for the various levels of the data hierarchy. See Seth Galitzers website for info on the File IO http://www.cis.ksu.edu/~sgsax/files/download/file_io.txt GK On 2/6/07, ewaldt at gdls.com wrote: > I have a database with a self-related table. I'll use a simplified example > table: > > PartNumber > PartDescription > Parent > Qty > > As should be obvious from the field names, the PartNumber is related as a > child to its given Parent. > > Access is not to be the database for this project (sorry for the > blasphemy; it's not my idea). There is a vertical application DB (I'll > call it VADB) with CAD-type capabilities that Access does not possess > (OTOH, the rest of the VADB is 80s technology; it's run in a DOS window, > and minimum requirements include DOS 5 and a 386!). I am trying to use > Access as an intermediary to convert data from a UNIX flat file to this > VADB. I need to produce a text file in the format the VADB requires for > importing. > > The target file would look like this, with each line below representing a > line in the target file: > > Parent (and all data on the parent) > .Child (and all data on the child) > .Child (and all data on the child) > ..Grandchild (and all data on the grandchild) > .Child (and all data on the child) > > And so forth. The leading dots are necessary, although I could probably > insert those manually or export the whole puppy to Excel and have Excel do > it via VBA. The main point is that all of the lineage has to be included. > That is, all of the "grandchildren" have to appear every time they're in a > "child'; if the original table has only 200 records, the resulting target > file could easily have over 1000, with many of the records repeated many > times. > > The closest I've come is to create a report grouped by the Parent and > export it to Excel. However, this only goes down one level, and does not > include the leading dots, of course. Is there a way to have Access go down > all levels? Is there a better way to do the whole thing? > > TIA, > > Tom Ewald > GDLS > > > > > > > > > > > > Thomas F. Ewald > FCS Database Manager > General Dynamics Land Systems > (586) 276-1256 > > > > > > This is an e-mail from General Dynamics Land Systems. It is for the intended recipient only and may contain confidential and privileged information. No one else may read, print, store, copy, forward or act in reliance on it or its attachments. If you are not the intended recipient, please return this message to the sender and delete the message and any attachments from your computer. Your cooperation is appreciated. > > -- > 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 martyconnelly at shaw.ca Tue Feb 6 15:11:48 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 06 Feb 2007 13:11:48 -0800 Subject: [AccessD] Exporting help requested In-Reply-To: References: Message-ID: <45C8EF14.70900@shaw.ca> You might try using the Data Shape Provider. It was first included I think in MDAC ADO 2.1. There are .chm help files but also several explanatory Papers on MSDN and Knowledge Base. Look under hierachical recordsets or DataShape. I find it useful for aggregate grouping. You could display with old VB6 Hierarchical Flexgrid control http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ado270/htm/mdmscaccessingrowsinhierarchicalrecordset.asp Data shaping provides a way to query a data source and return a Recordset that represents a parent-child relationship between two or more logical entities (a hierarchy). A classic example of a hierarchical relationship is customers and orders. For every customer in a database, there can be zero or more orders. Regular SQL provides a means of retrieving the data using JOIN syntax, but this can be inefficient and unwieldy because redundant parent data is repeated in each record returned for a given parent-child relationship. Data shaping can relate a single parent record in the parent recordset to multiple child records in the child recordset, avoiding the redundancy of a JOIN. Example Dim cnn As New ADODB.Connection cnn.Provider = "MSDataShape" cnn.Open "Data Provider=MSDASQL;DSN=vfox;uid=sa;pwd=vfox;database=Pubs" . . . rs1.Open "SHAPE {select * from Customers} " & _ "APPEND ({select * from Orders} AS chapOrders " & _ "RELATE CustomerID to CustomerID)", cnn ewaldt at gdls.com wrote: >I have a database with a self-related table. I'll use a simplified example >table: > >PartNumber >PartDescription >Parent >Qty > >As should be obvious from the field names, the PartNumber is related as a >child to its given Parent. > >Access is not to be the database for this project (sorry for the >blasphemy; it's not my idea). There is a vertical application DB (I'll >call it VADB) with CAD-type capabilities that Access does not possess >(OTOH, the rest of the VADB is 80s technology; it's run in a DOS window, >and minimum requirements include DOS 5 and a 386!). I am trying to use >Access as an intermediary to convert data from a UNIX flat file to this >VADB. I need to produce a text file in the format the VADB requires for >importing. > >The target file would look like this, with each line below representing a >line in the target file: > >Parent (and all data on the parent) >.Child (and all data on the child) >.Child (and all data on the child) >..Grandchild (and all data on the grandchild) >.Child (and all data on the child) > >And so forth. The leading dots are necessary, although I could probably >insert those manually or export the whole puppy to Excel and have Excel do >it via VBA. The main point is that all of the lineage has to be included. >That is, all of the "grandchildren" have to appear every time they're in a >"child'; if the original table has only 200 records, the resulting target >file could easily have over 1000, with many of the records repeated many >times. > >The closest I've come is to create a report grouped by the Parent and >export it to Excel. However, this only goes down one level, and does not >include the leading dots, of course. Is there a way to have Access go down >all levels? Is there a better way to do the whole thing? > >TIA, > >Tom Ewald >GDLS > > > > > > > > > > > >Thomas F. Ewald >FCS Database Manager >General Dynamics Land Systems >(586) 276-1256 > > > > > >This is an e-mail from General Dynamics Land Systems. It is for the intended recipient only and may contain confidential and privileged information. No one else may read, print, store, copy, forward or act in reliance on it or its attachments. If you are not the intended recipient, please return this message to the sender and delete the message and any attachments from your computer. Your cooperation is appreciated. > > > -- Marty Connelly Victoria, B.C. Canada From accessd at shaw.ca Tue Feb 6 15:17:33 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 06 Feb 2007 13:17:33 -0800 Subject: [AccessD] Design Question In-Reply-To: Message-ID: <0JD2000W28DRE4R1@l-daemon> Hi Bryan: It looks like an additional table would have to be create to store/keep the relationships of facilities, people software etc... People Facility Hardware Software Service Agreements The above would be correct (I will assume that each record in each of the tables has a field name ID) and if you add a table named 'CONNECTION' with only two fields, additional to its own ID field. One field could be named OwnerID and the other field OwnedID. The records in this table would be created when a relationship was established in code, one for each relationship. The beauty of using this type of table is that one-to-one, one to many, backwards or forwards and even reciprocal relationships (the table could call it's self) could used... The only particular about this type of table is that you as the programmer would most likely have to maintain it with your code.... sorry not bound. This system works great and I have used it to resolve many similar issues. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan Carbonnell Sent: Tuesday, February 06, 2007 10:14 AM To: Access Developers discussion and problem solving Subject: [AccessD] Design Question I have a design question from a colleague that I can't answer. It may be because I haven't given it enough thought, or that I'm too rusty when designing Access apps, but here goes for you wonderful folks. I have 5 distinct categories, which will be table(s) (normalized): People Facility Hardware Software Service Agreements So far, so simple, right? Now comes the hard part, and where I'm having problems Any one of the tables can be associated with virtually any other table. For example: A piece of hardware can be assigned to a facility or person A piece of software can be assigned to a person or hardware or facility A service agreement can be assigned to hardware, software, person or facility These are just some of the combos that are possible. Multiples are also possible. Multiple pieces of hardware can be assigned to a single or many facilities or people Multiple pieces of software can be assigned to a single or many people / hardware or facilities Multiple service agreements can be assigned to a single or multiple hardware, software, person or facility How would you structure the tables to facilitate this? My brain can't figure it out at the moment. I need to get back to programing and not management. Any guidance or insight will be greatly appreciated. -- 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 martyconnelly at shaw.ca Tue Feb 6 15:17:05 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 06 Feb 2007 13:17:05 -0800 Subject: [AccessD] Design Question In-Reply-To: References: Message-ID: <45C8F051.5000308@shaw.ca> Have a look at this mdb and article. somewhat similar People in households and companies - modelling human relationships http://www.allenbrowne.com/AppHuman.html Bryan Carbonnell wrote: >I have a design question from a colleague that I can't answer. It may >be because I haven't given it enough thought, or that I'm too rusty >when designing Access apps, but here goes for you wonderful folks. > >I have 5 distinct categories, which will be table(s) (normalized): > >People >Facility >Hardware >Software >Service Agreements > >So far, so simple, right? > >Now comes the hard part, and where I'm having problems > >Any one of the tables can be associated with virtually any other table. > >For example: >A piece of hardware can be assigned to a facility or person >A piece of software can be assigned to a person or hardware or facility >A service agreement can be assigned to hardware, software, person or facility > >These are just some of the combos that are possible. Multiples are >also possible. >Multiple pieces of hardware can be assigned to a single or many >facilities or people >Multiple pieces of software can be assigned to a single or many people >/ hardware or facilities >Multiple service agreements can be assigned to a single or multiple >hardware, software, person or facility > >How would you structure the tables to facilitate this? My brain can't >figure it out at the moment. I need to get back to programing and not >management. > >Any guidance or insight will be greatly appreciated. > > > -- Marty Connelly Victoria, B.C. Canada From cfoust at infostatsystems.com Tue Feb 6 16:59:08 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 6 Feb 2007 14:59:08 -0800 Subject: [AccessD] Design Question In-Reply-To: References: Message-ID: Is this for data entry or retrieval, Bryan? For Retrieval, a star schema will work. Just create tables with all the shared foreign key fields and slice and dice to taste. ;o} Not efficient for data entry but whizbang for retrieval. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan Carbonnell Sent: Tuesday, February 06, 2007 10:14 AM To: Access Developers discussion and problem solving Subject: [AccessD] Design Question I have a design question from a colleague that I can't answer. It may be because I haven't given it enough thought, or that I'm too rusty when designing Access apps, but here goes for you wonderful folks. I have 5 distinct categories, which will be table(s) (normalized): People Facility Hardware Software Service Agreements So far, so simple, right? Now comes the hard part, and where I'm having problems Any one of the tables can be associated with virtually any other table. For example: A piece of hardware can be assigned to a facility or person A piece of software can be assigned to a person or hardware or facility A service agreement can be assigned to hardware, software, person or facility These are just some of the combos that are possible. Multiples are also possible. Multiple pieces of hardware can be assigned to a single or many facilities or people Multiple pieces of software can be assigned to a single or many people / hardware or facilities Multiple service agreements can be assigned to a single or multiple hardware, software, person or facility How would you structure the tables to facilitate this? My brain can't figure it out at the moment. I need to get back to programing and not management. Any guidance or insight will be greatly appreciated. -- 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 dwaters at usinternet.com Tue Feb 6 18:01:05 2007 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 6 Feb 2007 18:01:05 -0600 Subject: [AccessD] Connections and Performance In-Reply-To: <30920009.1170793546997.JavaMail.root@Sniper29> References: <30920009.1170793546997.JavaMail.root@Sniper29> Message-ID: <002401c74a4b$13448a10$0200a8c0@danwaters> Thanks Drew - that might work for some processes. Dan Waters -----Original Message----- Subject: Re: [AccessD] Connections and Performance Ok, process records, let me see if I can take a stab at that. Let's say you have an insurance case. It gets assigned a case number, and you are allowing people to edit the details, as new things happen. This kind of concept should be redesigned so that each individual entry is a new record. It's a simple design, the case number and one time details would be in one table, then a separate table would hold additional entries, each with the foreign key from the original case number. This way, you can view all 'work' done on the case, but each 'change' is a new record, which is just added to the db, instead of tying up the entire record during editing. Drew -----Original Message----- Subject: Re: [AccessD] Connections and Performance Yes - lot's of editing. These are mostly process records where a single record can stay available for editing for days or weeks before the record is finally closed. I do have a Vacation Management module which is mostly adding records though. But, due to screen graphics redisplay, it's the slowest of the bunch! I'm going to try to work through this one to see if I can speed it up. Dan Waters -----Original Message----- Subject: Re: [AccessD] Connections and Performance Do you have a lot of people editing data? That is a design issue that will cut the performance. Instead of editing, you should add. I know it won't work for everything, but it is feasible in many situations. Drew -----Original Message----- Subject: Re: [AccessD] Connections and Performance Thanks Mark! That sounds quite similar to what I do now. Lots of input/output and FE/BE. I'll try the continuous connection technique to see how that works. I'll have to wait till the next time I'm on site though. Dan Waters -----Original Message----- Subject: Re: [AccessD] Connections and Performance Dan, My experience with this is around is about 6 years ago and with A97. Most of my decisions then were based on this group's input. At that time the average feedback I received with Access as the FE and BE...was 40 users... after that corruption...so I limited them to 40 users. There were a number of things I did to increase performance. I had a seperate computer that housed the BE. Nothing else was done with this machine(just an extra desktop we had). FEs on each users machine. This app was a complaint management system...so continuous lookup/edit existing/adding new. I had an unbound searchscreen...it had a couple of bound subforms to show each user the stats of their cases...and the search results subform was unbound until you hit search. The form to display/edit the case record did not use the filter property...the 'record source' SQL used the searchform as criteria. Hope this helps...let me know if you have any specific questions. Thanks, Mark A. Matte >From: "Dan Waters" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] Connections and Performance >Date: Tue, 6 Feb 2007 08:57:15 -0600 > >Hi Drew, > >Do you know how many FE clients could maintain that type of connection to a >BE at the same and still have reasonable performance? > >Does anyone have experience with this configuration? > >Dan Waters > >-----Original Message----- >Subject: Re: [AccessD] Connections and Performance > >I believe there is only one connection between a front end and back end. >In fact, many databases have better performance when the connection is >maintained through a 'linked table'. Create a dummy table (one field, >no records), called tblLink. Create a form bound to that table, and >open that form, hidden, on startup. That keeps the 'connection' live >while the user is in the database. > >I know in Access 97 that process was recommended in the help files under >'splitting a database'. > >Drew > >-----Original Message----- >Subject: Re: [AccessD] Connections and Performance > >Thanks Drew, > >I have asked everyone at my customer's site to close the screens they're >not >using (these are bound), but told them they can stay logged in because >the >main screen is not bound. We'll see if that helps. If not then I will >need >to start timing out the bound forms. > >I still don't know what is the definition of one connection. Is one >bound >form a connection? Is a FE with any number of bound forms a connection? >Or >is a connection defined by the periods of time when data transfer is >taking >place between a FE and BE? Or . . . ? > > >Thanks for teaching me! >Dan Waters > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka >Sent: Monday, February 05, 2007 4:06 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Connections and Performance > >Most 'articles' that 'document' Access performance are doing so based >upon poorly designed systems. You have to design your system based on >system requirements. If you are going to have 1 to 5 users, you can >keep everything bound, and be reasonably assured that things will work >well. If you are talking 5 to 30 users, now it's time to pick up some >of the slack. Timeout forms and reports that are going to tie up db >connections. 30 to 100 users, you better start thinking unbound. 100+ >users, better start thinking about something other then Access as a >front end (I would recommend ASP). > >The point is that JET, as a db system, can handle a lot, but Access, as >a Front End provides more bells and whistles that tax the backend more. >Case in point, we have our production database in Oracle, on it's own >honking box. Huge server, loads of memory and disk space, but when >certain things are run, even that system gets taken to It's knees. > >Drew > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >Sent: Friday, February 02, 2007 10:13 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Connections and Performance > >Drew, > >I read this somewhere - either in MS documentation or in a book where I >believe the author. > >Here's the reason I was asking: > >At a certain customer site, they experienced a dramatic performance >slowdown >at a time when about 10 people were logged on concurrently. Each client >PC >has it's own FE. I know that they open the system and leave the process >screens open, all of which are bound. I want to suggest that they >remember >to close the process screens so that just the main screen is open, which >is >not bound. This way a fewer number of connections are being used at any >one >time and performance would probably be acceptable. This particular >customer, I believe, does not have a very good network, so that is part >of >the problem. But that's unlikely to get improved, so I wanted to >provide at >least a partial solution, hence my question. > >I've also heard that a connection is made not based on whether a form is >open and bound, but on whether or not there is data traffic between to >and >from a table, which only takes a small part of a second. > >So what causes the performance slowdown when only 10 client PC's are >logged >on, and what could be done to improve this? > >Dan Waters > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka >Sent: Friday, February 02, 2007 9:26 AM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Connections and Performance > >Where are you getting these numbers. Access can have up to 255 >connections. > >Drew > >-----Original Message----- >From: Dan Waters [mailto:dwaters at usinternet.com] >Sent: Friday, February 02, 2007 8:45 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Connections and Performance > >Access has the potential for 8 simultaneous connections, but 3 of them >are >reserved for the system's use. That leaves five for users. > >Dan Waters > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby >Sent: Friday, February 02, 2007 8:02 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Connections and Performance > > >But, the connection limit for one BE is 5 FE's. > >What does this mean? I have never heard of any such thing. > > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >Sent: Friday, February 02, 2007 8:58 AM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] Connections and Performance > >I've read several times that maintaining a connection between a FE and a >BE >will increase the performance of the FE because it doesn't need to >reconnect >before transferring data. The connection here would be a bound form >connected by a table link to a table in the BE. > >But, the connection limit for one BE is 5 FE's. So, will maintaining >connections on more than 5 FE's reduce performance? Seems logical, but >I >was wondering if this is correct or is there more to it? > >Thanks! > >Dan Waters > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Laugh, share and connect with Windows Live Messenger http://clk.atdmt.com/MSN/go/msnnkwme0020000001msn/direct/01/?href=http:/ /ima gine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=hmtagli ne -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From darren.dick at bigpond.com Wed Feb 7 05:29:58 2007 From: darren.dick at bigpond.com (Darren DICK) Date: Wed, 7 Feb 2007 22:29:58 +1100 Subject: [AccessD] Rename files Message-ID: <20070207113049.STDH27396.oaamta01sl.mx.bigpond.com@DENZILLAP> Hi All I have a renaming routine but can't quite work out the syntax I have file names in a folder similar to 10.pdf 11.pdf 12.pdf 13.pdf etc etc (All sequential) I want to prefix each file name in the nominated folder with "inv103" I can do this bit - no prob But I want to insert "-016" before the .PDF bit So final filename is like. inv10310-016.pdf inv10311-016.pdf inv10312-016.pdf inv10313-016.pdf and so on Any suggestions? Many thanks in advance Darren From bheid at sc.rr.com Wed Feb 7 05:43:43 2007 From: bheid at sc.rr.com (Bobby Heid) Date: Wed, 7 Feb 2007 06:43:43 -0500 Subject: [AccessD] Rename files In-Reply-To: <20070207113049.STDH27396.oaamta01sl.mx.bigpond.com@DENZILLAP> References: <20070207113049.STDH27396.oaamta01sl.mx.bigpond.com@DENZILLAP> Message-ID: <002c01c74aad$38c32820$2d01a8c0@bhxp> Darren, As you read each file name, split it up into the file name and the extension. Then NewName="Inv03" & FileName & "-016." & FileExt Then rename the file to NewName. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Wednesday, February 07, 2007 6:30 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Rename files Hi All I have a renaming routine but can't quite work out the syntax I have file names in a folder similar to 10.pdf 11.pdf 12.pdf 13.pdf etc etc (All sequential) I want to prefix each file name in the nominated folder with "inv103" I can do this bit - no prob But I want to insert "-016" before the .PDF bit So final filename is like. inv10310-016.pdf inv10311-016.pdf inv10312-016.pdf inv10313-016.pdf and so on Any suggestions? Many thanks in advance Darren From paul.hartland at fsmail.net Wed Feb 7 05:50:12 2007 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 7 Feb 2007 12:50:12 +0100 (CET) Subject: [AccessD] Rename files Message-ID: <3069814.39491170849012073.JavaMail.www@wwinf3203> This might work, not knowing how you are renaming your files... Get current filename New filename = "inv103" & Mid(OldFileName,1,(Len(OldFileName)-4)) & "-016.pdf" Paul Hartland Message Received: Feb 07 2007, 11:34 AM From: "Darren DICK" To: "'Access Developers discussion and problem solving'" Cc: Subject: [AccessD] Rename files Hi All I have a renaming routine but can't quite work out the syntax I have file names in a folder similar to 10.pdf 11.pdf 12.pdf 13.pdf etc etc (All sequential) I want to prefix each file name in the nominated folder with "inv103" I can do this bit - no prob But I want to insert "-016" before the .PDF bit So final filename is like. inv10310-016.pdf inv10311-016.pdf inv10312-016.pdf inv10313-016.pdf and so on Any suggestions? Many thanks in advance Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Paul Hartland paul.hartland at fsmail.net 07730 523179 From Gustav at cactus.dk Wed Feb 7 08:44:53 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 07 Feb 2007 15:44:53 +0100 Subject: [AccessD] ADO code stopped working Message-ID: Hi Charlotte No, that will not cause (or raise) the error discussed, 3265. Of course, if you have an explicit parameter, the value passed must be of a matching datatype. If not, it will raise the error 3421 (wrong datatype), but that will not happen until the code line with the parameter value setting is reached, not at the call to the procedures' collection which is Jennifer's problem. /gustav >>> cfoust at infostatsystems.com 06-02-2007 17:17:49 >>> You have to get the datatypes right for the parameters too. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, February 06, 2007 3:18 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] ADO code stopped working Hi Jennifer The 3265 missing item error is not related to the name of the query but - surprise - to the parameter collection of the query. If the query's parameter collection does have a parameter count of zero, the error is raised. I have tested this in A2002/XP as well as A2003 and the scenario is consistent with ADO 2.8. What has happened could be that in a previous version of ADO the parameter count was not checked. Even if your code indicates the presence of one or more parameters I guess none exists, thus - after a possible update of ADO - the error occurs. On another note, the "smart" way of feeding values to your parameters my not work in Access 2007 as - if I remember correctly - the function Eval is considered "dangerous" and thus has been removed. So, in the future, you better spell out each parameter and the variable you wish to assign. Remember, that a parameter can be identified by its Index: cmd.Parameters(0).Value = /gustav >>> jengross at gte.net 05-02-2007 20:16:05 >>> Hi Gustav, I have checked all references. The code is compiling. I have created a test database with one table and one query. It is failing in the same spot my original database is failing - Set prc = cat.Procedures("TheQuery") - In the test database I am getting the error 3265 - Item cannot be found in the collection corresponding to the requested name or ordinal. The query does exist - no spelling errors. The same ADO code is working fine on my home office system. It worked fine at the client's site in January. Any thoughts? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, February 05, 2007 1:47 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] ADO code stopped working Hi Jennifer You could - for and while debugging - try to separate the connection object: Dim cnn As ADODB.Connection Dim cmd As ADODB.Command Dim rst As ADODB.Recordset Dim prm As ADODB.Parameter Dim cat As ADOX.Catalog Dim prc As ADOX.Procedure Set cat = New ADOX.Catalog Set cnn = CurrentProject.Connection cat.ActiveConnection = cnn I guess you have double-checked the reference: Microsoft ADO Ext. 2.8 for DDL and Security points to ..system32\MSADOX.DLL /gustav >>> jengross at gte.net 05-02-2007 05:00 >>> Thanks for the suggestions. I set the references like Marty suggested and am still getting the problem. I am using the Getz Developers Handbook code for looping through parameters in a select query: Dim cmd As ADODB.Command Dim rst As ADODB.Recordset Dim prm As ADODB.Parameter Dim cat As ADOX.Catalog Dim prc As ADOX.Procedure Set cat = New ADOX.Catalog * cat.ActiveConnection = CurrentProject.Connection * Set prc = cat.Procedures("TheQuery") Set cmd = prc.Command For Each prm In cmd.Parameters prm.Value = Eval(prm.Name) Next prm Set rst = cmd.Execute If I don't use the query with parameters, but instead base the recordset on the table, then it works fine: Set rst = New ADODB.Recordset Set rst.ActiveConnection = CurrentProject.Connection rst.CursorType = adOpenForwardOnly rst.LockType = adLockReadOnly rst.Open "TheTable" I am getting the same results whether the code is in the existing FE or if I create a new db with the ADO code as Rocky suggested. Any thoughts? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Sunday, February 04, 2007 4:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] ADO code stopped working I would whip up a small app with some ado code to see if the problem is inside your app or outside of it. Does your app compile? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Sunday, February 04, 2007 2:05 PM To: AccessD List Subject: [AccessD] ADO code stopped working Hi Everyone, W2K SP4 / A2K SP3 / terminal server I have a database that has some DAO and some ADO code. Recently all ADO stopped working. DAO is still working fine. Anytime code utilizing ADO runs it shuts down the database abruptly, leaving the LDB file. We were also having problems with the Windows Management databases locking up and a reinstall of the latest MDAC took care of that problem, but did not solve the ADO problem. ADO was working fine for end of year reporting. There are no missing references. After the MDAC reinstall I unchecked references, closed down, opened up and rechecked references. Any help would be greatly appreciated. Thank you, Jennifer Gross databasics 2839 Shirley Drive Newbury Park, CA 91320-3068 office: (805) 480-1921 fax: (805) 499-0467 From Gustav at cactus.dk Wed Feb 7 08:57:48 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 07 Feb 2007 15:57:48 +0100 Subject: [AccessD] ADO code stopped working Message-ID: Hi Marty That is interesting! It appears that - if you specify a parameter by its name - for an explicit parameter the brackets must _not_ be specified, while for an implicit parameter the brackets _must_ be specified. If you don't, an 3265 error will be raised but not before you reach the code line where you pass the parameter value. So this is not the scenario Jennifer sees, as - for her case - the error is raised earlier when you address the Procedures' collection. /gustav >>> martyconnelly at shaw.ca 05-02-2007 21:46:05 >>> I am just wondering if TheQuery has to be run once to compile it? or this ACC2000: How to Use Parameters with ActiveX Data Objects (ADO) and Jet http://support.microsoft.com/kb/225897/en-us Method 3: Using an Implicit Parameter NOTE: Implicit parameter names have brackets ([ ]) around them, and you must use the brackets (or the parameter's ordinal position) when referring to implicit parameters in the Parameters collection. If you do not use the brackets, you receive the following error message: Run-time error '3265': ADO could not find the object in the collection corresponding to the name or ordinal reference requested by the application. PRB: Error 3265 When You Access Properties Collection http://support.microsoft.com/?kbid=201826 http://support.microsoft.com/default.aspx?scid=kb;en-us;223212 Jennifer Gross wrote: >Hi Gustav, > >I have checked all references. The code is compiling. I have created a >test database with one table and one query. It is failing in the same >spot my original database is failing - Set prc = >cat.Procedures("TheQuery") - In the test database I am getting the error >3265 - Item cannot be found in the collection corresponding to the >requested name or ordinal. The query does exist - no spelling errors. >The same ADO code is working fine on my home office system. It worked >fine at the client's site in January. Any thoughts? > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >Sent: Monday, February 05, 2007 1:47 AM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] ADO code stopped working > > >Hi Jennifer > >You could - for and while debugging - try to separate the connection >object: > > Dim cnn As ADODB.Connection > Dim cmd As ADODB.Command > Dim rst As ADODB.Recordset > Dim prm As ADODB.Parameter > Dim cat As ADOX.Catalog > Dim prc As ADOX.Procedure > > Set cat = New ADOX.Catalog > Set cnn = CurrentProject.Connection > cat.ActiveConnection = cnn > >I guess you have double-checked the reference: > Microsoft ADO Ext. 2.8 for DDL and Security >points to > ..system32\MSADOX.DLL > >/gustav > > > >>>>jengross at gte.net 05-02-2007 05:00 >>> >>>> >>>> >Thanks for the suggestions. I set the references like Marty suggested >and am still getting the problem. I am using the Getz Developers >Handbook code for looping through parameters in a select query: > > Dim cmd As ADODB.Command > Dim rst As ADODB.Recordset > Dim prm As ADODB.Parameter > Dim cat As ADOX.Catalog > Dim prc As ADOX.Procedure > > Set cat = New ADOX.Catalog >* cat.ActiveConnection = CurrentProject.Connection >* Set prc = cat.Procedures("TheQuery") > Set cmd = prc.Command > For Each prm In cmd.Parameters > prm.Value = Eval(prm.Name) > Next prm > Set rst = cmd.Execute > >If I don't use the query with parameters, but instead base the recordset >on the table, then it works fine: > > Set rst = New ADODB.Recordset > Set rst.ActiveConnection = CurrentProject.Connection > rst.CursorType = adOpenForwardOnly > rst.LockType = adLockReadOnly > rst.Open "TheTable" > >I am getting the same results whether the code is in the existing FE or >if I create a new db with the ADO code as Rocky suggested. > >Any thoughts? > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin >at Beach Access Software >Sent: Sunday, February 04, 2007 4:55 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] ADO code stopped working > > >I would whip up a small app with some ado code to see if the problem is >inside your app or outside of it. Does your app compile? > >Rocky > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer >Gross >Sent: Sunday, February 04, 2007 2:05 PM >To: AccessD List >Subject: [AccessD] ADO code stopped working > >Hi Everyone, > >W2K SP4 / A2K SP3 / terminal server > >I have a database that has some DAO and some ADO code. Recently all ADO >stopped working. DAO is still working fine. Anytime code utilizing ADO >runs it shuts down the database abruptly, leaving the LDB file. We were >also having problems with the Windows Management databases locking up >and a reinstall of the latest MDAC took care of that problem, but did >not solve the ADO problem. ADO was working fine for end of year >reporting. There are no missing references. After the MDAC reinstall I >unchecked references, closed down, opened up and rechecked references. > >Any help would be greatly appreciated. > >Thank you, > >Jennifer Gross >databasics >2839 Shirley Drive >Newbury Park, CA 91320-3068 >office: (805) 480-1921 >fax: (805) 499-0467 > > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This mail is marked as non spam by Pinjo revealer, spamfilter technology. ( http://www.pinjo.nl ) From carbonnb at gmail.com Wed Feb 7 09:40:11 2007 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Wed, 7 Feb 2007 10:40:11 -0500 Subject: [AccessD] Design Question In-Reply-To: References: Message-ID: On 2/6/07, Charlotte Foust wrote: > Is this for data entry or retrieval, Bryan? For Retrieval, a star It's for both. That's the PITA part. > schema will work. Just create tables with all the shared foreign key > fields and slice and dice to taste. ;o} Not efficient for data entry > but whizbang for retrieval. By Star schema, I'm assuming that is something like JC described? -- 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 carbonnb at gmail.com Wed Feb 7 09:42:46 2007 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Wed, 7 Feb 2007 10:42:46 -0500 Subject: [AccessD] Design Question In-Reply-To: <0JD2000W28DRE4R1@l-daemon> References: <0JD2000W28DRE4R1@l-daemon> Message-ID: On 2/6/07, Jim Lawrence wrote: > The above would be correct (I will assume that each record in each of the > tables has a field name ID) and if you add a table named 'CONNECTION' with Correct assumption. I've bashed that into his head :) > only two fields, additional to its own ID field. > > One field could be named OwnerID and the other field OwnedID. The records in > this table would be created when a relationship was established in code, one > for each relationship. The beauty of using this type of table is that > one-to-one, one to many, backwards or forwards and even reciprocal > relationships (the table could call it's self) could used... How would you know which table the OwnerID and OwnedID belongs to? > The only particular about this type of table is that you as the programmer > would most likely have to maintain it with your code.... sorry not bound. > This system works great and I have used it to resolve many similar issues. In this case, I doubt it's gonna happen. He's not a programmer. Just a manager :) -- 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 carbonnb at gmail.com Wed Feb 7 09:43:25 2007 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Wed, 7 Feb 2007 10:43:25 -0500 Subject: [AccessD] Design Question In-Reply-To: <00fc01c74a1c$d3efb430$657aa8c0@m6805> References: <00fc01c74a1c$d3efb430$657aa8c0@m6805> Message-ID: On 2/6/07, JWColby wrote: > Given the possibility of having multiples, I would probably have the > individual object tables, then one big m-m "relationship" table where I > placed: > > PEID > FACID > HDWRID > SFTWRID > SVCAGRID > > > Probably you would want other info about the relationship such as when the > relationship was established and when the relationship terminated: > > DteEst > DteTerm > > "multiples" come from new records in the relationship table. > > A person assigned two pieces of software would be two records, with just the > peid and softwareid, plus the DteEst. When that person "turned in" the > software, the record's DteTerm would be updated. > > The only issue with this kind of relationship is that one relationship could > be terminated while another was not. If that is possible, then each > relationship needs to be established individually (separate records in the > relationship table), so that you can record when each relationship was > established and terminated. Merci. -- 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 carbonnb at gmail.com Wed Feb 7 09:44:01 2007 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Wed, 7 Feb 2007 10:44:01 -0500 Subject: [AccessD] Design Question In-Reply-To: <45C8F051.5000308@shaw.ca> References: <45C8F051.5000308@shaw.ca> Message-ID: On 2/6/07, MartyConnelly wrote: > Have a look at this mdb and article. somewhat similar > > People in households and companies - modelling human relationships > http://www.allenbrowne.com/AppHuman.html I'll pass this one for his perusal and add it to my list of things to look at. -- 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 cfoust at infostatsystems.com Wed Feb 7 10:01:04 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 7 Feb 2007 08:01:04 -0800 Subject: [AccessD] Design Question In-Reply-To: References: Message-ID: I just skimmed John's reply, but no, that isn't exactly it. A star schema is commonly used in data warehousing and tables have a multiplicity of FKs for all tables they relate to. That makes querying data a snap because you don't need complicated joins to get the data you want, just filter on the FKs. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan Carbonnell Sent: Wednesday, February 07, 2007 7:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Design Question On 2/6/07, Charlotte Foust wrote: > Is this for data entry or retrieval, Bryan? For Retrieval, a star It's for both. That's the PITA part. > schema will work. Just create tables with all the shared foreign key > fields and slice and dice to taste. ;o} Not efficient for data entry > but whizbang for retrieval. By Star schema, I'm assuming that is something like JC described? -- 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 carbonnb at gmail.com Wed Feb 7 10:28:37 2007 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Wed, 7 Feb 2007 11:28:37 -0500 Subject: [AccessD] Design Question In-Reply-To: References: Message-ID: On 2/7/07, Charlotte Foust wrote: > I just skimmed John's reply, but no, that isn't exactly it. A star > schema is commonly used in data warehousing and tables have a > multiplicity of FKs for all tables they relate to. That makes querying > data a snap because you don't need complicated joins to get the data you > want, just filter on the FKs. So in the people table there would be columns for the FKs for Software, Hardware, Service Agreements and Facilities. The equipment table would have a column for the others, etc? -- 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 kismert at gmail.com Wed Feb 7 10:53:09 2007 From: kismert at gmail.com (Ken Ismert) Date: Wed, 07 Feb 2007 10:53:09 -0600 Subject: [AccessD] Design Question In-Reply-To: References: Message-ID: <45CA03F5.6090301@gmail.com> Bryan, This brings to mind Robert Stewart's idea of database unique ID's. Instead of having separate autonumber keys for each table, you implement one autonumber key for the whole database. You would have a single table with a single counter field that all tables used for their next primary key. A function would increment the counter, and return the value to the form doing the insert. This way, you could simplify your many-to-many table even further: LeftID RightID LeftTypeID RightTypeID Primary key is LeftID, RightID, and LeftTypeID, RightTypeID are also indexed. Left is the ID of the table on the left side of the relationship, Right is the ID of the other table. LeftTypeID and RightTypeID key the type of relationship (hardware => facility, hardware => person, software => hardware, service agreement => software, etc...). The LeftTypeID and RightTypeID values come from one lookup table which lists the entity types (software, hardware, etc...) you are relating. There would be a third table that defines the possible relationships between Left and Right. This ensures that there are only one-way relationships, in other words, (software => hardware) is allowed, but (hardware => software) isn't (that combination would not exist in the table). You can join any table (People, Facility, Hardware, Software, ServiceAgreements) to either LeftID or RightID, and they will match only their IDs, because each Primary Key ID is unique not only to that table, but to every table. Because they are indexed joins, these queries will work fast, and will be easy to optimize. The beauty of this approach is that adding another table to the mix causes no redesign of the schema. The new table takes its DB unique IDs from the same source as all others. You would just to add one record to the entity table for your new table, and records to relationship table to define the allowable relationships between the new entity and the others. That's it -- you have achieved a purely data-driven extension of your schema. You would wind up with Left and Right hand queries to answer all possible relationship questions. For example, the (hardware => software) relationship isn't defined (left => right), but it clearly exists (right => left). You would query the relationship table to determine if that relationship exists, and if so, use a Left hand query. If not, use the Right hand query. Limits? In Access, this would limit you to 4 billion records total in the database, but you'd overrun the maximum file size for the mdb well before that! With 64 bit integer keys in a modern enterprise DB, you would have no practical limit on the records you could key this way. Of course, Robert has ways of overcoming these limits now, but I will leave it to him to describe that. -Ken > Subject: > Re: [AccessD] Design Question > From: > "JWColby" > Date: > Tue, 6 Feb 2007 13:30:06 -0500 > To: > "'Access Developers discussion and problem solving'" > > > To: > "'Access Developers discussion and problem solving'" > > > > Given the possibility of having multiples, I would probably have the > individual object tables, then one big m-m "relationship" table where I > placed: > > PEID > FACID > HDWRID > SFTWRID > SVCAGRID > > > Probably you would want other info about the relationship such as when the > relationship was established and when the relationship terminated: > > DteEst > DteTerm > > "multiples" come from new records in the relationship table. > > A person assigned two pieces of software would be two records, with just the > peid and softwareid, plus the DteEst. When that person "turned in" the > software, the record's DteTerm would be updated. > > The only issue with this kind of relationship is that one relationship could > be terminated while another was not. If that is possible, then each > relationship needs to be established individually (separate records in the > relationship table), so that you can record when each relationship was > established and terminated. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com From jwcolby at colbyconsulting.com Wed Feb 7 11:10:40 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 7 Feb 2007 12:10:40 -0500 Subject: [AccessD] Design Question In-Reply-To: Message-ID: <002b01c74ada$e568b900$657aa8c0@m6805> Bryan, Before you do anything you need to determine whether the DATES that you make / break these relationships matter (or any other info about the relationship). What Charlotte is discussing is a construct for data warehouses, where data rarely if ever changes. This does not sound like your application. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan Carbonnell Sent: Wednesday, February 07, 2007 11:29 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Design Question On 2/7/07, Charlotte Foust wrote: > I just skimmed John's reply, but no, that isn't exactly it. A star > schema is commonly used in data warehousing and tables have a > multiplicity of FKs for all tables they relate to. That makes > querying data a snap because you don't need complicated joins to get > the data you want, just filter on the FKs. So in the people table there would be columns for the FKs for Software, Hardware, Service Agreements and Facilities. The equipment table would have a column for the others, etc? -- 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 carbonnb at gmail.com Wed Feb 7 11:23:21 2007 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Wed, 7 Feb 2007 12:23:21 -0500 Subject: [AccessD] Design Question In-Reply-To: <002b01c74ada$e568b900$657aa8c0@m6805> References: <002b01c74ada$e568b900$657aa8c0@m6805> Message-ID: On 2/7/07, JWColby wrote: > Before you do anything you need to determine whether the DATES that you make > / break these relationships matter (or any other info about the > relationship). What Charlotte is discussing is a construct for data > warehouses, where data rarely if ever changes. This does not sound like > your application. No, it certainly isn't. The dates may matter. Luckily, in this case I think, I'm just collecting the info for someone else. They are doing the design and implementation. I haven't done any Access work in so long that my brain is rusty when it comes to design. That's why I asked the experts :) -- 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 accessd at shaw.ca Wed Feb 7 12:57:28 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 07 Feb 2007 10:57:28 -0800 Subject: [AccessD] Design Question In-Reply-To: Message-ID: <0JD3007U9WK6DVM1@l-daemon> HI Bryan: I will add my comments inline. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan Carbonnell Sent: Wednesday, February 07, 2007 7:43 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Design Question On 2/6/07, Jim Lawrence wrote: > The above would be correct (I will assume that each record in each of the > tables has a field name ID) and if you add a table named 'CONNECTION' with Correct assumption. I've bashed that into his head :) > only two fields, additional to its own ID field. > > One field could be named OwnerID and the other field OwnedID. The records in > this table would be created when a relationship was established in code, one > for each relationship. The beauty of using this type of table is that > one-to-one, one to many, backwards or forwards and even reciprocal > relationships (the table could call it's self) could used... How would you know which table the OwnerID and OwnedID belongs to? 1. The field named OwnerID would be the Parent and the OwnedID would be the child. 2. It does not really matter as it could be a one to one or to many from either direction. > The only particular about this type of table is that you as the programmer > would most likely have to maintain it with your code.... sorry not bound. > This system works great and I have used it to resolve many similar issues. In this case, I doubt it's gonna happen. He's not a programmer. Just a manager :) That is why there is programmer at your office. If the manager who I assume has no programming experience, wishes to do it himself then it is not possible. (Had a similar situation at a office; the manager, a Systems Architect fooled around with a similar problem for 3 weeks before finally asking me to do it... it took 3 hours to solve and code.) -- 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 darrend at nimble.com.au Wed Feb 7 16:09:39 2007 From: darrend at nimble.com.au (Darren DICK) Date: Thu, 8 Feb 2007 09:09:39 +1100 Subject: [AccessD] Rename files In-Reply-To: <002c01c74aad$38c32820$2d01a8c0@bhxp> Message-ID: <200702072209.l17M9wO08125@databaseadvisors.com> Hi Bobby I tried that but the file name already has the dot PDF in it so with that method I end up with file names like inv10310.pdf-016.pdf I wrote a routine to strip all the filenames of their dot PDF extension rename and then put a desired extension on the new file name Many thanks Darren ------------------ -----Original Message----- From: Bobby Heid [mailto:bheid at sc.rr.com] Sent: Wednesday, 7 February 2007 10:44 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Rename files Darren, As you read each file name, split it up into the file name and the extension. Then NewName="Inv03" & FileName & "-016." & FileExt Then rename the file to NewName. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Wednesday, February 07, 2007 6:30 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Rename files Hi All I have a renaming routine but can't quite work out the syntax I have file names in a folder similar to 10.pdf 11.pdf 12.pdf 13.pdf etc etc (All sequential) I want to prefix each file name in the nominated folder with "inv103" I can do this bit - no prob But I want to insert "-016" before the .PDF bit So final filename is like. inv10310-016.pdf inv10311-016.pdf inv10312-016.pdf inv10313-016.pdf and so on Any suggestions? Many thanks in advance Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Thu Feb 8 01:26:25 2007 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 8 Feb 2007 08:26:25 +0100 (CET) Subject: [AccessD] Visual Basic Form - Check If Recordset/Field Needs Updating Message-ID: <28391916.181731170919585361.JavaMail.www@wwinf3101> To all, Firstly my appologies for cross-posting this on the Access site, the reason for this is I haven't seen much (well very very little to be precise) activity on the VB Group. I am after some advice really, basically I would like to know the best way to check if a recordset/field needs updating. Say if a user has a client record in front of them and doesn't make any changes I need to detect this so I don't have to bother to update any recordsets/fields, but if the user does make a change to any textbox/checkbox/dropdown etc I would like to detect this so that : 1. I can update the recordset/field 2. So I can create a log of the record the user changed (plus if possible the name of the field and what they changed it from and to). So any help on this will be appreciated, I have come up with a couple of solutions but the one seems long winded and the other, I just can't get to work quite right. Thanks in advance for any help on this. Paul Hartland From adtp at hotmail.com Thu Feb 8 05:52:59 2007 From: adtp at hotmail.com (A.D.TEJPAL) Date: Thu, 8 Feb 2007 17:22:59 +0530 Subject: [AccessD] Rename files References: <200702072209.l17M9wO08125@databaseadvisors.com> Message-ID: Darren, Sample subroutine P_AddPrefixSuffixToFileNames() as given below, will insert the desired prefix and / or suffix in all target files in the specified folder (including all subfolders belonging to this folder). It is a generic procedure with recursive feature (ensuring coverage of all subfolders as well). First argument provides the path of folder containing the files in question, while next three arguments are all optional. If last argument (file extn) is missing, all files get renamed. Otherwise, only the files with specified extn get affected. Sample call for inserting "inv103_" as prefix & "_016" as suffix in all pdf type files in the target folders, as desired by you, would be as follows: P_AddPrefixSuffixToFileNames _ "<>", _ "inv103_", "_016", ".pdf" Note - If only prefix or only suffix is required, the unwanted optional argument can be omitted (If such optional argument is not the last one, corresponding place holder comma should be provided). Best wishes, A.D.Tejpal --------------- Sample SubRoutine (Insertion of Prefix & Suffix in File Names) ===================================== Sub P_AddPrefixSuffixToFileNames( _ ByVal FolderPath As String, _ Optional Prefix As Variant, _ Optional Suffix As Variant, _ Optional Extn As Variant) ' Inserts desired Prefix & Suffix in File Names ' (For all files in the target folder, including all its ' subfolders). If Extn has been specified, only ' files with this particular extn will get renamed. On Error GoTo ErrTrap Dim fso As FileSystemObject Dim pfd As Folder, sfd As Folder Dim fe As File Dim BaseName As String, FileExtn As String Dim Rtv As Variant, NewPath As String Dim Pfx As String, Sfx As String, Exn As String Dim Lpx As Long, Lsx As Long ' Translate optional arguments into strings Pfx = IIf(IsMissing(Prefix), "", Nz(Prefix, "")) Sfx = IIf(IsMissing(Suffix), "", Nz(Suffix, "")) Exn = IIf(IsMissing(Extn), "", Nz(Extn, "")) ' Exit if no prefix & suffix specified If Pfx = "" And Sfx = "" Then GoTo ExitPoint End If Lpx = Len(Pfx) Lsx = Len(Sfx) Set fso = New FileSystemObject Set pfd = fso.GetFolder(FolderPath) ' Provide dot at beginning of extn argument ' (if such dot is missing) Exn = IIf(Left(Exn, 1) = ".", "", ".") & Exn ' Cycle through the files in parent folder For Each fe In pfd.Files Rtv = Split(fe.Name, ".") BaseName = Rtv(0) FileExtn = "." & Rtv(1) ' Skip Renaming if already renamed ' (A) If (Lpx > 0 And Left(BaseName, _ Lpx) = Pfx) Or (Lsx > 0 And _ Right(BaseName, Lsx) = Sfx) Then GoTo Skip End If NewPath = pfd.Path & "\" & Pfx & _ BaseName & Sfx & FileExtn If IsMissing(Extn) Then Name fe.Path As NewPath Else If FileExtn = Exn Then Name fe.Path As NewPath End If End If Skip: Next ' Note - (A) is meant to prevent repeat action ' on same file. (In a For Each loop, an ' object's index position can get disturbed ' after renaming,, leading to repeat processing) ' Cycle through the files in all subfolders ' contained in current parent folder If pfd.SubFolders.Count > 0 Then For Each sfd In pfd.SubFolders If IsMissing(Extn) Then P_AddPrefixSuffixToFileNames sfd.Path, _ Prefix, Suffix Else P_AddPrefixSuffixToFileNames sfd.Path, _ Prefix, Suffix, Extn End If Next End If ExitPoint: On Error Resume Next Set fe = Nothing Set sfd = Nothing Set pfd = Nothing Set fso = Nothing On Error GoTo 0 Exit Sub ErrTrap: MsgBox Err.Number & " - " & Err.Description Resume ExitPoint End Sub ===================================== -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Wednesday, February 07, 2007 6:30 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Rename files Hi All I have a renaming routine but can't quite work out the syntax I have file names in a folder similar to 10.pdf 11.pdf 12.pdf 13.pdf etc etc (All sequential) I want to prefix each file name in the nominated folder with "inv103" I can do this bit - no prob But I want to insert "-016" before the .PDF bit So final filename is like. inv10310-016.pdf inv10311-016.pdf inv10312-016.pdf inv10313-016.pdf and so on Any suggestions? Many thanks in advance Darren From markamatte at hotmail.com Thu Feb 8 08:44:29 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 08 Feb 2007 14:44:29 +0000 Subject: [AccessD] Replicas In-Reply-To: Message-ID: Hello All, I have an A97 db that used to be replicated. It is now the design master...but I get a warning everytime I open it that says This replica has exceeded the number of days it can go without being synced...and that I should delete it? This db is the only one left...and does NOT need to be replicated anymore. How would I fix this? Thanks, Mark A. Matte _________________________________________________________________ Talk now to your Hotmail contacts with Windows Live Messenger. http://get.live.com/messenger/overview From john at winhaven.net Thu Feb 8 09:02:15 2007 From: john at winhaven.net (John Bartow) Date: Thu, 8 Feb 2007 09:02:15 -0600 Subject: [AccessD] Replicas In-Reply-To: References: Message-ID: <00fd01c74b92$225c2100$6502a8c0@ScuzzPaq> Set up linux on your old 386 with 4MB of RAM, then install MySQL... Just because I'm feeling a bit sarcastic today! :o) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Thursday, February 08, 2007 8:44 AM To: accessd at databaseadvisors.com Subject: [AccessD] Replicas Hello All, I have an A97 db that used to be replicated. It is now the design master...but I get a warning everytime I open it that says This replica has exceeded the number of days it can go without being synced...and that I should delete it? This db is the only one left...and does NOT need to be replicated anymore. How would I fix this? Thanks, Mark A. Matte _________________________________________________________________ Talk now to your Hotmail contacts with Windows Live Messenger. http://get.live.com/messenger/overview -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Kwilliamson at RTKL.com Thu Feb 8 09:16:07 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Thu, 8 Feb 2007 10:16:07 -0500 Subject: [AccessD] Linked Table Limits? Message-ID: Hi all, Does anyone know if there are limits to the number of linked tables (to a SQL database) that can be included in an Access query? I have a query that joins (2) linked tables and (2) local Access tables. That runs very fast. However, if I try to add one more linked table to the query.....it simply crashes the database. I've even tried using a sql select statement in the query, to get the data from that last linked table......crashes the database. IF I copy the entire linked table to a local table, and then select/join to that table......the query runs fast. When I try exporting the query, with the select statement to the linked table.....my resultant export (incomplete due to the crash) is corrupted. So, my question is....is there some sort of limit to the number of sql tables that I can join, in a query? There doesn't seem to be anything wrong with the sql table I am trying to join. Just very odd. Thanks, Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com From jwcolby at colbyconsulting.com Thu Feb 8 09:14:58 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Thu, 8 Feb 2007 10:14:58 -0500 Subject: [AccessD] Replicas In-Reply-To: <00fd01c74b92$225c2100$6502a8c0@ScuzzPaq> Message-ID: <001701c74b93$e6589830$657aa8c0@m6805> LOL, you could be burned at the stake in these circles. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Thursday, February 08, 2007 10:02 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Replicas Set up linux on your old 386 with 4MB of RAM, then install MySQL... Just because I'm feeling a bit sarcastic today! :o) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Thursday, February 08, 2007 8:44 AM To: accessd at databaseadvisors.com Subject: [AccessD] Replicas Hello All, I have an A97 db that used to be replicated. It is now the design master...but I get a warning everytime I open it that says This replica has exceeded the number of days it can go without being synced...and that I should delete it? This db is the only one left...and does NOT need to be replicated anymore. How would I fix this? Thanks, Mark A. Matte _________________________________________________________________ Talk now to your Hotmail contacts with Windows Live Messenger. http://get.live.com/messenger/overview -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Thu Feb 8 09:19:58 2007 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 8 Feb 2007 16:19:58 +0100 (CET) Subject: [AccessD] Linked Table Limits? Message-ID: <8130296.122981170947998649.JavaMail.www@wwinf3203> I don't know if there is a limit, but I have a database which nearly all the tables (150+, 2 of which contain over 200,000 records) are linked from SQL Server, and I have a query that links 8 of them with no problem whatsoever...... Paul Hartland Message Received: Feb 08 2007, 03:16 PM From: "Keith Williamson" To: "Access Developers discussion and problem solving" Cc: Subject: [AccessD] Linked Table Limits? Hi all, Does anyone know if there are limits to the number of linked tables (to a SQL database) that can be included in an Access query? I have a query that joins (2) linked tables and (2) local Access tables. That runs very fast. However, if I try to add one more linked table to the query.....it simply crashes the database. I've even tried using a sql select statement in the query, to get the data from that last linked table......crashes the database. IF I copy the entire linked table to a local table, and then select/join to that table......the query runs fast. When I try exporting the query, with the select statement to the linked table.....my resultant export (incomplete due to the crash) is corrupted. So, my question is....is there some sort of limit to the number of sql tables that I can join, in a query? There doesn't seem to be anything wrong with the sql table I am trying to join. Just very odd. Thanks, Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Paul Hartland paul.hartland at fsmail.net 07730 523179 From jwcolby at colbyconsulting.com Thu Feb 8 09:28:48 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Thu, 8 Feb 2007 10:28:48 -0500 Subject: [AccessD] Linked Table Limits? In-Reply-To: Message-ID: <001901c74b95$d4c8fae0$657aa8c0@m6805> Hmmm... I think something else is going on. AFAIK you can have every table in your database be out in SQL Server and thus you could have dozens of SQL Server tables in a query. I have to admit that I do not have many "mixed" databases, and the ones I do have tend to use just one or two views from SQL Server. If you have OTHER SQL Server tables, I would try to build queries using those tables to see how they function. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, February 08, 2007 10:16 AM To: Access Developers discussion and problem solving Subject: [AccessD] Linked Table Limits? Hi all, Does anyone know if there are limits to the number of linked tables (to a SQL database) that can be included in an Access query? I have a query that joins (2) linked tables and (2) local Access tables. That runs very fast. However, if I try to add one more linked table to the query.....it simply crashes the database. I've even tried using a sql select statement in the query, to get the data from that last linked table......crashes the database. IF I copy the entire linked table to a local table, and then select/join to that table......the query runs fast. When I try exporting the query, with the select statement to the linked table.....my resultant export (incomplete due to the crash) is corrupted. So, my question is....is there some sort of limit to the number of sql tables that I can join, in a query? There doesn't seem to be anything wrong with the sql table I am trying to join. Just very odd. Thanks, Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mikedorism at verizon.net Thu Feb 8 09:27:01 2007 From: mikedorism at verizon.net (Doris Manning) Date: Thu, 08 Feb 2007 10:27:01 -0500 Subject: [AccessD] Visual Basic Form - Check If Recordset/Field Needs Updating In-Reply-To: <28391916.181731170919585361.JavaMail.www@wwinf3101> References: <28391916.181731170919585361.JavaMail.www@wwinf3101> Message-ID: <000601c74b95$94f0d550$2f01a8c0@Kermit> Hi Paul, I have handled this by binding the Tag property to the same field that the text/value property is bound to. I loop through all the controls on the form and pass the control to a special check revision history process that takes care of the rest. I will send you the code I use offline. Doris Manning Database Administrator Hargrove Inc -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: Thursday, February 08, 2007 2:26 AM To: accessd; dba-vb Subject: [AccessD] Visual Basic Form - Check If Recordset/Field Needs Updating Importance: High To all, Firstly my appologies for cross-posting this on the Access site, the reason for this is I haven't seen much (well very very little to be precise) activity on the VB Group. I am after some advice really, basically I would like to know the best way to check if a recordset/field needs updating. Say if a user has a client record in front of them and doesn't make any changes I need to detect this so I don't have to bother to update any recordsets/fields, but if the user does make a change to any textbox/checkbox/dropdown etc I would like to detect this so that : 1. I can update the recordset/field 2. So I can create a log of the record the user changed (plus if possible the name of the field and what they changed it from and to). So any help on this will be appreciated, I have come up with a couple of solutions but the one seems long winded and the other, I just can't get to work quite right. Thanks in advance for any help on this. Paul Hartland -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Thu Feb 8 09:30:52 2007 From: wdhindman at dejpolsystems.com (William Hindman) Date: Thu, 8 Feb 2007 10:30:52 -0500 Subject: [AccessD] Replicas References: Message-ID: <000201c74b96$1f384ef0$8d4beb44@50NM721> Mark ...look in the Help file under How to make a replicated mdb into a regular mdb. William Hindman ----- Original Message ----- From: "Mark A Matte" To: Sent: Thursday, February 08, 2007 9:44 AM Subject: [AccessD] Replicas > Hello All, > > I have an A97 db that used to be replicated. It is now the design > master...but I get a warning everytime I open it that says This replica > has > exceeded the number of days it can go without being synced...and that I > should delete it? > > This db is the only one left...and does NOT need to be replicated anymore. > How would I fix this? > > Thanks, > > Mark A. Matte > > _________________________________________________________________ > Talk now to your Hotmail contacts with Windows Live Messenger. > http://get.live.com/messenger/overview > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From wdhindman at dejpolsystems.com Thu Feb 8 09:32:19 2007 From: wdhindman at dejpolsystems.com (William Hindman) Date: Thu, 8 Feb 2007 10:32:19 -0500 Subject: [AccessD] Replicas References: <001701c74b93$e6589830$657aa8c0@m6805> Message-ID: <000601c74b96$531410b0$8d4beb44@50NM721> ...only after the flaying and salt rubbing had taken its toll :) William Hindman ----- Original Message ----- From: "JWColby" To: "'Access Developers discussion and problem solving'" Sent: Thursday, February 08, 2007 10:14 AM Subject: Re: [AccessD] Replicas > LOL, you could be burned at the stake in these circles. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow > Sent: Thursday, February 08, 2007 10:02 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Replicas > > Set up linux on your old 386 with 4MB of RAM, then install MySQL... > > Just because I'm feeling a bit sarcastic today! > :o) > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > Sent: Thursday, February 08, 2007 8:44 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] Replicas > > Hello All, > > I have an A97 db that used to be replicated. It is now the design > master...but I get a warning everytime I open it that says This replica > has > exceeded the number of days it can go without being synced...and that I > should delete it? > > This db is the only one left...and does NOT need to be replicated anymore. > How would I fix this? > > Thanks, > > Mark A. Matte > > _________________________________________________________________ > Talk now to your Hotmail contacts with Windows Live Messenger. > http://get.live.com/messenger/overview > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From markamatte at hotmail.com Thu Feb 8 09:47:14 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 08 Feb 2007 15:47:14 +0000 Subject: [AccessD] Replicas In-Reply-To: <000201c74b96$1f384ef0$8d4beb44@50NM721> Message-ID: Thanks William for the advice... ...John and JC...thanks for the humor? >From: "William Hindman" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Replicas >Date: Thu, 8 Feb 2007 10:30:52 -0500 > >Mark > >...look in the Help file under How to make a replicated mdb into a regular >mdb. > >William Hindman > >----- Original Message ----- >From: "Mark A Matte" >To: >Sent: Thursday, February 08, 2007 9:44 AM >Subject: [AccessD] Replicas > > > > Hello All, > > > > I have an A97 db that used to be replicated. It is now the design > > master...but I get a warning everytime I open it that says This replica > > has > > exceeded the number of days it can go without being synced...and that I > > should delete it? > > > > This db is the only one left...and does NOT need to be replicated >anymore. > > How would I fix this? > > > > Thanks, > > > > Mark A. Matte > > > > _________________________________________________________________ > > Talk now to your Hotmail contacts with Windows Live Messenger. > > http://get.live.com/messenger/overview > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Turn searches into helpful donations. Make your search count. http://click4thecause.live.com/search/charity/default.aspx?source=hmemtagline_donation&FORM=WLMTAG From jwcolby at colbyconsulting.com Thu Feb 8 09:51:08 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Thu, 8 Feb 2007 10:51:08 -0500 Subject: [AccessD] Replicas In-Reply-To: <000601c74b96$531410b0$8d4beb44@50NM721> Message-ID: <001a01c74b98$f3f1a2c0$657aa8c0@m6805> I think hot tar and feathers are more common down where you are. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Thursday, February 08, 2007 10:32 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Replicas ...only after the flaying and salt rubbing had taken its toll :) William Hindman ----- Original Message ----- From: "JWColby" To: "'Access Developers discussion and problem solving'" Sent: Thursday, February 08, 2007 10:14 AM Subject: Re: [AccessD] Replicas > LOL, you could be burned at the stake in these circles. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow > Sent: Thursday, February 08, 2007 10:02 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Replicas > > Set up linux on your old 386 with 4MB of RAM, then install MySQL... > > Just because I'm feeling a bit sarcastic today! > :o) > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > Sent: Thursday, February 08, 2007 8:44 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] Replicas > > Hello All, > > I have an A97 db that used to be replicated. It is now the design > master...but I get a warning everytime I open it that says This replica > has > exceeded the number of days it can go without being synced...and that I > should delete it? > > This db is the only one left...and does NOT need to be replicated anymore. > How would I fix this? > > Thanks, > > Mark A. Matte > > _________________________________________________________________ > Talk now to your Hotmail contacts with Windows Live Messenger. > http://get.live.com/messenger/overview > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Kwilliamson at RTKL.com Thu Feb 8 10:04:52 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Thu, 8 Feb 2007 11:04:52 -0500 Subject: [AccessD] Linked Table Limits? In-Reply-To: <001901c74b95$d4c8fae0$657aa8c0@m6805> References: <001901c74b95$d4c8fae0$657aa8c0@m6805> Message-ID: I suspect there must be a corrupted record in that particular table. I know I have run queries before with just as many, if not more, joined tables (that are linked to sql database.) I was hoping someone had some quick info about such a situation. But alas, I have to dump the issue on our MIS laps, to investigate the offending table. Thanks, Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, February 08, 2007 10:29 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Linked Table Limits? Hmmm... I think something else is going on. AFAIK you can have every table in your database be out in SQL Server and thus you could have dozens of SQL Server tables in a query. I have to admit that I do not have many "mixed" databases, and the ones I do have tend to use just one or two views from SQL Server. If you have OTHER SQL Server tables, I would try to build queries using those tables to see how they function. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, February 08, 2007 10:16 AM To: Access Developers discussion and problem solving Subject: [AccessD] Linked Table Limits? Hi all, Does anyone know if there are limits to the number of linked tables (to a SQL database) that can be included in an Access query? I have a query that joins (2) linked tables and (2) local Access tables. That runs very fast. However, if I try to add one more linked table to the query.....it simply crashes the database. I've even tried using a sql select statement in the query, to get the data from that last linked table......crashes the database. IF I copy the entire linked table to a local table, and then select/join to that table......the query runs fast. When I try exporting the query, with the select statement to the linked table.....my resultant export (incomplete due to the crash) is corrupted. So, my question is....is there some sort of limit to the number of sql tables that I can join, in a query? There doesn't seem to be anything wrong with the sql table I am trying to join. Just very odd. Thanks, Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Feb 8 10:08:19 2007 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 8 Feb 2007 16:08:19 +0000 Subject: [AccessD] =?iso-8859-1?q?Visual_Basic_Form_-_Check_If_Recordset/F?= =?iso-8859-1?q?ield_Needs=09Updating?= Message-ID: <20070208160824.6A4CE2BA9BC@smtp.nildram.co.uk> If it's a bound form then Me.Dirty will tell you if the record is in an edited but not yet saved state. Won't help with the individual fields though. -- 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] Visual Basic Form - Check If Recordset/Field Needs Updating Date: 08/02/07 15:35 Hi Paul, I have handled this by binding the Tag property to the same field that the text/value property is bound to. I loop through all the controls on the form and pass the control to a special check revision history process that takes care of the rest. I will send you the code I use offline. Doris Manning Database Administrator Hargrove Inc -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: Thursday, February 08, 2007 2:26 AM To: accessd; dba-vb Subject: [AccessD] Visual Basic Form - Check If Recordset/Field Needs Updating Importance: High To all, Firstly my appologies for cross-posting this on the Access site, the reason for this is I haven't seen much (well very very little to be precise) activity on the VB Group. I am after some advice really, basically I would like to know the best way to check if a recordset/field needs updating. Say if a user has a client record in front of them and doesn't make any changes I need to detect this so I don't have to bother to update any recordsets/fields, but if the user does make a change to any textbox/checkbox/dropdown etc I would like to detect this so that : 1. I can update the recordset/field 2. So I can create a log of the record the user changed (plus if possible the name of the field and what they changed it from and to). So any help on this will be appreciated, I have come up with a couple of solutions but the one seems long winded and the other, I just can't get to work quite right. Thanks in advance for any help on this. Paul Hartland -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 From artful at rogers.com Thu Feb 8 10:13:21 2007 From: artful at rogers.com (artful at rogers.com) Date: Thu, 8 Feb 2007 08:13:21 -0800 (PST) Subject: [AccessD] Linked Table Limits? Message-ID: <20070208161321.24702.qmail@web88210.mail.re2.yahoo.com> If memory serves, you cannot use more than 20 tables in a single query. I'll double-check that but I'm fairly sure that's the limit. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: JWColby To: Access Developers discussion and problem solving Sent: Thursday, February 8, 2007 10:28:48 AM Subject: Re: [AccessD] Linked Table Limits? Hmmm... I think something else is going on. AFAIK you can have every table in your database be out in SQL Server and thus you could have dozens of SQL Server tables in a query. I have to admit that I do not have many "mixed" databases, and the ones I do have tend to use just one or two views from SQL Server. If you have OTHER SQL Server tables, I would try to build queries using those tables to see how they function. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, February 08, 2007 10:16 AM To: Access Developers discussion and problem solving Subject: [AccessD] Linked Table Limits? Hi all, Does anyone know if there are limits to the number of linked tables (to a SQL database) that can be included in an Access query? I have a query that joins (2) linked tables and (2) local Access tables. That runs very fast. However, if I try to add one more linked table to the query.....it simply crashes the database. I've even tried using a sql select statement in the query, to get the data from that last linked table......crashes the database. IF I copy the entire linked table to a local table, and then select/join to that table......the query runs fast. When I try exporting the query, with the select statement to the linked table.....my resultant export (incomplete due to the crash) is corrupted. So, my question is....is there some sort of limit to the number of sql tables that I can join, in a query? There doesn't seem to be anything wrong with the sql table I am trying to join. Just very odd. Thanks, Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Thu Feb 8 10:13:24 2007 From: wdhindman at dejpolsystems.com (William Hindman) Date: Thu, 8 Feb 2007 11:13:24 -0500 Subject: [AccessD] Replicas References: <001a01c74b98$f3f1a2c0$657aa8c0@m6805> Message-ID: <001d01c74b9c$0fede9e0$8d4beb44@50NM721> ...shows how little you yankees know, eh ...all the tar pits and chicken ranches round here have been replaced by condos ...but we still know how to flay yankees and rub a bit 'o ocean salt in their wounds, we do :) William Hindman ----- Original Message ----- From: "JWColby" To: "'Access Developers discussion and problem solving'" Sent: Thursday, February 08, 2007 10:51 AM Subject: Re: [AccessD] Replicas >I think hot tar and feathers are more common down where you are. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman > Sent: Thursday, February 08, 2007 10:32 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Replicas > > ...only after the flaying and salt rubbing had taken its toll :) > > William Hindman > ----- Original Message ----- > From: "JWColby" > To: "'Access Developers discussion and problem solving'" > > Sent: Thursday, February 08, 2007 10:14 AM > Subject: Re: [AccessD] Replicas > > >> LOL, you could be burned at the stake in these circles. >> >> John W. Colby >> Colby Consulting >> www.ColbyConsulting.com >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow >> Sent: Thursday, February 08, 2007 10:02 AM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] Replicas >> >> Set up linux on your old 386 with 4MB of RAM, then install MySQL... >> >> Just because I'm feeling a bit sarcastic today! >> :o) >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >> Sent: Thursday, February 08, 2007 8:44 AM >> To: accessd at databaseadvisors.com >> Subject: [AccessD] Replicas >> >> Hello All, >> >> I have an A97 db that used to be replicated. It is now the design >> master...but I get a warning everytime I open it that says This replica >> has >> exceeded the number of days it can go without being synced...and that I >> should delete it? >> >> This db is the only one left...and does NOT need to be replicated >> anymore. >> How would I fix this? >> >> Thanks, >> >> Mark A. Matte >> >> _________________________________________________________________ >> Talk now to your Hotmail contacts with Windows Live Messenger. >> http://get.live.com/messenger/overview >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Feb 8 10:14:22 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Thu, 8 Feb 2007 11:14:22 -0500 Subject: [AccessD] Linked Table Limits? In-Reply-To: Message-ID: <001e01c74b9c$3317d610$657aa8c0@m6805> You may be right. Memo fields are a corruption issue in Access and if there were fields in SQL Server being treated as memos in Access, it could cause problems. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, February 08, 2007 11:05 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Linked Table Limits? I suspect there must be a corrupted record in that particular table. I know I have run queries before with just as many, if not more, joined tables (that are linked to sql database.) I was hoping someone had some quick info about such a situation. But alas, I have to dump the issue on our MIS laps, to investigate the offending table. Thanks, Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, February 08, 2007 10:29 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Linked Table Limits? Hmmm... I think something else is going on. AFAIK you can have every table in your database be out in SQL Server and thus you could have dozens of SQL Server tables in a query. I have to admit that I do not have many "mixed" databases, and the ones I do have tend to use just one or two views from SQL Server. If you have OTHER SQL Server tables, I would try to build queries using those tables to see how they function. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, February 08, 2007 10:16 AM To: Access Developers discussion and problem solving Subject: [AccessD] Linked Table Limits? Hi all, Does anyone know if there are limits to the number of linked tables (to a SQL database) that can be included in an Access query? I have a query that joins (2) linked tables and (2) local Access tables. That runs very fast. However, if I try to add one more linked table to the query.....it simply crashes the database. I've even tried using a sql select statement in the query, to get the data from that last linked table......crashes the database. IF I copy the entire linked table to a local table, and then select/join to that table......the query runs fast. When I try exporting the query, with the select statement to the linked table.....my resultant export (incomplete due to the crash) is corrupted. So, my question is....is there some sort of limit to the number of sql tables that I can join, in a query? There doesn't seem to be anything wrong with the sql table I am trying to join. Just very odd. Thanks, Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From sgoodhall at comcast.net Thu Feb 8 10:15:07 2007 From: sgoodhall at comcast.net (sgoodhall at comcast.net) Date: Thu, 08 Feb 2007 16:15:07 +0000 Subject: [AccessD] Linked Table Limits? Message-ID: <020820071615.12832.45CB4C8B000B8A7200003220220076106404040E080B0101099C@comcast.net> I don't know about the limits on the number of tables, but I can't believe it would be that low. I have run into limits on the number of fields in a query. Nominally this is 255, but some non-obvious things get counted. My personal practice is to put all query logic over into SQL Server Views or Stored Procedures, so I don't run up against this that often. My Client Application retrieves and updates against the Views or invokes Stored Procedures for complex updates. If you define your Access application as an ADP as opposed to an MDB, you can do most of the editing in SQL from the Access Development Environment. Regards, Steve Goodhall, PMP -------------- Original message ---------------------- From: "Keith Williamson" > Hi all, > > > > Does anyone know if there are limits to the number of linked tables (to > a SQL database) that can be included in an Access query? I have a query > that joins (2) linked tables and (2) local Access tables. That runs > very fast. However, if I try to add one more linked table to the > query.....it simply crashes the database. I've even tried using a sql > select statement in the query, to get the data from that last linked > table......crashes the database. IF I copy the entire linked table to a > local table, and then select/join to that table......the query runs > fast. When I try exporting the query, with the select statement to the > linked table.....my resultant export (incomplete due to the crash) is > corrupted. > > > > So, my question is....is there some sort of limit to the number of sql > tables that I can join, in a query? There doesn't seem to be anything > wrong with the sql table I am trying to join. Just very odd. > > > > Thanks, > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From garykjos at gmail.com Thu Feb 8 10:17:43 2007 From: garykjos at gmail.com (Gary Kjos) Date: Thu, 8 Feb 2007 10:17:43 -0600 Subject: [AccessD] Linked Table Limits? In-Reply-To: References: <001901c74b95$d4c8fae0$657aa8c0@m6805> Message-ID: We have an Oracle table in our data warehouse that if we just link to and use the results of that link it works fine but if I put a criteria on anything in that table it blows up and causes an Oracle Error message. It's the Customer Location table and someone wanted all the sales to California. I tried to select by the ship to state and it blew up. I tried it again and it blew up again. And Again. I thought it was something I was doing wrong. Then I did it pulling all records into a temporary table including the state and then selecting only the california sales from there and it worked fine. Go figure. GK On 2/8/07, Keith Williamson wrote: > I suspect there must be a corrupted record in that particular table. I > know I have run queries before with just as many, if not more, joined > tables (that are linked to sql database.) I was hoping someone had some > quick info about such a situation. But alas, I have to dump the issue > on our MIS laps, to investigate the offending table. > > Thanks, > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby > Sent: Thursday, February 08, 2007 10:29 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Linked Table Limits? > > Hmmm... I think something else is going on. AFAIK you can have every > table > in your database be out in SQL Server and thus you could have dozens of > SQL > Server tables in a query. I have to admit that I do not have many > "mixed" > databases, and the ones I do have tend to use just one or two views from > SQL > Server. > > If you have OTHER SQL Server tables, I would try to build queries using > those tables to see how they function. > > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith > Williamson > Sent: Thursday, February 08, 2007 10:16 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Linked Table Limits? > > Hi all, > > > > Does anyone know if there are limits to the number of linked tables (to > a > SQL database) that can be included in an Access query? I have a query > that > joins (2) linked tables and (2) local Access tables. That runs very > fast. > However, if I try to add one more linked table to the query.....it > simply > crashes the database. I've even tried using a sql select statement in > the > query, to get the data from that last linked table......crashes the > database. IF I copy the entire linked table to a local table, and then > select/join to that table......the query runs fast. When I try > exporting > the query, with the select statement to the linked table.....my > resultant > export (incomplete due to the crash) is corrupted. > > > > So, my question is....is there some sort of limit to the number of sql > tables that I can join, in a query? There doesn't seem to be anything > wrong > with the sql table I am trying to join. Just very odd. > > > > Thanks, > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > 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 Kwilliamson at RTKL.com Thu Feb 8 10:35:28 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Thu, 8 Feb 2007 11:35:28 -0500 Subject: [AccessD] Linked Table Limits? In-Reply-To: <20070208161321.24702.qmail@web88210.mail.re2.yahoo.com> References: <20070208161321.24702.qmail@web88210.mail.re2.yahoo.com> Message-ID: Well....MIS tells me there is nothing wrong with the table. This is just counter-intuitive. IF I run the query without the select from (to that linked table)...it runs great. IF I download the data from the linked table, to a local Access table....it runs great. BUT...if I run the query, with the select from the linked table....crash. I only have 4 joined tables (2 local and 2 linked), and the select statement from the linked table. I only have about 40 fields in the entire query. Based on the above, it doesn't appear to be anything wrong with the data (since the downloaded data worked fine.) Maybe I'll try re-linking the table. Can a link get corrupted? Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Thursday, February 08, 2007 11:13 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Linked Table Limits? If memory serves, you cannot use more than 20 tables in a single query. I'll double-check that but I'm fairly sure that's the limit. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: JWColby To: Access Developers discussion and problem solving Sent: Thursday, February 8, 2007 10:28:48 AM Subject: Re: [AccessD] Linked Table Limits? Hmmm... I think something else is going on. AFAIK you can have every table in your database be out in SQL Server and thus you could have dozens of SQL Server tables in a query. I have to admit that I do not have many "mixed" databases, and the ones I do have tend to use just one or two views from SQL Server. If you have OTHER SQL Server tables, I would try to build queries using those tables to see how they function. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, February 08, 2007 10:16 AM To: Access Developers discussion and problem solving Subject: [AccessD] Linked Table Limits? Hi all, Does anyone know if there are limits to the number of linked tables (to a SQL database) that can be included in an Access query? I have a query that joins (2) linked tables and (2) local Access tables. That runs very fast. However, if I try to add one more linked table to the query.....it simply crashes the database. I've even tried using a sql select statement in the query, to get the data from that last linked table......crashes the database. IF I copy the entire linked table to a local table, and then select/join to that table......the query runs fast. When I try exporting the query, with the select statement to the linked table.....my resultant export (incomplete due to the crash) is corrupted. So, my question is....is there some sort of limit to the number of sql tables that I can join, in a query? There doesn't seem to be anything wrong with the sql table I am trying to join. Just very odd. Thanks, Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Kwilliamson at RTKL.com Thu Feb 8 10:46:53 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Thu, 8 Feb 2007 11:46:53 -0500 Subject: [AccessD] Linked Table Limits? In-Reply-To: References: <001901c74b95$d4c8fae0$657aa8c0@m6805> Message-ID: Sounds similar. This sql database is a major software (Architectural/Service Industry....Labor-Based) called Vision. Unfortunately, the designers didn't really seem to have a lot of "vision" when designing it. All the Key fields seem to be text fields......that's right...I said TEXT fields. Employee Number, Project Number, etc. ......ALL TEXT. WHAT WERE THEY THINKING???? <:( Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Thursday, February 08, 2007 11:18 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Linked Table Limits? We have an Oracle table in our data warehouse that if we just link to and use the results of that link it works fine but if I put a criteria on anything in that table it blows up and causes an Oracle Error message. It's the Customer Location table and someone wanted all the sales to California. I tried to select by the ship to state and it blew up. I tried it again and it blew up again. And Again. I thought it was something I was doing wrong. Then I did it pulling all records into a temporary table including the state and then selecting only the california sales from there and it worked fine. Go figure. GK On 2/8/07, Keith Williamson wrote: > I suspect there must be a corrupted record in that particular table. I > know I have run queries before with just as many, if not more, joined > tables (that are linked to sql database.) I was hoping someone had some > quick info about such a situation. But alas, I have to dump the issue > on our MIS laps, to investigate the offending table. > > Thanks, > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby > Sent: Thursday, February 08, 2007 10:29 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Linked Table Limits? > > Hmmm... I think something else is going on. AFAIK you can have every > table > in your database be out in SQL Server and thus you could have dozens of > SQL > Server tables in a query. I have to admit that I do not have many > "mixed" > databases, and the ones I do have tend to use just one or two views from > SQL > Server. > > If you have OTHER SQL Server tables, I would try to build queries using > those tables to see how they function. > > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith > Williamson > Sent: Thursday, February 08, 2007 10:16 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Linked Table Limits? > > Hi all, > > > > Does anyone know if there are limits to the number of linked tables (to > a > SQL database) that can be included in an Access query? I have a query > that > joins (2) linked tables and (2) local Access tables. That runs very > fast. > However, if I try to add one more linked table to the query.....it > simply > crashes the database. I've even tried using a sql select statement in > the > query, to get the data from that last linked table......crashes the > database. IF I copy the entire linked table to a local table, and then > select/join to that table......the query runs fast. When I try > exporting > the query, with the select statement to the linked table.....my > resultant > export (incomplete due to the crash) is corrupted. > > > > So, my question is....is there some sort of limit to the number of sql > tables that I can join, in a query? There doesn't seem to be anything > wrong > with the sql table I am trying to join. Just very odd. > > > > Thanks, > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From garykjos at gmail.com Thu Feb 8 11:18:38 2007 From: garykjos at gmail.com (Gary Kjos) Date: Thu, 8 Feb 2007 11:18:38 -0600 Subject: [AccessD] Linked Table Limits? In-Reply-To: References: <001901c74b95$d4c8fae0$657aa8c0@m6805> Message-ID: Well, I was taught that numbers that you don't expect to do mathematics on SHOULD be stored as text..... perhaps those guys went to my school? ;-) GK On 2/8/07, Keith Williamson wrote: > Sounds similar. This sql database is a major software > (Architectural/Service Industry....Labor-Based) called Vision. > Unfortunately, the designers didn't really seem to have a lot of > "vision" when designing it. All the Key fields seem to be text > fields......that's right...I said TEXT fields. Employee Number, Project > Number, etc. ......ALL TEXT. WHAT WERE THEY THINKING???? > > <:( > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > Sent: Thursday, February 08, 2007 11:18 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Linked Table Limits? > > We have an Oracle table in our data warehouse that if we just link to > and use the results of that link it works fine but if I put a criteria > on anything in that table it blows up and causes an Oracle Error > message. It's the Customer Location table and someone wanted all the > sales to California. I tried to select by the ship to state and it > blew up. I tried it again and it blew up again. And Again. I thought > it was something I was doing wrong. Then I did it pulling all records > into a temporary table including the state and then selecting only the > california sales from there and it worked fine. Go figure. > > GK > > On 2/8/07, Keith Williamson wrote: > > I suspect there must be a corrupted record in that particular table. > I > > know I have run queries before with just as many, if not more, joined > > tables (that are linked to sql database.) I was hoping someone had > some > > quick info about such a situation. But alas, I have to dump the issue > > on our MIS laps, to investigate the offending table. > > > > Thanks, > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > > 21231-3305 > > > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby > > Sent: Thursday, February 08, 2007 10:29 AM > > To: 'Access Developers discussion and problem solving' > > Subject: Re: [AccessD] Linked Table Limits? > > > > Hmmm... I think something else is going on. AFAIK you can have every > > table > > in your database be out in SQL Server and thus you could have dozens > of > > SQL > > Server tables in a query. I have to admit that I do not have many > > "mixed" > > databases, and the ones I do have tend to use just one or two views > from > > SQL > > Server. > > > > If you have OTHER SQL Server tables, I would try to build queries > using > > those tables to see how they function. > > > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith > > Williamson > > Sent: Thursday, February 08, 2007 10:16 AM > > To: Access Developers discussion and problem solving > > Subject: [AccessD] Linked Table Limits? > > > > Hi all, > > > > > > > > Does anyone know if there are limits to the number of linked tables > (to > > a > > SQL database) that can be included in an Access query? I have a query > > that > > joins (2) linked tables and (2) local Access tables. That runs very > > fast. > > However, if I try to add one more linked table to the query.....it > > simply > > crashes the database. I've even tried using a sql select statement in > > the > > query, to get the data from that last linked table......crashes the > > database. IF I copy the entire linked table to a local table, and > then > > select/join to that table......the query runs fast. When I try > > exporting > > the query, with the select statement to the linked table.....my > > resultant > > export (incomplete due to the crash) is corrupted. > > > > > > > > So, my question is....is there some sort of limit to the number of sql > > tables that I can join, in a query? There doesn't seem to be anything > > wrong > > with the sql table I am trying to join. Just very odd. > > > > > > > > Thanks, > > > > > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > > 21231-3305 > > > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > -- > Gary Kjos > garykjos at gmail.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > 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 Kwilliamson at RTKL.com Thu Feb 8 11:41:00 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Thu, 8 Feb 2007 12:41:00 -0500 Subject: [AccessD] Linked Table Limits? In-Reply-To: References: <001901c74b95$d4c8fae0$657aa8c0@m6805> Message-ID: I thought that both Access and Sql do searches much faster on numbers, rather than text. ?? This application is pretty slow. I assumed it was from all the text keys. ?? Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Thursday, February 08, 2007 12:19 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Linked Table Limits? Well, I was taught that numbers that you don't expect to do mathematics on SHOULD be stored as text..... perhaps those guys went to my school? ;-) GK On 2/8/07, Keith Williamson wrote: > Sounds similar. This sql database is a major software > (Architectural/Service Industry....Labor-Based) called Vision. > Unfortunately, the designers didn't really seem to have a lot of > "vision" when designing it. All the Key fields seem to be text > fields......that's right...I said TEXT fields. Employee Number, Project > Number, etc. ......ALL TEXT. WHAT WERE THEY THINKING???? > > <:( > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > Sent: Thursday, February 08, 2007 11:18 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Linked Table Limits? > > We have an Oracle table in our data warehouse that if we just link to > and use the results of that link it works fine but if I put a criteria > on anything in that table it blows up and causes an Oracle Error > message. It's the Customer Location table and someone wanted all the > sales to California. I tried to select by the ship to state and it > blew up. I tried it again and it blew up again. And Again. I thought > it was something I was doing wrong. Then I did it pulling all records > into a temporary table including the state and then selecting only the > california sales from there and it worked fine. Go figure. > > GK > > On 2/8/07, Keith Williamson wrote: > > I suspect there must be a corrupted record in that particular table. > I > > know I have run queries before with just as many, if not more, joined > > tables (that are linked to sql database.) I was hoping someone had > some > > quick info about such a situation. But alas, I have to dump the issue > > on our MIS laps, to investigate the offending table. > > > > Thanks, > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > > 21231-3305 > > > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby > > Sent: Thursday, February 08, 2007 10:29 AM > > To: 'Access Developers discussion and problem solving' > > Subject: Re: [AccessD] Linked Table Limits? > > > > Hmmm... I think something else is going on. AFAIK you can have every > > table > > in your database be out in SQL Server and thus you could have dozens > of > > SQL > > Server tables in a query. I have to admit that I do not have many > > "mixed" > > databases, and the ones I do have tend to use just one or two views > from > > SQL > > Server. > > > > If you have OTHER SQL Server tables, I would try to build queries > using > > those tables to see how they function. > > > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith > > Williamson > > Sent: Thursday, February 08, 2007 10:16 AM > > To: Access Developers discussion and problem solving > > Subject: [AccessD] Linked Table Limits? > > > > Hi all, > > > > > > > > Does anyone know if there are limits to the number of linked tables > (to > > a > > SQL database) that can be included in an Access query? I have a query > > that > > joins (2) linked tables and (2) local Access tables. That runs very > > fast. > > However, if I try to add one more linked table to the query.....it > > simply > > crashes the database. I've even tried using a sql select statement in > > the > > query, to get the data from that last linked table......crashes the > > database. IF I copy the entire linked table to a local table, and > then > > select/join to that table......the query runs fast. When I try > > exporting > > the query, with the select statement to the linked table.....my > > resultant > > export (incomplete due to the crash) is corrupted. > > > > > > > > So, my question is....is there some sort of limit to the number of sql > > tables that I can join, in a query? There doesn't seem to be anything > > wrong > > with the sql table I am trying to join. Just very odd. > > > > > > > > Thanks, > > > > > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > > 21231-3305 > > > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > -- > Gary Kjos > garykjos at gmail.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From garykjos at gmail.com Thu Feb 8 11:53:37 2007 From: garykjos at gmail.com (Gary Kjos) Date: Thu, 8 Feb 2007 11:53:37 -0600 Subject: [AccessD] Linked Table Limits? In-Reply-To: References: <001901c74b95$d4c8fae0$657aa8c0@m6805> Message-ID: Well since a number is normally compressed into fewer bytes than a text field with the same value there would be some economy there with a fewer number of bytes needing to be compared or indexed but if everything is indexed the same I don't know if you would notice a huge difference. No doubt if you get into huge databases with millions of records the compression that numerics bring to the party would make things a lot faster. GK On 2/8/07, Keith Williamson wrote: > I thought that both Access and Sql do searches much faster on numbers, > rather than text. ?? This application is pretty slow. I assumed it > was from all the text keys. ?? > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > Sent: Thursday, February 08, 2007 12:19 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Linked Table Limits? > > Well, I was taught that numbers that you don't expect to do > mathematics on SHOULD be stored as text..... perhaps those guys went > to my school? ;-) > > GK > > On 2/8/07, Keith Williamson wrote: > > Sounds similar. This sql database is a major software > > (Architectural/Service Industry....Labor-Based) called Vision. > > Unfortunately, the designers didn't really seem to have a lot of > > "vision" when designing it. All the Key fields seem to be text > > fields......that's right...I said TEXT fields. Employee Number, > Project > > Number, etc. ......ALL TEXT. WHAT WERE THEY THINKING???? > > > > <:( > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > > 21231-3305 > > > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > > Sent: Thursday, February 08, 2007 11:18 AM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Linked Table Limits? > > > > We have an Oracle table in our data warehouse that if we just link to > > and use the results of that link it works fine but if I put a criteria > > on anything in that table it blows up and causes an Oracle Error > > message. It's the Customer Location table and someone wanted all the > > sales to California. I tried to select by the ship to state and it > > blew up. I tried it again and it blew up again. And Again. I thought > > it was something I was doing wrong. Then I did it pulling all records > > into a temporary table including the state and then selecting only the > > california sales from there and it worked fine. Go figure. > > > > GK > > > > On 2/8/07, Keith Williamson wrote: > > > I suspect there must be a corrupted record in that particular table. > > I > > > know I have run queries before with just as many, if not more, > joined > > > tables (that are linked to sql database.) I was hoping someone had > > some > > > quick info about such a situation. But alas, I have to dump the > issue > > > on our MIS laps, to investigate the offending table. > > > > > > Thanks, > > > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > > > > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > > > 21231-3305 > > > > > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby > > > Sent: Thursday, February 08, 2007 10:29 AM > > > To: 'Access Developers discussion and problem solving' > > > Subject: Re: [AccessD] Linked Table Limits? > > > > > > Hmmm... I think something else is going on. AFAIK you can have > every > > > table > > > in your database be out in SQL Server and thus you could have dozens > > of > > > SQL > > > Server tables in a query. I have to admit that I do not have many > > > "mixed" > > > databases, and the ones I do have tend to use just one or two views > > from > > > SQL > > > Server. > > > > > > If you have OTHER SQL Server tables, I would try to build queries > > using > > > those tables to see how they function. > > > > > > > > > John W. Colby > > > Colby Consulting > > > www.ColbyConsulting.com > > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith > > > Williamson > > > Sent: Thursday, February 08, 2007 10:16 AM > > > To: Access Developers discussion and problem solving > > > Subject: [AccessD] Linked Table Limits? > > > > > > Hi all, > > > > > > > > > > > > Does anyone know if there are limits to the number of linked tables > > (to > > > a > > > SQL database) that can be included in an Access query? I have a > query > > > that > > > joins (2) linked tables and (2) local Access tables. That runs very > > > fast. > > > However, if I try to add one more linked table to the query.....it > > > simply > > > crashes the database. I've even tried using a sql select statement > in > > > the > > > query, to get the data from that last linked table......crashes the > > > database. IF I copy the entire linked table to a local table, and > > then > > > select/join to that table......the query runs fast. When I try > > > exporting > > > the query, with the select statement to the linked table.....my > > > resultant > > > export (incomplete due to the crash) is corrupted. > > > > > > > > > > > > So, my question is....is there some sort of limit to the number of > sql > > > tables that I can join, in a query? There doesn't seem to be > anything > > > wrong > > > with the sql table I am trying to join. Just very odd. > > > > > > > > > > > > Thanks, > > > > > > > > > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > > > > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > > > 21231-3305 > > > > > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > > > > > > > > > > > > > > > -- > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > -- > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > -- > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > > > > -- > > Gary Kjos > > garykjos at gmail.com > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > -- > Gary Kjos > garykjos at gmail.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > 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 accessd at shaw.ca Thu Feb 8 12:39:56 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 08 Feb 2007 10:39:56 -0800 Subject: [AccessD] Linked Table Limits? In-Reply-To: Message-ID: <0JD500D65QF0RSI0@l-daemon> Hi Keith: They do. All databases back before the 90's use to run with text based keys. Is it your job to just run the application or is it your job to run it and repair it? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, February 08, 2007 9:41 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Linked Table Limits? I thought that both Access and Sql do searches much faster on numbers, rather than text. ?? This application is pretty slow. I assumed it was from all the text keys. ?? Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Thursday, February 08, 2007 12:19 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Linked Table Limits? Well, I was taught that numbers that you don't expect to do mathematics on SHOULD be stored as text..... perhaps those guys went to my school? ;-) GK On 2/8/07, Keith Williamson wrote: > Sounds similar. This sql database is a major software > (Architectural/Service Industry....Labor-Based) called Vision. > Unfortunately, the designers didn't really seem to have a lot of > "vision" when designing it. All the Key fields seem to be text > fields......that's right...I said TEXT fields. Employee Number, Project > Number, etc. ......ALL TEXT. WHAT WERE THEY THINKING???? > > <:( > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > Sent: Thursday, February 08, 2007 11:18 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Linked Table Limits? > > We have an Oracle table in our data warehouse that if we just link to > and use the results of that link it works fine but if I put a criteria > on anything in that table it blows up and causes an Oracle Error > message. It's the Customer Location table and someone wanted all the > sales to California. I tried to select by the ship to state and it > blew up. I tried it again and it blew up again. And Again. I thought > it was something I was doing wrong. Then I did it pulling all records > into a temporary table including the state and then selecting only the > california sales from there and it worked fine. Go figure. > > GK > > On 2/8/07, Keith Williamson wrote: > > I suspect there must be a corrupted record in that particular table. > I > > know I have run queries before with just as many, if not more, joined > > tables (that are linked to sql database.) I was hoping someone had > some > > quick info about such a situation. But alas, I have to dump the issue > > on our MIS laps, to investigate the offending table. > > > > Thanks, > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > > 21231-3305 > > > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby > > Sent: Thursday, February 08, 2007 10:29 AM > > To: 'Access Developers discussion and problem solving' > > Subject: Re: [AccessD] Linked Table Limits? > > > > Hmmm... I think something else is going on. AFAIK you can have every > > table > > in your database be out in SQL Server and thus you could have dozens > of > > SQL > > Server tables in a query. I have to admit that I do not have many > > "mixed" > > databases, and the ones I do have tend to use just one or two views > from > > SQL > > Server. > > > > If you have OTHER SQL Server tables, I would try to build queries > using > > those tables to see how they function. > > > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith > > Williamson > > Sent: Thursday, February 08, 2007 10:16 AM > > To: Access Developers discussion and problem solving > > Subject: [AccessD] Linked Table Limits? > > > > Hi all, > > > > > > > > Does anyone know if there are limits to the number of linked tables > (to > > a > > SQL database) that can be included in an Access query? I have a query > > that > > joins (2) linked tables and (2) local Access tables. That runs very > > fast. > > However, if I try to add one more linked table to the query.....it > > simply > > crashes the database. I've even tried using a sql select statement in > > the > > query, to get the data from that last linked table......crashes the > > database. IF I copy the entire linked table to a local table, and > then > > select/join to that table......the query runs fast. When I try > > exporting > > the query, with the select statement to the linked table.....my > > resultant > > export (incomplete due to the crash) is corrupted. > > > > > > > > So, my question is....is there some sort of limit to the number of sql > > tables that I can join, in a query? There doesn't seem to be anything > > wrong > > with the sql table I am trying to join. Just very odd. > > > > > > > > Thanks, > > > > > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > > 21231-3305 > > > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > -- > Gary Kjos > garykjos at gmail.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From saaf at sonic.net Thu Feb 8 13:11:55 2007 From: saaf at sonic.net (steve saaf) Date: Thu, 8 Feb 2007 11:11:55 -0800 Subject: [AccessD] Access and home construction work Message-ID: <002001c74bb5$00077140$a77294d1@loreleisxp> Hello- Anyone have experience with the above and could give any tips/experience/recommendations? Thanks, Steve From mmattys at rochester.rr.com Thu Feb 8 13:29:30 2007 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Thu, 8 Feb 2007 14:29:30 -0500 Subject: [AccessD] Access and home construction work References: <002001c74bb5$00077140$a77294d1@loreleisxp> Message-ID: <039c01c74bb7$758a3a40$0202a8c0@default> Steve, A little vague - are you building homes or are you trying to control all the lights in your house from a database? Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "steve saaf" To: Sent: Thursday, February 08, 2007 2:11 PM Subject: [AccessD] Access and home construction work > Hello- > Anyone have experience with the above and could give any > tips/experience/recommendations? > Thanks, > Steve > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From Kwilliamson at RTKL.com Thu Feb 8 13:33:52 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Thu, 8 Feb 2007 14:33:52 -0500 Subject: [AccessD] Linked Table Limits? In-Reply-To: References: <001901c74b95$d4c8fae0$657aa8c0@m6805> Message-ID: Well....our labor detail table, alone, is 2.5 million records. Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Thursday, February 08, 2007 12:54 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Linked Table Limits? Well since a number is normally compressed into fewer bytes than a text field with the same value there would be some economy there with a fewer number of bytes needing to be compared or indexed but if everything is indexed the same I don't know if you would notice a huge difference. No doubt if you get into huge databases with millions of records the compression that numerics bring to the party would make things a lot faster. GK On 2/8/07, Keith Williamson wrote: > I thought that both Access and Sql do searches much faster on numbers, > rather than text. ?? This application is pretty slow. I assumed it > was from all the text keys. ?? > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > Sent: Thursday, February 08, 2007 12:19 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Linked Table Limits? > > Well, I was taught that numbers that you don't expect to do > mathematics on SHOULD be stored as text..... perhaps those guys went > to my school? ;-) > > GK > > On 2/8/07, Keith Williamson wrote: > > Sounds similar. This sql database is a major software > > (Architectural/Service Industry....Labor-Based) called Vision. > > Unfortunately, the designers didn't really seem to have a lot of > > "vision" when designing it. All the Key fields seem to be text > > fields......that's right...I said TEXT fields. Employee Number, > Project > > Number, etc. ......ALL TEXT. WHAT WERE THEY THINKING???? > > > > <:( > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > > 21231-3305 > > > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > > Sent: Thursday, February 08, 2007 11:18 AM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Linked Table Limits? > > > > We have an Oracle table in our data warehouse that if we just link to > > and use the results of that link it works fine but if I put a criteria > > on anything in that table it blows up and causes an Oracle Error > > message. It's the Customer Location table and someone wanted all the > > sales to California. I tried to select by the ship to state and it > > blew up. I tried it again and it blew up again. And Again. I thought > > it was something I was doing wrong. Then I did it pulling all records > > into a temporary table including the state and then selecting only the > > california sales from there and it worked fine. Go figure. > > > > GK > > > > On 2/8/07, Keith Williamson wrote: > > > I suspect there must be a corrupted record in that particular table. > > I > > > know I have run queries before with just as many, if not more, > joined > > > tables (that are linked to sql database.) I was hoping someone had > > some > > > quick info about such a situation. But alas, I have to dump the > issue > > > on our MIS laps, to investigate the offending table. > > > > > > Thanks, > > > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > > > > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > > > 21231-3305 > > > > > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby > > > Sent: Thursday, February 08, 2007 10:29 AM > > > To: 'Access Developers discussion and problem solving' > > > Subject: Re: [AccessD] Linked Table Limits? > > > > > > Hmmm... I think something else is going on. AFAIK you can have > every > > > table > > > in your database be out in SQL Server and thus you could have dozens > > of > > > SQL > > > Server tables in a query. I have to admit that I do not have many > > > "mixed" > > > databases, and the ones I do have tend to use just one or two views > > from > > > SQL > > > Server. > > > > > > If you have OTHER SQL Server tables, I would try to build queries > > using > > > those tables to see how they function. > > > > > > > > > John W. Colby > > > Colby Consulting > > > www.ColbyConsulting.com > > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith > > > Williamson > > > Sent: Thursday, February 08, 2007 10:16 AM > > > To: Access Developers discussion and problem solving > > > Subject: [AccessD] Linked Table Limits? > > > > > > Hi all, > > > > > > > > > > > > Does anyone know if there are limits to the number of linked tables > > (to > > > a > > > SQL database) that can be included in an Access query? I have a > query > > > that > > > joins (2) linked tables and (2) local Access tables. That runs very > > > fast. > > > However, if I try to add one more linked table to the query.....it > > > simply > > > crashes the database. I've even tried using a sql select statement > in > > > the > > > query, to get the data from that last linked table......crashes the > > > database. IF I copy the entire linked table to a local table, and > > then > > > select/join to that table......the query runs fast. When I try > > > exporting > > > the query, with the select statement to the linked table.....my > > > resultant > > > export (incomplete due to the crash) is corrupted. > > > > > > > > > > > > So, my question is....is there some sort of limit to the number of > sql > > > tables that I can join, in a query? There doesn't seem to be > anything > > > wrong > > > with the sql table I am trying to join. Just very odd. > > > > > > > > > > > > Thanks, > > > > > > > > > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > > > > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > > > 21231-3305 > > > > > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > > > > > > > > > > > > > > > -- > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > -- > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > -- > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > > > > -- > > Gary Kjos > > garykjos at gmail.com > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > -- > Gary Kjos > garykjos at gmail.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Kwilliamson at RTKL.com Thu Feb 8 13:36:30 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Thu, 8 Feb 2007 14:36:30 -0500 Subject: [AccessD] Linked Table Limits? In-Reply-To: <0JD500D65QF0RSI0@l-daemon> References: <0JD500D65QF0RSI0@l-daemon> Message-ID: No. I can't do anything with the base application. My job is to create processes to extract the data (either through the canned reports, or by creating Access queries/forms/reports). I am using Access (instead of just Enterprise Manager, for example) because I am also storing some data, to make my reporting processes better. Thus, I link to the backend tables in the application AND use my own tables in Access, to create meaningful financial reports. Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, February 08, 2007 1:40 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Linked Table Limits? Hi Keith: They do. All databases back before the 90's use to run with text based keys. Is it your job to just run the application or is it your job to run it and repair it? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, February 08, 2007 9:41 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Linked Table Limits? I thought that both Access and Sql do searches much faster on numbers, rather than text. ?? This application is pretty slow. I assumed it was from all the text keys. ?? Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Thursday, February 08, 2007 12:19 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Linked Table Limits? Well, I was taught that numbers that you don't expect to do mathematics on SHOULD be stored as text..... perhaps those guys went to my school? ;-) GK On 2/8/07, Keith Williamson wrote: > Sounds similar. This sql database is a major software > (Architectural/Service Industry....Labor-Based) called Vision. > Unfortunately, the designers didn't really seem to have a lot of > "vision" when designing it. All the Key fields seem to be text > fields......that's right...I said TEXT fields. Employee Number, Project > Number, etc. ......ALL TEXT. WHAT WERE THEY THINKING???? > > <:( > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > Sent: Thursday, February 08, 2007 11:18 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Linked Table Limits? > > We have an Oracle table in our data warehouse that if we just link to > and use the results of that link it works fine but if I put a criteria > on anything in that table it blows up and causes an Oracle Error > message. It's the Customer Location table and someone wanted all the > sales to California. I tried to select by the ship to state and it > blew up. I tried it again and it blew up again. And Again. I thought > it was something I was doing wrong. Then I did it pulling all records > into a temporary table including the state and then selecting only the > california sales from there and it worked fine. Go figure. > > GK > > On 2/8/07, Keith Williamson wrote: > > I suspect there must be a corrupted record in that particular table. > I > > know I have run queries before with just as many, if not more, joined > > tables (that are linked to sql database.) I was hoping someone had > some > > quick info about such a situation. But alas, I have to dump the issue > > on our MIS laps, to investigate the offending table. > > > > Thanks, > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > > 21231-3305 > > > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby > > Sent: Thursday, February 08, 2007 10:29 AM > > To: 'Access Developers discussion and problem solving' > > Subject: Re: [AccessD] Linked Table Limits? > > > > Hmmm... I think something else is going on. AFAIK you can have every > > table > > in your database be out in SQL Server and thus you could have dozens > of > > SQL > > Server tables in a query. I have to admit that I do not have many > > "mixed" > > databases, and the ones I do have tend to use just one or two views > from > > SQL > > Server. > > > > If you have OTHER SQL Server tables, I would try to build queries > using > > those tables to see how they function. > > > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith > > Williamson > > Sent: Thursday, February 08, 2007 10:16 AM > > To: Access Developers discussion and problem solving > > Subject: [AccessD] Linked Table Limits? > > > > Hi all, > > > > > > > > Does anyone know if there are limits to the number of linked tables > (to > > a > > SQL database) that can be included in an Access query? I have a query > > that > > joins (2) linked tables and (2) local Access tables. That runs very > > fast. > > However, if I try to add one more linked table to the query.....it > > simply > > crashes the database. I've even tried using a sql select statement in > > the > > query, to get the data from that last linked table......crashes the > > database. IF I copy the entire linked table to a local table, and > then > > select/join to that table......the query runs fast. When I try > > exporting > > the query, with the select statement to the linked table.....my > > resultant > > export (incomplete due to the crash) is corrupted. > > > > > > > > So, my question is....is there some sort of limit to the number of sql > > tables that I can join, in a query? There doesn't seem to be anything > > wrong > > with the sql table I am trying to join. Just very odd. > > > > > > > > Thanks, > > > > > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > > 21231-3305 > > > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > -- > Gary Kjos > garykjos at gmail.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Kwilliamson at RTKL.com Thu Feb 8 13:45:27 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Thu, 8 Feb 2007 14:45:27 -0500 Subject: [AccessD] Access and home construction work In-Reply-To: <039c01c74bb7$758a3a40$0202a8c0@default> References: <002001c74bb5$00077140$a77294d1@loreleisxp> <039c01c74bb7$758a3a40$0202a8c0@default> Message-ID: I don't know what he is doing....but I should would love to control all the lights in my house, from my computer. :) so....do you have experience with THAT? Lol Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys Sent: Thursday, February 08, 2007 2:30 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and home construction work Steve, A little vague - are you building homes or are you trying to control all the lights in your house from a database? Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "steve saaf" To: Sent: Thursday, February 08, 2007 2:11 PM Subject: [AccessD] Access and home construction work > Hello- > Anyone have experience with the above and could give any > tips/experience/recommendations? > Thanks, > Steve > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Thu Feb 8 13:48:56 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 08 Feb 2007 19:48:56 +0000 Subject: [AccessD] Access and home construction work In-Reply-To: <039c01c74bb7$758a3a40$0202a8c0@default> Message-ID: >A little vague I agree...but I have a 50/50 chance of guessing...(my guess is not the lights)...so... A few years back I worked with a contractor on a bidding tool...?...is that relevant? Thanks, Mark A. Matte >From: "Michael R Mattys" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Access and home construction work >Date: Thu, 8 Feb 2007 14:29:30 -0500 > >Steve, > >A little vague - are you building homes or >are you trying to control all the lights in >your house from a database? > >Michael R. Mattys >MapPoint & Access Dev >www.mattysconsulting.com > >----- Original Message ----- >From: "steve saaf" >To: >Sent: Thursday, February 08, 2007 2:11 PM >Subject: [AccessD] Access and home construction work > > > > Hello- > > Anyone have experience with the above and could give any > > tips/experience/recommendations? > > Thanks, > > Steve > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Search for grocery stores. Find gratitude. Turn a simple search into something more. http://click4thecause.live.com/search/charity/default.aspx?source=hmemtagline_gratitude&FORM=WLMTAG From mmattys at rochester.rr.com Thu Feb 8 13:55:18 2007 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Thu, 8 Feb 2007 14:55:18 -0500 Subject: [AccessD] Access and home construction work References: <002001c74bb5$00077140$a77294d1@loreleisxp> <039c01c74bb7$758a3a40$0202a8c0@default> Message-ID: <03bb01c74bbb$10dc9e90$0202a8c0@default> Nope. Bill Gates has had that feature for years, though. ON / OFF, power or no power - It can't be that difficult :) Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "Keith Williamson" To: "Access Developers discussion and problem solving" Sent: Thursday, February 08, 2007 2:45 PM Subject: Re: [AccessD] Access and home construction work >I don't know what he is doing....but I should would love to control all > the lights in my house, from my computer. :) so....do you have > experience with THAT? Lol > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R > Mattys > Sent: Thursday, February 08, 2007 2:30 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access and home construction work > > Steve, > > A little vague - are you building homes or > are you trying to control all the lights in > your house from a database? > > Michael R. Mattys > MapPoint & Access Dev > www.mattysconsulting.com > > ----- Original Message ----- > From: "steve saaf" > To: > Sent: Thursday, February 08, 2007 2:11 PM > Subject: [AccessD] Access and home construction work > > >> Hello- >> Anyone have experience with the above and could give any >> tips/experience/recommendations? >> Thanks, >> Steve >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From Kwilliamson at RTKL.com Thu Feb 8 14:04:25 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Thu, 8 Feb 2007 15:04:25 -0500 Subject: [AccessD] Access and home construction work In-Reply-To: <03bb01c74bbb$10dc9e90$0202a8c0@default> References: <002001c74bb5$00077140$a77294d1@loreleisxp><039c01c74bb7$758a3a40$0202a8c0@default> <03bb01c74bbb$10dc9e90$0202a8c0@default> Message-ID: I forgot to add that I want it all wireless, flexible, and cheap! ;) Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys Sent: Thursday, February 08, 2007 2:55 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and home construction work Nope. Bill Gates has had that feature for years, though. ON / OFF, power or no power - It can't be that difficult :) Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "Keith Williamson" To: "Access Developers discussion and problem solving" Sent: Thursday, February 08, 2007 2:45 PM Subject: Re: [AccessD] Access and home construction work >I don't know what he is doing....but I should would love to control all > the lights in my house, from my computer. :) so....do you have > experience with THAT? Lol > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R > Mattys > Sent: Thursday, February 08, 2007 2:30 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access and home construction work > > Steve, > > A little vague - are you building homes or > are you trying to control all the lights in > your house from a database? > > Michael R. Mattys > MapPoint & Access Dev > www.mattysconsulting.com > > ----- Original Message ----- > From: "steve saaf" > To: > Sent: Thursday, February 08, 2007 2:11 PM > Subject: [AccessD] Access and home construction work > > >> Hello- >> Anyone have experience with the above and could give any >> tips/experience/recommendations? >> Thanks, >> Steve >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jeffrey.demulling at usbank.com Thu Feb 8 14:03:20 2007 From: jeffrey.demulling at usbank.com (jeffrey.demulling at usbank.com) Date: Thu, 8 Feb 2007 14:03:20 -0600 Subject: [AccessD] Access and home construction work In-Reply-To: <03bb01c74bbb$10dc9e90$0202a8c0@default> Message-ID: http://www.automatedliving.com/ Jeffrey F. Demulling Project Manager U.S. Bank Corporate Trust Services 60 Livingston Avenue EP-MN-WS3C St. Paul, MN 55107-2292 Ph: 651-495-3925 Fax: 651-495-8103 Pager: 888-732-3909 email: jeffrey.demulling at usbank.com Text Messaging: 8887323909 at my2way.com "Michael R Mattys" "Access Developers discussion and Sent by: problem solving" accessd-bounces at d atabaseadvisors.c cc om Subject Re: [AccessD] Access and home 02/08/2007 01:55 construction work PM Please respond to "Access Developers discussion and problem solving" Nope. Bill Gates has had that feature for years, though. ON / OFF, power or no power - It can't be that difficult :) Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "Keith Williamson" To: "Access Developers discussion and problem solving" Sent: Thursday, February 08, 2007 2:45 PM Subject: Re: [AccessD] Access and home construction work >I don't know what he is doing....but I should would love to control all > the lights in my house, from my computer. :) so....do you have > experience with THAT? Lol > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R > Mattys > Sent: Thursday, February 08, 2007 2:30 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access and home construction work > > Steve, > > A little vague - are you building homes or > are you trying to control all the lights in > your house from a database? > > Michael R. Mattys > MapPoint & Access Dev > www.mattysconsulting.com > > ----- Original Message ----- > From: "steve saaf" > To: > Sent: Thursday, February 08, 2007 2:11 PM > Subject: [AccessD] Access and home construction work > > >> Hello- >> Anyone have experience with the above and could give any >> tips/experience/recommendations? >> Thanks, >> Steve >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ------------------------------------------------------------------------------ Electronic Privacy Notice. This e-mail, and any attachments, contains information that is, or may be, covered by electronic communications privacy laws, and is also confidential and proprietary in nature. If you are not the intended recipient, please be advised that you are legally prohibited from retaining, using, copying, distributing, or otherwise disclosing this information in any manner. Instead, please reply to the sender that you have received this communication in error, and then immediately delete it. Thank you in advance for your cooperation. ============================================================================== From reuben at gfconsultants.com Thu Feb 8 14:11:17 2007 From: reuben at gfconsultants.com (Reuben Cummings) Date: Thu, 8 Feb 2007 15:11:17 -0500 Subject: [AccessD] Access and home construction work In-Reply-To: <03bb01c74bbb$10dc9e90$0202a8c0@default> Message-ID: I would love something like this. Our church uses some crap software to control all the lights in the sanctuary. Every light is on a dimmer and it is all controlled via software. However, the interface cannot be changed at all which makes it difficult to setup for different services or weddings. All the titles for each "que button" are always the same. The user simply has to remember what button goes with what que depending on what service is going on. I would like to build a system that the interface (button titles) would change to match the service. Anyone familiar with something like that? I apologize for hijacking this thread. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Michael R > Mattys > Sent: Thursday, February 08, 2007 2:55 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access and home construction work > > > Nope. Bill Gates has had that feature for years, though. > ON / OFF, power or no power - It can't be that difficult :) > > Michael R. Mattys > MapPoint & Access Dev > www.mattysconsulting.com > > ----- Original Message ----- > From: "Keith Williamson" > To: "Access Developers discussion and problem solving" > > Sent: Thursday, February 08, 2007 2:45 PM > Subject: Re: [AccessD] Access and home construction work > > > >I don't know what he is doing....but I should would love to control all > > the lights in my house, from my computer. :) so....do you have > > experience with THAT? Lol > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > > 21231-3305 > > > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R > > Mattys > > Sent: Thursday, February 08, 2007 2:30 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Access and home construction work > > > > Steve, > > > > A little vague - are you building homes or > > are you trying to control all the lights in > > your house from a database? > > > > Michael R. Mattys > > MapPoint & Access Dev > > www.mattysconsulting.com > > > > ----- Original Message ----- > > From: "steve saaf" > > To: > > Sent: Thursday, February 08, 2007 2:11 PM > > Subject: [AccessD] Access and home construction work > > > > > >> Hello- > >> Anyone have experience with the above and could give any > >> tips/experience/recommendations? > >> Thanks, > >> Steve > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jengross at gte.net Thu Feb 8 14:38:40 2007 From: jengross at gte.net (Jennifer Gross) Date: Thu, 08 Feb 2007 12:38:40 -0800 Subject: [AccessD] ADO code stopped working In-Reply-To: Message-ID: <002201c74bc1$1e867c90$6401a8c0@jefferson> I am still stumped. I am moving the code to DAO, since it works fine, even with the Eval statement and no change to the way the parameters are set up. It has to be something outside the code, in network or security, because the ADO works fine on my system, and worked fine on theirs until last week. Something changed in their setup, but we can't identify it. Thanks for everyone's help and the wonderful tangential insights. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, February 07, 2007 6:58 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] ADO code stopped working Hi Marty That is interesting! It appears that - if you specify a parameter by its name - for an explicit parameter the brackets must _not_ be specified, while for an implicit parameter the brackets _must_ be specified. If you don't, an 3265 error will be raised but not before you reach the code line where you pass the parameter value. So this is not the scenario Jennifer sees, as - for her case - the error is raised earlier when you address the Procedures' collection. /gustav >>> martyconnelly at shaw.ca 05-02-2007 21:46:05 >>> I am just wondering if TheQuery has to be run once to compile it? or this ACC2000: How to Use Parameters with ActiveX Data Objects (ADO) and Jet http://support.microsoft.com/kb/225897/en-us Method 3: Using an Implicit Parameter NOTE: Implicit parameter names have brackets ([ ]) around them, and you must use the brackets (or the parameter's ordinal position) when referring to implicit parameters in the Parameters collection. If you do not use the brackets, you receive the following error message: Run-time error '3265': ADO could not find the object in the collection corresponding to the name or ordinal reference requested by the application. PRB: Error 3265 When You Access Properties Collection http://support.microsoft.com/?kbid=201826 http://support.microsoft.com/default.aspx?scid=kb;en-us;223212 Jennifer Gross wrote: >Hi Gustav, > >I have checked all references. The code is compiling. I have created >a test database with one table and one query. It is failing in the >same spot my original database is failing - Set prc = >cat.Procedures("TheQuery") - In the test database I am getting the >error 3265 - Item cannot be found in the collection corresponding to >the requested name or ordinal. The query does exist - no spelling >errors. The same ADO code is working fine on my home office system. It >worked fine at the client's site in January. Any thoughts? > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >Sent: Monday, February 05, 2007 1:47 AM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] ADO code stopped working > > >Hi Jennifer > >You could - for and while debugging - try to separate the connection >object: > > Dim cnn As ADODB.Connection > Dim cmd As ADODB.Command > Dim rst As ADODB.Recordset > Dim prm As ADODB.Parameter > Dim cat As ADOX.Catalog > Dim prc As ADOX.Procedure > > Set cat = New ADOX.Catalog > Set cnn = CurrentProject.Connection > cat.ActiveConnection = cnn > >I guess you have double-checked the reference: > Microsoft ADO Ext. 2.8 for DDL and Security >points to > ..system32\MSADOX.DLL > >/gustav > > > >>>>jengross at gte.net 05-02-2007 05:00 >>> >>>> >>>> >Thanks for the suggestions. I set the references like Marty suggested >and am still getting the problem. I am using the Getz Developers >Handbook code for looping through parameters in a select query: > > Dim cmd As ADODB.Command > Dim rst As ADODB.Recordset > Dim prm As ADODB.Parameter > Dim cat As ADOX.Catalog > Dim prc As ADOX.Procedure > > Set cat = New ADOX.Catalog >* cat.ActiveConnection = CurrentProject.Connection >* Set prc = cat.Procedures("TheQuery") > Set cmd = prc.Command > For Each prm In cmd.Parameters > prm.Value = Eval(prm.Name) > Next prm > Set rst = cmd.Execute > >If I don't use the query with parameters, but instead base the >recordset on the table, then it works fine: > > Set rst = New ADODB.Recordset > Set rst.ActiveConnection = CurrentProject.Connection > rst.CursorType = adOpenForwardOnly > rst.LockType = adLockReadOnly > rst.Open "TheTable" > >I am getting the same results whether the code is in the existing FE or >if I create a new db with the ADO code as Rocky suggested. > >Any thoughts? > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin >at Beach Access Software >Sent: Sunday, February 04, 2007 4:55 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] ADO code stopped working > > >I would whip up a small app with some ado code to see if the problem is >inside your app or outside of it. Does your app compile? > >Rocky > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer >Gross >Sent: Sunday, February 04, 2007 2:05 PM >To: AccessD List >Subject: [AccessD] ADO code stopped working > >Hi Everyone, > >W2K SP4 / A2K SP3 / terminal server > >I have a database that has some DAO and some ADO code. Recently all >ADO stopped working. DAO is still working fine. Anytime code >utilizing ADO runs it shuts down the database abruptly, leaving the LDB >file. We were also having problems with the Windows Management >databases locking up and a reinstall of the latest MDAC took care of >that problem, but did not solve the ADO problem. ADO was working fine >for end of year reporting. There are no missing references. After the >MDAC reinstall I unchecked references, closed down, opened up and >rechecked references. > >Any help would be greatly appreciated. > >Thank you, > >Jennifer Gross >databasics >2839 Shirley Drive >Newbury Park, CA 91320-3068 >office: (805) 480-1921 >fax: (805) 499-0467 > > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This mail is marked as non spam by Pinjo revealer, spamfilter technology. ( http://www.pinjo.nl ) -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From tbadmin at tenbus.co.uk Thu Feb 8 14:11:32 2007 From: tbadmin at tenbus.co.uk (Webadmin - Tenbus) Date: Thu, 8 Feb 2007 20:11:32 -0000 Subject: [AccessD] Access and home construction work In-Reply-To: Message-ID: <006f01c74bbd$5a8f4770$0200a8c0@matilda> I can't do cheap but how about ? Regards! Chris Foote -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: 08 February 2007 20:04 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and home construction work I forgot to add that I want it all wireless, flexible, and cheap! ;) Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys Sent: Thursday, February 08, 2007 2:55 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and home construction work Nope. Bill Gates has had that feature for years, though. ON / OFF, power or no power - It can't be that difficult :) Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "Keith Williamson" To: "Access Developers discussion and problem solving" Sent: Thursday, February 08, 2007 2:45 PM Subject: Re: [AccessD] Access and home construction work >I don't know what he is doing....but I should would love to control all > the lights in my house, from my computer. :) so....do you have > experience with THAT? Lol > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com From Kwilliamson at RTKL.com Thu Feb 8 14:58:29 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Thu, 8 Feb 2007 15:58:29 -0500 Subject: [AccessD] Access and home construction work In-Reply-To: <006f01c74bbd$5a8f4770$0200a8c0@matilda> References: <006f01c74bbd$5a8f4770$0200a8c0@matilda> Message-ID: Interesting. Thanks! Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Webadmin - Tenbus Sent: Thursday, February 08, 2007 3:12 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access and home construction work I can't do cheap but how about ? Regards! Chris Foote -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: 08 February 2007 20:04 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and home construction work I forgot to add that I want it all wireless, flexible, and cheap! ;) Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys Sent: Thursday, February 08, 2007 2:55 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and home construction work Nope. Bill Gates has had that feature for years, though. ON / OFF, power or no power - It can't be that difficult :) Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "Keith Williamson" To: "Access Developers discussion and problem solving" Sent: Thursday, February 08, 2007 2:45 PM Subject: Re: [AccessD] Access and home construction work >I don't know what he is doing....but I should would love to control all > the lights in my house, from my computer. :) so....do you have > experience with THAT? Lol > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Thu Feb 8 16:11:31 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Thu, 8 Feb 2007 16:11:31 -0600 Subject: [AccessD] Access and home construction work Message-ID: Depends how good you are with electronics. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, February 08, 2007 1:45 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and home construction work I don't know what he is doing....but I should would love to control all the lights in my house, from my computer. :) so....do you have experience with THAT? Lol Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys Sent: Thursday, February 08, 2007 2:30 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and home construction work Steve, A little vague - are you building homes or are you trying to control all the lights in your house from a database? Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "steve saaf" To: Sent: Thursday, February 08, 2007 2:11 PM Subject: [AccessD] Access and home construction work > Hello- > Anyone have experience with the above and could give any > tips/experience/recommendations? > Thanks, > Steve > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Feb 8 16:36:34 2007 From: kp at sdsonline.net (Kath Pelletti) Date: Fri, 9 Feb 2007 09:36:34 +1100 Subject: [AccessD] Help with an ActiveX control Message-ID: <001e01c74bd1$96fc3e70$6401a8c0@office> I have downloaded a trial version of a rich text control from Chado (http://www.spelltext.com/aboutspe.htm ). I have added a reference to it, and placed the control on a form. I have opened the properties window and bound that control to my table field. All works OK except that I then need to export that field with all formatting as html. I have contacted Chado support and they tell me "The default is TextRTF, since RTF is the native format for the SpellEditor control. You need to bind the TextHTML property instead, since this will return the HTML equivalent of the RTF". OK - but I can't work out how to do that. If I open the object browser I can see the SpellEditor class and the Texthtml property but I can;t work out how to reference that from my form's vba window. Can someone tell me how to do that?? (NB: I have contacted Chado for further support but there's quite a delay in response time....) ______________________________________ Kath Pelletti Software Design and Solutions Pty Ltd. Ph: 9505-6714 Fax: 9505-6430 Email: KP at SDSOnline.net From martyconnelly at shaw.ca Thu Feb 8 17:26:24 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 08 Feb 2007 15:26:24 -0800 Subject: [AccessD] ADO code stopped working In-Reply-To: <002201c74bc1$1e867c90$6401a8c0@jefferson> References: <002201c74bc1$1e867c90$6401a8c0@jefferson> Message-ID: <45CBB1A0.3070403@shaw.ca> Just a thought, could one site be running a higher MDAC 2.8 SP1 where the property version number would be Msado15.dll 2.81.1117.0 ADO Download MDAC 2.8 SP1 http://www.microsoft.com/downloads/details.aspx?familyid=78cac895-efc2-4f8e-a9e0-3a1afbd5922e&displaylang=en Release manifest for MDAC 2.8 Service Pack 1 (2.81.1117.6) http://support.microsoft.com/kb/899456 If not sure you could run Component Checker: Diagnose problems and reconfigure MDAC installations Tells you what MDAC's are installed on a machine http://support.microsoft.com/kb/307255/ Jennifer Gross wrote: >I am still stumped. I am moving the code to DAO, since it works fine, >even with the Eval statement and no change to the way the parameters are >set up. It has to be something outside the code, in network or >security, because the ADO works fine on my system, and worked fine on >theirs until last week. Something changed in their setup, but we can't >identify it. > >Thanks for everyone's help and the wonderful tangential insights. > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >Sent: Wednesday, February 07, 2007 6:58 AM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] ADO code stopped working > > >Hi Marty > >That is interesting! >It appears that - if you specify a parameter by its name - for an >explicit parameter the brackets must _not_ be specified, while for an >implicit parameter the brackets _must_ be specified. If you don't, an >3265 error will be raised but not before you reach the code line where >you pass the parameter value. So this is not the scenario Jennifer sees, >as - for her case - the error is raised earlier when you address the >Procedures' collection. > >/gustav > > > >>>>martyconnelly at shaw.ca 05-02-2007 21:46:05 >>> >>>> >>>> >I am just wondering if TheQuery has to be run once to compile it? > >or this > >ACC2000: How to Use Parameters with ActiveX Data Objects (ADO) and Jet >http://support.microsoft.com/kb/225897/en-us > >Method 3: Using an Implicit Parameter >NOTE: Implicit parameter names have brackets ([ ]) around them, and you >must use the brackets (or the parameter's ordinal position) when >referring to implicit parameters in the Parameters collection. If you >do not use the brackets, you receive the following error message: >Run-time error '3265': > >ADO could not find the object in the collection corresponding to the >name or ordinal reference requested by the application. > >PRB: Error 3265 When You Access Properties Collection >http://support.microsoft.com/?kbid=201826 > >http://support.microsoft.com/default.aspx?scid=kb;en-us;223212 > >Jennifer Gross wrote: > > > >>Hi Gustav, >> >>I have checked all references. The code is compiling. I have created >>a test database with one table and one query. It is failing in the >>same spot my original database is failing - Set prc = >>cat.Procedures("TheQuery") - In the test database I am getting the >>error 3265 - Item cannot be found in the collection corresponding to >>the requested name or ordinal. The query does exist - no spelling >>errors. The same ADO code is working fine on my home office system. It >> >> > > > >>worked fine at the client's site in January. Any thoughts? >> >>Jennifer >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >>Sent: Monday, February 05, 2007 1:47 AM >>To: accessd at databaseadvisors.com >>Subject: Re: [AccessD] ADO code stopped working >> >> >>Hi Jennifer >> >>You could - for and while debugging - try to separate the connection >>object: >> >> Dim cnn As ADODB.Connection >> Dim cmd As ADODB.Command >> Dim rst As ADODB.Recordset >> Dim prm As ADODB.Parameter >> Dim cat As ADOX.Catalog >> Dim prc As ADOX.Procedure >> >> Set cat = New ADOX.Catalog >> Set cnn = CurrentProject.Connection >> cat.ActiveConnection = cnn >> >>I guess you have double-checked the reference: >> Microsoft ADO Ext. 2.8 for DDL and Security >>points to >> ..system32\MSADOX.DLL >> >>/gustav >> >> >> >> >> >>>>>jengross at gte.net 05-02-2007 05:00 >>> >>>>> >>>>> >>>>> >>>>> >>Thanks for the suggestions. I set the references like Marty suggested >>and am still getting the problem. I am using the Getz Developers >>Handbook code for looping through parameters in a select query: >> >> Dim cmd As ADODB.Command >> Dim rst As ADODB.Recordset >> Dim prm As ADODB.Parameter >> Dim cat As ADOX.Catalog >> Dim prc As ADOX.Procedure >> >> Set cat = New ADOX.Catalog >>* cat.ActiveConnection = CurrentProject.Connection >>* Set prc = cat.Procedures("TheQuery") >> Set cmd = prc.Command >> For Each prm In cmd.Parameters >> prm.Value = Eval(prm.Name) >> Next prm >> Set rst = cmd.Execute >> >>If I don't use the query with parameters, but instead base the >>recordset on the table, then it works fine: >> >> Set rst = New ADODB.Recordset >> Set rst.ActiveConnection = CurrentProject.Connection >> rst.CursorType = adOpenForwardOnly >> rst.LockType = adLockReadOnly >> rst.Open "TheTable" >> >>I am getting the same results whether the code is in the existing FE or >> >> > > > >>if I create a new db with the ADO code as Rocky suggested. >> >>Any thoughts? >> >>Jennifer >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin >>at Beach Access Software >>Sent: Sunday, February 04, 2007 4:55 PM >>To: 'Access Developers discussion and problem solving' >>Subject: Re: [AccessD] ADO code stopped working >> >> >>I would whip up a small app with some ado code to see if the problem is >> >> > > > >>inside your app or outside of it. Does your app compile? >> >>Rocky >> >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer >>Gross >>Sent: Sunday, February 04, 2007 2:05 PM >>To: AccessD List >>Subject: [AccessD] ADO code stopped working >> >>Hi Everyone, >> >>W2K SP4 / A2K SP3 / terminal server >> >>I have a database that has some DAO and some ADO code. Recently all >>ADO stopped working. DAO is still working fine. Anytime code >>utilizing ADO runs it shuts down the database abruptly, leaving the LDB >> >> > > > >>file. We were also having problems with the Windows Management >>databases locking up and a reinstall of the latest MDAC took care of >>that problem, but did not solve the ADO problem. ADO was working fine >>for end of year reporting. There are no missing references. After the >> >> > > > >>MDAC reinstall I unchecked references, closed down, opened up and >>rechecked references. >> >>Any help would be greatly appreciated. >> >>Thank you, >> >>Jennifer Gross >>databasics >>2839 Shirley Drive >>Newbury Park, CA 91320-3068 >>office: (805) 480-1921 >>fax: (805) 499-0467 >> >> >> >> >> > > > -- Marty Connelly Victoria, B.C. Canada From wdhindman at dejpolsystems.com Thu Feb 8 17:53:08 2007 From: wdhindman at dejpolsystems.com (William Hindman) Date: Thu, 8 Feb 2007 18:53:08 -0500 Subject: [AccessD] Help with an ActiveX control References: <001e01c74bd1$96fc3e70$6401a8c0@office> Message-ID: <001201c74bdc$49a3fa40$8d4beb44@50NM721> Kath ...have you looked at Lebans free RTF control www.lebans.com ? William Hindman ----- Original Message ----- From: "Kath Pelletti" To: "Access D Normal List" Sent: Thursday, February 08, 2007 5:36 PM Subject: [AccessD] Help with an ActiveX control >I have downloaded a trial version of a rich text control from Chado >(http://www.spelltext.com/aboutspe.htm ). > > I have added a reference to it, and placed the control on a form. > > I have opened the properties window and bound that control to my table > field. > > All works OK except that I then need to export that field with all > formatting as html. I have contacted Chado support and they tell me "The > default is TextRTF, since RTF is the native format for the SpellEditor > control. You need to bind the TextHTML property instead, since this will > return the HTML equivalent of the RTF". > > OK - but I can't work out how to do that. > > If I open the object browser I can see the SpellEditor class and the > Texthtml property but I can;t work out how to reference that from my > form's vba window. > > Can someone tell me how to do that?? > > (NB: I have contacted Chado for further support but there's quite a delay > in response time....) > > ______________________________________ > Kath Pelletti > Software Design and Solutions Pty Ltd. > Ph: 9505-6714 > Fax: 9505-6430 > Email: KP at SDSOnline.net > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From kp at sdsonline.net Thu Feb 8 17:58:14 2007 From: kp at sdsonline.net (Kath Pelletti) Date: Fri, 9 Feb 2007 10:58:14 +1100 Subject: [AccessD] Help with an ActiveX control References: <001e01c74bd1$96fc3e70$6401a8c0@office> <001201c74bdc$49a3fa40$8d4beb44@50NM721> Message-ID: <006401c74bdc$ff878bb0$6401a8c0@office> Hi William - yeah, I worked with that ...but it seems a bit clumsy to be going with rtf and then finding ways of converting to html (I did try a few conversions). I think it should be simpler to find a control which has an html format option.......... Kath ----- Original Message ----- From: William Hindman To: Access Developers discussion and problem solving Sent: Friday, February 09, 2007 10:53 AM Subject: Re: [AccessD] Help with an ActiveX control Kath ...have you looked at Lebans free RTF control www.lebans.com ? William Hindman ----- Original Message ----- From: "Kath Pelletti" To: "Access D Normal List" Sent: Thursday, February 08, 2007 5:36 PM Subject: [AccessD] Help with an ActiveX control >I have downloaded a trial version of a rich text control from Chado >(http://www.spelltext.com/aboutspe.htm ). > > I have added a reference to it, and placed the control on a form. > > I have opened the properties window and bound that control to my table > field. > > All works OK except that I then need to export that field with all > formatting as html. I have contacted Chado support and they tell me "The > default is TextRTF, since RTF is the native format for the SpellEditor > control. You need to bind the TextHTML property instead, since this will > return the HTML equivalent of the RTF". > > OK - but I can't work out how to do that. > > If I open the object browser I can see the SpellEditor class and the > Texthtml property but I can;t work out how to reference that from my > form's vba window. > > Can someone tell me how to do that?? > > (NB: I have contacted Chado for further support but there's quite a delay > in response time....) > > ______________________________________ > Kath Pelletti > Software Design and Solutions Pty Ltd. > Ph: 9505-6714 > Fax: 9505-6430 > Email: KP at SDSOnline.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 kp at sdsonline.net Thu Feb 8 18:07:30 2007 From: kp at sdsonline.net (Kath Pelletti) Date: Fri, 9 Feb 2007 11:07:30 +1100 Subject: [AccessD] Help with an ActiveX control References: <001e01c74bd1$96fc3e70$6401a8c0@office> <001201c74bdc$49a3fa40$8d4beb44@50NM721> Message-ID: <006f01c74bde$4aa6d960$6401a8c0@office> ..and when I used Access's 'export as html' it was really still rtf inside the html ouput file, so I couldn't get that to work, unfortunately. Kath ----- Original Message ----- From: William Hindman To: Access Developers discussion and problem solving Sent: Friday, February 09, 2007 10:53 AM Subject: Re: [AccessD] Help with an ActiveX control Kath ...have you looked at Lebans free RTF control www.lebans.com ? William Hindman ----- Original Message ----- From: "Kath Pelletti" To: "Access D Normal List" Sent: Thursday, February 08, 2007 5:36 PM Subject: [AccessD] Help with an ActiveX control >I have downloaded a trial version of a rich text control from Chado >(http://www.spelltext.com/aboutspe.htm ). > > I have added a reference to it, and placed the control on a form. > > I have opened the properties window and bound that control to my table > field. > > All works OK except that I then need to export that field with all > formatting as html. I have contacted Chado support and they tell me "The > default is TextRTF, since RTF is the native format for the SpellEditor > control. You need to bind the TextHTML property instead, since this will > return the HTML equivalent of the RTF". > > OK - but I can't work out how to do that. > > If I open the object browser I can see the SpellEditor class and the > Texthtml property but I can;t work out how to reference that from my > form's vba window. > > Can someone tell me how to do that?? > > (NB: I have contacted Chado for further support but there's quite a delay > in response time....) > > ______________________________________ > Kath Pelletti > Software Design and Solutions Pty Ltd. > Ph: 9505-6714 > Fax: 9505-6430 > Email: KP at SDSOnline.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 wdhindman at dejpolsystems.com Thu Feb 8 18:20:10 2007 From: wdhindman at dejpolsystems.com (William Hindman) Date: Thu, 8 Feb 2007 19:20:10 -0500 Subject: [AccessD] Help with an ActiveX control References: <001e01c74bd1$96fc3e70$6401a8c0@office><001201c74bdc$49a3fa40$8d4beb44@50NM721> <006401c74bdc$ff878bb0$6401a8c0@office> Message-ID: <001d01c74be0$10322df0$8d4beb44@50NM721> ...have you asked Lebans? ...he's always on the microsoft.public.access newsgroup and has offered solutions like that before. William Hindman ----- Original Message ----- From: "Kath Pelletti" To: "Access Developers discussion and problem solving" Sent: Thursday, February 08, 2007 6:58 PM Subject: Re: [AccessD] Help with an ActiveX control > Hi William - yeah, I worked with that ...but it seems a bit clumsy to be > going with rtf and then finding ways of converting to html (I did try a > few conversions). > > I think it should be simpler to find a control which has an html format > option.......... > > Kath > ----- Original Message ----- > From: William Hindman > To: Access Developers discussion and problem solving > Sent: Friday, February 09, 2007 10:53 AM > Subject: Re: [AccessD] Help with an ActiveX control > > > Kath > > ...have you looked at Lebans free RTF control www.lebans.com ? > > William Hindman > > ----- Original Message ----- > From: "Kath Pelletti" > To: "Access D Normal List" > Sent: Thursday, February 08, 2007 5:36 PM > Subject: [AccessD] Help with an ActiveX control > > > >I have downloaded a trial version of a rich text control from Chado > >(http://www.spelltext.com/aboutspe.htm ). > > > > I have added a reference to it, and placed the control on a form. > > > > I have opened the properties window and bound that control to my table > > field. > > > > All works OK except that I then need to export that field with all > > formatting as html. I have contacted Chado support and they tell me > "The > > default is TextRTF, since RTF is the native format for the SpellEditor > > control. You need to bind the TextHTML property instead, since this > will > > return the HTML equivalent of the RTF". > > > > OK - but I can't work out how to do that. > > > > If I open the object browser I can see the SpellEditor class and the > > Texthtml property but I can;t work out how to reference that from my > > form's vba window. > > > > Can someone tell me how to do that?? > > > > (NB: I have contacted Chado for further support but there's quite a > delay > > in response time....) > > > > ______________________________________ > > Kath Pelletti > > Software Design and Solutions Pty Ltd. > > Ph: 9505-6714 > > Fax: 9505-6430 > > Email: KP at SDSOnline.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 BarbaraRyan at cox.net Thu Feb 8 18:21:06 2007 From: BarbaraRyan at cox.net (Barbara Ryan) Date: Thu, 8 Feb 2007 19:21:06 -0500 Subject: [AccessD] Queries are messed up! Message-ID: <00a701c74be0$30cfc9f0$0a00a8c0@PCRURI35> In an Access 2002 application, when I need to distribute database object changes, I copy all of the modified objects into a blank database and email it to client sites. They then click a push button in their application which imports all of the objects. Everything has worked great (for years) until now ---- if a query is included in the update, it will import into their application without any relationships (i.e., there are no "lines" between tables) when the query is viewed in design mode on their computer. Also, even if the query only contains one table, all of the selected fields are listed as "Exp1", etc. For example, what used to appear as "EmpNo" now displays as "Expr1:EmpNo". I have duplicated this problem myself by importing the objects into another database on my computer. We (the clients and I) have recently upgraded to Access 2003. Any ideas? Or should I call Ghostbusters again :-( Thanks, Barb Ryan From kp at sdsonline.net Thu Feb 8 18:24:03 2007 From: kp at sdsonline.net (Kath Pelletti) Date: Fri, 9 Feb 2007 11:24:03 +1100 Subject: [AccessD] Help with an ActiveX control References: <001e01c74bd1$96fc3e70$6401a8c0@office><001201c74bdc$49a3fa40$8d4beb44@50NM721><006401c74bdc$ff878bb0$6401a8c0@office> <001d01c74be0$10322df0$8d4beb44@50NM721> Message-ID: <007c01c74be0$9a570460$6401a8c0@office> I'll give it a shot. Kath ----- Original Message ----- From: William Hindman To: Access Developers discussion and problem solving Sent: Friday, February 09, 2007 11:20 AM Subject: Re: [AccessD] Help with an ActiveX control ...have you asked Lebans? ...he's always on the microsoft.public.access newsgroup and has offered solutions like that before. William Hindman ----- Original Message ----- From: "Kath Pelletti" To: "Access Developers discussion and problem solving" Sent: Thursday, February 08, 2007 6:58 PM Subject: Re: [AccessD] Help with an ActiveX control > Hi William - yeah, I worked with that ...but it seems a bit clumsy to be > going with rtf and then finding ways of converting to html (I did try a > few conversions). > > I think it should be simpler to find a control which has an html format > option.......... > > Kath > ----- Original Message ----- > From: William Hindman > To: Access Developers discussion and problem solving > Sent: Friday, February 09, 2007 10:53 AM > Subject: Re: [AccessD] Help with an ActiveX control > > > Kath > > ...have you looked at Lebans free RTF control www.lebans.com ? > > William Hindman > > ----- Original Message ----- > From: "Kath Pelletti" > To: "Access D Normal List" > Sent: Thursday, February 08, 2007 5:36 PM > Subject: [AccessD] Help with an ActiveX control > > > >I have downloaded a trial version of a rich text control from Chado > >(http://www.spelltext.com/aboutspe.htm ). > > > > I have added a reference to it, and placed the control on a form. > > > > I have opened the properties window and bound that control to my table > > field. > > > > All works OK except that I then need to export that field with all > > formatting as html. I have contacted Chado support and they tell me > "The > > default is TextRTF, since RTF is the native format for the SpellEditor > > control. You need to bind the TextHTML property instead, since this > will > > return the HTML equivalent of the RTF". > > > > OK - but I can't work out how to do that. > > > > If I open the object browser I can see the SpellEditor class and the > > Texthtml property but I can;t work out how to reference that from my > > form's vba window. > > > > Can someone tell me how to do that?? > > > > (NB: I have contacted Chado for further support but there's quite a > delay > > in response time....) > > > > ______________________________________ > > Kath Pelletti > > Software Design and Solutions Pty Ltd. > > Ph: 9505-6714 > > Fax: 9505-6430 > > Email: KP at SDSOnline.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 dw-murphy at cox.net Thu Feb 8 18:24:22 2007 From: dw-murphy at cox.net (Doug Murphy) Date: Thu, 8 Feb 2007 16:24:22 -0800 Subject: [AccessD] Help with an ActiveX control In-Reply-To: <006401c74bdc$ff878bb0$6401a8c0@office> Message-ID: <006101c74be0$a5c44790$0200a8c0@murphy3234aaf1> Kathy, Not sure what your original requirement was but Leban has another html editing control on his site. Look at http://www.lebans.com/htmleditor.htm. Don't know anything about this, have only seen it listed. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Thursday, February 08, 2007 3:58 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Help with an ActiveX control Hi William - yeah, I worked with that ...but it seems a bit clumsy to be going with rtf and then finding ways of converting to html (I did try a few conversions). I think it should be simpler to find a control which has an html format option.......... Kath ----- Original Message ----- From: William Hindman To: Access Developers discussion and problem solving Sent: Friday, February 09, 2007 10:53 AM Subject: Re: [AccessD] Help with an ActiveX control Kath ...have you looked at Lebans free RTF control www.lebans.com ? William Hindman ----- Original Message ----- From: "Kath Pelletti" To: "Access D Normal List" Sent: Thursday, February 08, 2007 5:36 PM Subject: [AccessD] Help with an ActiveX control >I have downloaded a trial version of a rich text control from Chado >(http://www.spelltext.com/aboutspe.htm ). > > I have added a reference to it, and placed the control on a form. > > I have opened the properties window and bound that control to my table > field. > > All works OK except that I then need to export that field with all > formatting as html. I have contacted Chado support and they tell me "The > default is TextRTF, since RTF is the native format for the SpellEditor > control. You need to bind the TextHTML property instead, since this will > return the HTML equivalent of the RTF". > > OK - but I can't work out how to do that. > > If I open the object browser I can see the SpellEditor class and the > Texthtml property but I can;t work out how to reference that from my > form's vba window. > > Can someone tell me how to do that?? > > (NB: I have contacted Chado for further support but there's quite a delay > in response time....) > > ______________________________________ > Kath Pelletti > Software Design and Solutions Pty Ltd. > Ph: 9505-6714 > Fax: 9505-6430 > Email: KP at SDSOnline.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 kp at sdsonline.net Thu Feb 8 18:53:30 2007 From: kp at sdsonline.net (Kath Pelletti) Date: Fri, 9 Feb 2007 11:53:30 +1100 Subject: [AccessD] Help with an ActiveX control References: <006101c74be0$a5c44790$0200a8c0@murphy3234aaf1> Message-ID: <00be01c74be4$b7bafc60$6401a8c0@office> Thanks Doug - that seems to be for a difft. purpose. What I am trying to achive is this: Allow users to use full rich text type formatting of a field using as Access form (eg. bold, red header, followed by smaller font next para etc.) Then I need to export that data to an external mdb file which is used for the website. The file needs to include the text with html formatting so that it can be displayed on the website using the same formats the user used in the Access form. Hope that makes sense. Kath ----- Original Message ----- From: Doug Murphy To: 'Access Developers discussion and problem solving' Sent: Friday, February 09, 2007 11:24 AM Subject: Re: [AccessD] Help with an ActiveX control Kathy, Not sure what your original requirement was but Leban has another html editing control on his site. Look at http://www.lebans.com/htmleditor.htm. Don't know anything about this, have only seen it listed. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Thursday, February 08, 2007 3:58 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Help with an ActiveX control Hi William - yeah, I worked with that ...but it seems a bit clumsy to be going with rtf and then finding ways of converting to html (I did try a few conversions). I think it should be simpler to find a control which has an html format option.......... Kath ----- Original Message ----- From: William Hindman To: Access Developers discussion and problem solving Sent: Friday, February 09, 2007 10:53 AM Subject: Re: [AccessD] Help with an ActiveX control Kath ...have you looked at Lebans free RTF control www.lebans.com ? William Hindman ----- Original Message ----- From: "Kath Pelletti" To: "Access D Normal List" Sent: Thursday, February 08, 2007 5:36 PM Subject: [AccessD] Help with an ActiveX control >I have downloaded a trial version of a rich text control from Chado >(http://www.spelltext.com/aboutspe.htm ). > > I have added a reference to it, and placed the control on a form. > > I have opened the properties window and bound that control to my table > field. > > All works OK except that I then need to export that field with all > formatting as html. I have contacted Chado support and they tell me "The > default is TextRTF, since RTF is the native format for the SpellEditor > control. You need to bind the TextHTML property instead, since this will > return the HTML equivalent of the RTF". > > OK - but I can't work out how to do that. > > If I open the object browser I can see the SpellEditor class and the > Texthtml property but I can;t work out how to reference that from my > form's vba window. > > Can someone tell me how to do that?? > > (NB: I have contacted Chado for further support but there's quite a delay > in response time....) > > ______________________________________ > Kath Pelletti > Software Design and Solutions Pty Ltd. > Ph: 9505-6714 > Fax: 9505-6430 > Email: KP at SDSOnline.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 accessd at shaw.ca Thu Feb 8 19:10:42 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 08 Feb 2007 17:10:42 -0800 Subject: [AccessD] Linked Table Limits? In-Reply-To: Message-ID: <0JD600H5X8I98Z70@l-daemon> Hi Keith: Unfortunately that situation limits your ability to resolves what sounds like internal system design limitations. This may be what is causing errors but of course you are limited in the ability to dig into some problems. One main problem may be the use of pass-through-queries. The use of these functions is probably the single greatest cause of slow data access and as well as adding another unstable layer to your application. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, February 08, 2007 11:37 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Linked Table Limits? No. I can't do anything with the base application. My job is to create processes to extract the data (either through the canned reports, or by creating Access queries/forms/reports). I am using Access (instead of just Enterprise Manager, for example) because I am also storing some data, to make my reporting processes better. Thus, I link to the backend tables in the application AND use my own tables in Access, to create meaningful financial reports. Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, February 08, 2007 1:40 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Linked Table Limits? Hi Keith: They do. All databases back before the 90's use to run with text based keys. Is it your job to just run the application or is it your job to run it and repair it? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, February 08, 2007 9:41 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Linked Table Limits? I thought that both Access and Sql do searches much faster on numbers, rather than text. ?? This application is pretty slow. I assumed it was from all the text keys. ?? Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Thursday, February 08, 2007 12:19 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Linked Table Limits? Well, I was taught that numbers that you don't expect to do mathematics on SHOULD be stored as text..... perhaps those guys went to my school? ;-) GK On 2/8/07, Keith Williamson wrote: > Sounds similar. This sql database is a major software > (Architectural/Service Industry....Labor-Based) called Vision. > Unfortunately, the designers didn't really seem to have a lot of > "vision" when designing it. All the Key fields seem to be text > fields......that's right...I said TEXT fields. Employee Number, Project > Number, etc. ......ALL TEXT. WHAT WERE THEY THINKING???? > > <:( > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > Sent: Thursday, February 08, 2007 11:18 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Linked Table Limits? > > We have an Oracle table in our data warehouse that if we just link to > and use the results of that link it works fine but if I put a criteria > on anything in that table it blows up and causes an Oracle Error > message. It's the Customer Location table and someone wanted all the > sales to California. I tried to select by the ship to state and it > blew up. I tried it again and it blew up again. And Again. I thought > it was something I was doing wrong. Then I did it pulling all records > into a temporary table including the state and then selecting only the > california sales from there and it worked fine. Go figure. > > GK > > On 2/8/07, Keith Williamson wrote: > > I suspect there must be a corrupted record in that particular table. > I > > know I have run queries before with just as many, if not more, joined > > tables (that are linked to sql database.) I was hoping someone had > some > > quick info about such a situation. But alas, I have to dump the issue > > on our MIS laps, to investigate the offending table. > > > > Thanks, > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > > 21231-3305 > > > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby > > Sent: Thursday, February 08, 2007 10:29 AM > > To: 'Access Developers discussion and problem solving' > > Subject: Re: [AccessD] Linked Table Limits? > > > > Hmmm... I think something else is going on. AFAIK you can have every > > table > > in your database be out in SQL Server and thus you could have dozens > of > > SQL > > Server tables in a query. I have to admit that I do not have many > > "mixed" > > databases, and the ones I do have tend to use just one or two views > from > > SQL > > Server. > > > > If you have OTHER SQL Server tables, I would try to build queries > using > > those tables to see how they function. > > > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith > > Williamson > > Sent: Thursday, February 08, 2007 10:16 AM > > To: Access Developers discussion and problem solving > > Subject: [AccessD] Linked Table Limits? > > > > Hi all, > > > > > > > > Does anyone know if there are limits to the number of linked tables > (to > > a > > SQL database) that can be included in an Access query? I have a query > > that > > joins (2) linked tables and (2) local Access tables. That runs very > > fast. > > However, if I try to add one more linked table to the query.....it > > simply > > crashes the database. I've even tried using a sql select statement in > > the > > query, to get the data from that last linked table......crashes the > > database. IF I copy the entire linked table to a local table, and > then > > select/join to that table......the query runs fast. When I try > > exporting > > the query, with the select statement to the linked table.....my > > resultant > > export (incomplete due to the crash) is corrupted. > > > > > > > > So, my question is....is there some sort of limit to the number of sql > > tables that I can join, in a query? There doesn't seem to be anything > > wrong > > with the sql table I am trying to join. Just very odd. > > > > > > > > Thanks, > > > > > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > > 21231-3305 > > > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > -- > Gary Kjos > garykjos at gmail.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Feb 8 19:12:26 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 08 Feb 2007 17:12:26 -0800 Subject: [AccessD] Access and home construction work In-Reply-To: Message-ID: <0JD600HRT8L58Y70@l-daemon> What is that saying that ends with '...you can have any 2'? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, February 08, 2007 12:04 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and home construction work I forgot to add that I want it all wireless, flexible, and cheap! ;) Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys Sent: Thursday, February 08, 2007 2:55 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and home construction work Nope. Bill Gates has had that feature for years, though. ON / OFF, power or no power - It can't be that difficult :) Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "Keith Williamson" To: "Access Developers discussion and problem solving" Sent: Thursday, February 08, 2007 2:45 PM Subject: Re: [AccessD] Access and home construction work >I don't know what he is doing....but I should would love to control all > the lights in my house, from my computer. :) so....do you have > experience with THAT? Lol > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R > Mattys > Sent: Thursday, February 08, 2007 2:30 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access and home construction work > > Steve, > > A little vague - are you building homes or > are you trying to control all the lights in > your house from a database? > > Michael R. Mattys > MapPoint & Access Dev > www.mattysconsulting.com > > ----- Original Message ----- > From: "steve saaf" > To: > Sent: Thursday, February 08, 2007 2:11 PM > Subject: [AccessD] Access and home construction work > > >> Hello- >> Anyone have experience with the above and could give any >> tips/experience/recommendations? >> Thanks, >> Steve >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Feb 8 19:13:25 2007 From: kp at sdsonline.net (Kath Pelletti) Date: Fri, 9 Feb 2007 12:13:25 +1100 Subject: [AccessD] Access and home construction work References: <0JD600HRT8L58Y70@l-daemon> Message-ID: <00d601c74be7$8097d070$6401a8c0@office> good, cheap, fast ?? ----- Original Message ----- From: Jim Lawrence To: 'Access Developers discussion and problem solving' Sent: Friday, February 09, 2007 12:12 PM Subject: Re: [AccessD] Access and home construction work What is that saying that ends with '...you can have any 2'? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, February 08, 2007 12:04 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and home construction work I forgot to add that I want it all wireless, flexible, and cheap! ;) Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys Sent: Thursday, February 08, 2007 2:55 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and home construction work Nope. Bill Gates has had that feature for years, though. ON / OFF, power or no power - It can't be that difficult :) Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "Keith Williamson" To: "Access Developers discussion and problem solving" Sent: Thursday, February 08, 2007 2:45 PM Subject: Re: [AccessD] Access and home construction work >I don't know what he is doing....but I should would love to control all > the lights in my house, from my computer. :) so....do you have > experience with THAT? Lol > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R > Mattys > Sent: Thursday, February 08, 2007 2:30 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access and home construction work > > Steve, > > A little vague - are you building homes or > are you trying to control all the lights in > your house from a database? > > Michael R. Mattys > MapPoint & Access Dev > www.mattysconsulting.com > > ----- Original Message ----- > From: "steve saaf" > To: > Sent: Thursday, February 08, 2007 2:11 PM > Subject: [AccessD] Access and home construction work > > >> Hello- >> Anyone have experience with the above and could give any >> tips/experience/recommendations? >> Thanks, >> Steve >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From saaf at sonic.net Thu Feb 8 19:20:47 2007 From: saaf at sonic.net (steve saaf) Date: Thu, 8 Feb 2007 17:20:47 -0800 Subject: [AccessD] in re to:Access and home construction work Message-ID: <001001c74be8$87f3dbb0$6c7294d1@loreleisxp> Yep, wouldn't ya know this newbie goofs on the first query. I want to design a database for a home construction business. I am looking for the gotcha's, as well as tips/hints based on experience. My apologies to those folks who got their hopes up about light's,etc. Thanks, Steve From jeff at boyes.net Thu Feb 8 19:32:25 2007 From: jeff at boyes.net (Jeff) Date: Thu, 8 Feb 2007 18:32:25 -0700 Subject: [AccessD] Access and home construction work Message-ID: <200702090132.l191WJO24142@databaseadvisors.com> Mine is good, and cheap. I have about $500 invested, and can control all the lights, heating/cooling, tv/tivo, garage doors, and hot tub...via any pc, or voice commands from any phone... Www.homeseer.com jeff -----Original Message----- From: "Kath Pelletti" To: "Access Developers discussion and problem solving" Sent: 2/8/07 6:13 PM Subject: Re: [AccessD] Access and home construction work good, cheap, fast ?? ----- Original Message ----- From: Jim Lawrence To: 'Access Developers discussion and problem solving' Sent: Friday, February 09, 2007 12:12 PM Subject: Re: [AccessD] Access and home construction work What is that saying that ends with '...you can have any 2'? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, February 08, 2007 12:04 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and home construction work I forgot to add that I want it all wireless, flexible, and cheap! ;) Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys Sent: Thursday, February 08, 2007 2:55 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and home construction work Nope. Bill Gates has had that feature for years, though. ON / OFF, power or no power - It can't be that difficult :) Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "Keith Williamson" To: "Access Developers discussion and problem solving" Sent: Thursday, February 08, 2007 2:45 PM Subject: Re: [AccessD] Access and home construction work >I don't know what he is doing....but I should would love to control all > the lights in my house, from my computer. :) so....do you have > experience with THAT? Lol > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R > Mattys > Sent: Thursday, February 08, 2007 2:30 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access and home construction work > > Steve, > > A little vague - are you building homes or > are you trying to control all the lights in > your house from a database? > > Michael R. Mattys > MapPoint & Access Dev > www.mattysconsulting.com > > ----- Original Message ----- > From: "steve saaf" > To: > Sent: Thursday, February 08, 2007 2:11 PM > Subject: [AccessD] Access and home construction work > > >> Hello- >> Anyone have experience with the above and could give any >> tips/experience/recommendations? >> Thanks, >> Steve >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jengross at gte.net Thu Feb 8 19:33:36 2007 From: jengross at gte.net (Jennifer Gross) Date: Thu, 08 Feb 2007 17:33:36 -0800 Subject: [AccessD] Access and home construction work In-Reply-To: Message-ID: <002801c74bea$54e6a2a0$6401a8c0@jefferson> My brother is currently building a house - so here a few other providers to throw into the mix. The two main manufacturers of lighting control for new construction are: http://www.vantagecontrols.com/ http://www.lutron.com/ Existing construction can use a variety of other options - a good source is: http://www.smarthome.com/ Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings Sent: Thursday, February 08, 2007 12:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and home construction work I would love something like this. Our church uses some crap software to control all the lights in the sanctuary. Every light is on a dimmer and it is all controlled via software. However, the interface cannot be changed at all which makes it difficult to setup for different services or weddings. All the titles for each "que button" are always the same. The user simply has to remember what button goes with what que depending on what service is going on. I would like to build a system that the interface (button titles) would change to match the service. Anyone familiar with something like that? I apologize for hijacking this thread. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Michael R > Mattys > Sent: Thursday, February 08, 2007 2:55 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access and home construction work > > > Nope. Bill Gates has had that feature for years, though. > ON / OFF, power or no power - It can't be that difficult :) > > Michael R. Mattys > MapPoint & Access Dev > www.mattysconsulting.com > > ----- Original Message ----- > From: "Keith Williamson" > To: "Access Developers discussion and problem solving" > > Sent: Thursday, February 08, 2007 2:45 PM > Subject: Re: [AccessD] Access and home construction work > > > >I don't know what he is doing....but I should would love to control all > > the lights in my house, from my computer. :) so....do you have > > experience with THAT? Lol > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > > 21231-3305 > > > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R > > Mattys > > Sent: Thursday, February 08, 2007 2:30 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Access and home construction work > > > > Steve, > > > > A little vague - are you building homes or > > are you trying to control all the lights in > > your house from a database? > > > > Michael R. Mattys > > MapPoint & Access Dev > > www.mattysconsulting.com > > > > ----- Original Message ----- > > From: "steve saaf" > > To: > > Sent: Thursday, February 08, 2007 2:11 PM > > Subject: [AccessD] Access and home construction work > > > > > >> Hello- > >> Anyone have experience with the above and could give any > >> tips/experience/recommendations? Thanks, > >> Steve > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jeff at boyes.net Thu Feb 8 19:36:51 2007 From: jeff at boyes.net (Jeff) Date: Thu, 8 Feb 2007 18:36:51 -0700 Subject: [AccessD] Access and home construction work Message-ID: <200702090136.l191adO25303@databaseadvisors.com> FWIW, Smarthome is a great resource, but a bit overpriced. Jeff -----Original Message----- From: "Jennifer Gross" To: "'Access Developers discussion and problem solving'" Sent: 2/8/07 6:33 PM Subject: Re: [AccessD] Access and home construction work My brother is currently building a house - so here a few other providers to throw into the mix. The two main manufacturers of lighting control for new construction are: http://www.vantagecontrols.com/ http://www.lutron.com/ Existing construction can use a variety of other options - a good source is: http://www.smarthome.com/ Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings Sent: Thursday, February 08, 2007 12:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and home construction work I would love something like this. Our church uses some crap software to control all the lights in the sanctuary. Every light is on a dimmer and it is all controlled via software. However, the interface cannot be changed at all which makes it difficult to setup for different services or weddings. All the titles for each "que button" are always the same. The user simply has to remember what button goes with what que depending on what service is going on. I would like to build a system that the interface (button titles) would change to match the service. Anyone familiar with something like that? I apologize for hijacking this thread. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Michael R > Mattys > Sent: Thursday, February 08, 2007 2:55 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access and home construction work > > > Nope. Bill Gates has had that feature for years, though. > ON / OFF, power or no power - It can't be that difficult :) > > Michael R. Mattys > MapPoint & Access Dev > www.mattysconsulting.com > > ----- Original Message ----- > From: "Keith Williamson" > To: "Access Developers discussion and problem solving" > > Sent: Thursday, February 08, 2007 2:45 PM > Subject: Re: [AccessD] Access and home construction work > > > >I don't know what he is doing....but I should would love to control all > > the lights in my house, from my computer. :) so....do you have > > experience with THAT? Lol > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > > 21231-3305 > > > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R > > Mattys > > Sent: Thursday, February 08, 2007 2:30 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Access and home construction work > > > > Steve, > > > > A little vague - are you building homes or > > are you trying to control all the lights in > > your house from a database? > > > > Michael R. Mattys > > MapPoint & Access Dev > > www.mattysconsulting.com > > > > ----- Original Message ----- > > From: "steve saaf" > > To: > > Sent: Thursday, February 08, 2007 2:11 PM > > Subject: [AccessD] Access and home construction work > > > > > >> Hello- > >> Anyone have experience with the above and could give any > >> tips/experience/recommendations? Thanks, > >> Steve > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at sc.rr.com Thu Feb 8 22:26:16 2007 From: bheid at sc.rr.com (Bobby Heid) Date: Thu, 8 Feb 2007 23:26:16 -0500 Subject: [AccessD] What type of query.... Message-ID: <004301c74c02$70fb2020$2d01a8c0@bhxp> Hey, I have this scenario Table 1: PID FName Lname Table2: ZID PID TypeID Zip Table3: TypeID Type Note that there are only 2 types, home and work. What I want is to have: Fname Lname HomeZip WorkZip Joe Schmoe 29977 78665 Suzy Chapstick 98847 To do this in one query, what kind of query would I use? Basically, I have a one-to-many relationship and I want to have both zips for each name record. Thanks, Bobby From Gustav at cactus.dk Fri Feb 9 02:36:57 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 09 Feb 2007 09:36:57 +0100 Subject: [AccessD] ADO code stopped working Message-ID: Hi Jennifer Please report your findings. I think Marty is on the right track. The Component Checker at my machine reports version 2.81.1117.0 for msado15.dll and - in general - MDAC 2.8 SP1 on WinXP SP2. I could update to MDAC 2.8 SP2 if I could find it. However, the test I carry out here is very consistent. How many parameters does your query have? /gustav >>> jengross at gte.net 08-02-2007 21:38 >>> I am still stumped. I am moving the code to DAO, since it works fine, even with the Eval statement and no change to the way the parameters are set up. It has to be something outside the code, in network or security, because the ADO works fine on my system, and worked fine on theirs until last week. Something changed in their setup, but we can't identify it. Thanks for everyone's help and the wonderful tangential insights. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, February 07, 2007 6:58 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] ADO code stopped working Hi Marty That is interesting! It appears that - if you specify a parameter by its name - for an explicit parameter the brackets must _not_ be specified, while for an implicit parameter the brackets _must_ be specified. If you don't, an 3265 error will be raised but not before you reach the code line where you pass the parameter value. So this is not the scenario Jennifer sees, as - for her case - the error is raised earlier when you address the Procedures' collection. /gustav >>> martyconnelly at shaw.ca 05-02-2007 21:46:05 >>> I am just wondering if TheQuery has to be run once to compile it? or this ACC2000: How to Use Parameters with ActiveX Data Objects (ADO) and Jet http://support.microsoft.com/kb/225897/en-us Method 3: Using an Implicit Parameter NOTE: Implicit parameter names have brackets ([ ]) around them, and you must use the brackets (or the parameter's ordinal position) when referring to implicit parameters in the Parameters collection. If you do not use the brackets, you receive the following error message: Run-time error '3265': ADO could not find the object in the collection corresponding to the name or ordinal reference requested by the application. PRB: Error 3265 When You Access Properties Collection http://support.microsoft.com/?kbid=201826 http://support.microsoft.com/default.aspx?scid=kb;en-us;223212 Jennifer Gross wrote: >Hi Gustav, > >I have checked all references. The code is compiling. I have created >a test database with one table and one query. It is failing in the >same spot my original database is failing - Set prc = >cat.Procedures("TheQuery") - In the test database I am getting the >error 3265 - Item cannot be found in the collection corresponding to >the requested name or ordinal. The query does exist - no spelling >errors. The same ADO code is working fine on my home office system. It >worked fine at the client's site in January. Any thoughts? > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >Sent: Monday, February 05, 2007 1:47 AM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] ADO code stopped working > > >Hi Jennifer > >You could - for and while debugging - try to separate the connection >object: > > Dim cnn As ADODB.Connection > Dim cmd As ADODB.Command > Dim rst As ADODB.Recordset > Dim prm As ADODB.Parameter > Dim cat As ADOX.Catalog > Dim prc As ADOX.Procedure > > Set cat = New ADOX.Catalog > Set cnn = CurrentProject.Connection > cat.ActiveConnection = cnn > >I guess you have double-checked the reference: > Microsoft ADO Ext. 2.8 for DDL and Security >points to > ..system32\MSADOX.DLL > >/gustav > > > >>>>jengross at gte.net 05-02-2007 05:00 >>> >>>> >>>> >Thanks for the suggestions. I set the references like Marty suggested >and am still getting the problem. I am using the Getz Developers >Handbook code for looping through parameters in a select query: > > Dim cmd As ADODB.Command > Dim rst As ADODB.Recordset > Dim prm As ADODB.Parameter > Dim cat As ADOX.Catalog > Dim prc As ADOX.Procedure > > Set cat = New ADOX.Catalog >* cat.ActiveConnection = CurrentProject.Connection >* Set prc = cat.Procedures("TheQuery") > Set cmd = prc.Command > For Each prm In cmd.Parameters > prm.Value = Eval(prm.Name) > Next prm > Set rst = cmd.Execute > >If I don't use the query with parameters, but instead base the >recordset on the table, then it works fine: > > Set rst = New ADODB.Recordset > Set rst.ActiveConnection = CurrentProject.Connection > rst.CursorType = adOpenForwardOnly > rst.LockType = adLockReadOnly > rst.Open "TheTable" > >I am getting the same results whether the code is in the existing FE or >if I create a new db with the ADO code as Rocky suggested. > >Any thoughts? > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin >at Beach Access Software >Sent: Sunday, February 04, 2007 4:55 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] ADO code stopped working > > >I would whip up a small app with some ado code to see if the problem is >inside your app or outside of it. Does your app compile? > >Rocky > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer >Gross >Sent: Sunday, February 04, 2007 2:05 PM >To: AccessD List >Subject: [AccessD] ADO code stopped working > >Hi Everyone, > >W2K SP4 / A2K SP3 / terminal server > >I have a database that has some DAO and some ADO code. Recently all >ADO stopped working. DAO is still working fine. Anytime code >utilizing ADO runs it shuts down the database abruptly, leaving the LDB >file. We were also having problems with the Windows Management >databases locking up and a reinstall of the latest MDAC took care of >that problem, but did not solve the ADO problem. ADO was working fine >for end of year reporting. There are no missing references. After the >MDAC reinstall I unchecked references, closed down, opened up and >rechecked references. > >Any help would be greatly appreciated. > >Thank you, > >Jennifer Gross >databasics >2839 Shirley Drive >Newbury Park, CA 91320-3068 >office: (805) 480-1921 >fax: (805) 499-0467 From accessd666 at yahoo.com Fri Feb 9 02:40:23 2007 From: accessd666 at yahoo.com (Sad Der) Date: Fri, 9 Feb 2007 00:40:23 -0800 (PST) Subject: [AccessD] Access ADP - Setting connection Message-ID: <721673.48392.qm@web31603.mail.mud.yahoo.com> Hi group, I've got an ADP. In File Connection I've set a connection to a SQL Server 2000 database. I want (Read: DBA wants...) to create an ini file which is in a secure location where the connection info resides. Is this possible? I've created an AutoExec macro that executes a function Main. This function reads an ini file and creates a new connection: Dim cnn As ADODB.Connection Set cnn = New ADODB.Connection With cnn .Provider = "SQLOLEDB" .Properties("Data Source") = "xxxx\yyy01" .Properties("Initial Catalog") = "APP" .Properties("User Id") = "xxxx" .Properties("Password") = "yyyyy" .Properties("Persist Security Info") = False .Open End With After this I excpect a list of tables that reside in this database...however I do not see them. I'm doing something wrong? Did I miss something? TIA Sander ____________________________________________________________________________________ Expecting? Get great news right away with email Auto-Check. Try the Yahoo! Mail Beta. http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html From Gustav at cactus.dk Fri Feb 9 03:49:40 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 09 Feb 2007 10:49:40 +0100 Subject: [AccessD] Access ADP - Setting connection Message-ID: Hi Sander That sounds like a request for a DSN file. Here: http://blogs.ittoolbox.com/visualbasic/munk/archives/database-access-made-simple-9149 you can study this example by Skip Munk: Private Sub cmdADO_Click() 'ADO objects Dim adoConn As ADODB.Connection Dim adoRset As ADODB.Recordset Dim adoField As ADODB.Field 'Other variables Dim intFile As Integer Dim intCol As Integer Dim intRow As Integer Dim strInput As String Dim strConn As String Dim strData As String 'Get a file number. intFile = FreeFile() 'Open the file DSN for input\reading. Open App.Path & "\MS-SQL_Example.dsn" For Input As intFile 'Loop through and read the file one line at a time. Do While Not EOF(intFile) 'Read a single line of the file. Line Input #intFile, strInput 'Ignore the first line of the File DSN. 'Your connection string will through an error 'if you do not eliminate that line. If (InStr(1, strInput, "[ODBC]") = 0) Then 'Append the read line to the connection string. strConn = strConn & IIf((strConn = ""), _ strInput, ";" & strInput) End If '(InStr(1, strInput, "[ODBC]") = 0) Loop 'While Not EOF(intFile) Close #inFile 'Initialized the ADO Connection Object. Set adoConn = New ADODB.Connection 'Set the Connection String. adoConn.ConnectionString = strConn 'Open the connection. adoConn.Open 'Initialize the ADO Recordset with a query 'executed via the Connection Object's Execute method. Set adoRset = adoConn.Execute("select * from authors") 'Print the value of each field for each row in the recordset. Do While (Not adoRset.EOF) 'Scan fields and display contents. For Each adoField In adoRset.Fields Debug.Print adoField.Name & " = " & adoField.Value Next 'Move to the next record in the ADO Recordset. adoRset.MoveNext Loop 'While (Not adoRset.EOF) 'Close the recordset and connection. adoRset.Close adoConn.Close 'Deallocate all objects. Set adoRset = Nothing Set adoConn = Nothing End Sub /gustav >>> accessd666 at yahoo.com 09-02-2007 09:40 >>> Hi group, I've got an ADP. In File Connection I've set a connection to a SQL Server 2000 database. I want (Read: DBA wants...) to create an ini file which is in a secure location where the connection info resides. Is this possible? I've created an AutoExec macro that executes a function Main. This function reads an ini file and creates a new connection: Dim cnn As ADODB.Connection Set cnn = New ADODB.Connection With cnn .Provider = "SQLOLEDB" .Properties("Data Source") = "xxxx\yyy01" .Properties("Initial Catalog") = "APP" .Properties("User Id") = "xxxx" .Properties("Password") = "yyyyy" .Properties("Persist Security Info") = False .Open End With After this I excpect a list of tables that reside in this database...however I do not see them. I'm doing something wrong? Did I miss something? TIA Sander From Gustav at cactus.dk Fri Feb 9 03:51:39 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 09 Feb 2007 10:51:39 +0100 Subject: [AccessD] Help with an ActiveX control Message-ID: Kath You could - gosh - update to Access 2007 and use the free built-in HTML rich text control ... /gustav >>> kp at sdsonline.net 09-02-2007 00:58 >>> I think it should be simpler to find a control which has an html format option.......... From jimdettman at verizon.net Fri Feb 9 06:04:04 2007 From: jimdettman at verizon.net (Jim Dettman) Date: Fri, 09 Feb 2007 07:04:04 -0500 Subject: [AccessD] Linked Table Limits? In-Reply-To: Message-ID: <00bc01c74c42$65805450$8abea8c0@XPS> <> There are optimizations that can be carried out on a text field which cannot be done with a number. It would also allow for fewer indexes (I don't have to index the PK and another field to search). Of course, there is always the flip side; it depends on how big the string fields are. Then of course they were stupid if they are all defined as variable. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, February 08, 2007 11:47 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Linked Table Limits? Sounds similar. This sql database is a major software (Architectural/Service Industry....Labor-Based) called Vision. Unfortunately, the designers didn't really seem to have a lot of "vision" when designing it. All the Key fields seem to be text fields......that's right...I said TEXT fields. Employee Number, Project Number, etc. ......ALL TEXT. WHAT WERE THEY THINKING???? <:( Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Thursday, February 08, 2007 11:18 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Linked Table Limits? We have an Oracle table in our data warehouse that if we just link to and use the results of that link it works fine but if I put a criteria on anything in that table it blows up and causes an Oracle Error message. It's the Customer Location table and someone wanted all the sales to California. I tried to select by the ship to state and it blew up. I tried it again and it blew up again. And Again. I thought it was something I was doing wrong. Then I did it pulling all records into a temporary table including the state and then selecting only the california sales from there and it worked fine. Go figure. GK On 2/8/07, Keith Williamson wrote: > I suspect there must be a corrupted record in that particular table. I > know I have run queries before with just as many, if not more, joined > tables (that are linked to sql database.) I was hoping someone had some > quick info about such a situation. But alas, I have to dump the issue > on our MIS laps, to investigate the offending table. > > Thanks, > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby > Sent: Thursday, February 08, 2007 10:29 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Linked Table Limits? > > Hmmm... I think something else is going on. AFAIK you can have every > table > in your database be out in SQL Server and thus you could have dozens of > SQL > Server tables in a query. I have to admit that I do not have many > "mixed" > databases, and the ones I do have tend to use just one or two views from > SQL > Server. > > If you have OTHER SQL Server tables, I would try to build queries using > those tables to see how they function. > > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith > Williamson > Sent: Thursday, February 08, 2007 10:16 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Linked Table Limits? > > Hi all, > > > > Does anyone know if there are limits to the number of linked tables (to > a > SQL database) that can be included in an Access query? I have a query > that > joins (2) linked tables and (2) local Access tables. That runs very > fast. > However, if I try to add one more linked table to the query.....it > simply > crashes the database. I've even tried using a sql select statement in > the > query, to get the data from that last linked table......crashes the > database. IF I copy the entire linked table to a local table, and then > select/join to that table......the query runs fast. When I try > exporting > the query, with the select statement to the linked table.....my > resultant > export (incomplete due to the crash) is corrupted. > > > > So, my question is....is there some sort of limit to the number of sql > tables that I can join, in a query? There doesn't seem to be anything > wrong > with the sql table I am trying to join. Just very odd. > > > > Thanks, > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Fri Feb 9 06:33:38 2007 From: kp at sdsonline.net (Kath Pelletti) Date: Fri, 9 Feb 2007 23:33:38 +1100 Subject: [AccessD] Help with an ActiveX control References: Message-ID: <000f01c74c46$86d4e770$6401a8c0@office> But - gosh - then I'd have to charge the client to re-test the entire application. Kath ----- Original Message ----- From: Gustav Brock To: accessd at databaseadvisors.com Sent: Friday, February 09, 2007 8:51 PM Subject: Re: [AccessD] Help with an ActiveX control Kath You could - gosh - update to Access 2007 and use the free built-in HTML rich text control ... /gustav >>> kp at sdsonline.net 09-02-2007 00:58 >>> I think it should be simpler to find a control which has an html format option.......... -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Fri Feb 9 07:08:04 2007 From: artful at rogers.com (artful at rogers.com) Date: Fri, 9 Feb 2007 05:08:04 -0800 (PST) Subject: [AccessD] What type of query.... Message-ID: <532935.37475.qm@web88202.mail.re2.yahoo.com> This query works (note: this is SQL 2005 syntax; to make it work in Access, lose the schema-part of the name, i.e. "ZIps."). SELECT HomeType.TypeID, HomeType.TYPE, Zips.People.FName, Zips.People.LName, HomeZips.Zip AS Home, WorkZips.Zip AS [Work] FROM Zips.People INNER JOIN Zips.Zips AS HomeZips ON Zips.People.PID = HomeZips.PID INNER JOIN Zips.Types AS HomeType ON HomeZips.TypeID = HomeType.TypeID INNER JOIN Zips.Zips AS WorkZips ON Zips.People.PID = WorkZips.PID INNER JOIN Zips.Types AS WorkType ON WorkZips.TypeID = WorkType.TypeID WHERE (HomeType.TYPE = 'Home') AND (WorkType.TYPE = 'Work') The trick is to open the Zips table twice qualifying each instance with a criterion that points to 'Home' or 'Work'. hth, Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Bobby Heid To: Access Developers discussion and problem solving Sent: Thursday, February 8, 2007 11:26:16 PM Subject: [AccessD] What type of query.... Hey, I have this scenario Table 1: PID FName Lname Table2: ZID PID TypeID Zip Table3: TypeID Type Note that there are only 2 types, home and work. What I want is to have: Fname Lname HomeZip WorkZip Joe Schmoe 29977 78665 Suzy Chapstick 98847 To do this in one query, what kind of query would I use? Basically, I have a one-to-many relationship and I want to have both zips for each name record. Thanks, Bobby -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Fri Feb 9 08:05:28 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 09 Feb 2007 06:05:28 -0800 Subject: [AccessD] Queries are messed up! In-Reply-To: <00a701c74be0$30cfc9f0$0a00a8c0@PCRURI35> Message-ID: <0JD70060G8DM4K90@l-daemon> Hi Barb: This only happen in a query is when some of the fields or tables requested are not available in the current DB, in this case the clients site. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Barbara Ryan Sent: Thursday, February 08, 2007 4:21 PM To: Access List Subject: [AccessD] Queries are messed up! In an Access 2002 application, when I need to distribute database object changes, I copy all of the modified objects into a blank database and email it to client sites. They then click a push button in their application which imports all of the objects. Everything has worked great (for years) until now ---- if a query is included in the update, it will import into their application without any relationships (i.e., there are no "lines" between tables) when the query is viewed in design mode on their computer. Also, even if the query only contains one table, all of the selected fields are listed as "Exp1", etc. For example, what used to appear as "EmpNo" now displays as "Expr1:EmpNo". I have duplicated this problem myself by importing the objects into another database on my computer. We (the clients and I) have recently upgraded to Access 2003. Any ideas? Or should I call Ghostbusters again :-( Thanks, Barb Ryan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From hollisvj at pgdp.usec.com Fri Feb 9 08:04:00 2007 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Fri, 09 Feb 2007 08:04:00 -0600 Subject: [AccessD] User Form Snapshot Message-ID: <703BDA18A87DFA4CB265A86F42E4178D01E76222@c2k3exchange.pgdp.corp.usec.com> I am trying to create a function that will open the form for users only. I thought I would use the same form as the Data Entry users instead of creating a separate form. They can't update or edit the record, just view. How do you set the controls on the form to locked? Or set it to snapshot? The below function does not work, it does not open it ReadOnly, they can still change the data. Function OpenUserForm() DoCmd.OpenForm "frm_InventoryMain", acNormal, , , acFormReadOnly, acWindowNormal Forms!frm_InventoryMain.cmdAddNew.Visible = False End Function Virginia From jwelz at hotmail.com Fri Feb 9 08:06:19 2007 From: jwelz at hotmail.com (Jurgen Welz) Date: Fri, 09 Feb 2007 07:06:19 -0700 Subject: [AccessD] What type of query.... In-Reply-To: <004301c74c02$70fb2020$2d01a8c0@bhxp> Message-ID: Defining 2 addresses is somewhat limiting. For example, some of the Canadian snowbirds have addresses in Arizona, Mexico or Florida that are active at different times of year. Others have weekend cabins. Some people have a physical address for deliveries and a post office box for mail, or may recieve deliveries at the address of an acquaintance. I have on several occasions had multiple concurrent work addresses. Keeping track of former addresses and time the address was active is often necessary for historical purposes. One example I've run into is where a person is building or buying a home with a fixed possession date and correspondence needs to be sent during the process. Often I've run into cases where a landlord owns many different properties or a person may own a few businesses, each of which maintains a distinct address. Joining aliased tables for an indeterminate number of potential joins is messy. I use a parent Entity form with an addresses subform as a flexible and expandable solution. Generally, in this kind of relationship, I do the reverse as well. An Address parent form with and Entity subform. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: "Bobby Heid" > >Hey, > >I have this scenario > >Table 1: >PID >FName >Lname > >Table2: >ZID >PID >TypeID >Zip > >Table3: >TypeID >Type > >Note that there are only 2 types, home and work. > >What I want is to have: >Fname Lname HomeZip WorkZip >Joe Schmoe 29977 78665 >Suzy Chapstick 98847 > >To do this in one query, what kind of query would I use? Basically, I have >a one-to-many relationship and I want to have both zips for each name >record. > >Thanks, >Bobby _________________________________________________________________ http://local.live.com/default.aspx?v=2&cp=43.658648~-79.383962&style=r&lvl=15&tilt=-90&dir=0&alt=-1000&scene=3702663&cid=7ABE80D1746919B4!1329 >From January 26 to February 8, 2007 From accessd at shaw.ca Fri Feb 9 08:08:45 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 09 Feb 2007 06:08:45 -0800 Subject: [AccessD] Access and home construction work In-Reply-To: <200702090132.l191WJO24142@databaseadvisors.com> Message-ID: <0JD7001O38J3J652@l-daemon> Well, two out of three ain't bad... Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeff Sent: Thursday, February 08, 2007 5:32 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and home construction work Mine is good, and cheap. I have about $500 invested, and can control all the lights, heating/cooling, tv/tivo, garage doors, and hot tub...via any pc, or voice commands from any phone... Www.homeseer.com jeff -----Original Message----- From: "Kath Pelletti" To: "Access Developers discussion and problem solving" Sent: 2/8/07 6:13 PM Subject: Re: [AccessD] Access and home construction work good, cheap, fast ?? ----- Original Message ----- From: Jim Lawrence To: 'Access Developers discussion and problem solving' Sent: Friday, February 09, 2007 12:12 PM Subject: Re: [AccessD] Access and home construction work What is that saying that ends with '...you can have any 2'? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, February 08, 2007 12:04 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and home construction work I forgot to add that I want it all wireless, flexible, and cheap! ;) Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys Sent: Thursday, February 08, 2007 2:55 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and home construction work Nope. Bill Gates has had that feature for years, though. ON / OFF, power or no power - It can't be that difficult :) Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "Keith Williamson" To: "Access Developers discussion and problem solving" Sent: Thursday, February 08, 2007 2:45 PM Subject: Re: [AccessD] Access and home construction work >I don't know what he is doing....but I should would love to control all > the lights in my house, from my computer. :) so....do you have > experience with THAT? Lol > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R > Mattys > Sent: Thursday, February 08, 2007 2:30 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access and home construction work > > Steve, > > A little vague - are you building homes or > are you trying to control all the lights in > your house from a database? > > Michael R. Mattys > MapPoint & Access Dev > www.mattysconsulting.com > > ----- Original Message ----- > From: "steve saaf" > To: > Sent: Thursday, February 08, 2007 2:11 PM > Subject: [AccessD] Access and home construction work > > >> Hello- >> Anyone have experience with the above and could give any >> tips/experience/recommendations? >> Thanks, >> Steve >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Kwilliamson at RTKL.com Fri Feb 9 08:16:24 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Fri, 9 Feb 2007 09:16:24 -0500 Subject: [AccessD] Linked Table Limits? In-Reply-To: <0JD600H5X8I98Z70@l-daemon> References: <0JD600H5X8I98Z70@l-daemon> Message-ID: Hmmm. Well...I have used a couple pass-through-queries. But not within this particular problem. I'll have to look at that. Thanks for the input. Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, February 08, 2007 8:11 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Linked Table Limits? Hi Keith: Unfortunately that situation limits your ability to resolves what sounds like internal system design limitations. This may be what is causing errors but of course you are limited in the ability to dig into some problems. One main problem may be the use of pass-through-queries. The use of these functions is probably the single greatest cause of slow data access and as well as adding another unstable layer to your application. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, February 08, 2007 11:37 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Linked Table Limits? No. I can't do anything with the base application. My job is to create processes to extract the data (either through the canned reports, or by creating Access queries/forms/reports). I am using Access (instead of just Enterprise Manager, for example) because I am also storing some data, to make my reporting processes better. Thus, I link to the backend tables in the application AND use my own tables in Access, to create meaningful financial reports. Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, February 08, 2007 1:40 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Linked Table Limits? Hi Keith: They do. All databases back before the 90's use to run with text based keys. Is it your job to just run the application or is it your job to run it and repair it? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, February 08, 2007 9:41 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Linked Table Limits? I thought that both Access and Sql do searches much faster on numbers, rather than text. ?? This application is pretty slow. I assumed it was from all the text keys. ?? Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Thursday, February 08, 2007 12:19 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Linked Table Limits? Well, I was taught that numbers that you don't expect to do mathematics on SHOULD be stored as text..... perhaps those guys went to my school? ;-) GK On 2/8/07, Keith Williamson wrote: > Sounds similar. This sql database is a major software > (Architectural/Service Industry....Labor-Based) called Vision. > Unfortunately, the designers didn't really seem to have a lot of > "vision" when designing it. All the Key fields seem to be text > fields......that's right...I said TEXT fields. Employee Number, Project > Number, etc. ......ALL TEXT. WHAT WERE THEY THINKING???? > > <:( > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > Sent: Thursday, February 08, 2007 11:18 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Linked Table Limits? > > We have an Oracle table in our data warehouse that if we just link to > and use the results of that link it works fine but if I put a criteria > on anything in that table it blows up and causes an Oracle Error > message. It's the Customer Location table and someone wanted all the > sales to California. I tried to select by the ship to state and it > blew up. I tried it again and it blew up again. And Again. I thought > it was something I was doing wrong. Then I did it pulling all records > into a temporary table including the state and then selecting only the > california sales from there and it worked fine. Go figure. > > GK > > On 2/8/07, Keith Williamson wrote: > > I suspect there must be a corrupted record in that particular table. > I > > know I have run queries before with just as many, if not more, joined > > tables (that are linked to sql database.) I was hoping someone had > some > > quick info about such a situation. But alas, I have to dump the issue > > on our MIS laps, to investigate the offending table. > > > > Thanks, > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > > 21231-3305 > > > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby > > Sent: Thursday, February 08, 2007 10:29 AM > > To: 'Access Developers discussion and problem solving' > > Subject: Re: [AccessD] Linked Table Limits? > > > > Hmmm... I think something else is going on. AFAIK you can have every > > table > > in your database be out in SQL Server and thus you could have dozens > of > > SQL > > Server tables in a query. I have to admit that I do not have many > > "mixed" > > databases, and the ones I do have tend to use just one or two views > from > > SQL > > Server. > > > > If you have OTHER SQL Server tables, I would try to build queries > using > > those tables to see how they function. > > > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith > > Williamson > > Sent: Thursday, February 08, 2007 10:16 AM > > To: Access Developers discussion and problem solving > > Subject: [AccessD] Linked Table Limits? > > > > Hi all, > > > > > > > > Does anyone know if there are limits to the number of linked tables > (to > > a > > SQL database) that can be included in an Access query? I have a query > > that > > joins (2) linked tables and (2) local Access tables. That runs very > > fast. > > However, if I try to add one more linked table to the query.....it > > simply > > crashes the database. I've even tried using a sql select statement in > > the > > query, to get the data from that last linked table......crashes the > > database. IF I copy the entire linked table to a local table, and > then > > select/join to that table......the query runs fast. When I try > > exporting > > the query, with the select statement to the linked table.....my > > resultant > > export (incomplete due to the crash) is corrupted. > > > > > > > > So, my question is....is there some sort of limit to the number of sql > > tables that I can join, in a query? There doesn't seem to be anything > > wrong > > with the sql table I am trying to join. Just very odd. > > > > > > > > Thanks, > > > > > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > > 21231-3305 > > > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > -- > Gary Kjos > garykjos at gmail.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Kwilliamson at RTKL.com Fri Feb 9 08:21:38 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Fri, 9 Feb 2007 09:21:38 -0500 Subject: [AccessD] Access and home construction work In-Reply-To: <200702090132.l191WJO24142@databaseadvisors.com> References: <200702090132.l191WJO24142@databaseadvisors.com> Message-ID: Cool. Thanks!! Now....if only it could change a diaper.....I'd be in HEAVEN!! :) Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeff Sent: Thursday, February 08, 2007 8:32 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and home construction work Mine is good, and cheap. I have about $500 invested, and can control all the lights, heating/cooling, tv/tivo, garage doors, and hot tub...via any pc, or voice commands from any phone... Www.homeseer.com jeff -----Original Message----- From: "Kath Pelletti" To: "Access Developers discussion and problem solving" Sent: 2/8/07 6:13 PM Subject: Re: [AccessD] Access and home construction work good, cheap, fast ?? ----- Original Message ----- From: Jim Lawrence To: 'Access Developers discussion and problem solving' Sent: Friday, February 09, 2007 12:12 PM Subject: Re: [AccessD] Access and home construction work What is that saying that ends with '...you can have any 2'? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, February 08, 2007 12:04 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and home construction work I forgot to add that I want it all wireless, flexible, and cheap! ;) Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys Sent: Thursday, February 08, 2007 2:55 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and home construction work Nope. Bill Gates has had that feature for years, though. ON / OFF, power or no power - It can't be that difficult :) Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "Keith Williamson" To: "Access Developers discussion and problem solving" Sent: Thursday, February 08, 2007 2:45 PM Subject: Re: [AccessD] Access and home construction work >I don't know what he is doing....but I should would love to control all > the lights in my house, from my computer. :) so....do you have > experience with THAT? Lol > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R > Mattys > Sent: Thursday, February 08, 2007 2:30 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access and home construction work > > Steve, > > A little vague - are you building homes or > are you trying to control all the lights in > your house from a database? > > Michael R. Mattys > MapPoint & Access Dev > www.mattysconsulting.com > > ----- Original Message ----- > From: "steve saaf" > To: > Sent: Thursday, February 08, 2007 2:11 PM > Subject: [AccessD] Access and home construction work > > >> Hello- >> Anyone have experience with the above and could give any >> tips/experience/recommendations? >> Thanks, >> Steve >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From hollisvj at pgdp.usec.com Fri Feb 9 08:23:39 2007 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Fri, 09 Feb 2007 08:23:39 -0600 Subject: [AccessD] Refer Report Sub Message-ID: <703BDA18A87DFA4CB265A86F42E4178D01E76226@c2k3exchange.pgdp.corp.usec.com> How do you refer to a sub report? I do not want the subreport to show records that do not have data. Right now, it still shows the headings for the subreport, but there isn't any data, so I don't want it to show the headings or the report if they are null. Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer) If IsNull(Reports!rpt_FilterSpecial.Report.rpt_FilterSpecialSub.InventoryID ) Then Me.Report.rpt_FilterSpecialSub.Visible = False Else Me.Report.rpt_FilterSpecialSub.Visible = True End If End Sub Virginia From dwaters at usinternet.com Fri Feb 9 08:25:19 2007 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 9 Feb 2007 08:25:19 -0600 Subject: [AccessD] User Form Snapshot In-Reply-To: <10783702.1171030219230.JavaMail.root@sniper54> References: <10783702.1171030219230.JavaMail.root@sniper54> Message-ID: <00f701c74c56$2092d2a0$0200a8c0@danwaters> Hi Virgina, In the Properties list for the form, go to the Data page. Near the bottom you'll find a property called Recordset Type. If you set that to Snapshot, your form will always be read-only. This is set to Dynaset by default. This property could be changed in code during the form's Open event. Dan Waters -----Original Message----- Subject: [AccessD] User Form Snapshot I am trying to create a function that will open the form for users only. I thought I would use the same form as the Data Entry users instead of creating a separate form. They can't update or edit the record, just view. How do you set the controls on the form to locked? Or set it to snapshot? The below function does not work, it does not open it ReadOnly, they can still change the data. Function OpenUserForm() DoCmd.OpenForm "frm_InventoryMain", acNormal, , , acFormReadOnly, acWindowNormal Forms!frm_InventoryMain.cmdAddNew.Visible = False End Function Virginia -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BarbaraRyan at cox.net Fri Feb 9 08:39:00 2007 From: BarbaraRyan at cox.net (Barbara Ryan) Date: Fri, 9 Feb 2007 09:39:00 -0500 Subject: [AccessD] Queries are messed up! References: <0JD70060G8DM4K90@l-daemon> Message-ID: <007601c74c58$09ccacb0$0a00a8c0@PCRURI35> That's what I thought.....however, the client has all the tables referenced in the queries. I even ran on test on my computer with the same weird results. Barb ----- Original Message ----- From: "Jim Lawrence" To: "'Access Developers discussion and problem solving'" Sent: Friday, February 09, 2007 9:05 AM Subject: Re: [AccessD] Queries are messed up! > Hi Barb: > > This only happen in a query is when some of the fields or tables requested > are not available in the current DB, in this case the clients site. > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Barbara Ryan > Sent: Thursday, February 08, 2007 4:21 PM > To: Access List > Subject: [AccessD] Queries are messed up! > > In an Access 2002 application, when I need to distribute database object > changes, I copy all of the modified objects into a blank database and > email > it to client sites. They then click a push button in their application > which imports all of the objects. > > Everything has worked great (for years) until now ---- if a query is > included in the update, it will import into their application without any > relationships (i.e., there are no "lines" between tables) when the query > is > viewed in design mode on their computer. Also, even if the query only > contains one table, all of the selected fields are listed as "Exp1", etc. > For example, what used to appear as "EmpNo" now displays as "Expr1:EmpNo". > > I have duplicated this problem myself by importing the objects into > another > database on my computer. > > We (the clients and I) have recently upgraded to Access 2003. > > Any ideas? Or should I call Ghostbusters again :-( > > Thanks, > Barb Ryan > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From bheid at sc.rr.com Fri Feb 9 09:03:31 2007 From: bheid at sc.rr.com (Bobby Heid) Date: Fri, 9 Feb 2007 10:03:31 -0500 Subject: [AccessD] What type of query.... In-Reply-To: <532935.37475.qm@web88202.mail.re2.yahoo.com> References: <532935.37475.qm@web88202.mail.re2.yahoo.com> Message-ID: <005f01c74c5b$76fe4a20$2d01a8c0@bhxp> Hi Arthur, Thanks for that. One other issue. There may not be a given type of zip (or I guess even no zip in the Zip (table 2) table. This query returns those records that have both. Any ideas? Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Friday, February 09, 2007 8:08 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] What type of query.... This query works (note: this is SQL 2005 syntax; to make it work in Access, lose the schema-part of the name, i.e. "ZIps."). SELECT HomeType.TypeID, HomeType.TYPE, Zips.People.FName, Zips.People.LName, HomeZips.Zip AS Home, WorkZips.Zip AS [Work] FROM Zips.People INNER JOIN Zips.Zips AS HomeZips ON Zips.People.PID = HomeZips.PID INNER JOIN Zips.Types AS HomeType ON HomeZips.TypeID = HomeType.TypeID INNER JOIN Zips.Zips AS WorkZips ON Zips.People.PID = WorkZips.PID INNER JOIN Zips.Types AS WorkType ON WorkZips.TypeID = WorkType.TypeID WHERE (HomeType.TYPE = 'Home') AND (WorkType.TYPE = 'Work') The trick is to open the Zips table twice qualifying each instance with a criterion that points to 'Home' or 'Work'. hth, Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Bobby Heid To: Access Developers discussion and problem solving Sent: Thursday, February 8, 2007 11:26:16 PM Subject: [AccessD] What type of query.... Hey, I have this scenario Table 1: PID FName Lname Table2: ZID PID TypeID Zip Table3: TypeID Type Note that there are only 2 types, home and work. What I want is to have: Fname Lname HomeZip WorkZip Joe Schmoe 29977 78665 Suzy Chapstick 98847 To do this in one query, what kind of query would I use? Basically, I have a one-to-many relationship and I want to have both zips for each name record. Thanks, Bobby -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From garykjos at gmail.com Fri Feb 9 09:08:16 2007 From: garykjos at gmail.com (Gary Kjos) Date: Fri, 9 Feb 2007 09:08:16 -0600 Subject: [AccessD] Queries are messed up! In-Reply-To: <00a701c74be0$30cfc9f0$0a00a8c0@PCRURI35> References: <00a701c74be0$30cfc9f0$0a00a8c0@PCRURI35> Message-ID: A couple of thoughts. First do you have the "Name Autocorrect" options checked or unchecked? I always UNCHECK them so Access doesn't try to get to smart when copying tables and queries etc. Second there is an option under the Import to "Import Relationships" is that checked? It sounds like it is treating the imported query as if the table names have changed between the versions. Are you sure everything is named exactly the same in both versions? One more thought. And I think this one may be the real answer. If the database that you are using doesn't have any table definitions in it, perhaps the query there is being compiled somehow and since there are no table names it is being confused. You could try including empty tables in that bridge database in order to give the query actual tables to reference in that temporary database. Then you just have to be sure to not import the empty table definitions into the end users database you are intending to update. Good luck figgering it out. GK On 2/8/07, Barbara Ryan wrote: > In an Access 2002 application, when I need to distribute database object changes, I copy all of the modified objects into a blank database and email it to client sites. They then click a push button in their application which imports all of the objects. > > Everything has worked great (for years) until now ---- if a query is included in the update, it will import into their application without any relationships (i.e., there are no "lines" between tables) when the query is viewed in design mode on their computer. Also, even if the query only contains one table, all of the selected fields are listed as "Exp1", etc. For example, what used to appear as "EmpNo" now displays as "Expr1:EmpNo". > > I have duplicated this problem myself by importing the objects into another database on my computer. > > We (the clients and I) have recently upgraded to Access 2003. > > Any ideas? Or should I call Ghostbusters again :-( > > Thanks, > Barb Ryan > -- > 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 markamatte at hotmail.com Fri Feb 9 09:20:03 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 09 Feb 2007 15:20:03 +0000 Subject: [AccessD] in re to:Access and home construction work In-Reply-To: <001001c74be8$87f3dbb0$6c7294d1@loreleisxp> Message-ID: Steve, What would this database do? Some examples:Customer Relations, Payroll, bidding contracts, inventory etc...??? Thanks, Mark A. Matte >From: "steve saaf" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: [AccessD] in re to:Access and home construction work >Date: Thu, 8 Feb 2007 17:20:47 -0800 > >Yep, wouldn't ya know this newbie goofs on the first query. I want to >design a database for a home construction business. I am looking for the >gotcha's, as well as tips/hints based on experience. >My apologies to those folks who got their hopes up about light's,etc. >Thanks, >Steve >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Check out all that glitters with the MSN Entertainment Guide to the Academy Awards? http://movies.msn.com/movies/oscars2007/?icid=ncoscartagline2 From BarbaraRyan at cox.net Fri Feb 9 10:08:12 2007 From: BarbaraRyan at cox.net (Barbara Ryan) Date: Fri, 9 Feb 2007 11:08:12 -0500 Subject: [AccessD] Queries are messed up! References: <00a701c74be0$30cfc9f0$0a00a8c0@PCRURI35> Message-ID: <00b801c74c64$7ff87b60$0a00a8c0@PCRURI35> Gary.... You are absolutely right --- the "Name Autocorrect" options are the culprits --- see http://alexdyb.blogspot.com/2006/05/user-friendly-name-autocorrect-option.html Thanks a Bunch! Barb ----- Original Message ----- From: "Gary Kjos" To: "Access Developers discussion and problem solving" Sent: Friday, February 09, 2007 10:08 AM Subject: Re: [AccessD] Queries are messed up! >A couple of thoughts. First do you have the "Name Autocorrect" options > checked or unchecked? I always UNCHECK them so Access doesn't try to > get to smart when copying tables and queries etc. Second there is an > option under the Import to "Import Relationships" is that checked? > > It sounds like it is treating the imported query as if the table names > have changed between the versions. Are you sure everything is named > exactly the same in both versions? > > One more thought. And I think this one may be the real answer. If the > database that you are using doesn't have any table definitions in it, > perhaps the query there is being compiled somehow and since there are > no table names it is being confused. You could try including empty > tables in that bridge database in order to give the query actual > tables to reference in that temporary database. Then you just have > to be sure to not import the empty table definitions into the end > users database you are intending to update. > > Good luck figgering it out. > > GK > > On 2/8/07, Barbara Ryan wrote: >> In an Access 2002 application, when I need to distribute database object >> changes, I copy all of the modified objects into a blank database and >> email it to client sites. They then click a push button in their >> application which imports all of the objects. >> >> Everything has worked great (for years) until now ---- if a query is >> included in the update, it will import into their application without any >> relationships (i.e., there are no "lines" between tables) when the query >> is viewed in design mode on their computer. Also, even if the query only >> contains one table, all of the selected fields are listed as "Exp1", etc. >> For example, what used to appear as "EmpNo" now displays as >> "Expr1:EmpNo". >> >> I have duplicated this problem myself by importing the objects into >> another database on my computer. >> >> We (the clients and I) have recently upgraded to Access 2003. >> >> Any ideas? Or should I call Ghostbusters again :-( >> >> Thanks, >> Barb Ryan >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > -- > Gary Kjos > garykjos at gmail.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From garykjos at gmail.com Fri Feb 9 10:16:09 2007 From: garykjos at gmail.com (Gary Kjos) Date: Fri, 9 Feb 2007 10:16:09 -0600 Subject: [AccessD] Queries are messed up! In-Reply-To: <00b801c74c64$7ff87b60$0a00a8c0@PCRURI35> References: <00a701c74be0$30cfc9f0$0a00a8c0@PCRURI35> <00b801c74c64$7ff87b60$0a00a8c0@PCRURI35> Message-ID: Yea! Those buggers cause lots of weirdness. Glad I was able to help. GK On 2/9/07, Barbara Ryan wrote: > Gary.... > > You are absolutely right --- the "Name Autocorrect" options are the > culprits --- see > http://alexdyb.blogspot.com/2006/05/user-friendly-name-autocorrect-option.html > > Thanks a Bunch! > Barb > > ----- Original Message ----- > From: "Gary Kjos" > To: "Access Developers discussion and problem solving" > > Sent: Friday, February 09, 2007 10:08 AM > Subject: Re: [AccessD] Queries are messed up! > > > >A couple of thoughts. First do you have the "Name Autocorrect" options > > checked or unchecked? I always UNCHECK them so Access doesn't try to > > get to smart when copying tables and queries etc. Second there is an > > option under the Import to "Import Relationships" is that checked? > > > > It sounds like it is treating the imported query as if the table names > > have changed between the versions. Are you sure everything is named > > exactly the same in both versions? > > > > One more thought. And I think this one may be the real answer. If the > > database that you are using doesn't have any table definitions in it, > > perhaps the query there is being compiled somehow and since there are > > no table names it is being confused. You could try including empty > > tables in that bridge database in order to give the query actual > > tables to reference in that temporary database. Then you just have > > to be sure to not import the empty table definitions into the end > > users database you are intending to update. > > > > Good luck figgering it out. > > > > GK > > > > On 2/8/07, Barbara Ryan wrote: > >> In an Access 2002 application, when I need to distribute database object > >> changes, I copy all of the modified objects into a blank database and > >> email it to client sites. They then click a push button in their > >> application which imports all of the objects. > >> > >> Everything has worked great (for years) until now ---- if a query is > >> included in the update, it will import into their application without any > >> relationships (i.e., there are no "lines" between tables) when the query > >> is viewed in design mode on their computer. Also, even if the query only > >> contains one table, all of the selected fields are listed as "Exp1", etc. > >> For example, what used to appear as "EmpNo" now displays as > >> "Expr1:EmpNo". > >> > >> I have duplicated this problem myself by importing the objects into > >> another database on my computer. > >> > >> We (the clients and I) have recently upgraded to Access 2003. > >> > >> Any ideas? Or should I call Ghostbusters again :-( > >> > >> Thanks, > >> Barb Ryan > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > >> > > > > > > -- > > Gary Kjos > > garykjos at gmail.com > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > -- > 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 artful at rogers.com Fri Feb 9 11:11:11 2007 From: artful at rogers.com (artful at rogers.com) Date: Fri, 9 Feb 2007 09:11:11 -0800 (PST) Subject: [AccessD] What type of query.... Message-ID: <593155.38374.qm@web88206.mail.re2.yahoo.com> A simple way to do it is to break the query into 3 pieces. The table People, plus two views, one for HomeZips and the other for WorkZips: CREATE VIEW [dbo].[Zips_HomeZips_vue] AS SELECT Zips.People.PID, Zips.People.FName, Zips.People.LName, Zips.Zips.Zip AS Home, Zips.Types.TYPE FROM Zips.People INNER JOIN Zips.Zips ON Zips.People.PID = Zips.Zips.PID INNER JOIN Zips.Types ON Zips.Zips.TypeID = Zips.Types.TypeID WHERE (Zips.Types.TYPE = 'Home') GO CREATE VIEW [dbo].[Zips_WorkZips_vue] AS SELECT Zips.People.PID, Zips.People.FName, Zips.People.LName, Zips.Zips.Zip AS [Work], Zips.Types.TYPE FROM Zips.People INNER JOIN Zips.Zips ON Zips.People.PID = Zips.Zips.PID INNER JOIN Zips.Types ON Zips.Zips.TypeID = Zips.Types.TypeID WHERE (Zips.Types.TYPE = 'Work') GO Now just join them all up and run the query: SELECT Zips.People.FName, Zips.People.LName, Zips_HomeZips_vue.Home, Zips_WorkZips_vue.[Work] FROM Zips.People LEFT OUTER JOIN Zips_HomeZips_vue ON Zips.People.PID = Zips_HomeZips_vue.PID LEFT OUTER JOIN Zips_WorkZips_vue ON Zips.People.PID = Zips_WorkZips_vue.PID Note: I like to do things this way because the components are reusable in other contexts, whereas doing the whole thing in a single query solves only the specific problem. I have written about this approach in various places. I call it "atomic and molecular queries". In this case the views are the atoms and the query is the molecule comprised of said atoms. hth, Arthur ----- Original Message ---- From: Bobby Heid To: Access Developers discussion and problem solving Sent: Friday, February 9, 2007 10:03:31 AM Subject: Re: [AccessD] What type of query.... Hi Arthur, Thanks for that. One other issue. There may not be a given type of zip (or I guess even no zip in the Zip (table 2) table. This query returns those records that have both. Any ideas? Thanks, Bobby From bheid at sc.rr.com Fri Feb 9 11:39:48 2007 From: bheid at sc.rr.com (Bobby Heid) Date: Fri, 9 Feb 2007 12:39:48 -0500 Subject: [AccessD] What type of query.... In-Reply-To: <593155.38374.qm@web88206.mail.re2.yahoo.com> References: <593155.38374.qm@web88206.mail.re2.yahoo.com> Message-ID: <009301c74c71$4c0e4ed0$2d01a8c0@bhxp> Thanks! Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Friday, February 09, 2007 12:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] What type of query.... A simple way to do it is to break the query into 3 pieces. The table People, plus two views, one for HomeZips and the other for WorkZips: CREATE VIEW [dbo].[Zips_HomeZips_vue] AS SELECT Zips.People.PID, Zips.People.FName, Zips.People.LName, Zips.Zips.Zip AS Home, Zips.Types.TYPE FROM Zips.People INNER JOIN Zips.Zips ON Zips.People.PID = Zips.Zips.PID INNER JOIN Zips.Types ON Zips.Zips.TypeID = Zips.Types.TypeID WHERE (Zips.Types.TYPE = 'Home') GO CREATE VIEW [dbo].[Zips_WorkZips_vue] AS SELECT Zips.People.PID, Zips.People.FName, Zips.People.LName, Zips.Zips.Zip AS [Work], Zips.Types.TYPE FROM Zips.People INNER JOIN Zips.Zips ON Zips.People.PID = Zips.Zips.PID INNER JOIN Zips.Types ON Zips.Zips.TypeID = Zips.Types.TypeID WHERE (Zips.Types.TYPE = 'Work') GO Now just join them all up and run the query: SELECT Zips.People.FName, Zips.People.LName, Zips_HomeZips_vue.Home, Zips_WorkZips_vue.[Work] FROM Zips.People LEFT OUTER JOIN Zips_HomeZips_vue ON Zips.People.PID = Zips_HomeZips_vue.PID LEFT OUTER JOIN Zips_WorkZips_vue ON Zips.People.PID = Zips_WorkZips_vue.PID Note: I like to do things this way because the components are reusable in other contexts, whereas doing the whole thing in a single query solves only the specific problem. I have written about this approach in various places. I call it "atomic and molecular queries". In this case the views are the atoms and the query is the molecule comprised of said atoms. hth, Arthur ----- Original Message ---- From: Bobby Heid To: Access Developers discussion and problem solving Sent: Friday, February 9, 2007 10:03:31 AM Subject: Re: [AccessD] What type of query.... Hi Arthur, Thanks for that. One other issue. There may not be a given type of zip (or I guess even no zip in the Zip (table 2) table. This query returns those records that have both. Any ideas? Thanks, Bobby From markamatte at hotmail.com Fri Feb 9 13:00:53 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 09 Feb 2007 19:00:53 +0000 Subject: [AccessD] A97 Linked Tables In-Reply-To: Message-ID: Hello All, In A97 I need to link the FE to the BE in a shared folder on the network. I have the folder mapped as a drive on my machine...the users will not. Do I need to map the drive on each of their machines...or... IS there another method of linking these tables? Thanks, Mark A. Matte _________________________________________________________________ Valentine?s Day -- Shop for gifts that spell L-O-V-E at MSN Shopping http://shopping.msn.com/content/shp/?ctId=8323,ptnrid=37,ptnrdata=24095&tcode=wlmtagline From accessd at shaw.ca Fri Feb 9 13:14:38 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 09 Feb 2007 11:14:38 -0800 Subject: [AccessD] A97 Linked Tables In-Reply-To: Message-ID: <0JD70077BMOV3060@l-daemon> Hi Mark: You can map the BE in the format i.e: \\server1\Access97DB then you will not have to use drive letter mapping. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Friday, February 09, 2007 11:01 AM To: accessd at databaseadvisors.com Subject: [AccessD] A97 Linked Tables Hello All, In A97 I need to link the FE to the BE in a shared folder on the network. I have the folder mapped as a drive on my machine...the users will not. Do I need to map the drive on each of their machines...or... IS there another method of linking these tables? Thanks, Mark A. Matte _________________________________________________________________ Valentines Day -- Shop for gifts that spell L-O-V-E at MSN Shopping http://shopping.msn.com/content/shp/?ctId=8323,ptnrid=37,ptnrdata=24095&tcod e=wlmtagline From markamatte at hotmail.com Fri Feb 9 14:00:06 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 09 Feb 2007 20:00:06 +0000 Subject: [AccessD] A97 Linked Tables In-Reply-To: <0JD70077BMOV3060@l-daemon> Message-ID: Thanks Jim, I was using Net Use to link to the other machine...I'm on NT (SP4 I think)...How would I map in this format? Thanks, Mark >From: Jim Lawrence >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] A97 Linked Tables >Date: Fri, 09 Feb 2007 11:14:38 -0800 > >Hi Mark: > >You can map the BE in the format i.e: \\server1\Access97DB then you will >not >have to use drive letter mapping. > >Jim > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: Friday, February 09, 2007 11:01 AM >To: accessd at databaseadvisors.com >Subject: [AccessD] A97 Linked Tables > >Hello All, > >In A97 I need to link the FE to the BE in a shared folder on the network. >I > >have the folder mapped as a drive on my machine...the users will not. > >Do I need to map the drive on each of their machines...or... > >IS there another method of linking these tables? > >Thanks, > >Mark A. Matte > >_________________________________________________________________ >Valentines Day -- Shop for gifts that spell L-O-V-E at MSN Shopping >http://shopping.msn.com/content/shp/?ctId=8323,ptnrid=37,ptnrdata=24095&tcod >e=wlmtagline > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ FREE online classifieds from Windows Live Expo ? buy and sell with people you know http://clk.atdmt.com/MSN/go/msnnkwex0010000001msn/direct/01/?href=http://expo.live.com?s_cid=Hotmail_tagline_12/06 From Lambert.Heenan at AIG.com Fri Feb 9 14:09:50 2007 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Fri, 9 Feb 2007 15:09:50 -0500 Subject: [AccessD] A97 Linked Tables Message-ID: <34C8A2AB1EF3564CB0D64DB6AFFDD5C201201047@xlivmbx35.aig.com> No "mapping" is required. In Access when you browse to where the back end is to link to its tables, instead of selecting the drive letter and browsing to the folder with the MDB file, type \\SERVERNAME\SharedFolderName in the file name box of the file select dialog box. Hit enter and then you will see the folders on the share and you can browse to the backend. The paths stored within the front end will then be UNC paths instead of mapped drive letter paths. HTH Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Friday, February 09, 2007 3:00 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] A97 Linked Tables Thanks Jim, I was using Net Use to link to the other machine...I'm on NT (SP4 I think)...How would I map in this format? Thanks, Mark >From: Jim Lawrence >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] A97 Linked Tables >Date: Fri, 09 Feb 2007 11:14:38 -0800 > >Hi Mark: > >You can map the BE in the format i.e: \\server1\Access97DB then you >will >not >have to use drive letter mapping. > >Jim > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: Friday, February 09, 2007 11:01 AM >To: accessd at databaseadvisors.com >Subject: [AccessD] A97 Linked Tables > >Hello All, > >In A97 I need to link the FE to the BE in a shared folder on the >network. >I > >have the folder mapped as a drive on my machine...the users will not. > >Do I need to map the drive on each of their machines...or... > >IS there another method of linking these tables? > >Thanks, > >Mark A. Matte > >_________________________________________________________________ >Valentines Day -- Shop for gifts that spell L-O-V-E at MSN Shopping >http://shopping.msn.com/content/shp/?ctId=8323,ptnrid=37,ptnrdata=24095 >&tcod >e=wlmtagline > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ FREE online classifieds from Windows Live Expo - buy and sell with people you know http://clk.atdmt.com/MSN/go/msnnkwex0010000001msn/direct/01/?href=http://exp o.live.com?s_cid=Hotmail_tagline_12/06 From markamatte at hotmail.com Fri Feb 9 14:21:12 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 09 Feb 2007 20:21:12 +0000 Subject: [AccessD] A97 Linked Tables In-Reply-To: <34C8A2AB1EF3564CB0D64DB6AFFDD5C201201047@xlivmbx35.aig.com> Message-ID: OOOOHHHHHH....This is cool. Thanks Lambert!!! Mark A. Matte >From: "Heenan, Lambert" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] A97 Linked Tables >Date: Fri, 9 Feb 2007 15:09:50 -0500 > >No "mapping" is required. > >In Access when you browse to where the back end is to link to its tables, >instead of selecting the drive letter and browsing to the folder with the >MDB file, type > \\SERVERNAME\SharedFolderName >in the file name box of the file select dialog box. Hit enter and then you >will see the folders on the share and you can browse to the backend. The >paths stored within the front end will then be UNC paths instead of mapped >drive letter paths. > >HTH > >Lambert > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: Friday, February 09, 2007 3:00 PM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] A97 Linked Tables > > >Thanks Jim, > >I was using Net Use to link to the other machine...I'm on NT (SP4 I >think)...How would I map in this format? > >Thanks, > >Mark > > > > >From: Jim Lawrence > >Reply-To: Access Developers discussion and problem > >solving > >To: "'Access Developers discussion and problem > >solving'" > >Subject: Re: [AccessD] A97 Linked Tables > >Date: Fri, 09 Feb 2007 11:14:38 -0800 > > > >Hi Mark: > > > >You can map the BE in the format i.e: \\server1\Access97DB then you > >will > >not > >have to use drive letter mapping. > > > >Jim > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > >Sent: Friday, February 09, 2007 11:01 AM > >To: accessd at databaseadvisors.com > >Subject: [AccessD] A97 Linked Tables > > > >Hello All, > > > >In A97 I need to link the FE to the BE in a shared folder on the > >network. > >I > > > >have the folder mapped as a drive on my machine...the users will not. > > > >Do I need to map the drive on each of their machines...or... > > > >IS there another method of linking these tables? > > > >Thanks, > > > >Mark A. Matte > > > >_________________________________________________________________ > >Valentines Day -- Shop for gifts that spell L-O-V-E at MSN Shopping > >http://shopping.msn.com/content/shp/?ctId=8323,ptnrid=37,ptnrdata=24095 > >&tcod > >e=wlmtagline > > > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > >_________________________________________________________________ >FREE online classifieds from Windows Live Expo - buy and sell with people >you know >http://clk.atdmt.com/MSN/go/msnnkwex0010000001msn/direct/01/?href=http://exp >o.live.com?s_cid=Hotmail_tagline_12/06 > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ >From predictions to trailers, check out the MSN Entertainment Guide to the Academy Awards? http://movies.msn.com/movies/oscars2007/?icid=ncoscartagline1 From accessd at shaw.ca Fri Feb 9 14:42:22 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 09 Feb 2007 12:42:22 -0800 Subject: [AccessD] A97 Linked Tables In-Reply-To: Message-ID: <0JD700GXEQR3D1R2@l-daemon> Hi Mark: You would use something like i.e.: Net use \\ServerName\Access97DBShareName. No drive letter needs to be created, but of course the appropriate share has to exist on the host and when you resolved the connection within Access, the tables would be linked using the same syntax.(File > Get External data > Link Tables.. > '\\ServerName\Access97DBShareName\MyBE.mdb'.) HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Friday, February 09, 2007 12:00 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] A97 Linked Tables Thanks Jim, I was using Net Use to link to the other machine...I'm on NT (SP4 I think)...How would I map in this format? Thanks, Mark >From: Jim Lawrence >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] A97 Linked Tables >Date: Fri, 09 Feb 2007 11:14:38 -0800 > >Hi Mark: > >You can map the BE in the format i.e: \\server1\Access97DB then you will >not >have to use drive letter mapping. > >Jim > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: Friday, February 09, 2007 11:01 AM >To: accessd at databaseadvisors.com >Subject: [AccessD] A97 Linked Tables > >Hello All, > >In A97 I need to link the FE to the BE in a shared folder on the network. >I > >have the folder mapped as a drive on my machine...the users will not. > >Do I need to map the drive on each of their machines...or... > >IS there another method of linking these tables? > >Thanks, > >Mark A. Matte > >_________________________________________________________________ >Valentines Day -- Shop for gifts that spell L-O-V-E at MSN Shopping >http://shopping.msn.com/content/shp/?ctId=8323,ptnrid=37,ptnrdata=24095&tco d >e=wlmtagline > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ FREE online classifieds from Windows Live Expo  buy and sell with people you know http://clk.atdmt.com/MSN/go/msnnkwex0010000001msn/direct/01/?href=http://exp o.live.com?s_cid=Hotmail_tagline_12/06 From accessd at shaw.ca Fri Feb 9 14:43:50 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 09 Feb 2007 12:43:50 -0800 Subject: [AccessD] A97 Linked Tables In-Reply-To: Message-ID: <0JD700LG9QTJW060@l-daemon> Sorry Mark, should have read ahead. Lambert answered the question fully. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Friday, February 09, 2007 12:00 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] A97 Linked Tables Thanks Jim, I was using Net Use to link to the other machine...I'm on NT (SP4 I think)...How would I map in this format? Thanks, Mark >From: Jim Lawrence >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] A97 Linked Tables >Date: Fri, 09 Feb 2007 11:14:38 -0800 > >Hi Mark: > >You can map the BE in the format i.e: \\server1\Access97DB then you will >not >have to use drive letter mapping. > >Jim > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: Friday, February 09, 2007 11:01 AM >To: accessd at databaseadvisors.com >Subject: [AccessD] A97 Linked Tables > >Hello All, > >In A97 I need to link the FE to the BE in a shared folder on the network. >I > >have the folder mapped as a drive on my machine...the users will not. > >Do I need to map the drive on each of their machines...or... > >IS there another method of linking these tables? > >Thanks, > >Mark A. Matte > >_________________________________________________________________ >Valentines Day -- Shop for gifts that spell L-O-V-E at MSN Shopping >http://shopping.msn.com/content/shp/?ctId=8323,ptnrid=37,ptnrdata=24095&tco d >e=wlmtagline > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ FREE online classifieds from Windows Live Expo  buy and sell with people you know http://clk.atdmt.com/MSN/go/msnnkwex0010000001msn/direct/01/?href=http://exp o.live.com?s_cid=Hotmail_tagline_12/06 From markamatte at hotmail.com Fri Feb 9 14:53:38 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 09 Feb 2007 20:53:38 +0000 Subject: [AccessD] A97 Linked Tables In-Reply-To: <0JD700LG9QTJW060@l-daemon> Message-ID: No prob...I appreciate ALL feedback. Thanks, Mark A. Matte >From: Jim Lawrence >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] A97 Linked Tables >Date: Fri, 09 Feb 2007 12:43:50 -0800 > >Sorry Mark, should have read ahead. Lambert answered the question fully. > >Jim > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: Friday, February 09, 2007 12:00 PM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] A97 Linked Tables > >Thanks Jim, > >I was using Net Use to link to the other machine...I'm on NT (SP4 I >think)...How would I map in this format? > >Thanks, > >Mark > > > > >From: Jim Lawrence > >Reply-To: Access Developers discussion and problem > >solving > >To: "'Access Developers discussion and problem > >solving'" > >Subject: Re: [AccessD] A97 Linked Tables > >Date: Fri, 09 Feb 2007 11:14:38 -0800 > > > >Hi Mark: > > > >You can map the BE in the format i.e: \\server1\Access97DB then you will > >not > >have to use drive letter mapping. > > > >Jim > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > >Sent: Friday, February 09, 2007 11:01 AM > >To: accessd at databaseadvisors.com > >Subject: [AccessD] A97 Linked Tables > > > >Hello All, > > > >In A97 I need to link the FE to the BE in a shared folder on the network. > >I > > > >have the folder mapped as a drive on my machine...the users will not. > > > >Do I need to map the drive on each of their machines...or... > > > >IS there another method of linking these tables? > > > >Thanks, > > > >Mark A. Matte > > > >_________________________________________________________________ > >Valentines Day -- Shop for gifts that spell L-O-V-E at MSN Shopping > >http://shopping.msn.com/content/shp/?ctId=8323,ptnrid=37,ptnrdata=24095&tco >d > >e=wlmtagline > > > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > >_________________________________________________________________ >FREE online classifieds from Windows Live Expo  buy and sell with people >you know >http://clk.atdmt.com/MSN/go/msnnkwex0010000001msn/direct/01/?href=http://exp >o.live.com?s_cid=Hotmail_tagline_12/06 > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Invite your Hotmail contacts to join your friends list with Windows Live Spaces http://clk.atdmt.com/MSN/go/msnnkwsp0070000001msn/direct/01/?href=http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us From jwcolby at colbyconsulting.com Fri Feb 9 15:28:53 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Fri, 9 Feb 2007 16:28:53 -0500 Subject: [AccessD] A97 Linked Tables In-Reply-To: <34C8A2AB1EF3564CB0D64DB6AFFDD5C201201047@xlivmbx35.aig.com> Message-ID: <005401c74c91$4d6286a0$657aa8c0@m6805> I could swear though that unc mapping was slower than physical mapping. That may have been fixed long ago however. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Friday, February 09, 2007 3:10 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] A97 Linked Tables No "mapping" is required. In Access when you browse to where the back end is to link to its tables, instead of selecting the drive letter and browsing to the folder with the MDB file, type \\SERVERNAME\SharedFolderName in the file name box of the file select dialog box. Hit enter and then you will see the folders on the share and you can browse to the backend. The paths stored within the front end will then be UNC paths instead of mapped drive letter paths. HTH Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Friday, February 09, 2007 3:00 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] A97 Linked Tables Thanks Jim, I was using Net Use to link to the other machine...I'm on NT (SP4 I think)...How would I map in this format? Thanks, Mark >From: Jim Lawrence >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] A97 Linked Tables >Date: Fri, 09 Feb 2007 11:14:38 -0800 > >Hi Mark: > >You can map the BE in the format i.e: \\server1\Access97DB then you >will not have to use drive letter mapping. > >Jim > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: Friday, February 09, 2007 11:01 AM >To: accessd at databaseadvisors.com >Subject: [AccessD] A97 Linked Tables > >Hello All, > >In A97 I need to link the FE to the BE in a shared folder on the >network. >I > >have the folder mapped as a drive on my machine...the users will not. > >Do I need to map the drive on each of their machines...or... > >IS there another method of linking these tables? > >Thanks, > >Mark A. Matte > >_________________________________________________________________ >Valentines Day -- Shop for gifts that spell L-O-V-E at MSN Shopping >http://shopping.msn.com/content/shp/?ctId=8323,ptnrid=37,ptnrdata=24095 >&tcod >e=wlmtagline > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ FREE online classifieds from Windows Live Expo - buy and sell with people you know http://clk.atdmt.com/MSN/go/msnnkwex0010000001msn/direct/01/?href=http://exp o.live.com?s_cid=Hotmail_tagline_12/06 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Fri Feb 9 16:19:15 2007 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Fri, 9 Feb 2007 16:19:15 -0600 Subject: [AccessD] A97 Linked Tables Message-ID: <34C8A2AB1EF3564CB0D64DB6AFFDD5C20120104C@xlivmbx35.aig.com> Never heard of any problem with using UNC paths. You may be confusing that with using long filenames in paths. If you are linking to a file in "\\server\share\Some Long Path Name\And a SubFolder" then you can get a performance hit as the OS has to walk the folder path resolving long file names to 8.2 file names. To eliminate that problem you can use the short file names in the linked file path, like \\server\share\SomeLon~1\AndASu~1 See http://support.microsoft.com/kb/891176/en-us Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Friday, February 09, 2007 4:29 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] A97 Linked Tables I could swear though that unc mapping was slower than physical mapping. That may have been fixed long ago however. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Friday, February 09, 2007 3:10 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] A97 Linked Tables No "mapping" is required. In Access when you browse to where the back end is to link to its tables, instead of selecting the drive letter and browsing to the folder with the MDB file, type \\SERVERNAME\SharedFolderName in the file name box of the file select dialog box. Hit enter and then you will see the folders on the share and you can browse to the backend. The paths stored within the front end will then be UNC paths instead of mapped drive letter paths. HTH Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Friday, February 09, 2007 3:00 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] A97 Linked Tables Thanks Jim, I was using Net Use to link to the other machine...I'm on NT (SP4 I think)...How would I map in this format? Thanks, Mark >From: Jim Lawrence >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] A97 Linked Tables >Date: Fri, 09 Feb 2007 11:14:38 -0800 > >Hi Mark: > >You can map the BE in the format i.e: \\server1\Access97DB then you >will not have to use drive letter mapping. > >Jim > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: Friday, February 09, 2007 11:01 AM >To: accessd at databaseadvisors.com >Subject: [AccessD] A97 Linked Tables > >Hello All, > >In A97 I need to link the FE to the BE in a shared folder on the >network. >I > >have the folder mapped as a drive on my machine...the users will not. > >Do I need to map the drive on each of their machines...or... > >IS there another method of linking these tables? > >Thanks, > >Mark A. Matte > >_________________________________________________________________ >Valentines Day -- Shop for gifts that spell L-O-V-E at MSN Shopping >http://shopping.msn.com/content/shp/?ctId=8323,ptnrid=37,ptnrdata=24095 >&tcod >e=wlmtagline > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ FREE online classifieds from Windows Live Expo - buy and sell with people you know http://clk.atdmt.com/MSN/go/msnnkwex0010000001msn/direct/01/?href=http://exp o.live.com?s_cid=Hotmail_tagline_12/06 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Feb 9 16:36:33 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 09 Feb 2007 14:36:33 -0800 Subject: [AccessD] A97 Linked Tables In-Reply-To: <005401c74c91$4d6286a0$657aa8c0@m6805> References: <005401c74c91$4d6286a0$657aa8c0@m6805> Message-ID: <45CCF771.1070403@shaw.ca> Try to keep the mdb file up close to the root to avoid a`lot of OS directory permissions checks Here are some mapping/UNC connection functions from Randy Birch that will help Look through related functions too: WNetGetConnection: Get UNC Path for Mapped Drive http://vbnet.mvps.org/index.html?code/network/uncfrommappeddrive.htm WNetConnectionDialog: Invoking the Map/Disconnect Drive Dialog http://vbnet.mvps.org/index.html?code/network/wnetconnectiondialog.htm JWColby wrote: >I could swear though that unc mapping was slower than physical mapping. >That may have been fixed long ago however. > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert >Sent: Friday, February 09, 2007 3:10 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] A97 Linked Tables > >No "mapping" is required. > >In Access when you browse to where the back end is to link to its tables, >instead of selecting the drive letter and browsing to the folder with the >MDB file, type > \\SERVERNAME\SharedFolderName >in the file name box of the file select dialog box. Hit enter and then you >will see the folders on the share and you can browse to the backend. The >paths stored within the front end will then be UNC paths instead of mapped >drive letter paths. > >HTH > >Lambert > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: Friday, February 09, 2007 3:00 PM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] A97 Linked Tables > > >Thanks Jim, > >I was using Net Use to link to the other machine...I'm on NT (SP4 I >think)...How would I map in this format? > >Thanks, > >Mark > > > > > >>From: Jim Lawrence >>Reply-To: Access Developers discussion and problem >>solving >>To: "'Access Developers discussion and problem >>solving'" >>Subject: Re: [AccessD] A97 Linked Tables >>Date: Fri, 09 Feb 2007 11:14:38 -0800 >> >>Hi Mark: >> >>You can map the BE in the format i.e: \\server1\Access97DB then you >>will not have to use drive letter mapping. >> >>Jim >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >>Sent: Friday, February 09, 2007 11:01 AM >>To: accessd at databaseadvisors.com >>Subject: [AccessD] A97 Linked Tables >> >>Hello All, >> >>In A97 I need to link the FE to the BE in a shared folder on the >>network. >>I >> >>have the folder mapped as a drive on my machine...the users will not. >> >>Do I need to map the drive on each of their machines...or... >> >>IS there another method of linking these tables? >> >>Thanks, >> >>Mark A. Matte >> >>_________________________________________________________________ >>Valentines Day -- Shop for gifts that spell L-O-V-E at MSN Shopping >>http://shopping.msn.com/content/shp/?ctId=8323,ptnrid=37,ptnrdata=24095 >>&tcod >>e=wlmtagline >> >> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >> > >_________________________________________________________________ >FREE online classifieds from Windows Live Expo - buy and sell with people >you know >http://clk.atdmt.com/MSN/go/msnnkwex0010000001msn/direct/01/?href=http://exp >o.live.com?s_cid=Hotmail_tagline_12/06 > >-- >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 jeff at boyes.net Fri Feb 9 18:43:59 2007 From: jeff at boyes.net (Jeff Boyes) Date: Fri, 9 Feb 2007 17:43:59 -0700 Subject: [AccessD] Access and home construction work In-Reply-To: Message-ID: Let me know if you are serious about buying...I can point some resources your way. Jeff -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Friday, February 09, 2007 7:22 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and home construction work Cool. Thanks!! Now....if only it could change a diaper.....I'd be in HEAVEN!! :) Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeff Sent: Thursday, February 08, 2007 8:32 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and home construction work Mine is good, and cheap. I have about $500 invested, and can control all the lights, heating/cooling, tv/tivo, garage doors, and hot tub...via any pc, or voice commands from any phone... Www.homeseer.com jeff -----Original Message----- From: "Kath Pelletti" To: "Access Developers discussion and problem solving" Sent: 2/8/07 6:13 PM Subject: Re: [AccessD] Access and home construction work good, cheap, fast ?? ----- Original Message ----- From: Jim Lawrence To: 'Access Developers discussion and problem solving' Sent: Friday, February 09, 2007 12:12 PM Subject: Re: [AccessD] Access and home construction work What is that saying that ends with '...you can have any 2'? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, February 08, 2007 12:04 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and home construction work I forgot to add that I want it all wireless, flexible, and cheap! ;) Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys Sent: Thursday, February 08, 2007 2:55 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access and home construction work Nope. Bill Gates has had that feature for years, though. ON / OFF, power or no power - It can't be that difficult :) Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "Keith Williamson" To: "Access Developers discussion and problem solving" Sent: Thursday, February 08, 2007 2:45 PM Subject: Re: [AccessD] Access and home construction work >I don't know what he is doing....but I should would love to control all > the lights in my house, from my computer. :) so....do you have > experience with THAT? Lol > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R > Mattys > Sent: Thursday, February 08, 2007 2:30 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access and home construction work > > Steve, > > A little vague - are you building homes or > are you trying to control all the lights in > your house from a database? > > Michael R. Mattys > MapPoint & Access Dev > www.mattysconsulting.com > > ----- Original Message ----- > From: "steve saaf" > To: > Sent: Thursday, February 08, 2007 2:11 PM > Subject: [AccessD] Access and home construction work > > >> Hello- >> Anyone have experience with the above and could give any >> tips/experience/recommendations? >> Thanks, >> Steve >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Fri Feb 9 18:48:03 2007 From: pcs at azizaz.com (pcs at azizaz.com) Date: Sat, 10 Feb 2007 10:48:03 +1000 Subject: [AccessD] Queries are messed up! Message-ID: <8d12232e.441c2ffa.81d8800@dommail.onthenet.com.au> This 'nice' feature bit me severely this week as well. For years I have been sending minor modifications to remote users by creating a small .mdb container to carry the tables, queries, modified forms etc. .... I recently updated to A2003. This week a modified query that was imported to the production database now instead of creating the expected dozen or so records in a temp table started off adding thousands upon thousands of records..... an investigation revealed that the inner joins between two tables had been removed by the 'helpful feature' and as a result turned the query into a cartesian product query (i think it's called) ..... Unfortunately - unlike for example choosing Access table type: Access 2000 or Access2002-2003 which can be set permanently in your options, this nice feature cannot be turned off as the permanent default, but appears to have to be turned OFF as the FIRST thing you do EVERY TIME you create a NEW database.... Allen Browne writes about the issue and gives pointers to all the things that according to MS can go wrong with this feature turned on: http://www.allenbrowne.com/bug-03.html Is there ANY way of turning this feature off permanently, by settings in the registry for example? regards borge ---- Original message ---- >Date: Fri, 9 Feb 2007 11:08:12 -0500 >From: "Barbara Ryan" >Subject: Re: [AccessD] Queries are messed up! >To: "Access Developers discussion and problem solving" > >Gary.... > >You are absolutely right --- the "Name Autocorrect" options are the >culprits --- see >http://alexdyb.blogspot.com/2006/05/user-friendly-name- autocorrect-option.html > >Thanks a Bunch! >Barb > >----- Original Message ----- >From: "Gary Kjos" >To: "Access Developers discussion and problem solving" > >Sent: Friday, February 09, 2007 10:08 AM >Subject: Re: [AccessD] Queries are messed up! > > >>A couple of thoughts. First do you have the "Name Autocorrect" options >> checked or unchecked? I always UNCHECK them so Access doesn't try to >> get to smart when copying tables and queries etc. Second there is an >> option under the Import to "Import Relationships" is that checked? From jengross at gte.net Fri Feb 9 17:25:45 2007 From: jengross at gte.net (Jennifer Gross) Date: Fri, 09 Feb 2007 15:25:45 -0800 Subject: [AccessD] ADO code stopped working In-Reply-To: Message-ID: <006e01c74ca1$a30aad20$6401a8c0@jefferson> Hi Gustav, I didn't use the Component Checker, but went right the file properties early on for the 2 ADO DLLs involved. Both my machine and the client's machine had the same version for both files. I don't recall the version #s now, but they corresponded to MDAC 2.8, no service packs per Microsoft's manifests. The query ultimately used is based on several subqueries, each with their own parameters - probably less than 10, but more than 5 all together. I've stopped looking for the answer to get ADO to work since opening the recordset with DAO is working and my time is better spent at this juncture to just convert the code to DAO, as the client needs the functionality up and running. They have also recently switched hardware/network providers and I am having a hard time getting any cooperation from the network people - they say of course that 'nothing has changed' on the network between when the ADO worked and now that it is not working. I find that difficult to believe as we have also had problems with SQL Server and the Windows Management databases - so something has happened. My swiftest route though right now is to convert code to DAO. An MDAC reinstall fixed the problem with Windows Management databases, but not mine. And they choose to upgrade to SQL Server 2005, rather than deal with the problems they were having with SQL Server 2000. My BE & FE are A2K. Thanks for everyone's help, Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, February 09, 2007 12:37 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] ADO code stopped working Hi Jennifer Please report your findings. I think Marty is on the right track. The Component Checker at my machine reports version 2.81.1117.0 for msado15.dll and - in general - MDAC 2.8 SP1 on WinXP SP2. I could update to MDAC 2.8 SP2 if I could find it. However, the test I carry out here is very consistent. How many parameters does your query have? /gustav >>> jengross at gte.net 08-02-2007 21:38 >>> I am still stumped. I am moving the code to DAO, since it works fine, even with the Eval statement and no change to the way the parameters are set up. It has to be something outside the code, in network or security, because the ADO works fine on my system, and worked fine on theirs until last week. Something changed in their setup, but we can't identify it. Thanks for everyone's help and the wonderful tangential insights. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, February 07, 2007 6:58 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] ADO code stopped working Hi Marty That is interesting! It appears that - if you specify a parameter by its name - for an explicit parameter the brackets must _not_ be specified, while for an implicit parameter the brackets _must_ be specified. If you don't, an 3265 error will be raised but not before you reach the code line where you pass the parameter value. So this is not the scenario Jennifer sees, as - for her case - the error is raised earlier when you address the Procedures' collection. /gustav >>> martyconnelly at shaw.ca 05-02-2007 21:46:05 >>> I am just wondering if TheQuery has to be run once to compile it? or this ACC2000: How to Use Parameters with ActiveX Data Objects (ADO) and Jet http://support.microsoft.com/kb/225897/en-us Method 3: Using an Implicit Parameter NOTE: Implicit parameter names have brackets ([ ]) around them, and you must use the brackets (or the parameter's ordinal position) when referring to implicit parameters in the Parameters collection. If you do not use the brackets, you receive the following error message: Run-time error '3265': ADO could not find the object in the collection corresponding to the name or ordinal reference requested by the application. PRB: Error 3265 When You Access Properties Collection http://support.microsoft.com/?kbid=201826 http://support.microsoft.com/default.aspx?scid=kb;en-us;223212 Jennifer Gross wrote: >Hi Gustav, > >I have checked all references. The code is compiling. I have created >a test database with one table and one query. It is failing in the >same spot my original database is failing - Set prc = >cat.Procedures("TheQuery") - In the test database I am getting the >error 3265 - Item cannot be found in the collection corresponding to >the requested name or ordinal. The query does exist - no spelling >errors. The same ADO code is working fine on my home office system. It >worked fine at the client's site in January. Any thoughts? > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >Sent: Monday, February 05, 2007 1:47 AM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] ADO code stopped working > > >Hi Jennifer > >You could - for and while debugging - try to separate the connection >object: > > Dim cnn As ADODB.Connection > Dim cmd As ADODB.Command > Dim rst As ADODB.Recordset > Dim prm As ADODB.Parameter > Dim cat As ADOX.Catalog > Dim prc As ADOX.Procedure > > Set cat = New ADOX.Catalog > Set cnn = CurrentProject.Connection > cat.ActiveConnection = cnn > >I guess you have double-checked the reference: > Microsoft ADO Ext. 2.8 for DDL and Security >points to > ..system32\MSADOX.DLL > >/gustav > > > >>>>jengross at gte.net 05-02-2007 05:00 >>> >>>> >>>> >Thanks for the suggestions. I set the references like Marty suggested >and am still getting the problem. I am using the Getz Developers >Handbook code for looping through parameters in a select query: > > Dim cmd As ADODB.Command > Dim rst As ADODB.Recordset > Dim prm As ADODB.Parameter > Dim cat As ADOX.Catalog > Dim prc As ADOX.Procedure > > Set cat = New ADOX.Catalog >* cat.ActiveConnection = CurrentProject.Connection >* Set prc = cat.Procedures("TheQuery") > Set cmd = prc.Command > For Each prm In cmd.Parameters > prm.Value = Eval(prm.Name) > Next prm > Set rst = cmd.Execute > >If I don't use the query with parameters, but instead base the >recordset on the table, then it works fine: > > Set rst = New ADODB.Recordset > Set rst.ActiveConnection = CurrentProject.Connection > rst.CursorType = adOpenForwardOnly > rst.LockType = adLockReadOnly > rst.Open "TheTable" > >I am getting the same results whether the code is in the existing FE or >if I create a new db with the ADO code as Rocky suggested. > >Any thoughts? > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin >at Beach Access Software >Sent: Sunday, February 04, 2007 4:55 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] ADO code stopped working > > >I would whip up a small app with some ado code to see if the problem is >inside your app or outside of it. Does your app compile? > >Rocky > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer >Gross >Sent: Sunday, February 04, 2007 2:05 PM >To: AccessD List >Subject: [AccessD] ADO code stopped working > >Hi Everyone, > >W2K SP4 / A2K SP3 / terminal server > >I have a database that has some DAO and some ADO code. Recently all >ADO stopped working. DAO is still working fine. Anytime code >utilizing ADO runs it shuts down the database abruptly, leaving the LDB >file. We were also having problems with the Windows Management >databases locking up and a reinstall of the latest MDAC took care of >that problem, but did not solve the ADO problem. ADO was working fine >for end of year reporting. There are no missing references. After the >MDAC reinstall I unchecked references, closed down, opened up and >rechecked references. > >Any help would be greatly appreciated. > >Thank you, > >Jennifer Gross >databasics >2839 Shirley Drive >Newbury Park, CA 91320-3068 >office: (805) 480-1921 >fax: (805) 499-0467 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Sat Feb 10 02:10:29 2007 From: gustav at cactus.dk (Gustav Brock) Date: Sat, 10 Feb 2007 09:10:29 +0100 Subject: [AccessD] A97 Linked Tables Message-ID: Hi Lambert Thanks for pointing this out. I've never heard of the problem with long filenames but it certainly may explain some experiences we have had through the years. /gustav >>> Lambert.Heenan at AIG.com 09-02-07 23:19 >>> Never heard of any problem with using UNC paths. You may be confusing that with using long filenames in paths. If you are linking to a file in "\\server\share\Some Long Path Name\And a SubFolder" then you can get a performance hit as the OS has to walk the folder path resolving long file names to 8.2 file names. To eliminate that problem you can use the short file names in the linked file path, like \\server\share\SomeLon~1\AndASu~1 See http://support.microsoft.com/kb/891176/en-us Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Friday, February 09, 2007 4:29 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] A97 Linked Tables I could swear though that unc mapping was slower than physical mapping. That may have been fixed long ago however. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Friday, February 09, 2007 3:10 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] A97 Linked Tables No "mapping" is required. In Access when you browse to where the back end is to link to its tables, instead of selecting the drive letter and browsing to the folder with the MDB file, type \\SERVERNAME\SharedFolderName in the file name box of the file select dialog box. Hit enter and then you will see the folders on the share and you can browse to the backend. The paths stored within the front end will then be UNC paths instead of mapped drive letter paths. HTH Lambert From jwcolby at colbyconsulting.com Sat Feb 10 04:50:52 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Sat, 10 Feb 2007 05:50:52 -0500 Subject: [AccessD] A97 Linked Tables In-Reply-To: Message-ID: <006e01c74d01$5624b220$657aa8c0@m6805> What this doesn't discuss is where the performance hit is encountered. Is it when a lock is attempted on the BE? If so then the "hold the be open" trick would "solve" the issue. Is it every time a specific table is referenced in a query? That would be much more serious since that would imply no method other than the ones discussed in this KB article would work. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Saturday, February 10, 2007 3:10 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] A97 Linked Tables Hi Lambert Thanks for pointing this out. I've never heard of the problem with long filenames but it certainly may explain some experiences we have had through the years. /gustav >>> Lambert.Heenan at AIG.com 09-02-07 23:19 >>> Never heard of any problem with using UNC paths. You may be confusing that with using long filenames in paths. If you are linking to a file in "\\server\share\Some Long Path Name\And a SubFolder" then you can get a performance hit as the OS has to walk the folder path resolving long file names to 8.2 file names. To eliminate that problem you can use the short file names in the linked file path, like \\server\share\SomeLon~1\AndASu~1 See http://support.microsoft.com/kb/891176/en-us Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Friday, February 09, 2007 4:29 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] A97 Linked Tables I could swear though that unc mapping was slower than physical mapping. That may have been fixed long ago however. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Friday, February 09, 2007 3:10 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] A97 Linked Tables No "mapping" is required. In Access when you browse to where the back end is to link to its tables, instead of selecting the drive letter and browsing to the folder with the MDB file, type \\SERVERNAME\SharedFolderName in the file name box of the file select dialog box. Hit enter and then you will see the folders on the share and you can browse to the backend. The paths stored within the front end will then be UNC paths instead of mapped drive letter paths. HTH Lambert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Sat Feb 10 17:24:38 2007 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 11 Feb 2007 00:24:38 +0100 Subject: [AccessD] A97 Linked Tables Message-ID: Hi John Good question. It mentions caching, multi-user access, and API calls to the mdb file but what that implies is not clear. /gustav >>> jwcolby at colbyconsulting.com 10-02-07 11:50 >>> What this doesn't discuss is where the performance hit is encountered. Is it when a lock is attempted on the BE? If so then the "hold the be open" trick would "solve" the issue. Is it every time a specific table is referenced in a query? That would be much more serious since that would imply no method other than the ones discussed in this KB article would work. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Saturday, February 10, 2007 3:10 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] A97 Linked Tables Hi Lambert Thanks for pointing this out. I've never heard of the problem with long filenames but it certainly may explain some experiences we have had through the years. /gustav >>> Lambert.Heenan at AIG.com 09-02-07 23:19 >>> Never heard of any problem with using UNC paths. You may be confusing that with using long filenames in paths. If you are linking to a file in "\\server\share\Some Long Path Name\And a SubFolder" then you can get a performance hit as the OS has to walk the folder path resolving long file names to 8.2 file names. To eliminate that problem you can use the short file names in the linked file path, like \\server\share\SomeLon~1\AndASu~1 See http://support.microsoft.com/kb/891176/en-us Lambert From martyconnelly at shaw.ca Sat Feb 10 18:45:49 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sat, 10 Feb 2007 16:45:49 -0800 Subject: [AccessD] A97 Linked Tables In-Reply-To: References: Message-ID: <45CE673D.6080900@shaw.ca> Some old notes on this MichKa (Michael Kaplan) made a statement on usenet years ago. He said "For linked tables, there is a LOT of info cached by Jet in the link as an optimization. However, sometimes backend changes are made and that cached info is not invalidated as it should be, and it causes a huge perf hit as Jet tries things that fail (at which point you hit bug#2, which is that it does not invalidate it here either). I have seen cases where even RefreshLink would not totally make this work right. "The fix? If this is the problem? You should completely delete the links in the frontend, then after making sure you have recently compacted the backend, relink all the tables." Also In Access 2000, when a second and subsequent user tries to access a shared backend database on the server, there seems to be a situation where Access tries to perform a delete on the LDB file (which fails because another user is currently in the file). This attempt is made about 15 times before silently failing and the records are returned from the linked table. To resolve this issue we need a persistent connection to the back-end from each of the front-end workstations. This can be done using a bound form which is always open or by keeping a recordset open at all times.. Maintaining persistent connections to linked tables could improve performance significantly because it prevents Microsoft Jet from constantly deleting, creating, and obtaining locking information from the other database's locking information file. Refreshing table links can also be quite slow Refreshing the links to tables can be quite slow even in Access 97. This can get much worse for the second and subsequent users into a shared MDB on a server. Once you've successfully refreshed the first table open a recordset based on that table. Once you've finished refreshing all the links close that recordset. Then open a bound form or keep this recordset open if so desired depending on your preference for better overall performance. Gustav Brock wrote: >Hi John > >Good question. >It mentions caching, multi-user access, and API calls to the mdb file but what that implies is not clear. > >/gustav > > > >>>>jwcolby at colbyconsulting.com 10-02-07 11:50 >>> >>>> >>>> >What this doesn't discuss is where the performance hit is encountered. Is >it when a lock is attempted on the BE? If so then the "hold the be open" >trick would "solve" the issue. Is it every time a specific table is >referenced in a query? That would be much more serious since that would >imply no method other than the ones discussed in this KB article would work. > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >Sent: Saturday, February 10, 2007 3:10 AM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] A97 Linked Tables > >Hi Lambert > >Thanks for pointing this out. I've never heard of the problem with long >filenames but it certainly may explain some experiences we have had through >the years. > >/gustav > > > >>>>Lambert.Heenan at AIG.com 09-02-07 23:19 >>> >>>> >>>> >Never heard of any problem with using UNC paths. You may be confusing that >with using long filenames in paths. > >If you are linking to a file in "\\server\share\Some Long Path Name\And a >SubFolder" then you can get a performance hit as the OS has to walk the >folder path resolving long file names to 8.2 file names. > >To eliminate that problem you can use the short file names in the linked >file path, like > >\\server\share\SomeLon~1\AndASu~1 > >See http://support.microsoft.com/kb/891176/en-us > >Lambert > > -- Marty Connelly Victoria, B.C. Canada From bheid at sc.rr.com Sat Feb 10 20:01:14 2007 From: bheid at sc.rr.com (Bobby Heid) Date: Sat, 10 Feb 2007 21:01:14 -0500 Subject: [AccessD] A97 Linked Tables In-Reply-To: <45CE673D.6080900@shaw.ca> References: <45CE673D.6080900@shaw.ca> Message-ID: <00ba01c74d80$83078810$2d01a8c0@bhxp> In one of our apps, we eventually just started relinking all of the tables because there were issues when we did not. This is back with Access 97 so the issue may be corrected now. But the app still does this. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Saturday, February 10, 2007 7:46 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A97 Linked Tables Some old notes on this MichKa (Michael Kaplan) made a statement on usenet years ago. He said "For linked tables, there is a LOT of info cached by Jet in the link as an optimization. However, sometimes backend changes are made and that cached info is not invalidated as it should be, and it causes a huge perf hit as Jet tries things that fail (at which point you hit bug#2, which is that it does not invalidate it here either). I have seen cases where even RefreshLink would not totally make this work right. "The fix? If this is the problem? You should completely delete the links in the frontend, then after making sure you have recently compacted the backend, relink all the tables." Also In Access 2000, when a second and subsequent user tries to access a shared backend database on the server, there seems to be a situation where Access tries to perform a delete on the LDB file (which fails because another user is currently in the file). This attempt is made about 15 times before silently failing and the records are returned from the linked table. To resolve this issue we need a persistent connection to the back-end from each of the front-end workstations. This can be done using a bound form which is always open or by keeping a recordset open at all times.. Maintaining persistent connections to linked tables could improve performance significantly because it prevents Microsoft Jet from constantly deleting, creating, and obtaining locking information from the other database's locking information file. Refreshing table links can also be quite slow Refreshing the links to tables can be quite slow even in Access 97. This can get much worse for the second and subsequent users into a shared MDB on a server. Once you've successfully refreshed the first table open a recordset based on that table. Once you've finished refreshing all the links close that recordset. Then open a bound form or keep this recordset open if so desired depending on your preference for better overall performance. Gustav Brock wrote: >Hi John > >Good question. >It mentions caching, multi-user access, and API calls to the mdb file but what that implies is not clear. > >/gustav > > > >>>>jwcolby at colbyconsulting.com 10-02-07 11:50 >>> >>>> >>>> >What this doesn't discuss is where the performance hit is encountered. Is >it when a lock is attempted on the BE? If so then the "hold the be open" >trick would "solve" the issue. Is it every time a specific table is >referenced in a query? That would be much more serious since that would >imply no method other than the ones discussed in this KB article would work. > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >Sent: Saturday, February 10, 2007 3:10 AM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] A97 Linked Tables > >Hi Lambert > >Thanks for pointing this out. I've never heard of the problem with long >filenames but it certainly may explain some experiences we have had through >the years. > >/gustav > > > >>>>Lambert.Heenan at AIG.com 09-02-07 23:19 >>> >>>> >>>> >Never heard of any problem with using UNC paths. You may be confusing that >with using long filenames in paths. > >If you are linking to a file in "\\server\share\Some Long Path Name\And a >SubFolder" then you can get a performance hit as the OS has to walk the >folder path resolving long file names to 8.2 file names. > >To eliminate that problem you can use the short file names in the linked >file path, like > >\\server\share\SomeLon~1\AndASu~1 > >See http://support.microsoft.com/kb/891176/en-us > >Lambert > From artful at rogers.com Sun Feb 11 06:31:08 2007 From: artful at rogers.com (artful at rogers.com) Date: Sun, 11 Feb 2007 04:31:08 -0800 (PST) Subject: [AccessD] Abstract question Message-ID: <314848.60214.qm@web88202.mail.re2.yahoo.com> Does anyone have an idea how to generate an autoForm from any arbitrary recordset? Ideally, such a class would have the smarts to realize that certain fields ought to be checkboxes, others formatted short-date, etc. Arthur From mmattys at rochester.rr.com Sun Feb 11 07:25:01 2007 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Sun, 11 Feb 2007 08:25:01 -0500 Subject: [AccessD] Abstract question References: <314848.60214.qm@web88202.mail.re2.yahoo.com> Message-ID: <000f01c74de0$0e9ef520$0202a8c0@default> Arthur, I think I have most of the code to do it {WithEvents}, but I have yet to add subforrms, which I'd bet would be required. I believe you'd need a template form for the CreateForm call so that you have an idea about how the form should look in the first place. There's a lot of code ... Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: To: "AccessD at databaseadvisors. com" Sent: Sunday, February 11, 2007 7:31 AM Subject: [AccessD] Abstract question > Does anyone have an idea how to generate an autoForm from any arbitrary > recordset? Ideally, such a class would have the smarts to realize that > certain fields ought to be checkboxes, others formatted short-date, etc. > > Arthur > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From shamil at users.mns.ru Sun Feb 11 08:06:49 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Sun, 11 Feb 2007 17:06:49 +0300 Subject: [AccessD] Abstract question In-Reply-To: <314848.60214.qm@web88202.mail.re2.yahoo.com> Message-ID: <000101c74de5$dfb99700$6401a8c0@nant> Hello Arthur, The task of "realizing that certain fields of any arbitrary recordset ought to be checkboxes, others formatted short-date, etc." can be solved by using recordset field's DisplayControl property, which defines what is a preferable way to display field's value: DisplayControl = 109 - textbox DisplayControl = 106 - checkbox DisplayControl = 110 - listbox DisplayControl = 111 - combobox Format property defines output format etc. You can find other useful properties to generate autoform - the following code can be used for that if you uncomment two code lines in Case Else code block: Public Sub TestDebugPrint(ByVal vstrRstName As String) Dim dbs As DAO.Database Dim rst As DAO.Recordset Dim fld As DAO.Field Dim fld1 As DAO.Field Dim prp As DAO.Property Set dbs = CurrentDb Set rst = dbs.OpenRecordset(vstrRstName) For Each fld In rst.Fields With fld Debug.Print .Name For Each prp In fld.Properties With prp Select Case .Name Case "DisplayControl", "Format": Debug.Print vbTab & prp.Name & " = " & _ propertyValue(prp) Case Else 'Debug.Print vbTab & prp.Name & " = " & _ ' propertyValue(prp) End Select End With Next prp End With Next fld End Sub Private Function propertyValue(ByRef rprp As DAO.Property) As Variant On Error GoTo HandleErr propertyValue = rprp.Value Exit Function HandleErr: propertyValue = "(N/A)" End Function -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Sunday, February 11, 2007 3:31 PM To: AccessD at databaseadvisors. com Subject: [AccessD] Abstract question Does anyone have an idea how to generate an autoForm from any arbitrary recordset? Ideally, such a class would have the smarts to realize that certain fields ought to be checkboxes, others formatted short-date, etc. Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mmattys at rochester.rr.com Sun Feb 11 10:14:00 2007 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Sun, 11 Feb 2007 11:14:00 -0500 Subject: [AccessD] Abstract question References: <000101c74de5$dfb99700$6401a8c0@nant> Message-ID: <007701c74df7$b8cc5c10$0202a8c0@default> Based upon Shamil Salakhetdinov's previous work using WithEvents in Access, I created a simple spreadsheet form ... 'Template Form Attached Application.LoadFromText acForm, "Spreadsheet", "C:\Spreadsheet.txt" '-----clsSpreadsheet----- Private WithEvents Form As Form Private mcolControls As New Collection Private mobjSelfRef As Object Private mblnTerminateCalled As Boolean Public Sub Init(ByRef rfrm As Access.Form) DeepsAttach rfrm End Sub Public Sub Terminate() Dim obj As Object If mblnTerminateCalled = False Then For Each obj In mcolControls On Error Resume Next obj.Terminate Err.Clear Next mblnTerminateCalled = True End If End Sub Private Sub DeepsAttach(ByRef rfrm As Access.Form) Set Form = rfrm Set mobjSelfRef = Me Form!lblHwnd.Caption = Form.hwnd Dim ctl As Access.Control Dim objTxt As clsSSTextBox For Each ctl In Form.Controls If TypeOf ctl Is Access.TextBox Then Set objTxt = New clsSSTextBox objTxt.Init ctl mcolControls.Add objTxt End If Next End Sub '-----clsSSTextbox----- Private WithEvents mtxt As Access.TextBox Private msngLastX As Single Private msngLastY As Single Private mlngBackColor As Long Private mstrLastCtlName As String Public Sub Init(ByRef rtxt As Access.TextBox) Set mtxt = rtxt mlngBackColor = mtxt.BackColor mtxt.OnEnter = "[Event Procedure]" mtxt.OnExit = "[Event Procedure]" mtxt.OnMouseMove = "[Event Procedure]" mtxt.OnGotFocus = "[Event Procedure]" mtxt.OnLostFocus = "[Event Procedure]" End Sub Private Sub mtxt_Enter() mlngBackColor = mtxt.BackColor mtxt.BackColor = 16776960 End Sub Private Sub mtxt_Exit(Cancel As Integer) mtxt.BackColor = mlngBackColor End Sub Private Sub mtxt_GotFocus() mtxt.BackColor = vbRed End Sub Private Sub mtxt_Lostfocus() mtxt_Exit 0 End Sub Private Sub mtxt_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single) On Error GoTo mtxt_MouseMove_Err ' If msngLastX <> X Or msngLastY <> Y Then ' If mstrLastCtlName <> mtxt.Name Then mtxt.SetFocus ' End If ' End If msngLastX = x msngLastY = y mstrLastCtlName = mtxt.Name mtxt_MouseMove_Err: End Sub Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: Spreadsheet.txt URL: From artful at rogers.com Sun Feb 11 10:13:43 2007 From: artful at rogers.com (artful at rogers.com) Date: Sun, 11 Feb 2007 08:13:43 -0800 (PST) Subject: [AccessD] Abstract question Message-ID: <552080.55091.qm@web88213.mail.re2.yahoo.com> I didn't say it would be easy, Michael. Where this is going, in case you need details, is this: UDAs (user-defined attributes). The concept is this: I have a Products table, containing the most obvious attributes, but the client is free to add attributes specific only to her situation. These would be stored in a UDA table, and keyed to the specific product, such that product A has 4 additional attributes while product B has 10. These attributes are stored as rows in table ProductAttributes and a query magically grabs all the relevant rows and turns them into a one-row result-set (I already know how to do this), and then I generate an autoForm that reflects the magically-generated row, so the user can edit it. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Michael R Mattys To: Access Developers discussion and problem solving Sent: Sunday, February 11, 2007 8:25:01 AM Subject: Re: [AccessD] Abstract question Arthur, I think I have most of the code to do it {WithEvents}, but I have yet to add subforrms, which I'd bet would be required. I believe you'd need a template form for the CreateForm call so that you have an idea about how the form should look in the first place. There's a lot of code ... Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com From mmattys at rochester.rr.com Sun Feb 11 10:19:20 2007 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Sun, 11 Feb 2007 11:19:20 -0500 Subject: [AccessD] Abstract question References: <314848.60214.qm@web88202.mail.re2.yahoo.com> Message-ID: <008901c74df8$642ce340$0202a8c0@default> I forgot this part ... '-----Module1----- Public Function SSInit(ByRef rfrm As Form) Dim obj As New clsSpreadSheet obj.Init rfrm End Function Public Sub AddSpreadSheets() Dim frm1 As New Form_Spreadsheet Dim frm2 As New Form_Spreadsheet Dim frm3 As New Form_Spreadsheet With frm1 .Visible = True DoCmd.MoveSize , 0 End With With frm2 .Visible = True DoCmd.MoveSize , 500 End With With frm3 .Visible = True DoCmd.MoveSize , 1000 End With End Sub Sub OpenSpreadSheets(NumberOfSS As Integer) Dim i As Integer, f As Form, h As Long, r As Integer, d As Integer, M As Integer r = 100 For i = 1 To NumberOfSS r = r + 500 Set f = New Form_Spreadsheet With f d = M + f.Section(0).Properties("Height") .Caption = .Name & i .Visible = True h = .hwnd DoCmd.MoveSize , d End With d = d + d Next End Sub Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com From artful at rogers.com Sun Feb 11 10:21:46 2007 From: artful at rogers.com (artful at rogers.com) Date: Sun, 11 Feb 2007 08:21:46 -0800 (PST) Subject: [AccessD] Abstract question Message-ID: <619028.6008.qm@web88203.mail.re2.yahoo.com> Thanks, Shamil. I will play with this. The point behind all this is a situation in which the customer can define N product attributes. So we have two tables: Products (which defines the basic attributes that all client products have in common, and the user-defined product attributes, which are actually recorded as rows but then assimilated into columns on a single row, from which is generated said AutoForm). Assuming that the UDAs (user-defined attributes) are defined completely (i.e. this column needs phone-formatting, that column needs short-date formatting, etc.), then I'm imagining a form with a pair of tabs, the first of which displays the columns that all products share, while the second displays the columns the user has defined. Thus the need for an AutoForm. Client A has defined 10 attributes, Client B has defined 15. I don't want to rewrite the UI for each new client. I want to generate the UDA form and plonk it on the Tab2 automagically. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Shamil Salakhetdinov To: Access Developers discussion and problem solving Sent: Sunday, February 11, 2007 9:06:49 AM Subject: Re: [AccessD] Abstract question Hello Arthur, The task of "realizing that certain fields of any arbitrary recordset ought to be checkboxes, others formatted short-date, etc." can be solved by using recordset field's DisplayControl property, which defines what is a preferable way to display field's value: DisplayControl = 109 - textbox DisplayControl = 106 - checkbox DisplayControl = 110 - listbox DisplayControl = 111 - combobox Format property defines output format etc. You can find other useful properties to generate autoform - the following code can be used for that if you uncomment two code lines in Case Else code block: Public Sub TestDebugPrint(ByVal vstrRstName As String) Dim dbs As DAO.Database Dim rst As DAO.Recordset Dim fld As DAO.Field Dim fld1 As DAO.Field Dim prp As DAO.Property Set dbs = CurrentDb Set rst = dbs.OpenRecordset(vstrRstName) For Each fld In rst.Fields With fld Debug.Print .Name For Each prp In fld.Properties With prp Select Case .Name Case "DisplayControl", "Format": Debug.Print vbTab & prp.Name & " = " & _ propertyValue(prp) Case Else 'Debug.Print vbTab & prp.Name & " = " & _ ' propertyValue(prp) End Select End With Next prp End With Next fld End Sub Private Function propertyValue(ByRef rprp As DAO.Property) As Variant On Error GoTo HandleErr propertyValue = rprp.Value Exit Function HandleErr: propertyValue = "(N/A)" End Function -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Sunday, February 11, 2007 3:31 PM To: AccessD at databaseadvisors. com Subject: [AccessD] Abstract question Does anyone have an idea how to generate an autoForm from any arbitrary recordset? Ideally, such a class would have the smarts to realize that certain fields ought to be checkboxes, others formatted short-date, etc. 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 From artful at rogers.com Sun Feb 11 10:30:16 2007 From: artful at rogers.com (artful at rogers.com) Date: Sun, 11 Feb 2007 08:30:16 -0800 (PST) Subject: [AccessD] Abstract question Message-ID: <923129.24515.qm@web88207.mail.re2.yahoo.com> Thanks Michael! I shall play around with this and see if it can work. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Michael R Mattys To: Access Developers discussion and problem solving Sent: Sunday, February 11, 2007 11:19:20 AM Subject: Re: [AccessD] Abstract question I forgot this part ... '-----Module1----- Public Function SSInit(ByRef rfrm As Form) Dim obj As New clsSpreadSheet obj.Init rfrm End Function Public Sub AddSpreadSheets() Dim frm1 As New Form_Spreadsheet Dim frm2 As New Form_Spreadsheet Dim frm3 As New Form_Spreadsheet With frm1 .Visible = True DoCmd.MoveSize , 0 End With With frm2 .Visible = True DoCmd.MoveSize , 500 End With With frm3 .Visible = True DoCmd.MoveSize , 1000 End With End Sub Sub OpenSpreadSheets(NumberOfSS As Integer) Dim i As Integer, f As Form, h As Long, r As Integer, d As Integer, M As Integer r = 100 For i = 1 To NumberOfSS r = r + 500 Set f = New Form_Spreadsheet With f d = M + f.Section(0).Properties("Height") .Caption = .Name & i .Visible = True h = .hwnd DoCmd.MoveSize , d End With d = d + d Next End Sub Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mmattys at rochester.rr.com Sun Feb 11 10:41:41 2007 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Sun, 11 Feb 2007 11:41:41 -0500 Subject: [AccessD] Abstract question References: <923129.24515.qm@web88207.mail.re2.yahoo.com> Message-ID: <00ac01c74dfb$830aed90$0202a8c0@default> Arthur, Your welcome. It isn't really anything. If it doesn't work or you'd like some assistance on the rest of your project, you only need to say so. Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: To: "Access Developers discussion and problem solving" Sent: Sunday, February 11, 2007 11:30 AM Subject: Re: [AccessD] Abstract question > Thanks Michael! I shall play around with this and see if it can work. > > Arthur Fuller > Technical Writer, Data Modeler, SQL Sensei > Artful Databases Organization > www.artfulsoftware.com > > > > > ----- Original Message ---- > From: Michael R Mattys > To: Access Developers discussion and problem solving > > Sent: Sunday, February 11, 2007 11:19:20 AM > Subject: Re: [AccessD] Abstract question > > > I forgot this part ... From shamil at users.mns.ru Sun Feb 11 11:30:48 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Sun, 11 Feb 2007 20:30:48 +0300 Subject: [AccessD] Abstract question In-Reply-To: <619028.6008.qm@web88203.mail.re2.yahoo.com> Message-ID: <000801c74e02$5e814620$6401a8c0@nant> <<< which are actually recorded as rows but then assimilated into columns on a single row, from which is generated said AutoForm). >>> Hi Arthur, I assume that this is a temp table, into which the data are assimilated - correct? If that's a correct assumption then you can create a (temp) query built on that temp table, set this query fields's display and format properties (they mentioned in the code I posted) and "plonk this query on the Tab2 automagically". Am I missing something? -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Sunday, February 11, 2007 7:22 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Abstract question Thanks, Shamil. I will play with this. The point behind all this is a situation in which the customer can define N product attributes. So we have two tables: Products (which defines the basic attributes that all client products have in common, and the user-defined product attributes, which are actually recorded as rows but then assimilated into columns on a single row, from which is generated said AutoForm). Assuming that the UDAs (user-defined attributes) are defined completely (i.e. this column needs phone-formatting, that column needs short-date formatting, etc.), then I'm imagining a form with a pair of tabs, the first of which displays the columns that all products share, while the second displays the columns the user has defined. Thus the need for an AutoForm. Client A has defined 10 attributes, Client B has defined 15. I don't want to rewrite the UI for each new client. I want to generate the UDA form and plonk it on the Tab2 automagically. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Shamil Salakhetdinov To: Access Developers discussion and problem solving Sent: Sunday, February 11, 2007 9:06:49 AM Subject: Re: [AccessD] Abstract question Hello Arthur, The task of "realizing that certain fields of any arbitrary recordset ought to be checkboxes, others formatted short-date, etc." can be solved by using recordset field's DisplayControl property, which defines what is a preferable way to display field's value: DisplayControl = 109 - textbox DisplayControl = 106 - checkbox DisplayControl = 110 - listbox DisplayControl = 111 - combobox Format property defines output format etc. You can find other useful properties to generate autoform - the following code can be used for that if you uncomment two code lines in Case Else code block: Public Sub TestDebugPrint(ByVal vstrRstName As String) Dim dbs As DAO.Database Dim rst As DAO.Recordset Dim fld As DAO.Field Dim fld1 As DAO.Field Dim prp As DAO.Property Set dbs = CurrentDb Set rst = dbs.OpenRecordset(vstrRstName) For Each fld In rst.Fields With fld Debug.Print .Name For Each prp In fld.Properties With prp Select Case .Name Case "DisplayControl", "Format": Debug.Print vbTab & prp.Name & " = " & _ propertyValue(prp) Case Else 'Debug.Print vbTab & prp.Name & " = " & _ ' propertyValue(prp) End Select End With Next prp End With Next fld End Sub Private Function propertyValue(ByRef rprp As DAO.Property) As Variant On Error GoTo HandleErr propertyValue = rprp.Value Exit Function HandleErr: propertyValue = "(N/A)" End Function -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Sunday, February 11, 2007 3:31 PM To: AccessD at databaseadvisors. com Subject: [AccessD] Abstract question Does anyone have an idea how to generate an autoForm from any arbitrary recordset? Ideally, such a class would have the smarts to realize that certain fields ought to be checkboxes, others formatted short-date, etc. 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mmattys at rochester.rr.com Sun Feb 11 15:19:32 2007 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Sun, 11 Feb 2007 16:19:32 -0500 Subject: [AccessD] Abstract question References: <923129.24515.qm@web88207.mail.re2.yahoo.com> Message-ID: <012e01c74e22$5403d3a0$0202a8c0@default> Hi Arthur, Thanks for not complaining ... here's the rest. Sub TestFC() 'NumRows, NumCols, and Modifier are always same FormCreator 7, 7, 7, "Seven" End Sub Sub FormCreator(NumRows As Integer, NumCols As Integer, Moderator, MyForm As String) 'Michael R Mattys 2000 Dim frm As Form Dim ctlTxt As Control, ctlLabel As Control Dim intColumn As Integer, intRow As Integer, i As Integer, J As Integer Dim intL As String, intT As String, intW As String, intH As String intL = 0 intT = 30 intW = 940 intH = 275 intColumn = 1 intRow = 1 Set frm = CreateForm(, "frmSpreadSheet") With frm .tag = "SS" .Width = 6.875 * 1440 .AutoCenter = False .BorderStyle = 1 .DefaultView = 0 .DividingLines = False .RecordSelectors = False .NavigationButtons = False .ScrollBars = 0 .PopUp = True .OnOpen = "=SSInit([Form])" .HasModule = True Set ctlLabel = CreateControl(frm.Name, acLabel, acDetail, , , 10, 10, 10, 10) With ctlLabel .Properties("Caption") = "HWND" .Properties("Name") = "lblHwnd" .Properties("Visible") = False End With For i = 1 To NumRows For J = 1 To NumCols Set ctlTxt = CreateControl(frm.Name, acTextBox, acDetail, , , intL, intT, intW, intH) With ctlTxt .Properties("Name") = "Col" & intColumn & "Row" & intRow .Properties("BackColor") = "13421619" End With intL = intL + 1000 intColumn = intColumn + 1 Next J If intColumn Mod (Moderator + 1) = 0 Then intColumn = 1 intL = 0 intT = intT + 300 intW = 940 intH = 275 intRow = intRow + 1 End If Next i .Width = CLng(intW * NumCols) .Section(0).Height = CLng(intH * NumRows) End With Dim FN As String FN = frm.Name DoCmd.Save acForm, FN DoCmd.Close acForm, FN DoCmd.Rename MyForm, acForm, FN CurrentDb.Containers("Forms").Documents.Refresh DoCmd.OpenForm MyForm, acNormal End Sub Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: To: "Access Developers discussion and problem solving" Sent: Sunday, February 11, 2007 11:30 AM Subject: Re: [AccessD] Abstract question > Thanks Michael! I shall play around with this and see if it can work. > > Arthur Fuller > Technical Writer, Data Modeler, SQL Sensei > Artful Databases Organization > www.artfulsoftware.com > > > > > ----- Original Message ---- > From: Michael R Mattys > To: Access Developers discussion and problem solving > > Sent: Sunday, February 11, 2007 11:19:20 AM > Subject: Re: [AccessD] Abstract question > > > I forgot this part ... > > '-----Module1----- > Public Function SSInit(ByRef rfrm As Form) > Dim obj As New clsSpreadSheet > obj.Init rfrm > End Function > > Public Sub AddSpreadSheets() > Dim frm1 As New Form_Spreadsheet > Dim frm2 As New Form_Spreadsheet > Dim frm3 As New Form_Spreadsheet > With frm1 > .Visible = True > DoCmd.MoveSize , 0 > End With > With frm2 > .Visible = True > DoCmd.MoveSize , 500 > End With > With frm3 > .Visible = True > DoCmd.MoveSize , 1000 > End With > End Sub > > Sub OpenSpreadSheets(NumberOfSS As Integer) > Dim i As Integer, f As Form, h As Long, r As Integer, d As Integer, M > As > Integer > r = 100 > For i = 1 To NumberOfSS > r = r + 500 > Set f = New Form_Spreadsheet > With f > d = M + f.Section(0).Properties("Height") > .Caption = .Name & i > .Visible = True > h = .hwnd > DoCmd.MoveSize , d > End With > d = d + d > Next > End Sub > > Michael R. Mattys > MapPoint & Access Dev > www.mattysconsulting.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From markamatte at hotmail.com Mon Feb 12 10:47:53 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 12 Feb 2007 16:47:53 +0000 Subject: [AccessD] A97 Linked Tables In-Reply-To: <34C8A2AB1EF3564CB0D64DB6AFFDD5C201201047@xlivmbx35.aig.com> Message-ID: Lambert, Thanks for the suggestion. I can map to this folder thru net use...and according to the Administrator I have full rights...but if I try your suggestion I get the error that I do not have permission to view the folder? Any ideas? Thanks, Mark A. Matte >From: "Heenan, Lambert" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] A97 Linked Tables >Date: Fri, 9 Feb 2007 15:09:50 -0500 > >No "mapping" is required. > >In Access when you browse to where the back end is to link to its tables, >instead of selecting the drive letter and browsing to the folder with the >MDB file, type > \\SERVERNAME\SharedFolderName >in the file name box of the file select dialog box. Hit enter and then you >will see the folders on the share and you can browse to the backend. The >paths stored within the front end will then be UNC paths instead of mapped >drive letter paths. > >HTH > >Lambert > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: Friday, February 09, 2007 3:00 PM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] A97 Linked Tables > > >Thanks Jim, > >I was using Net Use to link to the other machine...I'm on NT (SP4 I >think)...How would I map in this format? > >Thanks, > >Mark > > > > >From: Jim Lawrence > >Reply-To: Access Developers discussion and problem > >solving > >To: "'Access Developers discussion and problem > >solving'" > >Subject: Re: [AccessD] A97 Linked Tables > >Date: Fri, 09 Feb 2007 11:14:38 -0800 > > > >Hi Mark: > > > >You can map the BE in the format i.e: \\server1\Access97DB then you > >will > >not > >have to use drive letter mapping. > > > >Jim > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > >Sent: Friday, February 09, 2007 11:01 AM > >To: accessd at databaseadvisors.com > >Subject: [AccessD] A97 Linked Tables > > > >Hello All, > > > >In A97 I need to link the FE to the BE in a shared folder on the > >network. > >I > > > >have the folder mapped as a drive on my machine...the users will not. > > > >Do I need to map the drive on each of their machines...or... > > > >IS there another method of linking these tables? > > > >Thanks, > > > >Mark A. Matte > > > >_________________________________________________________________ > >Valentines Day -- Shop for gifts that spell L-O-V-E at MSN Shopping > >http://shopping.msn.com/content/shp/?ctId=8323,ptnrid=37,ptnrdata=24095 > >&tcod > >e=wlmtagline > > > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > >_________________________________________________________________ >FREE online classifieds from Windows Live Expo - buy and sell with people >you know >http://clk.atdmt.com/MSN/go/msnnkwex0010000001msn/direct/01/?href=http://exp >o.live.com?s_cid=Hotmail_tagline_12/06 > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ >From predictions to trailers, check out the MSN Entertainment Guide to the Academy Awards? http://movies.msn.com/movies/oscars2007/?icid=ncoscartagline1 From Lambert.Heenan at AIG.com Mon Feb 12 12:31:02 2007 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Mon, 12 Feb 2007 13:31:02 -0500 Subject: [AccessD] A97 Linked Tables Message-ID: <34C8A2AB1EF3564CB0D64DB6AFFDD5C20120105B@xlivmbx35.aig.com> Matt, It may be a local security policy imposed on your computer. For example on my machine I can fire up Explorer (Windows, not Internet) and type a UNC path into the address bar and then browse the folders on the network share, but other users with more restricted rights are not allowed to do that - they get an Access Denied message when they try, and can only browse with mapped drive letters. However, access itself is perfectly happy to use tables that are linked via UNC paths, even for users who cannot browse with UNC path in explorer. So the quick solution for you may be to have the browse restriction removed from your machine. Failing that, you may have to do the table linking using code. As I mentioned in an earlier post, I have a table in the front ends of the application I support which lists all the tables that the applications link to. The table has paths to both the production and development versions of the tables. When I want to release a new version of an application, one of the first steps is to relink the tables, and this is all done with code, using the "Linked Tables table" to determine all the paths. In other words, I never use the Access Linked Tables Manager dialog box. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Monday, February 12, 2007 11:48 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] A97 Linked Tables Lambert, Thanks for the suggestion. I can map to this folder thru net use...and according to the Administrator I have full rights...but if I try your suggestion I get the error that I do not have permission to view the folder? Any ideas? Thanks, Mark A. Matte >From: "Heenan, Lambert" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] A97 Linked Tables >Date: Fri, 9 Feb 2007 15:09:50 -0500 > >No "mapping" is required. > >In Access when you browse to where the back end is to link to its >tables, instead of selecting the drive letter and browsing to the >folder with the MDB file, type > \\SERVERNAME\SharedFolderName >in the file name box of the file select dialog box. Hit enter and then >you will see the folders on the share and you can browse to the >backend. The paths stored within the front end will then be UNC paths >instead of mapped drive letter paths. > >HTH > >Lambert > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: Friday, February 09, 2007 3:00 PM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] A97 Linked Tables > > >Thanks Jim, > >I was using Net Use to link to the other machine...I'm on NT (SP4 I >think)...How would I map in this format? > >Thanks, > >Mark > > > > >From: Jim Lawrence > >Reply-To: Access Developers discussion and problem > >solving > >To: "'Access Developers discussion and problem > >solving'" > >Subject: Re: [AccessD] A97 Linked Tables > >Date: Fri, 09 Feb 2007 11:14:38 -0800 > > > >Hi Mark: > > > >You can map the BE in the format i.e: \\server1\Access97DB then you > >will not > >have to use drive letter mapping. > > > >Jim > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A > >Matte > >Sent: Friday, February 09, 2007 11:01 AM > >To: accessd at databaseadvisors.com > >Subject: [AccessD] A97 Linked Tables > > > >Hello All, > > > >In A97 I need to link the FE to the BE in a shared folder on the > >network. I > > > >have the folder mapped as a drive on my machine...the users will not. > > > >Do I need to map the drive on each of their machines...or... > > > >IS there another method of linking these tables? > > > >Thanks, > > > >Mark A. Matte > > > >_________________________________________________________________ > >Valentines Day -- Shop for gifts that spell L-O-V-E at MSN Shopping > >http://shopping.msn.com/content/shp/?ctId=8323,ptnrid=37,ptnrdata=240 > >95 > >&tcod > >e=wlmtagline > > > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > >_________________________________________________________________ >FREE online classifieds from Windows Live Expo - buy and sell with >people you know >http://clk.atdmt.com/MSN/go/msnnkwex0010000001msn/direct/01/?href=http: >//exp >o.live.com?s_cid=Hotmail_tagline_12/06 > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ >From predictions to trailers, check out the MSN Entertainment Guide to >the Academy Awards(r) http://movies.msn.com/movies/oscars2007/?icid=ncoscartagline1 From kost36 at otenet.gr Mon Feb 12 13:43:08 2007 From: kost36 at otenet.gr (Kostas Konstantinidis) Date: Mon, 12 Feb 2007 21:43:08 +0200 Subject: [AccessD] How to transfer text.. References: <34C8A2AB1EF3564CB0D64DB6AFFDD5C20120105B@xlivmbx35.aig.com> Message-ID: <005301c74ede$0aa21890$6501a8c0@kost36> hi group, On a double click on a form I use the follown: Private Sub AM_DblClick(Cancel As Integer) Dim poustia As String Dim stdocname As String stdocname = "MT_basic_char" If IsNull(num_mitroou) Then DoCmd.OpenForm stdocname DoCmd.GoToRecord acDataForm, stdocname, acNewRec else poustia = Me!num_mitroou DoCmd.OpenForm stdocname, , , "num_mitroou= " & poustia End If End Sub what I want to do is after the new record update and closing the stdocname the text of AM's field to be tranfered to the AM field of the opened form Many thank's /kostas From mmattys at rochester.rr.com Mon Feb 12 14:15:07 2007 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Mon, 12 Feb 2007 15:15:07 -0500 Subject: [AccessD] How to transfer text.. References: <34C8A2AB1EF3564CB0D64DB6AFFDD5C20120105B@xlivmbx35.aig.com> <005301c74ede$0aa21890$6501a8c0@kost36> Message-ID: <009c01c74ee2$7e5b3330$0202a8c0@default> Hi Kostas, The next line, then, would be Forms(stdocname)!AM = Me!AM Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "Kostas Konstantinidis" To: "Access Developers discussion and problem solving" Sent: Monday, February 12, 2007 2:43 PM Subject: [AccessD] How to transfer text.. > hi group, > On a double click on a form I use the follown: > > Private Sub AM_DblClick(Cancel As Integer) > Dim poustia As String > Dim stdocname As String > > stdocname = "MT_basic_char" > If IsNull(num_mitroou) Then > DoCmd.OpenForm stdocname > DoCmd.GoToRecord acDataForm, stdocname, acNewRec > else > poustia = Me!num_mitroou > DoCmd.OpenForm stdocname, , , "num_mitroou= " & poustia > End If > End Sub > > > what I want to do is after the new record update and closing the > stdocname > the text of AM's field to be tranfered to the AM field of the opened form > > Many thank's > /kostas > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From mmattys at rochester.rr.com Mon Feb 12 14:29:02 2007 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Mon, 12 Feb 2007 15:29:02 -0500 Subject: [AccessD] How to transfer text.. References: <34C8A2AB1EF3564CB0D64DB6AFFDD5C20120105B@xlivmbx35.aig.com> <005301c74ede$0aa21890$6501a8c0@kost36> <009c01c74ee2$7e5b3330$0202a8c0@default> Message-ID: <00d401c74ee4$703d8b20$0202a8c0@default> Oops, backwards isn't it? In that case, why not declare a global variable in a module that you can make equal to Forms("MT_basic_char")!AM before you close it and then gather that to the open form ... Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "Michael R Mattys" To: "Access Developers discussion and problem solving" Sent: Monday, February 12, 2007 3:15 PM Subject: Re: [AccessD] How to transfer text.. > Hi Kostas, > > The next line, then, would be > Forms(stdocname)!AM = Me!AM > > Michael R. Mattys > MapPoint & Access Dev > www.mattysconsulting.com > > ----- Original Message ----- > From: "Kostas Konstantinidis" > To: "Access Developers discussion and problem solving" > > Sent: Monday, February 12, 2007 2:43 PM > Subject: [AccessD] How to transfer text.. > > >> hi group, >> On a double click on a form I use the follown: >> >> Private Sub AM_DblClick(Cancel As Integer) >> Dim poustia As String >> Dim stdocname As String >> >> stdocname = "MT_basic_char" >> If IsNull(num_mitroou) Then >> DoCmd.OpenForm stdocname >> DoCmd.GoToRecord acDataForm, stdocname, acNewRec >> else >> poustia = Me!num_mitroou >> DoCmd.OpenForm stdocname, , , "num_mitroou= " & poustia >> End If >> End Sub >> >> >> what I want to do is after the new record update and closing the >> stdocname >> the text of AM's field to be tranfered to the AM field of the opened >> form >> >> Many thank's >> /kostas >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> 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 Feb 12 14:35:51 2007 From: pedro at plex.nl (Pedro Janssen) Date: Mon, 12 Feb 2007 21:35:51 +0100 Subject: [AccessD] event procedure code Message-ID: <001501c74ee5$6338e9a0$400aa8c0@qmotionfaa3ad9> Hello Group, in a form that displays pictures that are stored outside the database (in a certain directory), i have a textbox, in which the name of the picturefile is placed. Is it possible to ad code to a button, so that the source file (name of the picturefile) in Windows explorer is presented highlighted. About the same function as the "search target" button in the preferences of a shortcut. Pedro Janssen From Lambert.Heenan at AIG.com Mon Feb 12 14:40:08 2007 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Mon, 12 Feb 2007 14:40:08 -0600 Subject: [AccessD] How to transfer text.. Message-ID: <34C8A2AB1EF3564CB0D64DB6AFFDD5C201201067@xlivmbx35.aig.com> You could to this... Private Sub AM_DblClick(Cancel As Integer) Dim poustia As String Dim stdocname As String stdocname = "MT_basic_char" If IsNull(num_mitroou) Then DoCmd.OpenForm stdocname,,,,,acDialog DoCmd.GoToRecord acDataForm, stdocname, acNewRec Me!AM = Forms(stdocname)!AM DoCmd.Close acForm, stdocname else poustia = Me!num_mitroou DoCmd.OpenForm stdocname, , , "num_mitroou= " & poustia End If End Sub The trick to this is that you open stdocname in dialog mode. That causes the calling code to wait until either the opened form closes, or it is made invisible. So if the MT_basic_char form's "Close" button is modified from DoCmd.Close acFrom, Me.Name To Me.Visible = False Then when the user hits the close button the form will be hidden, the calling code will resume execution, and it can pick up the value entered with the line "Me!AM = Forms(stdocname)!AM", and then you code continues by actually closing the called form. HTH Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas Konstantinidis Sent: Monday, February 12, 2007 2:43 PM To: Access Developers discussion and problem solving Subject: [AccessD] How to transfer text.. hi group, On a double click on a form I use the follown: Private Sub AM_DblClick(Cancel As Integer) Dim poustia As String Dim stdocname As String stdocname = "MT_basic_char" If IsNull(num_mitroou) Then DoCmd.OpenForm stdocname DoCmd.GoToRecord acDataForm, stdocname, acNewRec else poustia = Me!num_mitroou DoCmd.OpenForm stdocname, , , "num_mitroou= " & poustia End If End Sub what I want to do is after the new record update and closing the stdocname the text of AM's field to be tranfered to the AM field of the opened form Many thank's /kostas -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ebairead at gmail.com Mon Feb 12 14:49:50 2007 From: ebairead at gmail.com (=?ISO-8859-1?Q?Eoin_C._Bair=E9ad?=) Date: Mon, 12 Feb 2007 20:49:50 +0000 Subject: [AccessD] Paradigm for Keywords in a database Message-ID: <3d2a5ccc0702121249u6a180552uac0211e3902dabaa@mail.gmail.com> Hi I have a database where each record has a number of Keywords assocciated with it. I can't for the life of me see how to construct either the table or a query to find, say, all records where the keywords "Access" Developers" and "brilliant" can be found. Any ideas ???? Eoin -- -- Eoin C. Bair?ad Dublin, Ireland ?th Cliath, ?ire From jwcolby at colbyconsulting.com Mon Feb 12 15:00:41 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Mon, 12 Feb 2007 16:00:41 -0500 Subject: [AccessD] Paradigm for Keywords in a database In-Reply-To: <3d2a5ccc0702121249u6a180552uac0211e3902dabaa@mail.gmail.com> Message-ID: <003901c74ee8$db9eb8e0$657aa8c0@m6805> LOL, boy is THAT tempting! John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eoin C. Bair?ad Sent: Monday, February 12, 2007 3:50 PM To: Access Developers discussion and problem solving Subject: [AccessD] Paradigm for Keywords in a database Hi I have a database where each record has a number of Keywords assocciated with it. I can't for the life of me see how to construct either the table or a query to find, say, all records where the keywords "Access" Developers" and "brilliant" can be found. Any ideas ???? Eoin -- -- Eoin C. Bair?ad Dublin, Ireland ?th Cliath, ?ire -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mmattys at rochester.rr.com Mon Feb 12 15:08:34 2007 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Mon, 12 Feb 2007 16:08:34 -0500 Subject: [AccessD] Paradigm for Keywords in a database References: <3d2a5ccc0702121249u6a180552uac0211e3902dabaa@mail.gmail.com> Message-ID: <00ea01c74ee9$f89661e0$0202a8c0@default> What day is it? Oh, Monday. Thought it was Friday Humor for a minute. :) Eoin, How are the keywords stored? Are the comma seperated values in their own column? Could you use instr() for the criteria in the query grid? Would it not be better to associate each keyword with a number in a keywords-table and then look it up? Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "Eoin C. Bair?ad" To: "Access Developers discussion and problem solving" Sent: Monday, February 12, 2007 3:49 PM Subject: [AccessD] Paradigm for Keywords in a database Hi I have a database where each record has a number of Keywords assocciated with it. I can't for the life of me see how to construct either the table or a query to find, say, all records where the keywords "Access" Developers" and "brilliant" can be found. Any ideas ???? Eoin -- -- Eoin C. Bair?ad Dublin, Ireland ?th Cliath, ?ire -- 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 Feb 12 15:06:27 2007 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Mon, 12 Feb 2007 15:06:27 -0600 Subject: [AccessD] Paradigm for Keywords in a database Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DE2A5@corp-es01.fleetpride.com> How are the keywords associated to the record? A separate table with a key and a field with the keyword? Multiple fields on the record with one keyword per field? Or one field with a string of keywords? Jim Hale -----Original Message----- From: Eoin C. Bair?ad [mailto:ebairead at gmail.com] Sent: Monday, February 12, 2007 2:50 PM To: Access Developers discussion and problem solving Subject: [AccessD] Paradigm for Keywords in a database Hi I have a database where each record has a number of Keywords assocciated with it. I can't for the life of me see how to construct either the table or a query to find, say, all records where the keywords "Access" Developers" and "brilliant" can be found. Any ideas ???? Eoin -- -- Eoin C. Bair?ad Dublin, Ireland ?th Cliath, ?ire -- 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 rockysmolin at bchacc.com Mon Feb 12 15:21:22 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Mon, 12 Feb 2007 13:21:22 -0800 Subject: [AccessD] Data Not Displaying in Text and Combo Boxes Message-ID: <012a01c74eeb$becf82a0$0201a8c0@HAL9005> Dear List: I call form from another form and in the open event of the called form, if the calling form is open (the called form could also be opened from the switchboard as well), I insert the values into the called form from the calling form: If CurrentProject.AllForms("frmWorkDetail").IsLoaded Then Me.cboEmployer = Forms!frmWorkDetail!cboEmployer.Column(0) Me.txtEmployer = Forms!frmWorkDetail!txtEmployer Me.cboMonth = Forms!frmWorkDetail!cboWorkMonth Me.cboYear.Value = Forms!frmWorkDetail!cboWorkYear Me.cboClass = Forms!frmWorkDetail!cboClass.Column(0) Me.cboEntryMonth = Forms!frmWorkDetail!cboEntryMonth Me.cboEntryYear = Forms!frmWorkDetail!cboEntryYear Me.txtEmployerID = Forms!frmWorkDetail!txtEmployerID End If then base the form's record source on those parameters: Me.RecordSource = "Select * FROM tblAdjustment WHERE " _ & "fldEmployerID = " & Val(Me.txtEmployerID) & " AND fldClassID = " _ & Me.cboClass.Column(0) & " AND fldAdjustmentMonth = " & Me.cboMonth.Column(0) _ & " AND fldAdjustmentYear = " & Me.cboYear & " AND fldAdjustmentEntryMonth = " _ & Me.cboEntryMonth.Column(0) & " AND fldAdjustmentEntryYear = " & Me.cboEntryYear It's working fine except for one thing - the passed values are not displayed in the text and combo boxes. But they are there because the modified record source gets the right records. And I even displayed Me.RecordSource in a MsgBox and it was correct. Here's the weird part (meaning SOP for Access) - if I alt-Tab away from the form then alt-Tab back, the values appear in the text and combo boxes. I tried adding a repaint before the End If but no soap. Any ideas? MTIA, Rocky From jwcolby at colbyconsulting.com Mon Feb 12 15:35:32 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Mon, 12 Feb 2007 16:35:32 -0500 Subject: [AccessD] Data Not Displaying in Text and Combo Boxes In-Reply-To: <012a01c74eeb$becf82a0$0201a8c0@HAL9005> Message-ID: <003a01c74eed$ba450690$657aa8c0@m6805> Let me get this straight, the opening form is bound, the controls are bound, but when the form finishes opening it doesn't display the right data? Is it possible that the opening form is pulling a recordset with more than one record, and the values "pulled in" are not for the record currently being displayed? Why would you set the values in bound controls if the form is going to display the record anyway? Just open the form, tell it to display the specific record being displayed back on the other form, and be done with it. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, February 12, 2007 4:21 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Data Not Displaying in Text and Combo Boxes Dear List: I call form from another form and in the open event of the called form, if the calling form is open (the called form could also be opened from the switchboard as well), I insert the values into the called form from the calling form: If CurrentProject.AllForms("frmWorkDetail").IsLoaded Then Me.cboEmployer = Forms!frmWorkDetail!cboEmployer.Column(0) Me.txtEmployer = Forms!frmWorkDetail!txtEmployer Me.cboMonth = Forms!frmWorkDetail!cboWorkMonth Me.cboYear.Value = Forms!frmWorkDetail!cboWorkYear Me.cboClass = Forms!frmWorkDetail!cboClass.Column(0) Me.cboEntryMonth = Forms!frmWorkDetail!cboEntryMonth Me.cboEntryYear = Forms!frmWorkDetail!cboEntryYear Me.txtEmployerID = Forms!frmWorkDetail!txtEmployerID End If then base the form's record source on those parameters: Me.RecordSource = "Select * FROM tblAdjustment WHERE " _ & "fldEmployerID = " & Val(Me.txtEmployerID) & " AND fldClassID = " _ & Me.cboClass.Column(0) & " AND fldAdjustmentMonth = " & Me.cboMonth.Column(0) _ & " AND fldAdjustmentYear = " & Me.cboYear & " AND fldAdjustmentEntryMonth = " _ & Me.cboEntryMonth.Column(0) & " AND fldAdjustmentEntryYear = " & Me.cboEntryYear It's working fine except for one thing - the passed values are not displayed in the text and combo boxes. But they are there because the modified record source gets the right records. And I even displayed Me.RecordSource in a MsgBox and it was correct. Here's the weird part (meaning SOP for Access) - if I alt-Tab away from the form then alt-Tab back, the values appear in the text and combo boxes. I tried adding a repaint before the End If but no soap. Any ideas? MTIA, Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Mon Feb 12 16:38:21 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Mon, 12 Feb 2007 14:38:21 -0800 Subject: [AccessD] Data Not Displaying in Text and Combo Boxes In-Reply-To: <003a01c74eed$ba450690$657aa8c0@m6805> Message-ID: <014f01c74ef6$80060cf0$0201a8c0@HAL9005> Not quite. The calling form is bound but the values in the calling form that are being passed are unbound. They are in the header and are used to filter data on that form as well as to create records in the table that IS bound to the calling form. In the called form the user enters and edits dollar adjustments (to payroll numbers). The called form can either be opened from a command button on the calling form, or from the main menu (switchboard). When the user opens the adjustments from from the main menu, they select the parameters they want. But when the adjustment form opens from the calling form, those six parameters are already selected in the calling form. So instead of having them re-enter those six parameters, they want them to be passed to the called form so everything is set up to enter the adjustments. So the bit of code down there starting with If CurrentProject.AllForms("frmWorkDetail").IsLoaded Then does that. And it works. The only problem is that the values are not displayed in the unbound boxes on the called form (you can think of these unbound boxes on both forms as filters, I guess). If I do alt-Tab to another open window, and the alt-Tab back, the value are now displayed. The values are there because I monitored the creation of the called form's Record Source based on those values, drawn from the unbound text boxes (and combo boxes) and the values are there. Just not showing in the form. I'm doing this work, BTW, in the Open event of the called form. Maybe I should move it to the Load event? Hey! I just tried that. Moved the code from the Open event to the Load event and it worked! Thanks for kick starting the old branium. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Monday, February 12, 2007 1:36 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Data Not Displaying in Text and Combo Boxes Let me get this straight, the opening form is bound, the controls are bound, but when the form finishes opening it doesn't display the right data? Is it possible that the opening form is pulling a recordset with more than one record, and the values "pulled in" are not for the record currently being displayed? Why would you set the values in bound controls if the form is going to display the record anyway? Just open the form, tell it to display the specific record being displayed back on the other form, and be done with it. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, February 12, 2007 4:21 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Data Not Displaying in Text and Combo Boxes Dear List: I call form from another form and in the open event of the called form, if the calling form is open (the called form could also be opened from the switchboard as well), I insert the values into the called form from the calling form: If CurrentProject.AllForms("frmWorkDetail").IsLoaded Then Me.cboEmployer = Forms!frmWorkDetail!cboEmployer.Column(0) Me.txtEmployer = Forms!frmWorkDetail!txtEmployer Me.cboMonth = Forms!frmWorkDetail!cboWorkMonth Me.cboYear.Value = Forms!frmWorkDetail!cboWorkYear Me.cboClass = Forms!frmWorkDetail!cboClass.Column(0) Me.cboEntryMonth = Forms!frmWorkDetail!cboEntryMonth Me.cboEntryYear = Forms!frmWorkDetail!cboEntryYear Me.txtEmployerID = Forms!frmWorkDetail!txtEmployerID End If then base the form's record source on those parameters: Me.RecordSource = "Select * FROM tblAdjustment WHERE " _ & "fldEmployerID = " & Val(Me.txtEmployerID) & " AND fldClassID = " _ & Me.cboClass.Column(0) & " AND fldAdjustmentMonth = " & Me.cboMonth.Column(0) _ & " AND fldAdjustmentYear = " & Me.cboYear & " AND fldAdjustmentEntryMonth = " _ & Me.cboEntryMonth.Column(0) & " AND fldAdjustmentEntryYear = " & Me.cboEntryYear It's working fine except for one thing - the passed values are not displayed in the text and combo boxes. But they are there because the modified record source gets the right records. And I even displayed Me.RecordSource in a MsgBox and it was correct. Here's the weird part (meaning SOP for Access) - if I alt-Tab away from the form then alt-Tab back, the values appear in the text and combo boxes. I tried adding a repaint before the End If but no soap. Any ideas? MTIA, Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.17.36/681 - Release Date: 2/11/2007 6:50 PM From martyconnelly at shaw.ca Mon Feb 12 17:33:44 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 12 Feb 2007 15:33:44 -0800 Subject: [AccessD] Paradigm for Keywords in a database In-Reply-To: <3d2a5ccc0702121249u6a180552uac0211e3902dabaa@mail.gmail.com> References: <3d2a5ccc0702121249u6a180552uac0211e3902dabaa@mail.gmail.com> Message-ID: <45D0F958.306@shaw.ca> How about? strSQL = "SELECT * FROM tbl1 WHERE (('tbl1!Title LIKE *' & Chr(34) & search1 & Chr(34) & '*') OR ('tbl1!Keyword LIKE *' & Chr(34) & search1 & Chr(34) & '*')); Eoin C. Bair?ad wrote: >Hi > >I have a database where each record has a number of Keywords assocciated >with it. I can't for the life of me see how to construct either the table >or a query to find, say, all records where the keywords "Access" Developers" >and "brilliant" can be found. > >Any ideas ???? > >Eoin > > > -- Marty Connelly Victoria, B.C. Canada From artful at rogers.com Mon Feb 12 17:47:19 2007 From: artful at rogers.com (artful at rogers.com) Date: Mon, 12 Feb 2007 15:47:19 -0800 (PST) Subject: [AccessD] Paradigm for Keywords in a database Message-ID: <445852.57793.qm@web88209.mail.re2.yahoo.com> Let us assume two tables as Michael said, such that table A has Title "ABCDE" and the keywords table has A, B, C, D and E as associated (child) rows. In this scenario, given criterion "A or C" then your query becomes" SELECT Distinct * From ChildTable WHERE Criterion IN('A', 'C'). (Not that IN() is by any means the optimal way to go, but it suffices in this case to demonstrate the How. Arthur ----- Original Message ---- From: Michael R Mattys To: Access Developers discussion and problem solving Sent: Monday, February 12, 2007 4:08:34 PM Subject: Re: [AccessD] Paradigm for Keywords in a database What day is it? Oh, Monday. Thought it was Friday Humor for a minute. :) Eoin, How are the keywords stored? Are the comma seperated values in their own column? Could you use instr() for the criteria in the query grid? Would it not be better to associate each keyword with a number in a keywords-table and then look it up? Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "Eoin C. Bair?ad" To: "Access Developers discussion and problem solving" Sent: Monday, February 12, 2007 3:49 PM Subject: [AccessD] Paradigm for Keywords in a database Hi I have a database where each record has a number of Keywords assocciated with it. I can't for the life of me see how to construct either the table or a query to find, say, all records where the keywords "Access" Developers" and "brilliant" can be found. Any ideas ???? Eoin -- -- Eoin C. Bair?ad Dublin, Ireland ?th Cliath, ?ire -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From darrend at nimble.com.au Mon Feb 12 22:46:36 2007 From: darrend at nimble.com.au (Darren DICK) Date: Tue, 13 Feb 2007 15:46:36 +1100 Subject: [AccessD] How do I refer to controls in an ADP Message-ID: <20070213044640.TVSG14761.oaamta03ps.mx.bigpond.com@DENZILLAP> Hi all Normally in the Criteria for a query I would type something like Forms!frmCoolForm!txtSomeControl What would I type in the criteria of a query to refer to an ADP? Pages!pgCoolPage!txtSomeControl won't work Any suggestions? Thanks DD From artful at rogers.com Tue Feb 13 02:46:13 2007 From: artful at rogers.com (artful at rogers.com) Date: Tue, 13 Feb 2007 00:46:13 -0800 (PST) Subject: [AccessD] How do I refer to controls in an ADP Message-ID: <395702.1350.qm@web88214.mail.re2.yahoo.com> As for me, I don't like queries that refer specifically to a given form's controls, since they cannot be run without that form being open. I like to use static functions for this. JWC prefers to use a class. Either way, you gain the freedom from form-binding and thus can use the query in numerous contexts, without depending on the form. Arthur ----- Original Message ---- From: Darren DICK To: Access Developers discussion and problem solving Sent: Monday, February 12, 2007 11:46:36 PM Subject: [AccessD] How do I refer to controls in an ADP Hi all Normally in the Criteria for a query I would type something like Forms!frmCoolForm!txtSomeControl What would I type in the criteria of a query to refer to an ADP? Pages!pgCoolPage!txtSomeControl won't work Any suggestions? Thanks DD From Erwin.Craps at ithelps.eu Tue Feb 13 03:40:41 2007 From: Erwin.Craps at ithelps.eu (Erwin Craps - IT Helps) Date: Tue, 13 Feb 2007 10:40:41 +0100 Subject: [AccessD] Setting birtday date in Outlook contact to none Message-ID: <430E80531228BA4497C5EB1A7BA786B00241D2@stekelbes.ithelps.local> Hi Group I'm trying to set a Outlook contactperson Birthday or Special date to none (from Access VBA), but for some reason I can't. I cant use null , invalid type setting 0 returns za 30/12/1899 Just cant find a way to set it to none.... Erwin Craps Zaakvoerder Nieuwe internetwinkel op www.ithelps.be/shop www.ithelps.be/onsgezin bezoek ook eens de website van mijn zus www.friedacraps.be 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 darrend at nimble.com.au Tue Feb 13 05:26:01 2007 From: darrend at nimble.com.au (Darren DICK) Date: Tue, 13 Feb 2007 22:26:01 +1100 Subject: [AccessD] How do I refer to controls in an ADP In-Reply-To: <395702.1350.qm@web88214.mail.re2.yahoo.com> Message-ID: <20070213112605.FJAA17816.oaamta02ps.mx.bigpond.com@DENZILLAP> Thanks Arthur I am just 'testing' at the moment - Never done an ADP Basically I have 2 combos. The first has an item selected then the 'query I am speaking about will be come the recordset for the second one - based on what the user selected in the first Simple in VBA Can this be done - I'd just like to know how it is done? If you have a better or more elegant way that allows for re-use I'd love to see it too please How do I bind any recordset from a Static Function to anything on an ADP - Combo, Page etc Anything Many thanks Darren ------------------ T: 0424 696 433 -----Original Message----- From: artful at rogers.com [mailto:artful at rogers.com] Sent: Tuesday, 13 February 2007 7:46 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] How do I refer to controls in an ADP As for me, I don't like queries that refer specifically to a given form's controls, since they cannot be run without that form being open. I like to use static functions for this. JWC prefers to use a class. Either way, you gain the freedom from form-binding and thus can use the query in numerous contexts, without depending on the form. Arthur ----- Original Message ---- From: Darren DICK To: Access Developers discussion and problem solving Sent: Monday, February 12, 2007 11:46:36 PM Subject: [AccessD] How do I refer to controls in an ADP Hi all Normally in the Criteria for a query I would type something like Forms!frmCoolForm!txtSomeControl What would I type in the criteria of a query to refer to an ADP? Pages!pgCoolPage!txtSomeControl won't work Any suggestions? Thanks DD -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Tue Feb 13 05:50:24 2007 From: artful at rogers.com (artful at rogers.com) Date: Tue, 13 Feb 2007 03:50:24 -0800 (PST) Subject: [AccessD] How do I refer to controls in an ADP Message-ID: <155409.36971.qm@web88211.mail.re2.yahoo.com> Hi Darren, There are numerous ways to do what you want. I assume that you already know how to create a static function. (If not, then search the archives; I have written on this several times.) Assuming that you have a static function that can get/set the value of interest, then you have several options: 1. create a stored procedure that accepts a value and supply its name as the rowsource of your second control. Then pass the static function's return value to it, like this: MyControl.RowSource = exec MySproc MyStatic() 2. Create a UDF that does the same thing, in which case the rowSource would be = MyUDF(MyStatic()). In either case, fire the second control immediately after obtaining the value for the first control. You can do this in several ways, too. Typically, I do it be redefining the RowSource, but there are other ways too. I think they are all about equivalent, so it's just a matter of taste how you do it. If you need more precise instructions, hang on a bit and I will supply a simple ADP that illustrates how to do this. (I haven't got SQL 2000 installed at the moment, and A2K3 doesn't support all the cool extensions in SQL 2005, but I'm installing it now so I can whip up the example.) Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Darren DICK To: Access Developers discussion and problem solving Sent: Tuesday, February 13, 2007 6:26:01 AM Subject: Re: [AccessD] How do I refer to controls in an ADP Thanks Arthur I am just 'testing' at the moment - Never done an ADP Basically I have 2 combos. The first has an item selected then the 'query I am speaking about will be come the recordset for the second one - based on what the user selected in the first Simple in VBA Can this be done - I'd just like to know how it is done? If you have a better or more elegant way that allows for re-use I'd love to see it too please How do I bind any recordset from a Static Function to anything on an ADP - Combo, Page etc Anything Many thanks Darren ------------------ T: 0424 696 433 -----Original Message----- From: artful at rogers.com [mailto:artful at rogers.com] Sent: Tuesday, 13 February 2007 7:46 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] How do I refer to controls in an ADP As for me, I don't like queries that refer specifically to a given form's controls, since they cannot be run without that form being open. I like to use static functions for this. JWC prefers to use a class. Either way, you gain the freedom from form-binding and thus can use the query in numerous contexts, without depending on the form. Arthur ----- Original Message ---- From: Darren DICK To: Access Developers discussion and problem solving Sent: Monday, February 12, 2007 11:46:36 PM Subject: [AccessD] How do I refer to controls in an ADP Hi all Normally in the Criteria for a query I would type something like Forms!frmCoolForm!txtSomeControl What would I type in the criteria of a query to refer to an ADP? Pages!pgCoolPage!txtSomeControl won't work Any suggestions? Thanks DD -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From darrend at nimble.com.au Tue Feb 13 06:36:09 2007 From: darrend at nimble.com.au (Darren DICK) Date: Tue, 13 Feb 2007 23:36:09 +1100 Subject: [AccessD] How do I refer to controls in an ADP In-Reply-To: <155409.36971.qm@web88211.mail.re2.yahoo.com> Message-ID: <20070213123613.FUOA19269.omta05ps.mx.bigpond.com@DENZILLAP> Hi Arthur Brilliant I forgot to mention Acc2003 Backend - not SQL Darren ------------------ T: 0424 696 433 -----Original Message----- From: artful at rogers.com [mailto:artful at rogers.com] Sent: Tuesday, 13 February 2007 10:50 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] How do I refer to controls in an ADP Hi Darren, There are numerous ways to do what you want. I assume that you already know how to create a static function. (If not, then search the archives; I have written on this several times.) Assuming that you have a static function that can get/set the value of interest, then you have several options: 1. create a stored procedure that accepts a value and supply its name as the rowsource of your second control. Then pass the static function's return value to it, like this: MyControl.RowSource = exec MySproc MyStatic() 2. Create a UDF that does the same thing, in which case the rowSource would be = MyUDF(MyStatic()). In either case, fire the second control immediately after obtaining the value for the first control. You can do this in several ways, too. Typically, I do it be redefining the RowSource, but there are other ways too. I think they are all about equivalent, so it's just a matter of taste how you do it. If you need more precise instructions, hang on a bit and I will supply a simple ADP that illustrates how to do this. (I haven't got SQL 2000 installed at the moment, and A2K3 doesn't support all the cool extensions in SQL 2005, but I'm installing it now so I can whip up the example.) Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Darren DICK To: Access Developers discussion and problem solving Sent: Tuesday, February 13, 2007 6:26:01 AM Subject: Re: [AccessD] How do I refer to controls in an ADP Thanks Arthur I am just 'testing' at the moment - Never done an ADP Basically I have 2 combos. The first has an item selected then the 'query I am speaking about will be come the recordset for the second one - based on what the user selected in the first Simple in VBA Can this be done - I'd just like to know how it is done? If you have a better or more elegant way that allows for re-use I'd love to see it too please How do I bind any recordset from a Static Function to anything on an ADP - Combo, Page etc Anything Many thanks Darren ------------------ T: 0424 696 433 -----Original Message----- From: artful at rogers.com [mailto:artful at rogers.com] Sent: Tuesday, 13 February 2007 7:46 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] How do I refer to controls in an ADP As for me, I don't like queries that refer specifically to a given form's controls, since they cannot be run without that form being open. I like to use static functions for this. JWC prefers to use a class. Either way, you gain the freedom from form-binding and thus can use the query in numerous contexts, without depending on the form. Arthur ----- Original Message ---- From: Darren DICK To: Access Developers discussion and problem solving Sent: Monday, February 12, 2007 11:46:36 PM Subject: [AccessD] How do I refer to controls in an ADP Hi all Normally in the Criteria for a query I would type something like Forms!frmCoolForm!txtSomeControl What would I type in the criteria of a query to refer to an ADP? Pages!pgCoolPage!txtSomeControl won't work Any suggestions? Thanks DD -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at hotmail.com Tue Feb 13 06:39:05 2007 From: adtp at hotmail.com (A.D.TEJPAL) Date: Tue, 13 Feb 2007 18:09:05 +0530 Subject: [AccessD] Paradigm for Keywords in a database References: <3d2a5ccc0702121249u6a180552uac0211e3902dabaa@mail.gmail.com> Message-ID: Eoin, Apparently, the most intricate scenario would be represented by a table having various key words scattered across various fields, and only those records are required to be displayed where one or more of the specified keywords appear across any of its fields. Sample query Q_Match, as given below, would get you the desired results. It makes use of function Fn_MatchKeyWord(), as given below. KeyString (the first argument required to be passed to this function) is a comma separated string of specified keywords. The order in which these keywords appear in the string, is immaterial. For current illustration, this string is "Brilliant,Access,Developer". In the sample query, T_Data is the name of table, while F1, F2, F3 are names of fields likely to hold any of the keywords. If there are more than three such fields, these can be concatenated suitably in the manner demonstrated. Best wishes, A.D.Tejpal --------------- Q_Match (Sample Query for showing records having any of the matching keywords) ================================= SELECT T_Data.* FROM T_Data WHERE Fn_MatchKeyWord("Brilliant,Access,Developer", [F1] & [F2] & [F3]) > 0; ================================= Function Fn_MatchKeyWord() ================================= Function Fn_MatchKeyWord( _ ByVal KeyString As String, _ ByVal FieldValue As String) As Long ' Returns 1 if there is a match with any ' of the kewords, otherwise 0 ' KeyString is a comma separated string of ' keywords required to be matched Dim Match As Long, Cnt As Long Dim Rtv As Variant Match = 0 ' Default Value Rtv = Split(KeyString, ",") For Cnt = 0 To UBound(Rtv) If InStr(FieldValue, Rtv(Cnt)) > 0 Then Match = 1 Exit For End If Next Fn_MatchKeyWord = Match End Function ================================= ----- Original Message ----- From: Eoin C. Bair?ad To: Access Developers discussion and problem solving Sent: Tuesday, February 13, 2007 02:19 Subject: [AccessD] Paradigm for Keywords in a database Hi I have a database where each record has a number of Keywords assocciated with it. I can't for the life of me see how to construct either the table or a query to find, say, all records where the keywords "Access" Developers" and "brilliant" can be found. Any ideas ???? Eoin From artful at rogers.com Tue Feb 13 06:59:33 2007 From: artful at rogers.com (artful at rogers.com) Date: Tue, 13 Feb 2007 04:59:33 -0800 (PST) Subject: [AccessD] How do I refer to controls in an ADP Message-ID: <35739.92024.qm@web88206.mail.re2.yahoo.com> In an MDB back end the same principle applies, but you won't be calling a sproc, just refreshing the RowSource. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Darren DICK To: Access Developers discussion and problem solving Sent: Tuesday, February 13, 2007 7:36:09 AM Subject: Re: [AccessD] How do I refer to controls in an ADP Hi Arthur Brilliant I forgot to mention Acc2003 Backend - not SQL Darren From askolits at ot.com Tue Feb 13 08:02:35 2007 From: askolits at ot.com (John Skolits) Date: Tue, 13 Feb 2007 09:02:35 -0500 Subject: [AccessD] Access file association switching between Runtime and Full Access In-Reply-To: <35739.92024.qm@web88206.mail.re2.yahoo.com> Message-ID: <004c01c74f77$9fc63ca0$0f01a8c0@officexp> When I open a Runtime version of access, the file association changes so the next time someone runs any MDB file, it tries to run 'Runtime', even though they also have a full version on their PC. I've found two registry settings that I could possibly modify every time I close my Runtime version. Anyone run into this before? Is this the best way to go? Registry entries: HKEY_CLASSES_ROOT\Access.Application.10\shell\Open\command Data: "C:\Program Files\Microsoft Office\Office10\MSACCESS.EXE" /NOSTARTUP "%1" ----- HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Access.Application.10\shell\Open\command Data: "C:\Program Files\Microsoft Office\Office10\MSACCESS.EXE" /NOSTARTUP "%1" Thanks, John From cclenright at yahoo.com Tue Feb 13 09:25:51 2007 From: cclenright at yahoo.com (Chris Enright) Date: Tue, 13 Feb 2007 07:25:51 -0800 (PST) Subject: [AccessD] OT: Excel date import problem Message-ID: <20070213152551.91905.qmail@web34313.mail.mud.yahoo.com> I am having a problem importing dates from a text file into a worksheet due to the UK date system. Every two weeks we download data from 25 banks in the Caribbean. The files come in as text files. Each row in the file is 773 characters long. The rows include amounts and dates. In order to validate the file before doing a data load onto the main system we import each file into Excel as a fixed width file. The purpose is to check for date input errors and this works fine. For example, when a date column is expanded to 20 the result can look like this AA ? 02/06/1943? ? 12/03/1956? ?07/30/1952 ? ? 22/11/1978? The date in row 3 is in US format and we can go to the text file and change it. When the open/import of the text file is done manually this works perfectly, and whilst recording a macro to do it all is well. However run the macro and the result is AA ? 02/06/1943? ? 12/03/1956? ? 30/07/1952? ? 22/11/1978? It has corrected the errors but we don?t know where they are so can?t change them in the text file. This is part of the macro: Sub ImportTextFile() Dim Total As Long ' ImportTextFile Macro ' Macro recorded 31/01/2007 by Chris Enright ' ' Keyboard Shortcut: Ctrl+i ' 'Enter drive and directory you want open dialogue box to default to: ChDrive "S:\" ChDir "S:\TPES\490\07\" myfile = Application.GetOpenFilename("All Files,*.*") If myfile = False Then Exit Sub End If 'Import the selected fixed width file and set the columns Workbooks.OpenText Filename:=myfile, _ Origin:=xlWindows, StartRow:=1, DataType:=xlFixedWidth, FieldInfo:= _ Array(Array(0, 1), Array(10, 1), Array(25, 1), Array(75, 1), Array(125, 1), _ Array(128, 1), Array(148, 1), Array(149, 4), Array(159, 1), Array(162, 1), _ Array(202, 1), Array(206, 1), Array(246, 1), Array(256, 1), Array(296, 1), _ Array(336, 1), Array(376, 1), Array(416, 1), Array(456, 1), Array(486, 1), _ Array(526, 1), Array(566, 1), Array(606, 1), Array(646, 1), Array(686, 1), _ Array(716, 1), Array(726, 1), Array(736, 1), Array(741, 4), Array(751, 4), _ Array(753, 4), Array(763, 4), Array(773, 1)), TrailingMinusNumbers:=True End Sub This is driving me crazy! I would appreciate any help. Chris --------------------------------- Don't pick lemons. See all the new 2007 cars at Yahoo! Autos. From jwcolby at colbyconsulting.com Tue Feb 13 11:40:32 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Tue, 13 Feb 2007 12:40:32 -0500 Subject: [AccessD] Number of users in the DB Message-ID: <001001c74f96$102ad640$657aa8c0@m6805> There was a thread last week regarding the response times of the FE as the number of users in the db went up. Since all users complain about response times, and since I belong to the set of developers with users, I decided to look at this issue at one of my clients. The client runs systems from old 800mhz (I believe) Dells to modern 3ghz Dells. The client recently upgraded all switches to 1gbit. The file server hosting the BEs is a fairly modern (2 GHz?) machine. The FORM being opened is extremely complex. It is bound, with tabs I can get more complete statistics on the hardware. The machine with the fastest access should be thrown out for statistics because she does her work mostly in the early morning when there are no users so the results would be misleading. What I discovered: The Min time to open can be misleading since the time of day when they arrive, and thus how many users are already in the database will vary from user to user. I added the Min() user count and the Max() user count to discover the extremes. The Max time to open though is very instructive, but it needs to be compared to the average as well. The Max in this data appears to be an aberration, which I do not have an answer for, but has never been repeated. This data covers one complete day (yesterday). This specific client had a maximum of 33 connections to the main database BE open at once. The minimum appears to be related to machines left on and in the database overnight. 1) The second fastest user has an average time to open of .90 with a Max time to open of 1.28. Notice though that by the time the user started work, the number of users was quite high. 2) The second slowest user has an average of 4.75 seconds to open with a max of 7.88 seconds. 3) The times between are a pretty smooth gradient as the times climb from slowest to fastest. 4) There is a startling difference between the fastest and slowest. 5) There is a definite correlation between the number of users and the times to open 6) The number of users plays much less of a part than other factors In talking to the client, it appears that the radical speed differences between machines is largely dependent on the age of the machine, which equates to the speed of the processor / memory / disks etc. In summary, I think it is safe to say that even given the small(?) maximum number of concurrent users (33) the number of connections definitely impacts the time to open the form. OTOH, the impact seems to be much less than (in fact dwarfed by) the impact of the age of the hardware. It would be interesting to see how the numbers scale when the number of users climbs up towards 100. I will see if I can emulate that by opening the BE directly over and over in separate instances of Access on my workstation there. Anyone desiring to see the totals query behind my results, please email me offline and I will send it in a spreadsheet. John W. Colby Colby Consulting www.ColbyConsulting.com From dw-murphy at cox.net Tue Feb 13 11:43:15 2007 From: dw-murphy at cox.net (Doug Murphy) Date: Tue, 13 Feb 2007 09:43:15 -0800 Subject: [AccessD] Access file association switching between Runtime andFull Access In-Reply-To: <004c01c74f77$9fc63ca0$0f01a8c0@officexp> Message-ID: <002e01c74f96$708cc1b0$0200a8c0@murphy3234aaf1> This is a reason to use the Sagekey scripts to build runtime installations. The script addresses this issue by opening the runtime database through an intermediary program "runaccess.exe" that takes care of the associated registry settings with the appropriate time delays so they stay set. You could do the same thing, but would probably have to experiment with which settings to work with and when to set them in relation to programs start. There may be more info on the Sagekey site. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Tuesday, February 13, 2007 6:03 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access file association switching between Runtime andFull Access When I open a Runtime version of access, the file association changes so the next time someone runs any MDB file, it tries to run 'Runtime', even though they also have a full version on their PC. I've found two registry settings that I could possibly modify every time I close my Runtime version. Anyone run into this before? Is this the best way to go? Registry entries: HKEY_CLASSES_ROOT\Access.Application.10\shell\Open\command Data: "C:\Program Files\Microsoft Office\Office10\MSACCESS.EXE" /NOSTARTUP "%1" ----- HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Access.Application.10\shell\Open\command Data: "C:\Program Files\Microsoft Office\Office10\MSACCESS.EXE" /NOSTARTUP "%1" Thanks, John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From askolits at ot.com Tue Feb 13 11:59:45 2007 From: askolits at ot.com (John Skolits) Date: Tue, 13 Feb 2007 12:59:45 -0500 Subject: [AccessD] Access file association switching between RuntimeandFull Access In-Reply-To: <002e01c74f96$708cc1b0$0200a8c0@murphy3234aaf1> Message-ID: <003b01c74f98$c217c730$0f01a8c0@officexp> Doug. I'm using Sagekey and Wise. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Tuesday, February 13, 2007 12:43 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access file association switching between RuntimeandFull Access This is a reason to use the Sagekey scripts to build runtime installations. The script addresses this issue by opening the runtime database through an intermediary program "runaccess.exe" that takes care of the associated registry settings with the appropriate time delays so they stay set. You could do the same thing, but would probably have to experiment with which settings to work with and when to set them in relation to programs start. There may be more info on the Sagekey site. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Tuesday, February 13, 2007 6:03 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access file association switching between Runtime andFull Access When I open a Runtime version of access, the file association changes so the next time someone runs any MDB file, it tries to run 'Runtime', even though they also have a full version on their PC. I've found two registry settings that I could possibly modify every time I close my Runtime version. Anyone run into this before? Is this the best way to go? Registry entries: HKEY_CLASSES_ROOT\Access.Application.10\shell\Open\command Data: "C:\Program Files\Microsoft Office\Office10\MSACCESS.EXE" /NOSTARTUP "%1" ----- HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Access.Application.10\shell\Open\command Data: "C:\Program Files\Microsoft Office\Office10\MSACCESS.EXE" /NOSTARTUP "%1" Thanks, John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From askolits at ot.com Tue Feb 13 12:01:04 2007 From: askolits at ot.com (John Skolits) Date: Tue, 13 Feb 2007 13:01:04 -0500 Subject: [AccessD] Access file association switching between RuntimeandFull Access In-Reply-To: <002e01c74f96$708cc1b0$0200a8c0@murphy3234aaf1> Message-ID: <003c01c74f98$f137ae90$0f01a8c0@officexp> I'll find out more about runaccess.exe from sagekey -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Tuesday, February 13, 2007 12:43 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access file association switching between RuntimeandFull Access This is a reason to use the Sagekey scripts to build runtime installations. The script addresses this issue by opening the runtime database through an intermediary program "runaccess.exe" that takes care of the associated registry settings with the appropriate time delays so they stay set. You could do the same thing, but would probably have to experiment with which settings to work with and when to set them in relation to programs start. There may be more info on the Sagekey site. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Tuesday, February 13, 2007 6:03 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access file association switching between Runtime andFull Access When I open a Runtime version of access, the file association changes so the next time someone runs any MDB file, it tries to run 'Runtime', even though they also have a full version on their PC. I've found two registry settings that I could possibly modify every time I close my Runtime version. Anyone run into this before? Is this the best way to go? Registry entries: HKEY_CLASSES_ROOT\Access.Application.10\shell\Open\command Data: "C:\Program Files\Microsoft Office\Office10\MSACCESS.EXE" /NOSTARTUP "%1" ----- HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Access.Application.10\shell\Open\command Data: "C:\Program Files\Microsoft Office\Office10\MSACCESS.EXE" /NOSTARTUP "%1" Thanks, John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at sc.rr.com Tue Feb 13 12:04:13 2007 From: bheid at sc.rr.com (Bobby Heid) Date: Tue, 13 Feb 2007 13:04:13 -0500 Subject: [AccessD] Number of users in the DB In-Reply-To: <001001c74f96$102ad640$657aa8c0@m6805> References: <001001c74f96$102ad640$657aa8c0@m6805> Message-ID: <001001c74f99$5e9e4610$2d01a8c0@bhxp> John, I would also try to measure the total amount of traffic on the network. If many people are using the network (Access program, email, downloads, etc.), it could be that your network is being saturated. Like I said in my earlier mail about this issue, I had a report that had to transfer over 90MB of data for one report. Now, it was a very large report from a large database, but you can see that it would not take too many reports like that being run at one time to bring the network to a crawl. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Tuesday, February 13, 2007 12:41 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Number of users in the DB There was a thread last week regarding the response times of the FE as the number of users in the db went up. Since all users complain about response times, and since I belong to the set of developers with users, I decided to look at this issue at one of my clients. The client runs systems from old 800mhz (I believe) Dells to modern 3ghz Dells. The client recently upgraded all switches to 1gbit. The file server hosting the BEs is a fairly modern (2 GHz?) machine. The FORM being opened is extremely complex. It is bound, with tabs I can get more complete statistics on the hardware. The machine with the fastest access should be thrown out for statistics because she does her work mostly in the early morning when there are no users so the results would be misleading. What I discovered: The Min time to open can be misleading since the time of day when they arrive, and thus how many users are already in the database will vary from user to user. I added the Min() user count and the Max() user count to discover the extremes. The Max time to open though is very instructive, but it needs to be compared to the average as well. The Max in this data appears to be an aberration, which I do not have an answer for, but has never been repeated. This data covers one complete day (yesterday). This specific client had a maximum of 33 connections to the main database BE open at once. The minimum appears to be related to machines left on and in the database overnight. 1) The second fastest user has an average time to open of .90 with a Max time to open of 1.28. Notice though that by the time the user started work, the number of users was quite high. 2) The second slowest user has an average of 4.75 seconds to open with a max of 7.88 seconds. 3) The times between are a pretty smooth gradient as the times climb from slowest to fastest. 4) There is a startling difference between the fastest and slowest. 5) There is a definite correlation between the number of users and the times to open 6) The number of users plays much less of a part than other factors In talking to the client, it appears that the radical speed differences between machines is largely dependent on the age of the machine, which equates to the speed of the processor / memory / disks etc. In summary, I think it is safe to say that even given the small(?) maximum number of concurrent users (33) the number of connections definitely impacts the time to open the form. OTOH, the impact seems to be much less than (in fact dwarfed by) the impact of the age of the hardware. It would be interesting to see how the numbers scale when the number of users climbs up towards 100. I will see if I can emulate that by opening the BE directly over and over in separate instances of Access on my workstation there. Anyone desiring to see the totals query behind my results, please email me offline and I will send it in a spreadsheet. John W. Colby Colby Consulting www.ColbyConsulting.com From dw-murphy at cox.net Tue Feb 13 12:25:43 2007 From: dw-murphy at cox.net (Doug Murphy) Date: Tue, 13 Feb 2007 10:25:43 -0800 Subject: [AccessD] Access file association switching betweenRuntimeandFull Access In-Reply-To: <003c01c74f98$f137ae90$0f01a8c0@officexp> Message-ID: <003801c74f9c$5f16f120$0200a8c0@murphy3234aaf1> John, Make sure your runtime is opened through the shortcut that the scripts install on the user's machine. If that is the case then talk to Sagekey or look in their knowledge base as this should not happen. I have found Sagekey to be very responsive to inquiries on problems. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Tuesday, February 13, 2007 10:01 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access file association switching betweenRuntimeandFull Access I'll find out more about runaccess.exe from sagekey -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Tuesday, February 13, 2007 12:43 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access file association switching between RuntimeandFull Access This is a reason to use the Sagekey scripts to build runtime installations. The script addresses this issue by opening the runtime database through an intermediary program "runaccess.exe" that takes care of the associated registry settings with the appropriate time delays so they stay set. You could do the same thing, but would probably have to experiment with which settings to work with and when to set them in relation to programs start. There may be more info on the Sagekey site. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Tuesday, February 13, 2007 6:03 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access file association switching between Runtime andFull Access When I open a Runtime version of access, the file association changes so the next time someone runs any MDB file, it tries to run 'Runtime', even though they also have a full version on their PC. I've found two registry settings that I could possibly modify every time I close my Runtime version. Anyone run into this before? Is this the best way to go? Registry entries: HKEY_CLASSES_ROOT\Access.Application.10\shell\Open\command Data: "C:\Program Files\Microsoft Office\Office10\MSACCESS.EXE" /NOSTARTUP "%1" ----- HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Access.Application.10\shell\Open\command Data: "C:\Program Files\Microsoft Office\Office10\MSACCESS.EXE" /NOSTARTUP "%1" Thanks, John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Feb 13 12:29:28 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Tue, 13 Feb 2007 13:29:28 -0500 Subject: [AccessD] Number of users in the DB In-Reply-To: <001001c74f99$5e9e4610$2d01a8c0@bhxp> Message-ID: <001501c74f9c$e5da2600$657aa8c0@m6805> In fact this particular client has virtually no reports. I created this capability for one reason only, to allow me to measure the impact on the number of users on the response time of the database. As often happens with a database, once I got in there I was able to see correlations between the workstation and the response times. This may allow troubleshooting (seeing) slow hardware other than the workstation, for example slow legs of a network etc. That would require inside knowledge however. My client is using the report to just be aware of who has the slowest access to the system. In fact, the whole system runs off of a pair of classes and a table to store the data. If there is sufficient interest I will post the entire system to the dba website for download. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Tuesday, February 13, 2007 1:04 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Number of users in the DB John, I would also try to measure the total amount of traffic on the network. If many people are using the network (Access program, email, downloads, etc.), it could be that your network is being saturated. Like I said in my earlier mail about this issue, I had a report that had to transfer over 90MB of data for one report. Now, it was a very large report from a large database, but you can see that it would not take too many reports like that being run at one time to bring the network to a crawl. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Tuesday, February 13, 2007 12:41 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Number of users in the DB There was a thread last week regarding the response times of the FE as the number of users in the db went up. Since all users complain about response times, and since I belong to the set of developers with users, I decided to look at this issue at one of my clients. The client runs systems from old 800mhz (I believe) Dells to modern 3ghz Dells. The client recently upgraded all switches to 1gbit. The file server hosting the BEs is a fairly modern (2 GHz?) machine. The FORM being opened is extremely complex. It is bound, with tabs I can get more complete statistics on the hardware. The machine with the fastest access should be thrown out for statistics because she does her work mostly in the early morning when there are no users so the results would be misleading. What I discovered: The Min time to open can be misleading since the time of day when they arrive, and thus how many users are already in the database will vary from user to user. I added the Min() user count and the Max() user count to discover the extremes. The Max time to open though is very instructive, but it needs to be compared to the average as well. The Max in this data appears to be an aberration, which I do not have an answer for, but has never been repeated. This data covers one complete day (yesterday). This specific client had a maximum of 33 connections to the main database BE open at once. The minimum appears to be related to machines left on and in the database overnight. 1) The second fastest user has an average time to open of .90 with a Max time to open of 1.28. Notice though that by the time the user started work, the number of users was quite high. 2) The second slowest user has an average of 4.75 seconds to open with a max of 7.88 seconds. 3) The times between are a pretty smooth gradient as the times climb from slowest to fastest. 4) There is a startling difference between the fastest and slowest. 5) There is a definite correlation between the number of users and the times to open 6) The number of users plays much less of a part than other factors In talking to the client, it appears that the radical speed differences between machines is largely dependent on the age of the machine, which equates to the speed of the processor / memory / disks etc. In summary, I think it is safe to say that even given the small(?) maximum number of concurrent users (33) the number of connections definitely impacts the time to open the form. OTOH, the impact seems to be much less than (in fact dwarfed by) the impact of the age of the hardware. It would be interesting to see how the numbers scale when the number of users climbs up towards 100. I will see if I can emulate that by opening the BE directly over and over in separate instances of Access on my workstation there. Anyone desiring to see the totals query behind my results, please email me offline and I will send it in a spreadsheet. John W. Colby Colby Consulting www.ColbyConsulting.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 Feb 13 12:47:39 2007 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 13 Feb 2007 12:47:39 -0600 Subject: [AccessD] Number of users in the DB In-Reply-To: <30939061.1171388903327.JavaMail.root@sniper80> References: <30939061.1171388903327.JavaMail.root@sniper80> Message-ID: <009701c74f9f$70013470$0200a8c0@danwaters> John, How did you count the number of connections? Was this equal to the number of users? The local machine age being a strong factor makes sense since the BE machine doesn't do any processing. Great data! Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Tuesday, February 13, 2007 11:41 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Number of users in the DB There was a thread last week regarding the response times of the FE as the number of users in the db went up. Since all users complain about response times, and since I belong to the set of developers with users, I decided to look at this issue at one of my clients. The client runs systems from old 800mhz (I believe) Dells to modern 3ghz Dells. The client recently upgraded all switches to 1gbit. The file server hosting the BEs is a fairly modern (2 GHz?) machine. The FORM being opened is extremely complex. It is bound, with tabs I can get more complete statistics on the hardware. The machine with the fastest access should be thrown out for statistics because she does her work mostly in the early morning when there are no users so the results would be misleading. What I discovered: The Min time to open can be misleading since the time of day when they arrive, and thus how many users are already in the database will vary from user to user. I added the Min() user count and the Max() user count to discover the extremes. The Max time to open though is very instructive, but it needs to be compared to the average as well. The Max in this data appears to be an aberration, which I do not have an answer for, but has never been repeated. This data covers one complete day (yesterday). This specific client had a maximum of 33 connections to the main database BE open at once. The minimum appears to be related to machines left on and in the database overnight. 1) The second fastest user has an average time to open of .90 with a Max time to open of 1.28. Notice though that by the time the user started work, the number of users was quite high. 2) The second slowest user has an average of 4.75 seconds to open with a max of 7.88 seconds. 3) The times between are a pretty smooth gradient as the times climb from slowest to fastest. 4) There is a startling difference between the fastest and slowest. 5) There is a definite correlation between the number of users and the times to open 6) The number of users plays much less of a part than other factors In talking to the client, it appears that the radical speed differences between machines is largely dependent on the age of the machine, which equates to the speed of the processor / memory / disks etc. In summary, I think it is safe to say that even given the small(?) maximum number of concurrent users (33) the number of connections definitely impacts the time to open the form. OTOH, the impact seems to be much less than (in fact dwarfed by) the impact of the age of the hardware. It would be interesting to see how the numbers scale when the number of users climbs up towards 100. I will see if I can emulate that by opening the BE directly over and over in separate instances of Access on my workstation there. Anyone desiring to see the totals query behind my results, please email me offline and I will send it in a spreadsheet. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kost36 at otenet.gr Tue Feb 13 13:04:23 2007 From: kost36 at otenet.gr (Kostas Konstantinidis) Date: Tue, 13 Feb 2007 21:04:23 +0200 Subject: [AccessD] How to transfer text.. References: <34C8A2AB1EF3564CB0D64DB6AFFDD5C201201067@xlivmbx35.aig.com> Message-ID: <005101c74fa1$cb1d4310$6501a8c0@kost36> Michael thank's for your response Labert, thank's you too ... well, with the DoCmd.OpenForm stdocname,,,,,acDialog the form opens but just on the first record and not on a new one and while I am trying to close the form after udate it hungs because with the next line DoCmd.GoToRecord acDataForm, stdocname, acNewRec it answers: he object 'myform' isn't open... am I doing something wrong? many thank's /kostas ----- Original Message ----- From: "Heenan, Lambert" To: "'Access Developers discussion and problem solving'" Sent: Monday, February 12, 2007 10:40 PM Subject: Re: [AccessD] How to transfer text.. > You could to this... > > > Private Sub AM_DblClick(Cancel As Integer) > Dim poustia As String > Dim stdocname As String > > stdocname = "MT_basic_char" > If IsNull(num_mitroou) Then > > DoCmd.OpenForm stdocname,,,,,acDialog > > DoCmd.GoToRecord acDataForm, stdocname, acNewRec > > Me!AM = Forms(stdocname)!AM > DoCmd.Close acForm, stdocname > > else > poustia = Me!num_mitroou > DoCmd.OpenForm stdocname, , , "num_mitroou= " & poustia > End If > End Sub > > The trick to this is that you open stdocname in dialog mode. That causes > the > calling code to wait until either the opened form closes, or it is made > invisible. So if the MT_basic_char form's "Close" button is modified from > DoCmd.Close acFrom, Me.Name > To > Me.Visible = False > > Then when the user hits the close button the form will be hidden, the > calling code will resume execution, and it can pick up the value entered > with the line "Me!AM = Forms(stdocname)!AM", and then you code continues > by > actually closing the called form. > > > HTH > > Lambert > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas > Konstantinidis > Sent: Monday, February 12, 2007 2:43 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] How to transfer text.. > > > hi group, > On a double click on a form I use the follown: > > Private Sub AM_DblClick(Cancel As Integer) > Dim poustia As String > Dim stdocname As String > > stdocname = "MT_basic_char" > If IsNull(num_mitroou) Then > DoCmd.OpenForm stdocname > DoCmd.GoToRecord acDataForm, stdocname, acNewRec > else > poustia = Me!num_mitroou > DoCmd.OpenForm stdocname, , , "num_mitroou= " & poustia > End If > End Sub > > > what I want to do is after the new record update and closing the > stdocname > the text of AM's field to be tranfered to the AM field of the opened form > > Many thank's > /kostas > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Feb 13 13:24:04 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Tue, 13 Feb 2007 14:24:04 -0500 Subject: [AccessD] Number of users in the DB In-Reply-To: <009701c74f9f$70013470$0200a8c0@danwaters> Message-ID: <001701c74fa4$86a8aaa0$657aa8c0@m6805> The number of connections is counted with some code I found somewhere. I modified it (made it slightly more complex) in order to get it to return a string of users in one case and a connection count in another. I really should have (and will likely go back and do it) just created two different functions. The function basically opens the ldb file and parses out the data in that file to find the workstation names, and then counts them. However, it turns out that the number increases according to how many instances of access are connected to the specific be, even if the access instances ARE ON THE SAME MACHINE. IOW, in order to test the response times of my client's users when there are more connections, I simply opened the BE 20 more times on my local machine. Open access / open the BE from within Access / repeat. Thus one single machine (my workstation) is showing up as TWENTY connections. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, February 13, 2007 1:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Number of users in the DB John, How did you count the number of connections? Was this equal to the number of users? The local machine age being a strong factor makes sense since the BE machine doesn't do any processing. Great data! Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Tuesday, February 13, 2007 11:41 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Number of users in the DB There was a thread last week regarding the response times of the FE as the number of users in the db went up. Since all users complain about response times, and since I belong to the set of developers with users, I decided to look at this issue at one of my clients. The client runs systems from old 800mhz (I believe) Dells to modern 3ghz Dells. The client recently upgraded all switches to 1gbit. The file server hosting the BEs is a fairly modern (2 GHz?) machine. The FORM being opened is extremely complex. It is bound, with tabs I can get more complete statistics on the hardware. The machine with the fastest access should be thrown out for statistics because she does her work mostly in the early morning when there are no users so the results would be misleading. What I discovered: The Min time to open can be misleading since the time of day when they arrive, and thus how many users are already in the database will vary from user to user. I added the Min() user count and the Max() user count to discover the extremes. The Max time to open though is very instructive, but it needs to be compared to the average as well. The Max in this data appears to be an aberration, which I do not have an answer for, but has never been repeated. This data covers one complete day (yesterday). This specific client had a maximum of 33 connections to the main database BE open at once. The minimum appears to be related to machines left on and in the database overnight. 1) The second fastest user has an average time to open of .90 with a Max time to open of 1.28. Notice though that by the time the user started work, the number of users was quite high. 2) The second slowest user has an average of 4.75 seconds to open with a max of 7.88 seconds. 3) The times between are a pretty smooth gradient as the times climb from slowest to fastest. 4) There is a startling difference between the fastest and slowest. 5) There is a definite correlation between the number of users and the times to open 6) The number of users plays much less of a part than other factors In talking to the client, it appears that the radical speed differences between machines is largely dependent on the age of the machine, which equates to the speed of the processor / memory / disks etc. In summary, I think it is safe to say that even given the small(?) maximum number of concurrent users (33) the number of connections definitely impacts the time to open the form. OTOH, the impact seems to be much less than (in fact dwarfed by) the impact of the age of the hardware. It would be interesting to see how the numbers scale when the number of users climbs up towards 100. I will see if I can emulate that by opening the BE directly over and over in separate instances of Access on my workstation there. Anyone desiring to see the totals query behind my results, please email me offline and I will send it in a spreadsheet. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Tue Feb 13 13:36:44 2007 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 13 Feb 2007 14:36:44 -0500 Subject: [AccessD] How to transfer text.. Message-ID: <34C8A2AB1EF3564CB0D64DB6AFFDD5C201201095@xlivmbx35.aig.com> Re "the object 'myform' isn't open... " the code behind the form's "Close" button should *not* close the form. Instead it should say "Me.Visible = False", which hides the from and then allows the calling code to continue running... Me!AM = Forms(stdocname)!AM ' <- gets the value from the hidden, but still loaded form DoCmd.Close acForm, stdocname' <- closes the hidden form Re opening on the wrong record. Change the open form code to DoCmd.OpenForm stdocname, , , "num_mitroou= " & poustia,,acDialog That line now includes the where condition that selects the correct record. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas Konstantinidis Sent: Tuesday, February 13, 2007 2:04 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] How to transfer text.. Michael thank's for your response Labert, thank's you too ... well, with the DoCmd.OpenForm stdocname,,,,,acDialog the form opens but just on the first record and not on a new one and while I am trying to close the form after udate it hungs because with the next line DoCmd.GoToRecord acDataForm, stdocname, acNewRec it answers: he object 'myform' isn't open... am I doing something wrong? many thank's /kostas ----- Original Message ----- From: "Heenan, Lambert" To: "'Access Developers discussion and problem solving'" Sent: Monday, February 12, 2007 10:40 PM Subject: Re: [AccessD] How to transfer text.. > You could to this... > > > Private Sub AM_DblClick(Cancel As Integer) > Dim poustia As String > Dim stdocname As String > > stdocname = "MT_basic_char" > If IsNull(num_mitroou) Then > > DoCmd.OpenForm stdocname,,,,,acDialog > > DoCmd.GoToRecord acDataForm, stdocname, acNewRec > > Me!AM = Forms(stdocname)!AM > DoCmd.Close acForm, stdocname > > else > poustia = Me!num_mitroou > DoCmd.OpenForm stdocname, , , "num_mitroou= " & poustia > End If > End Sub > > The trick to this is that you open stdocname in dialog mode. That > causes > the > calling code to wait until either the opened form closes, or it is made > invisible. So if the MT_basic_char form's "Close" button is modified from > DoCmd.Close acFrom, Me.Name > To > Me.Visible = False > > Then when the user hits the close button the form will be hidden, the > calling code will resume execution, and it can pick up the value > entered with the line "Me!AM = Forms(stdocname)!AM", and then you code > continues by actually closing the called form. > > > HTH > > Lambert > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas > Konstantinidis > Sent: Monday, February 12, 2007 2:43 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] How to transfer text.. > > > hi group, > On a double click on a form I use the follown: > > Private Sub AM_DblClick(Cancel As Integer) > Dim poustia As String > Dim stdocname As String > > stdocname = "MT_basic_char" > If IsNull(num_mitroou) Then > DoCmd.OpenForm stdocname > DoCmd.GoToRecord acDataForm, stdocname, acNewRec > else > poustia = Me!num_mitroou > DoCmd.OpenForm stdocname, , , "num_mitroou= " & poustia > End If > End Sub > > > what I want to do is after the new record update and closing the > stdocname > the text of AM's field to be tranfered to the AM field of the opened form > > Many thank's > /kostas > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Tue Feb 13 13:49:53 2007 From: artful at rogers.com (artful at rogers.com) Date: Tue, 13 Feb 2007 11:49:53 -0800 (PST) Subject: [AccessD] Number of users in the DB Message-ID: <204431.55808.qm@web88214.mail.re2.yahoo.com> The number of connections is typically several times the number of users. Of course this would depend on how you design the app, but let's just assume that your forms are bound and that each form contains a few combo-boxes, and that a given user has several forms open simultaneously. You may well get a connection for each combo on a form, plus the RecordSource of the form itself, so a given user might conceivably have 20 connections. I have tried and so far been unsuccessful at deducing the precise number of connections that any given user might have open. That's probably because I always used an existing app rather than one designed to elucidate this question. But one useful thing you might wish to try while running an ADP: Open a window in Query Analyzer and run sp_who. That will list the connections to the selected database at the moment you execute it. You typically will find at least two or three connections per user. Arthur ----- Original Message ---- From: Dan Waters To: Access Developers discussion and problem solving Sent: Tuesday, February 13, 2007 1:47:39 PM Subject: Re: [AccessD] Number of users in the DB John, How did you count the number of connections? Was this equal to the number of users? The local machine age being a strong factor makes sense since the BE machine doesn't do any processing. Great data! Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Tuesday, February 13, 2007 11:41 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Number of users in the DB There was a thread last week regarding the response times of the FE as the number of users in the db went up. Since all users complain about response times, and since I belong to the set of developers with users, I decided to look at this issue at one of my clients. The client runs systems from old 800mhz (I believe) Dells to modern 3ghz Dells. The client recently upgraded all switches to 1gbit. The file server hosting the BEs is a fairly modern (2 GHz?) machine. The FORM being opened is extremely complex. It is bound, with tabs I can get more complete statistics on the hardware. The machine with the fastest access should be thrown out for statistics because she does her work mostly in the early morning when there are no users so the results would be misleading. What I discovered: The Min time to open can be misleading since the time of day when they arrive, and thus how many users are already in the database will vary from user to user. I added the Min() user count and the Max() user count to discover the extremes. The Max time to open though is very instructive, but it needs to be compared to the average as well. The Max in this data appears to be an aberration, which I do not have an answer for, but has never been repeated. This data covers one complete day (yesterday). This specific client had a maximum of 33 connections to the main database BE open at once. The minimum appears to be related to machines left on and in the database overnight. 1) The second fastest user has an average time to open of .90 with a Max time to open of 1.28. Notice though that by the time the user started work, the number of users was quite high. 2) The second slowest user has an average of 4.75 seconds to open with a max of 7.88 seconds. 3) The times between are a pretty smooth gradient as the times climb from slowest to fastest. 4) There is a startling difference between the fastest and slowest. 5) There is a definite correlation between the number of users and the times to open 6) The number of users plays much less of a part than other factors In talking to the client, it appears that the radical speed differences between machines is largely dependent on the age of the machine, which equates to the speed of the processor / memory / disks etc. In summary, I think it is safe to say that even given the small(?) maximum number of concurrent users (33) the number of connections definitely impacts the time to open the form. OTOH, the impact seems to be much less than (in fact dwarfed by) the impact of the age of the hardware. It would be interesting to see how the numbers scale when the number of users climbs up towards 100. I will see if I can emulate that by opening the BE directly over and over in separate instances of Access on my workstation there. Anyone desiring to see the totals query behind my results, please email me offline and I will send it in a spreadsheet. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Feb 13 13:58:09 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Tue, 13 Feb 2007 14:58:09 -0500 Subject: [AccessD] Number of users in the DB In-Reply-To: <204431.55808.qm@web88214.mail.re2.yahoo.com> Message-ID: <001a01c74fa9$49c9ae90$657aa8c0@m6805> Arthur, I assume that you are discussing connections to SQL Server, not connections to an MDB BE? John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Tuesday, February 13, 2007 2:50 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Number of users in the DB The number of connections is typically several times the number of users. Of course this would depend on how you design the app, but let's just assume that your forms are bound and that each form contains a few combo-boxes, and that a given user has several forms open simultaneously. You may well get a connection for each combo on a form, plus the RecordSource of the form itself, so a given user might conceivably have 20 connections. I have tried and so far been unsuccessful at deducing the precise number of connections that any given user might have open. That's probably because I always used an existing app rather than one designed to elucidate this question. But one useful thing you might wish to try while running an ADP: Open a window in Query Analyzer and run sp_who. That will list the connections to the selected database at the moment you execute it. You typically will find at least two or three connections per user. Arthur ----- Original Message ---- From: Dan Waters To: Access Developers discussion and problem solving Sent: Tuesday, February 13, 2007 1:47:39 PM Subject: Re: [AccessD] Number of users in the DB John, How did you count the number of connections? Was this equal to the number of users? The local machine age being a strong factor makes sense since the BE machine doesn't do any processing. Great data! Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Tuesday, February 13, 2007 11:41 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Number of users in the DB There was a thread last week regarding the response times of the FE as the number of users in the db went up. Since all users complain about response times, and since I belong to the set of developers with users, I decided to look at this issue at one of my clients. The client runs systems from old 800mhz (I believe) Dells to modern 3ghz Dells. The client recently upgraded all switches to 1gbit. The file server hosting the BEs is a fairly modern (2 GHz?) machine. The FORM being opened is extremely complex. It is bound, with tabs I can get more complete statistics on the hardware. The machine with the fastest access should be thrown out for statistics because she does her work mostly in the early morning when there are no users so the results would be misleading. What I discovered: The Min time to open can be misleading since the time of day when they arrive, and thus how many users are already in the database will vary from user to user. I added the Min() user count and the Max() user count to discover the extremes. The Max time to open though is very instructive, but it needs to be compared to the average as well. The Max in this data appears to be an aberration, which I do not have an answer for, but has never been repeated. This data covers one complete day (yesterday). This specific client had a maximum of 33 connections to the main database BE open at once. The minimum appears to be related to machines left on and in the database overnight. 1) The second fastest user has an average time to open of .90 with a Max time to open of 1.28. Notice though that by the time the user started work, the number of users was quite high. 2) The second slowest user has an average of 4.75 seconds to open with a max of 7.88 seconds. 3) The times between are a pretty smooth gradient as the times climb from slowest to fastest. 4) There is a startling difference between the fastest and slowest. 5) There is a definite correlation between the number of users and the times to open 6) The number of users plays much less of a part than other factors In talking to the client, it appears that the radical speed differences between machines is largely dependent on the age of the machine, which equates to the speed of the processor / memory / disks etc. In summary, I think it is safe to say that even given the small(?) maximum number of concurrent users (33) the number of connections definitely impacts the time to open the form. OTOH, the impact seems to be much less than (in fact dwarfed by) the impact of the age of the hardware. It would be interesting to see how the numbers scale when the number of users climbs up towards 100. I will see if I can emulate that by opening the BE directly over and over in separate instances of Access on my workstation there. Anyone desiring to see the totals query behind my results, please email me offline and I will send it in a spreadsheet. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Tue Feb 13 14:21:42 2007 From: artful at rogers.com (artful at rogers.com) Date: Tue, 13 Feb 2007 12:21:42 -0800 (PST) Subject: [AccessD] Number of users in the DB Message-ID: <595923.63092.qm@web88203.mail.re2.yahoo.com> I'll bet the number escalates should you choose to open a form with a combo or three. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: JWColby To: Access Developers discussion and problem solving Sent: Tuesday, February 13, 2007 2:24:04 PM Subject: Re: [AccessD] Number of users in the DB The number of connections is counted with some code I found somewhere. I modified it (made it slightly more complex) in order to get it to return a string of users in one case and a connection count in another. I really should have (and will likely go back and do it) just created two different functions. The function basically opens the ldb file and parses out the data in that file to find the workstation names, and then counts them. However, it turns out that the number increases according to how many instances of access are connected to the specific be, even if the access instances ARE ON THE SAME MACHINE. IOW, in order to test the response times of my client's users when there are more connections, I simply opened the BE 20 more times on my local machine. Open access / open the BE from within Access / repeat. Thus one single machine (my workstation) is showing up as TWENTY connections. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, February 13, 2007 1:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Number of users in the DB John, How did you count the number of connections? Was this equal to the number of users? The local machine age being a strong factor makes sense since the BE machine doesn't do any processing. Great data! Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Tuesday, February 13, 2007 11:41 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Number of users in the DB There was a thread last week regarding the response times of the FE as the number of users in the db went up. Since all users complain about response times, and since I belong to the set of developers with users, I decided to look at this issue at one of my clients. The client runs systems from old 800mhz (I believe) Dells to modern 3ghz Dells. The client recently upgraded all switches to 1gbit. The file server hosting the BEs is a fairly modern (2 GHz?) machine. The FORM being opened is extremely complex. It is bound, with tabs I can get more complete statistics on the hardware. The machine with the fastest access should be thrown out for statistics because she does her work mostly in the early morning when there are no users so the results would be misleading. What I discovered: The Min time to open can be misleading since the time of day when they arrive, and thus how many users are already in the database will vary from user to user. I added the Min() user count and the Max() user count to discover the extremes. The Max time to open though is very instructive, but it needs to be compared to the average as well. The Max in this data appears to be an aberration, which I do not have an answer for, but has never been repeated. This data covers one complete day (yesterday). This specific client had a maximum of 33 connections to the main database BE open at once. The minimum appears to be related to machines left on and in the database overnight. 1) The second fastest user has an average time to open of .90 with a Max time to open of 1.28. Notice though that by the time the user started work, the number of users was quite high. 2) The second slowest user has an average of 4.75 seconds to open with a max of 7.88 seconds. 3) The times between are a pretty smooth gradient as the times climb from slowest to fastest. 4) There is a startling difference between the fastest and slowest. 5) There is a definite correlation between the number of users and the times to open 6) The number of users plays much less of a part than other factors In talking to the client, it appears that the radical speed differences between machines is largely dependent on the age of the machine, which equates to the speed of the processor / memory / disks etc. In summary, I think it is safe to say that even given the small(?) maximum number of concurrent users (33) the number of connections definitely impacts the time to open the form. OTOH, the impact seems to be much less than (in fact dwarfed by) the impact of the age of the hardware. It would be interesting to see how the numbers scale when the number of users climbs up towards 100. I will see if I can emulate that by opening the BE directly over and over in separate instances of Access on my workstation there. Anyone desiring to see the totals query behind my results, please email me offline and I will send it in a spreadsheet. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Tue Feb 13 14:28:29 2007 From: artful at rogers.com (artful at rogers.com) Date: Tue, 13 Feb 2007 12:28:29 -0800 (PST) Subject: [AccessD] Number of users in the DB Message-ID: <57899.30185.qm@web88201.mail.re2.yahoo.com> Yes. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: JWColby To: Access Developers discussion and problem solving Sent: Tuesday, February 13, 2007 2:58:09 PM Subject: Re: [AccessD] Number of users in the DB Arthur, I assume that you are discussing connections to SQL Server, not connections to an MDB BE? John W. Colby Colby Consulting www.ColbyConsulting.com From jwcolby at colbyconsulting.com Tue Feb 13 14:49:14 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Tue, 13 Feb 2007 15:49:14 -0500 Subject: [AccessD] Number of users in the DB In-Reply-To: <595923.63092.qm@web88203.mail.re2.yahoo.com> Message-ID: <002201c74fb0$6c404c20$657aa8c0@m6805> >I'll bet the number escalates should you choose to open a form with a combo or three. Nope. In fact the form that I am discussing has a query based on about TEN tables, has TWENTY NINE combos loaded when the form loads (I just counted), and TWENTY tabs, 16 of which have JIT subforms which load when the tab is clicked on and unload when the tab is clicked of off. This ain't your daddy's database! This form is the center of the Call Center Universe for this company. And no, the number is ONE connection for each instance of the FE and one connection each for a handful of "server applications" which upload / download FTP files and email attachments. That is NOT the number of LOCKS as discussed in another email thread last week. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Tuesday, February 13, 2007 3:22 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Number of users in the DB I'll bet the number escalates should you choose to open a form with a combo or three. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: JWColby To: Access Developers discussion and problem solving Sent: Tuesday, February 13, 2007 2:24:04 PM Subject: Re: [AccessD] Number of users in the DB The number of connections is counted with some code I found somewhere. I modified it (made it slightly more complex) in order to get it to return a string of users in one case and a connection count in another. I really should have (and will likely go back and do it) just created two different functions. The function basically opens the ldb file and parses out the data in that file to find the workstation names, and then counts them. However, it turns out that the number increases according to how many instances of access are connected to the specific be, even if the access instances ARE ON THE SAME MACHINE. IOW, in order to test the response times of my client's users when there are more connections, I simply opened the BE 20 more times on my local machine. Open access / open the BE from within Access / repeat. Thus one single machine (my workstation) is showing up as TWENTY connections. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, February 13, 2007 1:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Number of users in the DB John, How did you count the number of connections? Was this equal to the number of users? The local machine age being a strong factor makes sense since the BE machine doesn't do any processing. Great data! Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Tuesday, February 13, 2007 11:41 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Number of users in the DB There was a thread last week regarding the response times of the FE as the number of users in the db went up. Since all users complain about response times, and since I belong to the set of developers with users, I decided to look at this issue at one of my clients. The client runs systems from old 800mhz (I believe) Dells to modern 3ghz Dells. The client recently upgraded all switches to 1gbit. The file server hosting the BEs is a fairly modern (2 GHz?) machine. The FORM being opened is extremely complex. It is bound, with tabs I can get more complete statistics on the hardware. The machine with the fastest access should be thrown out for statistics because she does her work mostly in the early morning when there are no users so the results would be misleading. What I discovered: The Min time to open can be misleading since the time of day when they arrive, and thus how many users are already in the database will vary from user to user. I added the Min() user count and the Max() user count to discover the extremes. The Max time to open though is very instructive, but it needs to be compared to the average as well. The Max in this data appears to be an aberration, which I do not have an answer for, but has never been repeated. This data covers one complete day (yesterday). This specific client had a maximum of 33 connections to the main database BE open at once. The minimum appears to be related to machines left on and in the database overnight. 1) The second fastest user has an average time to open of .90 with a Max time to open of 1.28. Notice though that by the time the user started work, the number of users was quite high. 2) The second slowest user has an average of 4.75 seconds to open with a max of 7.88 seconds. 3) The times between are a pretty smooth gradient as the times climb from slowest to fastest. 4) There is a startling difference between the fastest and slowest. 5) There is a definite correlation between the number of users and the times to open 6) The number of users plays much less of a part than other factors In talking to the client, it appears that the radical speed differences between machines is largely dependent on the age of the machine, which equates to the speed of the processor / memory / disks etc. In summary, I think it is safe to say that even given the small(?) maximum number of concurrent users (33) the number of connections definitely impacts the time to open the form. OTOH, the impact seems to be much less than (in fact dwarfed by) the impact of the age of the hardware. It would be interesting to see how the numbers scale when the number of users climbs up towards 100. I will see if I can emulate that by opening the BE directly over and over in separate instances of Access on my workstation there. Anyone desiring to see the totals query behind my results, please email me offline and I will send it in a spreadsheet. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Tue Feb 13 15:22:42 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 13 Feb 2007 21:22:42 +0000 Subject: [AccessD] Dates As Criteria In-Reply-To: <595923.63092.qm@web88203.mail.re2.yahoo.com> Message-ID: Hello All, In A2K I ahve a form that has 2 unbound date fields...have input masks and formats as SHORT DATE...I have a query that uses these fields as criteria in a BETWEEN statement. The field in the table is a general date. I'm using 2 records to check...if I set the startdate and enddate on the form to the dates that are in the db...they return..but if I use ofther dates...nothing comes back. Example: StartDate:2/6/2007 EndDate: 2/13/2007 2 records: DT=2/9/2007 DT=2/13/2007 Using the above "between startdate and enddate" I return 1 record? If I change the startdate to 2/9/2007 then I return both IF I use 2/6 and2/17 as the start and end...I return NOTHING... Anyone...please help...I'm sure I've done something silly...but this just doesn't make sense??? Thanks, Mark A. Matte _________________________________________________________________ Invite your Hotmail contacts to join your friends list with Windows Live Spaces http://clk.atdmt.com/MSN/go/msnnkwsp0070000001msn/direct/01/?href=http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us From gustav at cactus.dk Tue Feb 13 17:13:12 2007 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 14 Feb 2007 00:13:12 +0100 Subject: [AccessD] Dates As Criteria Message-ID: Hi Mark Show us your query, the SQL. It probably has to do with a missing US format of the date values. /gustav >>> markamatte at hotmail.com 13-02-07 22:22 >>> Hello All, In A2K I ahve a form that has 2 unbound date fields...have input masks and formats as SHORT DATE...I have a query that uses these fields as criteria in a BETWEEN statement. The field in the table is a general date. I'm using 2 records to check...if I set the startdate and enddate on the form to the dates that are in the db...they return..but if I use ofther dates...nothing comes back. Example: StartDate:2/6/2007 EndDate: 2/13/2007 2 records: DT=2/9/2007 DT=2/13/2007 Using the above "between startdate and enddate" I return 1 record? If I change the startdate to 2/9/2007 then I return both IF I use 2/6 and2/17 as the start and end...I return NOTHING... Anyone...please help...I'm sure I've done something silly...but this just doesn't make sense??? Thanks, Mark A. Matte From bheid at sc.rr.com Tue Feb 13 17:14:26 2007 From: bheid at sc.rr.com (Bobby Heid) Date: Tue, 13 Feb 2007 18:14:26 -0500 Subject: [AccessD] Dates As Criteria In-Reply-To: References: <595923.63092.qm@web88203.mail.re2.yahoo.com> Message-ID: <007501c74fc4$b7c87320$2d01a8c0@bhxp> I usually do something like: Where FldDate>=ParmDate1 AND FldDate<=ParmDate2 This makes it explicit exactly what you want to do. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Tuesday, February 13, 2007 4:23 PM To: accessd at databaseadvisors.com Subject: [AccessD] Dates As Criteria Hello All, In A2K I ahve a form that has 2 unbound date fields...have input masks and formats as SHORT DATE...I have a query that uses these fields as criteria in a BETWEEN statement. The field in the table is a general date. I'm using 2 records to check...if I set the startdate and enddate on the form to the dates that are in the db...they return..but if I use ofther dates...nothing comes back. Example: StartDate:2/6/2007 EndDate: 2/13/2007 2 records: DT=2/9/2007 DT=2/13/2007 Using the above "between startdate and enddate" I return 1 record? If I change the startdate to 2/9/2007 then I return both IF I use 2/6 and2/17 as the start and end...I return NOTHING... Anyone...please help...I'm sure I've done something silly...but this just doesn't make sense??? Thanks, Mark A. Matte From bheid at sc.rr.com Tue Feb 13 17:30:27 2007 From: bheid at sc.rr.com (Bobby Heid) Date: Tue, 13 Feb 2007 18:30:27 -0500 Subject: [AccessD] Dates As Criteria In-Reply-To: <007501c74fc4$b7c87320$2d01a8c0@bhxp> References: <595923.63092.qm@web88203.mail.re2.yahoo.com> <007501c74fc4$b7c87320$2d01a8c0@bhxp> Message-ID: <008201c74fc6$f1b972d0$2d01a8c0@bhxp> Actually, if you were building the tring, that would be: "WHERE FldDate>=#" & ParmDate1 & "# AND FldDate<=#" & ParmDate2 & "#" Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Tuesday, February 13, 2007 6:14 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Dates As Criteria I usually do something like: Where FldDate>=ParmDate1 AND FldDate<=ParmDate2 This makes it explicit exactly what you want to do. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Tuesday, February 13, 2007 4:23 PM To: accessd at databaseadvisors.com Subject: [AccessD] Dates As Criteria Hello All, In A2K I ahve a form that has 2 unbound date fields...have input masks and formats as SHORT DATE...I have a query that uses these fields as criteria in a BETWEEN statement. The field in the table is a general date. I'm using 2 records to check...if I set the startdate and enddate on the form to the dates that are in the db...they return..but if I use ofther dates...nothing comes back. Example: StartDate:2/6/2007 EndDate: 2/13/2007 2 records: DT=2/9/2007 DT=2/13/2007 Using the above "between startdate and enddate" I return 1 record? If I change the startdate to 2/9/2007 then I return both IF I use 2/6 and2/17 as the start and end...I return NOTHING... Anyone...please help...I'm sure I've done something silly...but this just doesn't make sense??? Thanks, Mark A. Matte From kost36 at otenet.gr Tue Feb 13 22:28:49 2007 From: kost36 at otenet.gr (Kostas Konstantinidis) Date: Wed, 14 Feb 2007 06:28:49 +0200 Subject: [AccessD] How to transfer text.. References: <34C8A2AB1EF3564CB0D64DB6AFFDD5C201201095@xlivmbx35.aig.com> Message-ID: <009501c74ff0$f85f50d0$6501a8c0@kost36> yes Lambert, now it works perfect thank's a lot /kostas ----- Original Message ----- From: "Heenan, Lambert" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, February 13, 2007 9:36 PM Subject: Re: [AccessD] How to transfer text.. > > Re "the object 'myform' isn't open... " the code behind the form's > "Close" > button should *not* close the form. Instead it should say "Me.Visible = > False", which hides the from and then allows the calling code to continue > running... > > Me!AM = Forms(stdocname)!AM ' <- gets the value from the hidden, but > still loaded form > DoCmd.Close acForm, stdocname' <- closes the hidden form > > Re opening on the wrong record. Change the open form code to > > DoCmd.OpenForm stdocname, , , "num_mitroou= " & poustia,,acDialog > > That line now includes the where condition that selects the correct > record. > > Lambert > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas > Konstantinidis > Sent: Tuesday, February 13, 2007 2:04 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] How to transfer text.. > > > Michael thank's for your response > > Labert, thank's you too > ... > well, with the > DoCmd.OpenForm stdocname,,,,,acDialog > the form opens but just on the first record and not on a new one and while > I > am trying to close the form after udate it hungs because with the next > line > DoCmd.GoToRecord acDataForm, stdocname, acNewRec it answers: he object > 'myform' isn't open... am I doing something wrong? many thank's /kostas > > > ----- Original Message ----- > From: "Heenan, Lambert" > To: "'Access Developers discussion and problem solving'" > > Sent: Monday, February 12, 2007 10:40 PM > Subject: Re: [AccessD] How to transfer text.. > > >> You could to this... >> >> >> Private Sub AM_DblClick(Cancel As Integer) >> Dim poustia As String >> Dim stdocname As String >> >> stdocname = "MT_basic_char" >> If IsNull(num_mitroou) Then >> >> DoCmd.OpenForm stdocname,,,,,acDialog >> >> DoCmd.GoToRecord acDataForm, stdocname, acNewRec >> >> Me!AM = Forms(stdocname)!AM >> DoCmd.Close acForm, stdocname >> >> else >> poustia = Me!num_mitroou >> DoCmd.OpenForm stdocname, , , "num_mitroou= " & poustia >> End If >> End Sub >> >> The trick to this is that you open stdocname in dialog mode. That >> causes >> the >> calling code to wait until either the opened form closes, or it is made >> invisible. So if the MT_basic_char form's "Close" button is modified from >> DoCmd.Close acFrom, Me.Name >> To >> Me.Visible = False >> >> Then when the user hits the close button the form will be hidden, the >> calling code will resume execution, and it can pick up the value >> entered with the line "Me!AM = Forms(stdocname)!AM", and then you code >> continues by actually closing the called form. >> >> >> HTH >> >> Lambert >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kostas >> Konstantinidis >> Sent: Monday, February 12, 2007 2:43 PM >> To: Access Developers discussion and problem solving >> Subject: [AccessD] How to transfer text.. >> >> >> hi group, >> On a double click on a form I use the follown: >> >> Private Sub AM_DblClick(Cancel As Integer) >> Dim poustia As String >> Dim stdocname As String >> >> stdocname = "MT_basic_char" >> If IsNull(num_mitroou) Then >> DoCmd.OpenForm stdocname >> DoCmd.GoToRecord acDataForm, stdocname, acNewRec >> else >> poustia = Me!num_mitroou >> DoCmd.OpenForm stdocname, , , "num_mitroou= " & poustia >> End If >> End Sub >> >> >> what I want to do is after the new record update and closing the >> stdocname >> the text of AM's field to be tranfered to the AM field of the opened >> form >> >> Many thank's >> /kostas >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From prodevmg at yahoo.com Wed Feb 14 05:18:25 2007 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Wed, 14 Feb 2007 03:18:25 -0800 (PST) Subject: [AccessD] Counting multiple items in a field Message-ID: <549765.98645.qm@web33103.mail.mud.yahoo.com> I have a field that is horribly constructed. It looks like so... RECORDID FIELD1 1 AAA, BBB 2 BBB 3 AAA, BBB, CCC 4 BBB, CCC 5 AAA, CCC 6 CCC, BBB Is there a quick way to count all the AAA's and all the BBB's without reconstructing (normalizing) the table? This would entail redoing their input forms and reports. Time is of the essence. Thanks. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us ____________________________________________________________________________________ Have a burning question? Go to www.Answers.yahoo.com and get answers from real people who know. From Gustav at cactus.dk Wed Feb 14 05:35:47 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 14 Feb 2007 12:35:47 +0100 Subject: [AccessD] Counting multiple items in a field Message-ID: Hi Lonnie You could, in a query, have three expressions: CountA: Abs(Instr(Field1, "AAA") > 0) CountB: Abs(Instr(Field1, "BBB") > 0) CountC: Abs(Instr(Field1, "CCC") > 0) and then find the three sums of CountA to CountC. /gustav >>> prodevmg at yahoo.com 14-02-2007 12:18:25 >>> I have a field that is horribly constructed. It looks like so... RECORDID FIELD1 1 AAA, BBB 2 BBB 3 AAA, BBB, CCC 4 BBB, CCC 5 AAA, CCC 6 CCC, BBB Is there a quick way to count all the AAA's and all the BBB's without reconstructing (normalizing) the table? This would entail redoing their input forms and reports. Time is of the essence. Thanks. From prodevmg at yahoo.com Wed Feb 14 06:58:46 2007 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Wed, 14 Feb 2007 04:58:46 -0800 (PST) Subject: [AccessD] Counting multiple items in a field Message-ID: <945583.31083.qm@web33109.mail.mud.yahoo.com> Thanks for the quick response Gustav. Actually there are about 50 of the AAA type codes and I need them to print out in the footer of a report. That would seem to give me a lot of columns and also would entail modifying it when a new code came into play. I wanted something more dynamic. Thanks again. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us ----- Original Message ---- From: Gustav Brock To: accessd at databaseadvisors.com Sent: Wednesday, February 14, 2007 5:35:47 AM Subject: Re: [AccessD] Counting multiple items in a field Hi Lonnie You could, in a query, have three expressions: CountA: Abs(Instr(Field1, "AAA") > 0) CountB: Abs(Instr(Field1, "BBB") > 0) CountC: Abs(Instr(Field1, "CCC") > 0) and then find the three sums of CountA to CountC. /gustav >>> prodevmg at yahoo.com 14-02-2007 12:18:25 >>> I have a field that is horribly constructed. It looks like so... RECORDID FIELD1 1 AAA, BBB 2 BBB 3 AAA, BBB, CCC 4 BBB, CCC 5 AAA, CCC 6 CCC, BBB Is there a quick way to count all the AAA's and all the BBB's without reconstructing (normalizing) the table? This would entail redoing their input forms and reports. Time is of the essence. Thanks. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ____________________________________________________________________________________ Looking for earth-friendly autos? Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center. http://autos.yahoo.com/green_center/ From Gustav at cactus.dk Wed Feb 14 07:25:43 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 14 Feb 2007 14:25:43 +0100 Subject: [AccessD] Counting multiple items in a field Message-ID: Hi Lonnie I'm not sure I fully understand what you wish to accomplish. Could you provide a sample of data and of your requested output from that sample? /gustav >>> prodevmg at yahoo.com 14-02-2007 13:58:46 >>> Thanks for the quick response Gustav. Actually there are about 50 of the AAA type codes and I need them to print out in the footer of a report. That would seem to give me a lot of columns and also would entail modifying it when a new code came into play. I wanted something more dynamic. Thanks again. ----- Original Message ---- From: Gustav Brock To: accessd at databaseadvisors.com Sent: Wednesday, February 14, 2007 5:35:47 AM Subject: Re: [AccessD] Counting multiple items in a field Hi Lonnie You could, in a query, have three expressions: CountA: Abs(Instr(Field1, "AAA") > 0) CountB: Abs(Instr(Field1, "BBB") > 0) CountC: Abs(Instr(Field1, "CCC") > 0) and then find the three sums of CountA to CountC. /gustav >>> prodevmg at yahoo.com 14-02-2007 12:18:25 >>> I have a field that is horribly constructed. It looks like so... RECORDID FIELD1 1 AAA, BBB 2 BBB 3 AAA, BBB, CCC 4 BBB, CCC 5 AAA, CCC 6 CCC, BBB Is there a quick way to count all the AAA's and all the BBB's without reconstructing (normalizing) the table? This would entail redoing their input forms and reports. Time is of the essence. Thanks. From prodevmg at yahoo.com Wed Feb 14 08:53:07 2007 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Wed, 14 Feb 2007 06:53:07 -0800 (PST) Subject: [AccessD] Counting multiple items in a field Message-ID: <145336.73521.qm@web33109.mail.mud.yahoo.com> Thanks again. I ended up using the InStr function to pick out each code in the field for each record then added them to a temp table as an individual record. This is how they should be stored anyway in a normal inviornment. Then I can just do a grouping query. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us ----- Original Message ---- From: Gustav Brock To: accessd at databaseadvisors.com Sent: Wednesday, February 14, 2007 7:25:43 AM Subject: Re: [AccessD] Counting multiple items in a field Hi Lonnie I'm not sure I fully understand what you wish to accomplish. Could you provide a sample of data and of your requested output from that sample? /gustav >>> prodevmg at yahoo.com 14-02-2007 13:58:46 >>> Thanks for the quick response Gustav. Actually there are about 50 of the AAA type codes and I need them to print out in the footer of a report. That would seem to give me a lot of columns and also would entail modifying it when a new code came into play. I wanted something more dynamic. Thanks again. ----- Original Message ---- From: Gustav Brock To: accessd at databaseadvisors.com Sent: Wednesday, February 14, 2007 5:35:47 AM Subject: Re: [AccessD] Counting multiple items in a field Hi Lonnie You could, in a query, have three expressions: CountA: Abs(Instr(Field1, "AAA") > 0) CountB: Abs(Instr(Field1, "BBB") > 0) CountC: Abs(Instr(Field1, "CCC") > 0) and then find the three sums of CountA to CountC. /gustav >>> prodevmg at yahoo.com 14-02-2007 12:18:25 >>> I have a field that is horribly constructed. It looks like so... RECORDID FIELD1 1 AAA, BBB 2 BBB 3 AAA, BBB, CCC 4 BBB, CCC 5 AAA, CCC 6 CCC, BBB Is there a quick way to count all the AAA's and all the BBB's without reconstructing (normalizing) the table? This would entail redoing their input forms and reports. Time is of the essence. Thanks. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ____________________________________________________________________________________ Don't pick lemons. See all the new 2007 cars at Yahoo! Autos. http://autos.yahoo.com/new_cars.html From markamatte at hotmail.com Wed Feb 14 09:09:43 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 14 Feb 2007 15:09:43 +0000 Subject: [AccessD] Dates As Criteria In-Reply-To: Message-ID: Here she is...This is making NO SENSE to me...at all??? SELECT tblArrests.ArrestDT, tblArrests.ArrestLocation FROM tblArrests WHERE (((Format([ArrestDT],"Short Date")) Between [Forms]![frmReports]![StartDate] And [Forms]![frmReports]![endDate])); >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] Dates As Criteria >Date: Wed, 14 Feb 2007 00:13:12 +0100 > >Hi Mark > >Show us your query, the SQL. >It probably has to do with a missing US format of the date values. > >/gustav > > >>> markamatte at hotmail.com 13-02-07 22:22 >>> >Hello All, > >In A2K I ahve a form that has 2 unbound date fields...have input masks and >formats as SHORT DATE...I have a query that uses these fields as criteria >in >a BETWEEN statement. The field in the table is a general date. I'm using >2 >records to check...if I set the startdate and enddate on the form to the >dates that are in the db...they return..but if I use ofther dates...nothing >comes back. Example: > >StartDate:2/6/2007 >EndDate: 2/13/2007 > >2 records: >DT=2/9/2007 >DT=2/13/2007 > >Using the above "between startdate and enddate" I return 1 record? >If I change the startdate to 2/9/2007 then I return both >IF I use 2/6 and2/17 as the start and end...I return NOTHING... > >Anyone...please help...I'm sure I've done something silly...but this just >doesn't make sense??? > >Thanks, > >Mark A. Matte > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Valentine?s Day -- Shop for gifts that spell L-O-V-E at MSN Shopping http://shopping.msn.com/content/shp/?ctId=8323,ptnrid=37,ptnrdata=24095&tcode=wlmtagline From Gustav at cactus.dk Wed Feb 14 09:30:03 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 14 Feb 2007 16:30:03 +0100 Subject: [AccessD] Dates As Criteria Message-ID: Hi Mark First, I would follow the advice from Arthur. If not possible, then try this: PARAMETERS [Forms]![frmReports]![StartDate] DateTime, [Forms]![frmReports]![EndDate] DateTime; SELECT tblArrests.ArrestDT, tblArrests.ArrestLocation FROM tblArrests WHERE ArrestDT Between [Forms]![frmReports]![StartDate] And [Forms]![frmReports]![EndDate]; /gustav >>> markamatte at hotmail.com 14-02-2007 16:09:43 >>> Here she is...This is making NO SENSE to me...at all??? SELECT tblArrests.ArrestDT, tblArrests.ArrestLocation FROM tblArrests WHERE (((Format([ArrestDT],"Short Date")) Between [Forms]![frmReports]![StartDate] And [Forms]![frmReports]![endDate])); >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] Dates As Criteria >Date: Wed, 14 Feb 2007 00:13:12 +0100 > >Hi Mark > >Show us your query, the SQL. >It probably has to do with a missing US format of the date values. > >/gustav > > >>> markamatte at hotmail.com 13-02-07 22:22 >>> >Hello All, > >In A2K I ahve a form that has 2 unbound date fields...have input masks and >formats as SHORT DATE...I have a query that uses these fields as criteria in >a BETWEEN statement. The field in the table is a general date. I'm using 2 >records to check...if I set the startdate and enddate on the form to the >dates that are in the db...they return..but if I use ofther dates...nothing >comes back. Example: > >StartDate:2/6/2007 >EndDate: 2/13/2007 > >2 records: >DT=2/9/2007 >DT=2/13/2007 > >Using the above "between startdate and enddate" I return 1 record? >If I change the startdate to 2/9/2007 then I return both >IF I use 2/6 and2/17 as the start and end...I return NOTHING... > >Anyone...please help...I'm sure I've done something silly...but this just >doesn't make sense??? > >Thanks, > >Mark A. Matte From markamatte at hotmail.com Wed Feb 14 09:46:08 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 14 Feb 2007 15:46:08 +0000 Subject: [AccessD] Dates As Criteria In-Reply-To: Message-ID: I set the parameters...no change...and the reason I I use the format function is that the field ArrestDT is stored as a general date...with time. So I format to get just the short date. >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] Dates As Criteria >Date: Wed, 14 Feb 2007 16:30:03 +0100 > >Hi Mark > >First, I would follow the advice from Arthur. >If not possible, then try this: > >PARAMETERS > [Forms]![frmReports]![StartDate] DateTime, > [Forms]![frmReports]![EndDate] DateTime; > >SELECT tblArrests.ArrestDT, tblArrests.ArrestLocation >FROM tblArrests >WHERE ArrestDT Between > [Forms]![frmReports]![StartDate] And > [Forms]![frmReports]![EndDate]; > >/gustav > > >>> markamatte at hotmail.com 14-02-2007 16:09:43 >>> >Here she is...This is making NO SENSE to me...at all??? > >SELECT tblArrests.ArrestDT, tblArrests.ArrestLocation >FROM tblArrests >WHERE (((Format([ArrestDT],"Short Date")) Between >[Forms]![frmReports]![StartDate] And [Forms]![frmReports]![endDate])); > > > > >From: "Gustav Brock" > >Reply-To: Access Developers discussion and problem > >solving > >To: > >Subject: Re: [AccessD] Dates As Criteria > >Date: Wed, 14 Feb 2007 00:13:12 +0100 > > > >Hi Mark > > > >Show us your query, the SQL. > >It probably has to do with a missing US format of the date values. > > > >/gustav > > > > >>> markamatte at hotmail.com 13-02-07 22:22 >>> > >Hello All, > > > >In A2K I ahve a form that has 2 unbound date fields...have input masks >and > >formats as SHORT DATE...I have a query that uses these fields as criteria >in > >a BETWEEN statement. The field in the table is a general date. I'm >using 2 > >records to check...if I set the startdate and enddate on the form to the > >dates that are in the db...they return..but if I use ofther >dates...nothing > >comes back. Example: > > > >StartDate:2/6/2007 > >EndDate: 2/13/2007 > > > >2 records: > >DT=2/9/2007 > >DT=2/13/2007 > > > >Using the above "between startdate and enddate" I return 1 record? > >If I change the startdate to 2/9/2007 then I return both > >IF I use 2/6 and2/17 as the start and end...I return NOTHING... > > > >Anyone...please help...I'm sure I've done something silly...but this just > >doesn't make sense??? > > > >Thanks, > > > >Mark A. Matte > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Don?t miss your chance to WIN 10 hours of private jet travel from Microsoft Office Live http://clk.atdmt.com/MRT/go/mcrssaub0540002499mrt/direct/01/ From markamatte at hotmail.com Wed Feb 14 09:48:50 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 14 Feb 2007 15:48:50 +0000 Subject: [AccessD] Dates As Criteria In-Reply-To: Message-ID: Thanks again gustav, I didn't get a responce from Arthur? Thanks, Mark >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] Dates As Criteria >Date: Wed, 14 Feb 2007 16:30:03 +0100 > >Hi Mark > >First, I would follow the advice from Arthur. >If not possible, then try this: > >PARAMETERS > [Forms]![frmReports]![StartDate] DateTime, > [Forms]![frmReports]![EndDate] DateTime; > >SELECT tblArrests.ArrestDT, tblArrests.ArrestLocation >FROM tblArrests >WHERE ArrestDT Between > [Forms]![frmReports]![StartDate] And > [Forms]![frmReports]![EndDate]; > >/gustav > > >>> markamatte at hotmail.com 14-02-2007 16:09:43 >>> >Here she is...This is making NO SENSE to me...at all??? > >SELECT tblArrests.ArrestDT, tblArrests.ArrestLocation >FROM tblArrests >WHERE (((Format([ArrestDT],"Short Date")) Between >[Forms]![frmReports]![StartDate] And [Forms]![frmReports]![endDate])); > > > > >From: "Gustav Brock" > >Reply-To: Access Developers discussion and problem > >solving > >To: > >Subject: Re: [AccessD] Dates As Criteria > >Date: Wed, 14 Feb 2007 00:13:12 +0100 > > > >Hi Mark > > > >Show us your query, the SQL. > >It probably has to do with a missing US format of the date values. > > > >/gustav > > > > >>> markamatte at hotmail.com 13-02-07 22:22 >>> > >Hello All, > > > >In A2K I ahve a form that has 2 unbound date fields...have input masks >and > >formats as SHORT DATE...I have a query that uses these fields as criteria >in > >a BETWEEN statement. The field in the table is a general date. I'm >using 2 > >records to check...if I set the startdate and enddate on the form to the > >dates that are in the db...they return..but if I use ofther >dates...nothing > >comes back. Example: > > > >StartDate:2/6/2007 > >EndDate: 2/13/2007 > > > >2 records: > >DT=2/9/2007 > >DT=2/13/2007 > > > >Using the above "between startdate and enddate" I return 1 record? > >If I change the startdate to 2/9/2007 then I return both > >IF I use 2/6 and2/17 as the start and end...I return NOTHING... > > > >Anyone...please help...I'm sure I've done something silly...but this just > >doesn't make sense??? > > > >Thanks, > > > >Mark A. Matte > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Laugh, share and connect with Windows Live Messenger http://clk.atdmt.com/MSN/go/msnnkwme0020000001msn/direct/01/?href=http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=hmtagline From Gustav at cactus.dk Wed Feb 14 09:57:20 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 14 Feb 2007 16:57:20 +0100 Subject: [AccessD] Dates As Criteria Message-ID: Hi Mark The quick way to remove the time portion is to use Fix: WHERE Fix(ArrestDT) Between The advice from Arthur about using static functions is a couple of days old. /gustav >>> markamatte at hotmail.com 14-02-2007 16:46:08 >>> I set the parameters...no change...and the reason I I use the format function is that the field ArrestDT is stored as a general date...with time. So I format to get just the short date. From markamatte at hotmail.com Wed Feb 14 10:16:16 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 14 Feb 2007 16:16:16 +0000 Subject: [AccessD] Dates As Criteria In-Reply-To: Message-ID: Thanks Gustav, FIX works. I only posted this yesterday...but do you know the subject of the thread containing Arthur's advice? Thanks, Mark A. Matte >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] Dates As Criteria >Date: Wed, 14 Feb 2007 16:57:20 +0100 > >Hi Mark > >The quick way to remove the time portion is to use Fix: > > WHERE Fix(ArrestDT) Between > >The advice from Arthur about using static functions is a couple of days >old. > >/gustav > > >>> markamatte at hotmail.com 14-02-2007 16:46:08 >>> >I set the parameters...no change...and the reason I I use the format >function is that the field ArrestDT is stored as a general date...with >time. > So I format to get just the short date. > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Valentine?s Day -- Shop for gifts that spell L-O-V-E at MSN Shopping http://shopping.msn.com/content/shp/?ctId=8323,ptnrid=37,ptnrdata=24095&tcode=wlmtagline From paul.hartland at fsmail.net Wed Feb 14 10:37:40 2007 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 14 Feb 2007 17:37:40 +0100 (CET) Subject: [AccessD] Open Merged Word Document With VB/VBA Message-ID: <3632552.521541171471060472.JavaMail.www@wwinf3202> To all, I have a Word document which I have linked to a view on SQL Server, and have been racking my brains for about the last hour trying to open the word document (no problem), and run the merge (this is the problem).... Has anyone any sample code on how to do this, I am sure I have done this before but can't for the life of me find my code... Thanks in advance for any help on this. Paul Hartland paul.hartland at fsmail.net 07730 523179 From Gustav at cactus.dk Wed Feb 14 10:37:43 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 14 Feb 2007 17:37:43 +0100 Subject: [AccessD] Dates As Criteria Message-ID: Hi Mark Sorry, that was on another topic but still: http://databaseadvisors.com/pipermail/accessd/2007-February/049571.html /gustav >>> markamatte at hotmail.com 14-02-2007 17:16:16 >>> Thanks Gustav, FIX works. I only posted this yesterday...but do you know the subject of the thread containing Arthur's advice? Thanks, Mark A. Matte From Lambert.Heenan at AIG.com Wed Feb 14 11:35:41 2007 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Wed, 14 Feb 2007 11:35:41 -0600 Subject: [AccessD] Dates As Criteria Message-ID: <34C8A2AB1EF3564CB0D64DB6AFFDD5C2012010B2@xlivmbx35.aig.com> Not only is this a quick way to remove the time [Using Fix()], it returns a Date data type value. Using Format to remove the time *looks* ok, but what you are getting back from the Format() function is a string. That introduces other possible bug sources. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, February 14, 2007 10:57 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Dates As Criteria Hi Mark The quick way to remove the time portion is to use Fix: WHERE Fix(ArrestDT) Between The advice from Arthur about using static functions is a couple of days old. /gustav >>> markamatte at hotmail.com 14-02-2007 16:46:08 >>> I set the parameters...no change...and the reason I I use the format function is that the field ArrestDT is stored as a general date...with time. So I format to get just the short date. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed Feb 14 12:31:03 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 14 Feb 2007 10:31:03 -0800 Subject: [AccessD] Dates As Criteria In-Reply-To: Message-ID: <0JDG00IL0TZM6O41@l-daemon> Hi Mark: The process can be great sped up by just formatting the results like: SELECT Format([ArrestDT],"Short Date") as ArrestDT, tblArrests.ArrestLocation FROM tblArrests WHERE ArrestDT Between [Forms]![frmReports]![StartDate] And [Forms]![frmReports]![EndDate]; That is if I am understanding what you are asking. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Wednesday, February 14, 2007 7:46 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Dates As Criteria I set the parameters...no change...and the reason I I use the format function is that the field ArrestDT is stored as a general date...with time. So I format to get just the short date. >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] Dates As Criteria >Date: Wed, 14 Feb 2007 16:30:03 +0100 > >Hi Mark > >First, I would follow the advice from Arthur. >If not possible, then try this: > >PARAMETERS > [Forms]![frmReports]![StartDate] DateTime, > [Forms]![frmReports]![EndDate] DateTime; > >SELECT tblArrests.ArrestDT, tblArrests.ArrestLocation >FROM tblArrests >WHERE ArrestDT Between > [Forms]![frmReports]![StartDate] And > [Forms]![frmReports]![EndDate]; > >/gustav > > >>> markamatte at hotmail.com 14-02-2007 16:09:43 >>> >Here she is...This is making NO SENSE to me...at all??? > >SELECT tblArrests.ArrestDT, tblArrests.ArrestLocation >FROM tblArrests >WHERE (((Format([ArrestDT],"Short Date")) Between >[Forms]![frmReports]![StartDate] And [Forms]![frmReports]![endDate])); > > > > >From: "Gustav Brock" > >Reply-To: Access Developers discussion and problem > >solving > >To: > >Subject: Re: [AccessD] Dates As Criteria > >Date: Wed, 14 Feb 2007 00:13:12 +0100 > > > >Hi Mark > > > >Show us your query, the SQL. > >It probably has to do with a missing US format of the date values. > > > >/gustav > > > > >>> markamatte at hotmail.com 13-02-07 22:22 >>> > >Hello All, > > > >In A2K I ahve a form that has 2 unbound date fields...have input masks >and > >formats as SHORT DATE...I have a query that uses these fields as criteria >in > >a BETWEEN statement. The field in the table is a general date. I'm >using 2 > >records to check...if I set the startdate and enddate on the form to the > >dates that are in the db...they return..but if I use ofther >dates...nothing > >comes back. Example: > > > >StartDate:2/6/2007 > >EndDate: 2/13/2007 > > > >2 records: > >DT=2/9/2007 > >DT=2/13/2007 > > > >Using the above "between startdate and enddate" I return 1 record? > >If I change the startdate to 2/9/2007 then I return both > >IF I use 2/6 and2/17 as the start and end...I return NOTHING... > > > >Anyone...please help...I'm sure I've done something silly...but this just > >doesn't make sense??? > > > >Thanks, > > > >Mark A. Matte > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Dont miss your chance to WIN 10 hours of private jet travel from Microsoft Office Live http://clk.atdmt.com/MRT/go/mcrssaub0540002499mrt/direct/01/ From markamatte at hotmail.com Wed Feb 14 12:54:03 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 14 Feb 2007 18:54:03 +0000 Subject: [AccessD] Dates As Criteria In-Reply-To: <0JDG00IL0TZM6O41@l-daemon> Message-ID: Thanks Jim...but that would cause a Circular Reference...I think??? And if I named ArrestDT something else...we are back to where I started...not returning the results I wanted. This does disturb me a little be cause I've used FORMAT(DT_Field,"Short Date") a thousands of times...and never had this issue. Using FIX does seem to 'fix' the problem...lol...I'm still confused...but ok. Thanks, Mark >From: Jim Lawrence >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] Dates As Criteria >Date: Wed, 14 Feb 2007 10:31:03 -0800 > >Hi Mark: > >The process can be great sped up by just formatting the results like: > >SELECT Format([ArrestDT],"Short Date") as ArrestDT, >tblArrests.ArrestLocation >FROM tblArrests >WHERE ArrestDT Between > [Forms]![frmReports]![StartDate] And > [Forms]![frmReports]![EndDate]; > >That is if I am understanding what you are asking. > >Jim > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: Wednesday, February 14, 2007 7:46 AM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Dates As Criteria > >I set the parameters...no change...and the reason I I use the format >function is that the field ArrestDT is stored as a general date...with >time. > > So I format to get just the short date. > > > >From: "Gustav Brock" > >Reply-To: Access Developers discussion and problem > >solving > >To: > >Subject: Re: [AccessD] Dates As Criteria > >Date: Wed, 14 Feb 2007 16:30:03 +0100 > > > >Hi Mark > > > >First, I would follow the advice from Arthur. > >If not possible, then try this: > > > >PARAMETERS > > [Forms]![frmReports]![StartDate] DateTime, > > [Forms]![frmReports]![EndDate] DateTime; > > > >SELECT tblArrests.ArrestDT, tblArrests.ArrestLocation > >FROM tblArrests > >WHERE ArrestDT Between > > [Forms]![frmReports]![StartDate] And > > [Forms]![frmReports]![EndDate]; > > > >/gustav > > > > >>> markamatte at hotmail.com 14-02-2007 16:09:43 >>> > >Here she is...This is making NO SENSE to me...at all??? > > > >SELECT tblArrests.ArrestDT, tblArrests.ArrestLocation > >FROM tblArrests > >WHERE (((Format([ArrestDT],"Short Date")) Between > >[Forms]![frmReports]![StartDate] And [Forms]![frmReports]![endDate])); > > > > > > > > >From: "Gustav Brock" > > >Reply-To: Access Developers discussion and problem > > >solving > > >To: > > >Subject: Re: [AccessD] Dates As Criteria > > >Date: Wed, 14 Feb 2007 00:13:12 +0100 > > > > > >Hi Mark > > > > > >Show us your query, the SQL. > > >It probably has to do with a missing US format of the date values. > > > > > >/gustav > > > > > > >>> markamatte at hotmail.com 13-02-07 22:22 >>> > > >Hello All, > > > > > >In A2K I ahve a form that has 2 unbound date fields...have input masks > >and > > >formats as SHORT DATE...I have a query that uses these fields as >criteria > > >in > > >a BETWEEN statement. The field in the table is a general date. I'm > >using 2 > > >records to check...if I set the startdate and enddate on the form to >the > > >dates that are in the db...they return..but if I use ofther > >dates...nothing > > >comes back. Example: > > > > > >StartDate:2/6/2007 > > >EndDate: 2/13/2007 > > > > > >2 records: > > >DT=2/9/2007 > > >DT=2/13/2007 > > > > > >Using the above "between startdate and enddate" I return 1 record? > > >If I change the startdate to 2/9/2007 then I return both > > >IF I use 2/6 and2/17 as the start and end...I return NOTHING... > > > > > >Anyone...please help...I'm sure I've done something silly...but this >just > > >doesn't make sense??? > > > > > >Thanks, > > > > > >Mark A. Matte > > > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > >_________________________________________________________________ >Dont miss your chance to WIN 10 hours of private jet travel from Microsoft >Office Live http://clk.atdmt.com/MRT/go/mcrssaub0540002499mrt/direct/01/ > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Get in the mood for Valentine's Day. View photos, recipes and more on your Live.com page. http://www.live.com/?addTemplate=ValentinesDay&ocid=T001MSN30A0701 From Gustav at cactus.dk Wed Feb 14 13:12:18 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 14 Feb 2007 20:12:18 +0100 Subject: [AccessD] Dates As Criteria Message-ID: Hi Mark As Lambert wrote, just using Format leaves you with a string not a date. If you have to - and I can't see that's the case here - you must use a US formatted string expression for a date value: SELECT Format([ArrestDT],"\#m\/d\/yyyy\#") .. /gustav >>> markamatte at hotmail.com 14-02-2007 19:54:03 >>> Thanks Jim...but that would cause a Circular Reference...I think??? And if I named ArrestDT something else...we are back to where I started...not returning the results I wanted. This does disturb me a little be cause I've used FORMAT(DT_Field,"Short Date") a thousands of times...and never had this issue. Using FIX does seem to 'fix' the problem...lol...I'm still confused...but ok. From jwcolby at colbyconsulting.com Wed Feb 14 13:15:12 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 14 Feb 2007 14:15:12 -0500 Subject: [AccessD] Dates As Criteria In-Reply-To: <0JDG00IL0TZM6O41@l-daemon> Message-ID: <008801c7506c$73c2ba20$657aa8c0@m6805> Yep, this solution needs to give a different alias to ArrestDT or you will get circular references. SELECT Format([ArrestDT],"Short Date") as ArrestDTNew, tblArrests.ArrestLocation FROM tblArrests WHERE ArrestDT Between [Forms]![frmReports]![StartDate] And [Forms]![frmReports]![EndDate]; John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, February 14, 2007 1:31 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Dates As Criteria Hi Mark: The process can be great sped up by just formatting the results like: SELECT Format([ArrestDT],"Short Date") as ArrestDT, tblArrests.ArrestLocation FROM tblArrests WHERE ArrestDT Between [Forms]![frmReports]![StartDate] And [Forms]![frmReports]![EndDate]; That is if I am understanding what you are asking. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Wednesday, February 14, 2007 7:46 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Dates As Criteria I set the parameters...no change...and the reason I I use the format function is that the field ArrestDT is stored as a general date...with time. So I format to get just the short date. >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] Dates As Criteria >Date: Wed, 14 Feb 2007 16:30:03 +0100 > >Hi Mark > >First, I would follow the advice from Arthur. >If not possible, then try this: > >PARAMETERS > [Forms]![frmReports]![StartDate] DateTime, > [Forms]![frmReports]![EndDate] DateTime; > >SELECT tblArrests.ArrestDT, tblArrests.ArrestLocation FROM tblArrests >WHERE ArrestDT Between > [Forms]![frmReports]![StartDate] And > [Forms]![frmReports]![EndDate]; > >/gustav > > >>> markamatte at hotmail.com 14-02-2007 16:09:43 >>> >Here she is...This is making NO SENSE to me...at all??? > >SELECT tblArrests.ArrestDT, tblArrests.ArrestLocation FROM tblArrests >WHERE (((Format([ArrestDT],"Short Date")) Between >[Forms]![frmReports]![StartDate] And [Forms]![frmReports]![endDate])); > > > > >From: "Gustav Brock" > >Reply-To: Access Developers discussion and problem > >solving > >To: > >Subject: Re: [AccessD] Dates As Criteria > >Date: Wed, 14 Feb 2007 00:13:12 +0100 > > > >Hi Mark > > > >Show us your query, the SQL. > >It probably has to do with a missing US format of the date values. > > > >/gustav > > > > >>> markamatte at hotmail.com 13-02-07 22:22 >>> > >Hello All, > > > >In A2K I ahve a form that has 2 unbound date fields...have input > >masks >and > >formats as SHORT DATE...I have a query that uses these fields as > >criteria >in > >a BETWEEN statement. The field in the table is a general date. I'm >using 2 > >records to check...if I set the startdate and enddate on the form to > >the dates that are in the db...they return..but if I use ofther >dates...nothing > >comes back. Example: > > > >StartDate:2/6/2007 > >EndDate: 2/13/2007 > > > >2 records: > >DT=2/9/2007 > >DT=2/13/2007 > > > >Using the above "between startdate and enddate" I return 1 record? > >If I change the startdate to 2/9/2007 then I return both IF I use 2/6 > >and2/17 as the start and end...I return NOTHING... > > > >Anyone...please help...I'm sure I've done something silly...but this > >just doesn't make sense??? > > > >Thanks, > > > >Mark A. Matte > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Dont miss your chance to WIN 10 hours of private jet travel from Microsoft Office Live http://clk.atdmt.com/MRT/go/mcrssaub0540002499mrt/direct/01/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Wed Feb 14 13:25:35 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 14 Feb 2007 19:25:35 +0000 Subject: [AccessD] Dates As Criteria In-Reply-To: Message-ID: Thanks Gustav, I thought If I used Format(ArrestDT,"Short Date") it would be a date...and not a string? Am I confused? Thanks, Mark >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] Dates As Criteria >Date: Wed, 14 Feb 2007 20:12:18 +0100 > >Hi Mark > >As Lambert wrote, just using Format leaves you with a string not a date. >If you have to - and I can't see that's the case here - you must use a US >formatted string expression for a date value: > >SELECT Format([ArrestDT],"\#m\/d\/yyyy\#") .. > >/gustav > > >>> markamatte at hotmail.com 14-02-2007 19:54:03 >>> >Thanks Jim...but that would cause a Circular Reference...I think??? And if >I >named ArrestDT something else...we are back to where I started...not >returning the results I wanted. This does disturb me a little be cause >I've >used FORMAT(DT_Field,"Short Date") a thousands of times...and never had >this >issue. Using FIX does seem to 'fix' the problem...lol...I'm still >confused...but ok. > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Laugh, share and connect with Windows Live Messenger http://clk.atdmt.com/MSN/go/msnnkwme0020000001msn/direct/01/?href=http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=hmtagline From jwcolby at colbyconsulting.com Wed Feb 14 13:30:27 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 14 Feb 2007 14:30:27 -0500 Subject: [AccessD] Dates As Criteria In-Reply-To: Message-ID: <008901c7506e$953a2970$657aa8c0@m6805> AFAIK, Format ALWAYS returns a string data type. It is just that the information in that string may be a valid date, time, currency etc. IOW if you then fed that to cDate(Format(SomeDate,"ShortDate")) cDate would receive a string that is truly a date and can be converted. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Wednesday, February 14, 2007 2:26 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Dates As Criteria Thanks Gustav, I thought If I used Format(ArrestDT,"Short Date") it would be a date...and not a string? Am I confused? Thanks, Mark >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] Dates As Criteria >Date: Wed, 14 Feb 2007 20:12:18 +0100 > >Hi Mark > >As Lambert wrote, just using Format leaves you with a string not a date. >If you have to - and I can't see that's the case here - you must use a >US formatted string expression for a date value: > >SELECT Format([ArrestDT],"\#m\/d\/yyyy\#") .. > >/gustav > > >>> markamatte at hotmail.com 14-02-2007 19:54:03 >>> >Thanks Jim...but that would cause a Circular Reference...I think??? And >if I named ArrestDT something else...we are back to where I >started...not returning the results I wanted. This does disturb me a >little be cause I've used FORMAT(DT_Field,"Short Date") a thousands of >times...and never had this issue. Using FIX does seem to 'fix' the >problem...lol...I'm still confused...but ok. > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Laugh, share and connect with Windows Live Messenger http://clk.atdmt.com/MSN/go/msnnkwme0020000001msn/direct/01/?href=http://ima gine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=hmtagline -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Wed Feb 14 13:36:40 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 14 Feb 2007 20:36:40 +0100 Subject: [AccessD] Dates As Criteria Message-ID: Hi Mark Yes, you are confused. First, "Short Date" can be anything, it is localized. Thus, the strict US format expression I wrote about Second, as you write it, only "2/14/2007" would be returned. JET SQL has no way to know that is a date - it will think you are making two divisions. Thus, you must wrap it in hashmarks to make it string expression for a date value: "#2/14/2007#". /gustav >>> markamatte at hotmail.com 14-02-2007 20:25:35 >>> Thanks Gustav, I thought If I used Format(ArrestDT,"Short Date") it would be a date...and not a string? Am I confused? Thanks, Mark >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] Dates As Criteria >Date: Wed, 14 Feb 2007 20:12:18 +0100 > >Hi Mark > >As Lambert wrote, just using Format leaves you with a string not a date. >If you have to - and I can't see that's the case here - you must use a US >formatted string expression for a date value: > >SELECT Format([ArrestDT],"\#m\/d\/yyyy\#") .. > >/gustav From garykjos at gmail.com Wed Feb 14 13:40:09 2007 From: garykjos at gmail.com (Gary Kjos) Date: Wed, 14 Feb 2007 13:40:09 -0600 Subject: [AccessD] Dates As Criteria In-Reply-To: <008901c7506e$953a2970$657aa8c0@m6805> References: <008901c7506e$953a2970$657aa8c0@m6805> Message-ID: Or just use DateValue([ArrestDT]) GK On 2/14/07, JWColby wrote: > AFAIK, Format ALWAYS returns a string data type. It is just that the > information in that string may be a valid date, time, currency etc. IOW if > you then fed that to cDate(Format(SomeDate,"ShortDate")) cDate would receive > a string that is truly a date and can be converted. > > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > Sent: Wednesday, February 14, 2007 2:26 PM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Dates As Criteria > > > Thanks Gustav, > > I thought If I used Format(ArrestDT,"Short Date") it would be a date...and > not a string? Am I confused? > > Thanks, > > Mark > > >From: "Gustav Brock" > >Reply-To: Access Developers discussion and problem > >solving > >To: > >Subject: Re: [AccessD] Dates As Criteria > >Date: Wed, 14 Feb 2007 20:12:18 +0100 > > > >Hi Mark > > > >As Lambert wrote, just using Format leaves you with a string not a date. > >If you have to - and I can't see that's the case here - you must use a > >US formatted string expression for a date value: > > > >SELECT Format([ArrestDT],"\#m\/d\/yyyy\#") .. > > > >/gustav > > > > >>> markamatte at hotmail.com 14-02-2007 19:54:03 >>> > >Thanks Jim...but that would cause a Circular Reference...I think??? And > >if I named ArrestDT something else...we are back to where I > >started...not returning the results I wanted. This does disturb me a > >little be cause I've used FORMAT(DT_Field,"Short Date") a thousands of > >times...and never had this issue. Using FIX does seem to 'fix' the > >problem...lol...I'm still confused...but ok. > > > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > _________________________________________________________________ > Laugh, share and connect with Windows Live Messenger > http://clk.atdmt.com/MSN/go/msnnkwme0020000001msn/direct/01/?href=http://ima > gine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=hmtagline > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > 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 jwcolby at colbyconsulting.com Wed Feb 14 13:46:26 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 14 Feb 2007 14:46:26 -0500 Subject: [AccessD] Dates As Criteria In-Reply-To: Message-ID: <008a01c75070$d11fcd30$657aa8c0@m6805> >Or just use DateValue([ArrestDT]) Precisely, or some other method - Fix() etc. My point was simply to inform Mark that Format always returns a string, not that format was the correct method of doing what he desired (which I have stayed out of). John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Wednesday, February 14, 2007 2:40 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Dates As Criteria Or just use DateValue([ArrestDT]) GK On 2/14/07, JWColby wrote: > AFAIK, Format ALWAYS returns a string data type. It is just that the > information in that string may be a valid date, time, currency etc. > IOW if you then fed that to cDate(Format(SomeDate,"ShortDate")) cDate > would receive a string that is truly a date and can be converted. > > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A > Matte > Sent: Wednesday, February 14, 2007 2:26 PM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Dates As Criteria > > > Thanks Gustav, > > I thought If I used Format(ArrestDT,"Short Date") it would be a > date...and not a string? Am I confused? > > Thanks, > > Mark > > >From: "Gustav Brock" > >Reply-To: Access Developers discussion and problem > >solving > >To: > >Subject: Re: [AccessD] Dates As Criteria > >Date: Wed, 14 Feb 2007 20:12:18 +0100 > > > >Hi Mark > > > >As Lambert wrote, just using Format leaves you with a string not a date. > >If you have to - and I can't see that's the case here - you must use > >a US formatted string expression for a date value: > > > >SELECT Format([ArrestDT],"\#m\/d\/yyyy\#") .. > > > >/gustav > > > > >>> markamatte at hotmail.com 14-02-2007 19:54:03 >>> > >Thanks Jim...but that would cause a Circular Reference...I think??? > >And if I named ArrestDT something else...we are back to where I > >started...not returning the results I wanted. This does disturb me a > >little be cause I've used FORMAT(DT_Field,"Short Date") a thousands > >of times...and never had this issue. Using FIX does seem to 'fix' > >the problem...lol...I'm still confused...but ok. > > > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > _________________________________________________________________ > Laugh, share and connect with Windows Live Messenger > http://clk.atdmt.com/MSN/go/msnnkwme0020000001msn/direct/01/?href=http > ://ima > gine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=hmtag > line > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Wed Feb 14 13:47:17 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 14 Feb 2007 19:47:17 +0000 Subject: [AccessD] Dates As Criteria In-Reply-To: Message-ID: Ok...that makes sense now. I'll keep that in mind when using dates. Thanks, Mark >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] Dates As Criteria >Date: Wed, 14 Feb 2007 20:36:40 +0100 > >Hi Mark > >Yes, you are confused. > >First, "Short Date" can be anything, it is localized. Thus, the strict US >format expression I wrote about >Second, as you write it, only "2/14/2007" would be returned. JET SQL has no >way to know that is a date - it will think you are making two divisions. >Thus, you must wrap it in hashmarks to make it string expression for a date >value: "#2/14/2007#". > >/gustav > > >>> markamatte at hotmail.com 14-02-2007 20:25:35 >>> > >Thanks Gustav, > >I thought If I used Format(ArrestDT,"Short Date") it would be a date...and >not a string? Am I confused? > >Thanks, > >Mark > > >From: "Gustav Brock" > >Reply-To: Access Developers discussion and problem > >solving > >To: > >Subject: Re: [AccessD] Dates As Criteria > >Date: Wed, 14 Feb 2007 20:12:18 +0100 > > > >Hi Mark > > > >As Lambert wrote, just using Format leaves you with a string not a date. > >If you have to - and I can't see that's the case here - you must use a US > >formatted string expression for a date value: > > > >SELECT Format([ArrestDT],"\#m\/d\/yyyy\#") .. > > > >/gustav > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Check out all that glitters with the MSN Entertainment Guide to the Academy Awards? http://movies.msn.com/movies/oscars2007/?icid=ncoscartagline2 From markamatte at hotmail.com Wed Feb 14 13:49:43 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 14 Feb 2007 19:49:43 +0000 Subject: [AccessD] Textr box on a Report In-Reply-To: Message-ID: Hello All, In A2K I have a report that needs a seperate count of somehting in the DB...non related to the recordsource of the report. It is a single number...but there is a lengthy SQL statement that gets this number...any suggestions on the best approach? I was thinking about creating a query...then using dlookup. Does this sound like a good approach? Thanks, Mark A. Matte _________________________________________________________________ Don?t miss your chance to WIN 10 hours of private jet travel from Microsoft Office Live http://clk.atdmt.com/MRT/go/mcrssaub0540002499mrt/direct/01/ From jwcolby at colbyconsulting.com Wed Feb 14 13:58:00 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 14 Feb 2007 14:58:00 -0500 Subject: [AccessD] Textr box on a Report In-Reply-To: Message-ID: <009c01c75072$6e6adf20$657aa8c0@m6805> Dlookup works. You could also write a function that returns the value. Dlookup is not known for its speed but it is just there, always available (so seductive). John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Wednesday, February 14, 2007 2:50 PM To: accessd at databaseadvisors.com Subject: [AccessD] Textr box on a Report Hello All, In A2K I have a report that needs a seperate count of somehting in the DB...non related to the recordsource of the report. It is a single number...but there is a lengthy SQL statement that gets this number...any suggestions on the best approach? I was thinking about creating a query...then using dlookup. Does this sound like a good approach? Thanks, Mark A. Matte _________________________________________________________________ Dont miss your chance to WIN 10 hours of private jet travel from Microsoft Office Live http://clk.atdmt.com/MRT/go/mcrssaub0540002499mrt/direct/01/ From accessd at shaw.ca Wed Feb 14 16:41:48 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 14 Feb 2007 14:41:48 -0800 Subject: [AccessD] Textr box on a Report In-Reply-To: Message-ID: <0JDH003QB5LITMW1@l-daemon> Mark: Have you considered using a cross-tab query to populate the report? HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Wednesday, February 14, 2007 11:50 AM To: accessd at databaseadvisors.com Subject: [AccessD] Textr box on a Report Hello All, In A2K I have a report that needs a seperate count of somehting in the DB...non related to the recordsource of the report. It is a single number...but there is a lengthy SQL statement that gets this number...any suggestions on the best approach? I was thinking about creating a query...then using dlookup. Does this sound like a good approach? Thanks, Mark A. Matte _________________________________________________________________ Dont miss your chance to WIN 10 hours of private jet travel from Microsoft Office Live http://clk.atdmt.com/MRT/go/mcrssaub0540002499mrt/direct/01/ From martyconnelly at shaw.ca Wed Feb 14 17:59:55 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 14 Feb 2007 15:59:55 -0800 Subject: [AccessD] Open Merged Word Document With VB/VBA In-Reply-To: <3632552.521541171471060472.JavaMail.www@wwinf3202> References: <3632552.521541171471060472.JavaMail.www@wwinf3202> Message-ID: <45D3A27B.1060606@shaw.ca> http://support.microsoft.com/?id=209976 http://word.mvps.org/FAQs/Mailmerge.htm paul.hartland at fsmail.net wrote: >To all, > >I have a Word document which I have linked to a view on SQL Server, and have been racking my brains for about the last hour trying to open the word document (no problem), and run the merge (this is the problem).... > >Has anyone any sample code on how to do this, I am sure I have done this before but can't for the life of me find my code... > >Thanks in advance for any help on this. > > >Paul Hartland >paul.hartland at fsmail.net >07730 523179 > > -- Marty Connelly Victoria, B.C. Canada From artful at rogers.com Wed Feb 14 18:13:34 2007 From: artful at rogers.com (artful at rogers.com) Date: Wed, 14 Feb 2007 16:13:34 -0800 (PST) Subject: [AccessD] Textr box on a Report Message-ID: <926506.28371.qm@web88206.mail.re2.yahoo.com> In all probability it's just a DLookup or DSum but even if the query is complex, it will all resolve down to some such variant. And then you could plonk the whole statement into a saved query and just call that instead. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Jim Lawrence To: Access Developers discussion and problem solving Sent: Wednesday, February 14, 2007 5:41:48 PM Subject: Re: [AccessD] Textr box on a Report Mark: Have you considered using a cross-tab query to populate the report? HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Wednesday, February 14, 2007 11:50 AM To: accessd at databaseadvisors.com Subject: [AccessD] Textr box on a Report Hello All, In A2K I have a report that needs a seperate count of somehting in the DB...non related to the recordsource of the report. It is a single number...but there is a lengthy SQL statement that gets this number...any suggestions on the best approach? I was thinking about creating a query...then using dlookup. Does this sound like a good approach? Thanks, Mark A. Matte _________________________________________________________________ Dont miss your chance to WIN 10 hours of private jet travel from Microsoft Office Live http://clk.atdmt.com/MRT/go/mcrssaub0540002499mrt/direct/01/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Wed Feb 14 20:40:02 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 15 Feb 2007 02:40:02 +0000 Subject: [AccessD] Textr box on a Report In-Reply-To: <0JDH003QB5LITMW1@l-daemon> Message-ID: Thanks Jim, I'm not sure how I would use a crosstab to come up with the single number I'm looking for?...and then reference from the text box on the report? I am curious about your approach. Thanks, Mark >From: Jim Lawrence >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] Textr box on a Report >Date: Wed, 14 Feb 2007 14:41:48 -0800 > >Mark: > >Have you considered using a cross-tab query to populate the report? > >HTH >Jim > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: Wednesday, February 14, 2007 11:50 AM >To: accessd at databaseadvisors.com >Subject: [AccessD] Textr box on a Report > >Hello All, > >In A2K I have a report that needs a seperate count of somehting in the >DB...non related to the recordsource of the report. It is a single >number...but there is a lengthy SQL statement that gets this number...any >suggestions on the best approach? I was thinking about creating a >query...then using dlookup. Does this sound like a good approach? > >Thanks, > >Mark A. Matte > >_________________________________________________________________ >Dont miss your chance to WIN 10 hours of private jet travel from Microsoft >Office Live http://clk.atdmt.com/MRT/go/mcrssaub0540002499mrt/direct/01/ > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Laugh, share and connect with Windows Live Messenger http://clk.atdmt.com/MSN/go/msnnkwme0020000001msn/direct/01/?href=http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=hmtagline From markamatte at hotmail.com Wed Feb 14 20:41:30 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 15 Feb 2007 02:41:30 +0000 Subject: [AccessD] Textr box on a Report In-Reply-To: <926506.28371.qm@web88206.mail.re2.yahoo.com> Message-ID: Hey Arthur, Thats what I did...built the final query...and referenced it via DLookup on the report. Thanks Again, Mark A. Matte >From: artful at rogers.com >Reply-To: Access Developers discussion and problem >solving >To: Access Developers discussion and problem >solving >Subject: Re: [AccessD] Textr box on a Report >Date: Wed, 14 Feb 2007 16:13:34 -0800 (PST) > >In all probability it's just a DLookup or DSum but even if the query is >complex, it will all resolve down to some such variant. And then you could >plonk the whole statement into a saved query and just call that instead. > > >Arthur Fuller >Technical Writer, Data Modeler, SQL Sensei >Artful Databases Organization >www.artfulsoftware.com > > > > >----- Original Message ---- >From: Jim Lawrence >To: Access Developers discussion and problem solving > >Sent: Wednesday, February 14, 2007 5:41:48 PM >Subject: Re: [AccessD] Textr box on a Report > > >Mark: > >Have you considered using a cross-tab query to populate the report? > >HTH >Jim > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: Wednesday, February 14, 2007 11:50 AM >To: accessd at databaseadvisors.com >Subject: [AccessD] Textr box on a Report > >Hello All, > >In A2K I have a report that needs a seperate count of somehting in the >DB...non related to the recordsource of the report. It is a single >number...but there is a lengthy SQL statement that gets this number...any >suggestions on the best approach? I was thinking about creating a >query...then using dlookup. Does this sound like a good approach? > >Thanks, > >Mark A. Matte > >_________________________________________________________________ >Dont miss your chance to WIN 10 hours of private jet travel from Microsoft >Office Live http://clk.atdmt.com/MRT/go/mcrssaub0540002499mrt/direct/01/ > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Invite your Hotmail contacts to join your friends list with Windows Live Spaces http://clk.atdmt.com/MSN/go/msnnkwsp0070000001msn/direct/01/?href=http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us From markamatte at hotmail.com Wed Feb 14 20:45:59 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 15 Feb 2007 02:45:59 +0000 Subject: [AccessD] ALERT ON MAINTENANCE!!!! In-Reply-To: <926506.28371.qm@web88206.mail.re2.yahoo.com> Message-ID: Hello All, I don't know who else monitors the Maintenance List...but I just saw a spam email for cialas on that list...the alarming thing is the subject line is looks like a real message from the list...and sent to list advisor... Just an FYI to the powers that be... Thanks, Mark A. Matte _________________________________________________________________ Turn searches into helpful donations. Make your search count. http://click4thecause.live.com/search/charity/default.aspx?source=hmemtagline_donation&FORM=WLMTAG From darrend at nimble.com.au Thu Feb 15 03:56:33 2007 From: darrend at nimble.com.au (Darren DICK) Date: Thu, 15 Feb 2007 20:56:33 +1100 Subject: [AccessD] WAY OT: Create a network Connection Message-ID: <20070215095635.UFEY6229.oaamta01ps.mx.bigpond.com@DENZILLAP> Hi All Anyone know how to create a VPN connection in code Or how to copy one from my "My Network" connections to the "My Network Connections" on another person's PC I can make and copy the shortcut - but I want to copy the actual VPN Network connection itself - can it be done? So that I can just drop it into their "My Network connections" (need help with that too - anyone know what that folder is called) :-) Any suggestions?? This is way OT so please respond off list Thanks See ya DD From darrend at nimble.com.au Thu Feb 15 04:32:38 2007 From: darrend at nimble.com.au (Darren DICK) Date: Thu, 15 Feb 2007 21:32:38 +1100 Subject: [AccessD] WAY OT: Start a REG file form a batch file Message-ID: <20070215103239.UQYM6229.oaamta01ps.mx.bigpond.com@DENZILLAP> Hi All I have a REG (registry file) that works fine when double clicked What would be the syntax for 'starting' it from a batch file? I have tried regsvr32 MSSSQL.REG and even tried regedit MSSSQL.REG No joy Any suggestions? Thanks DD From stuart at lexacorp.com.pg Thu Feb 15 06:43:26 2007 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 15 Feb 2007 22:43:26 +1000 Subject: [AccessD] WAY OT: Start a REG file form a batch file In-Reply-To: <20070215103239.UQYM6229.oaamta01ps.mx.bigpond.com@DENZILLAP> References: <20070215103239.UQYM6229.oaamta01ps.mx.bigpond.com@DENZILLAP> Message-ID: <45D4556E.22530.6D85F6@stuart.lexacorp.com.pg> If you look in Explorer-Tools-Folder Options-File Types, select Reg and click on Advanced, then click on Merge followed by Edit, you should see something like regedit.exe "%1" If it is that, then you're second version should work. On 15 Feb 2007 at 21:32, Darren DICK wrote: > Hi All > > > > I have a REG (registry file) that works fine when double clicked > > > > What would be the syntax for 'starting' it from a batch file? > > > > I have tried regsvr32 MSSSQL.REG and even tried regedit MSSSQL.REG > > > > No joy > > > > Any suggestions? > > > > Thanks > > > > DD > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- Stuart From darrend at nimble.com.au Thu Feb 15 07:01:24 2007 From: darrend at nimble.com.au (Darren DICK) Date: Fri, 16 Feb 2007 00:01:24 +1100 Subject: [AccessD] WAY OT: Start a REG file form a batch file In-Reply-To: <45D4556E.22530.6D85F6@stuart.lexacorp.com.pg> Message-ID: <200702151301.l1FD1Zi05018@databaseadvisors.com> Hi Stuart Thanks for the reply Yes it is working now Brilliant Darren ------------------ T: 0424 696 433 -----Original Message----- From: Stuart McLachlan [mailto:stuart at lexacorp.com.pg] Sent: Thursday, 15 February 2007 11:43 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] WAY OT: Start a REG file form a batch file If you look in Explorer-Tools-Folder Options-File Types, select Reg and click on Advanced, then click on Merge followed by Edit, you should see something like regedit.exe "%1" If it is that, then you're second version should work. On 15 Feb 2007 at 21:32, Darren DICK wrote: > Hi All > > > > I have a REG (registry file) that works fine when double clicked > > > > What would be the syntax for 'starting' it from a batch file? > > > > I have tried regsvr32 MSSSQL.REG and even tried regedit MSSSQL.REG > > > > No joy > > > > Any suggestions? > > > > Thanks > > > > DD > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- Stuart -- 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 Feb 15 07:26:05 2007 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 15 Feb 2007 23:26:05 +1000 Subject: [AccessD] WAY OT: Create a network Connection In-Reply-To: <20070215095635.UFEY6229.oaamta01ps.mx.bigpond.com@DENZILLAP> References: <20070215095635.UFEY6229.oaamta01ps.mx.bigpond.com@DENZILLAP> Message-ID: <45D45F6D.23632.238061@stuart.lexacorp.com.pg> On 15 Feb 2007 at 20:56, Darren DICK wrote: > Anyone know how to create a VPN connection in code. The only way that I can see to do it would be to create an AutoIt script http://www.autoitscript.com/autoit3/ AutoIt v3 is a freeware BASIC-like scripting language designed for automating the Windows GUI and general scripting. It uses a combination of simulated keystrokes, mouse movement and window/control manipulation in order to automate tasks in a way not possible or reliable with other languages (e.g. VBScript and SendKeys). AutoIt is also very small, self- contained and will run on 95, 98, ME, NT4, 2000, XP, 2003 out of the box with no annoying "runtimes" required! You can even make compiled executable scripts that can run without AutoIt being installed! AutoIt was initially designed for PC "roll out" situations to reliably configure thousands of PCs, but with the arrival of v3 it has become a powerful language able to cope with most scripting needs. > > Or how to copy one from my "My Network" connections to the "My Network > Connections" on another person's PC > > I can make and copy the shortcut - but I want to copy the actual VPN Network > connection itself - can it be done? > > So that I can just drop it into their "My Network connections" (need help > with that too - anyone know what that folder is called) :-) > > Any suggestions?? -- Stuart From artful at rogers.com Thu Feb 15 08:24:34 2007 From: artful at rogers.com (artful at rogers.com) Date: Thu, 15 Feb 2007 06:24:34 -0800 (PST) Subject: [AccessD] WAY OT: Start a REG file form a batch file Message-ID: <823638.31136.qm@web88209.mail.re2.yahoo.com> I know a very cool way to do this. Right click Send To on your start-menu and then add an item, which is equivalent to regsrvr32.exe. Once that is done you can then drop any .REG file on the Send To button and it will execute. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Darren DICK To: Access Developers discussion and problem solving Sent: Thursday, February 15, 2007 5:32:38 AM Subject: [AccessD] WAY OT: Start a REG file form a batch file Hi All I have a REG (registry file) that works fine when double clicked What would be the syntax for 'starting' it from a batch file? I have tried regsvr32 MSSSQL.REG and even tried regedit MSSSQL.REG No joy Any suggestions? Thanks DD From darrend at nimble.com.au Thu Feb 15 09:31:36 2007 From: darrend at nimble.com.au (Darren DICK) Date: Fri, 16 Feb 2007 02:31:36 +1100 Subject: [AccessD] WAY OT: Start a REG file form a batch file In-Reply-To: <823638.31136.qm@web88209.mail.re2.yahoo.com> Message-ID: <20070215153137.NNGM14659.oaamta04ps.mx.bigpond.com@DENZILLAP> Hi Arthur Thanks for the response Yes that is way cool But I wanted to run the "regsvr32 SomeCool.Reg" from a batch file It did end up working after Stuarts promptings Many thanks Darren -----Original Message----- From: artful at rogers.com [mailto:artful at rogers.com] Sent: Friday, 16 February 2007 1:25 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] WAY OT: Start a REG file form a batch file I know a very cool way to do this. Right click Send To on your start-menu and then add an item, which is equivalent to regsrvr32.exe. Once that is done you can then drop any .REG file on the Send To button and it will execute. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Darren DICK To: Access Developers discussion and problem solving Sent: Thursday, February 15, 2007 5:32:38 AM Subject: [AccessD] WAY OT: Start a REG file form a batch file Hi All I have a REG (registry file) that works fine when double clicked What would be the syntax for 'starting' it from a batch file? I have tried regsvr32 MSSSQL.REG and even tried regedit MSSSQL.REG No joy Any suggestions? Thanks DD -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Thu Feb 15 11:54:01 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 15 Feb 2007 17:54:01 +0000 Subject: [AccessD] Missing references In-Reply-To: <20070215153137.NNGM14659.oaamta04ps.mx.bigpond.com@DENZILLAP> Message-ID: Hello All, In A97...how do you handle missing references when distributing a DB ( not a package...just a FE copied to a local machine)? Thanks, Mark A. Matte _________________________________________________________________ >From predictions to trailers, check out the MSN Entertainment Guide to the Academy Awards? http://movies.msn.com/movies/oscars2007/?icid=ncoscartagline1 From jwcolby at colbyconsulting.com Thu Feb 15 11:59:40 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Thu, 15 Feb 2007 12:59:40 -0500 Subject: [AccessD] Missing references In-Reply-To: Message-ID: <00fa01c7512b$111fd190$657aa8c0@m6805> Late binding will fix most of these IME. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Thursday, February 15, 2007 12:54 PM To: accessd at databaseadvisors.com Subject: [AccessD] Missing references Hello All, In A97...how do you handle missing references when distributing a DB ( not a package...just a FE copied to a local machine)? Thanks, Mark A. Matte _________________________________________________________________ >From predictions to trailers, check out the MSN Entertainment Guide to >the Academy Awards. http://movies.msn.com/movies/oscars2007/?icid=ncoscartagline1 From markamatte at hotmail.com Thu Feb 15 13:52:35 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 15 Feb 2007 19:52:35 +0000 Subject: [AccessD] Date() Problem In-Reply-To: <00fa01c7512b$111fd190$657aa8c0@m6805> Message-ID: Hello All, I have had a nightmare with dates lately. I have a query that runs using Date() as criteria because I only want stuff for current date. I was using Format()...but will change to FIX() after the last thread...the problem is on 1 machine neither works with Date() as criteria. Just on this 1 machine(that I know of) when I try to run the query I get the error: "Function isn't available in expressions in query expression ' (((Fix([dt]))=Date()))'." If I switch Date() to an actual date #1/24/07# it runs fine. I even tried FIX(Now())...and this worked...apparently this machine does not like Date()??? Any ideas/suggestions? I need to know if I'm using Date() the wrong way(kinda like FORMAT) or is this something unique to this 1 machine? Thanks Again, Mark A. Matte _________________________________________________________________ Invite your Hotmail contacts to join your friends list with Windows Live Spaces http://clk.atdmt.com/MSN/go/msnnkwsp0070000001msn/direct/01/?href=http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us From Gustav at cactus.dk Thu Feb 15 13:59:28 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 15 Feb 2007 20:59:28 +0100 Subject: [AccessD] Date() Problem Message-ID: Hi Mark That is because you have a missing reference on that machine. /gustav >>> markamatte at hotmail.com 15-02-2007 20:52:35 >>> Hello All, I have had a nightmare with dates lately. I have a query that runs using Date() as criteria because I only want stuff for current date. I was using Format()...but will change to FIX() after the last thread...the problem is on 1 machine neither works with Date() as criteria. Just on this 1 machine(that I know of) when I try to run the query I get the error: "Function isn't available in expressions in query expression ' (((Fix([dt]))=Date()))'." If I switch Date() to an actual date #1/24/07# it runs fine. I even tried FIX(Now())...and this worked...apparently this machine does not like Date()??? Any ideas/suggestions? I need to know if I'm using Date() the wrong way(kinda like FORMAT) or is this something unique to this 1 machine? Thanks Again, Mark A. Matte From markamatte at hotmail.com Thu Feb 15 14:32:49 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 15 Feb 2007 20:32:49 +0000 Subject: [AccessD] Date() Problem In-Reply-To: Message-ID: Gustav, First thing I checked for...on my machine I have: Visual Basic For Applications MS Access 8.0 Object Library MS DAO 3.6 object Library ...and the same on this machine??? <<>> It was the same...so I removed the DAO...and added it back(just to see)...and now it works...Thanks??? I give up...nothing is making sense today... Thanks again, Mark A. Matte >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] Date() Problem >Date: Thu, 15 Feb 2007 20:59:28 +0100 > >Hi Mark > >That is because you have a missing reference on that machine. > >/gustav > > >>> markamatte at hotmail.com 15-02-2007 20:52:35 >>> >Hello All, > >I have had a nightmare with dates lately. I have a query that runs using >Date() as criteria because I only want stuff for current date. I was using >Format()...but will change to FIX() after the last thread...the problem is >on 1 machine neither works with Date() as criteria. Just on this 1 >machine(that I know of) when I try to run the query I get the error: > >"Function isn't available in expressions in query expression ' >(((Fix([dt]))=Date()))'." > >If I switch Date() to an actual date #1/24/07# it runs fine. I even tried >FIX(Now())...and this worked...apparently this machine does not like >Date()??? > >Any ideas/suggestions? I need to know if I'm using Date() the wrong >way(kinda like FORMAT) or is this something unique to this 1 machine? > >Thanks Again, > >Mark A. Matte > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Don?t miss your chance to WIN 10 hours of private jet travel from Microsoft Office Live http://clk.atdmt.com/MRT/go/mcrssaub0540002499mrt/direct/01/ From markamatte at hotmail.com Thu Feb 15 14:35:02 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 15 Feb 2007 20:35:02 +0000 Subject: [AccessD] Missing references In-Reply-To: <00fa01c7512b$111fd190$657aa8c0@m6805> Message-ID: John, Since I'm not versed in Binding(Late or Early) ...I've looked at MS knowledge base...and most of what I found was problems and fixes. Any suggestions for 'crash course READING' in bindings? Thanks, Mark >From: "JWColby" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] Missing references >Date: Thu, 15 Feb 2007 12:59:40 -0500 > >Late binding will fix most of these IME. > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: Thursday, February 15, 2007 12:54 PM >To: accessd at databaseadvisors.com >Subject: [AccessD] Missing references > >Hello All, > >In A97...how do you handle missing references when distributing a DB ( not >a >package...just a FE copied to a local machine)? > >Thanks, > >Mark A. Matte > >_________________________________________________________________ > >From predictions to trailers, check out the MSN Entertainment Guide to > >the >Academy Awards. >http://movies.msn.com/movies/oscars2007/?icid=ncoscartagline1 > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Get in the mood for Valentine's Day. View photos, recipes and more on your Live.com page. http://www.live.com/?addTemplate=ValentinesDay&ocid=T001MSN30A0701 From carbonnb at gmail.com Thu Feb 15 15:38:02 2007 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Thu, 15 Feb 2007 16:38:02 -0500 Subject: [AccessD] Missing references In-Reply-To: References: <00fa01c7512b$111fd190$657aa8c0@m6805> Message-ID: On 2/15/07, Mark A Matte wrote: > Since I'm not versed in Binding(Late or Early) ...I've looked at MS > knowledge base...and most of what I found was problems and fixes. > > Any suggestions for 'crash course READING' in bindings? Here's a quick description that I lifted from an article I wrote http://www.databaseadvisors.com/newsletters/newsletter072002/0207wordautomationlpt1.asp Early Binding Versus Late Binding First you need to decide whether to use Early Binding or Late Binding. Early Binding allows you to dimension variables by their specific data type. For example, the following declarations refer to the Word Application and Document objects rather than declaring both as generic objects: Dim objWord as Word.Application Dim doc as Word.Document Early Binding also enables a few built-in Intelli-sense features: Auto Complete, Auto List Members, and Auto Quick Info. In addition, using early binding allows you to view Word's object model in the Object Browser. The downside to Early Binding is that you have to set a reference to a specific version of Word. Sometimes Access is smart enough to change the reference to the specific version of Word that is installed on the PC you are deploying your application; often it isn't, and you could end up with problems relating to the references. If you decide to use Late Binding, you will have to dimension all of your variables as Objects as follows: Dim objWord as Object Dim doc as Object Consequently, you cannot access any of your variables until you set them to a specific object as shown below: Set objWord = CreateObject("Word.Application") Set doc = objWord.Documents.Open("C:\Path\To\file.doc") In addition, the Intelli-sense features, Auto Complete, Auto List Members, Auto Quick Info and disables viewing of Word's object model in the Object Browser. However, Late Binding doesn't require that you set a reference to any Word Object Library, which can be advantageous if you are deploying run-time versions of your application to mixed OS/Office Version platforms. Instead of choosing one or the other, we suggest you compromise and use both. During the development phase use Early Binding. Once you release the application, remove all specific references and change each to Object?the best of both worlds! Now that the binding issue is resolved, let's roll up our sleeves and dive into writing some code. -- 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 jwcolby at colbyconsulting.com Thu Feb 15 15:56:40 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Thu, 15 Feb 2007 16:56:40 -0500 Subject: [AccessD] Missing references In-Reply-To: Message-ID: <012801c7514c$2c884180$657aa8c0@m6805> BTW, you can use BOTH early binding and late binding by wrapping TWO sets of dim statements in #if statements: #Const EARLYBINDING = True #If EARLYBINDING = -1 Then Private mxlApp As Excel.Application Private mXLWB As Workbook Private mXLWS As Worksheet #Else Private mxlApp As Object Private mXLWB As Object Private mXLWS As Object #End If Now you can simply set EARLYBINDING to TRUE (-1) and the compiler will dim the objects at compile time. Set EARLYBINDING to 0 and the compiler will dim the objects at run time. I do this so that I can use early binding during development, and then just "throw a switch" to use late binding for runtime on the actual user's PC. Of course you have to do that everywhere you want to bind such objects, inside of functions that dim local objects, in the header for global objects etc. Once it is set up though it works very sweet. And Oh By The Way, there is a GLOBAL (to every module in the library) way to do this: In the VB Editor, click Tools / MyContainer Properties (the bottom menu item) In the General tab there is a "Conditional Compilation Arguments" where you could define your EarlyBinding constant. Doing it there causes ALL MODULES that use that constant to switch from early binding to late binding and back. Very handy!!! John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan Carbonnell Sent: Thursday, February 15, 2007 4:38 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing references On 2/15/07, Mark A Matte wrote: > Since I'm not versed in Binding(Late or Early) ...I've looked at MS > knowledge base...and most of what I found was problems and fixes. > > Any suggestions for 'crash course READING' in bindings? Here's a quick description that I lifted from an article I wrote http://www.databaseadvisors.com/newsletters/newsletter072002/0207wordautomat ionlpt1.asp Early Binding Versus Late Binding First you need to decide whether to use Early Binding or Late Binding. Early Binding allows you to dimension variables by their specific data type. For example, the following declarations refer to the Word Application and Document objects rather than declaring both as generic objects: Dim objWord as Word.Application Dim doc as Word.Document Early Binding also enables a few built-in Intelli-sense features: Auto Complete, Auto List Members, and Auto Quick Info. In addition, using early binding allows you to view Word's object model in the Object Browser. The downside to Early Binding is that you have to set a reference to a specific version of Word. Sometimes Access is smart enough to change the reference to the specific version of Word that is installed on the PC you are deploying your application; often it isn't, and you could end up with problems relating to the references. If you decide to use Late Binding, you will have to dimension all of your variables as Objects as follows: Dim objWord as Object Dim doc as Object Consequently, you cannot access any of your variables until you set them to a specific object as shown below: Set objWord = CreateObject("Word.Application") Set doc = objWord.Documents.Open("C:\Path\To\file.doc") In addition, the Intelli-sense features, Auto Complete, Auto List Members, Auto Quick Info and disables viewing of Word's object model in the Object Browser. However, Late Binding doesn't require that you set a reference to any Word Object Library, which can be advantageous if you are deploying run-time versions of your application to mixed OS/Office Version platforms. Instead of choosing one or the other, we suggest you compromise and use both. During the development phase use Early Binding. Once you release the application, remove all specific references and change each to Object-the best of both worlds! Now that the binding issue is resolved, let's roll up our sleeves and dive into writing some code. -- 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 markamatte at hotmail.com Thu Feb 15 15:59:14 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 15 Feb 2007 21:59:14 +0000 Subject: [AccessD] Missing references In-Reply-To: Message-ID: Thanks Bryan, The only reason I asked was that JC suggested using late as a solution to my original post: "In A97...how do you handle missing references when distributing a DB ( not a package...just a FE copied to a local machine)? " I'm not referencing any other app or docs...I was referring to when you are in a module and goto TOOLS---REFERENCES...and there is something missing or incorrect. Is binding relevant at this point? If not...back to the original question:...how to handle the 'missing'??? This has not been my week for thinking...lol...its entirely probable that I'm confused...again. Thanks, Mark A. Matte >From: "Bryan Carbonnell" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Missing references >Date: Thu, 15 Feb 2007 16:38:02 -0500 > >On 2/15/07, Mark A Matte wrote: > > > Since I'm not versed in Binding(Late or Early) ...I've looked at MS > > knowledge base...and most of what I found was problems and fixes. > > > > Any suggestions for 'crash course READING' in bindings? > >Here's a quick description that I lifted from an article I wrote >http://www.databaseadvisors.com/newsletters/newsletter072002/0207wordautomationlpt1.asp > > >Early Binding Versus Late Binding > >First you need to decide whether to use Early Binding or Late Binding. >Early Binding allows you to dimension variables by their specific data >type. For example, the following declarations refer to the Word >Application and Document objects rather than declaring both as generic >objects: > >Dim objWord as Word.Application >Dim doc as Word.Document > >Early Binding also enables a few built-in Intelli-sense features: Auto >Complete, Auto List Members, and Auto Quick Info. In addition, using >early binding allows you to view Word's object model in the Object >Browser. > >The downside to Early Binding is that you have to set a reference to a >specific version of Word. Sometimes Access is smart enough to change >the reference to the specific version of Word that is installed on the >PC you are deploying your application; often it isn't, and you could >end up with problems relating to the references. > >If you decide to use Late Binding, you will have to dimension all of >your variables as Objects as follows: > >Dim objWord as Object >Dim doc as Object > >Consequently, you cannot access any of your variables until you set >them to a specific object as shown below: > >Set objWord = CreateObject("Word.Application") >Set doc = objWord.Documents.Open("C:\Path\To\file.doc") > >In addition, the Intelli-sense features, Auto Complete, Auto List >Members, Auto Quick Info and disables viewing of Word's object model >in the Object Browser. However, Late Binding doesn't require that you >set a reference to any Word Object Library, which can be advantageous >if you are deploying run-time versions of your application to mixed >OS/Office Version platforms. > >Instead of choosing one or the other, we suggest you compromise and >use both. During the development phase use Early Binding. Once you >release the application, remove all specific references and change >each to Object?the best of both worlds! > >Now that the binding issue is resolved, let's roll up our sleeves and >dive into writing some code. > > > >-- >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 _________________________________________________________________ Get in the mood for Valentine's Day. View photos, recipes and more on your Live.com page. http://www.live.com/?addTemplate=ValentinesDay&ocid=T001MSN30A0701 From markamatte at hotmail.com Thu Feb 15 16:02:09 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 15 Feb 2007 22:02:09 +0000 Subject: [AccessD] Missing references In-Reply-To: <012801c7514c$2c884180$657aa8c0@m6805> Message-ID: Thanks John, I'm not referencing any other app or docs...I was referring to when you are in a module and goto TOOLS---REFERENCES...and there is something missing or incorrect. Is binding relevant at this point? If not...back to the original question:...how to handle the 'missing'??? Am I still confused>..lol...??? Thanks, Mark A. Matte >From: "JWColby" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] Missing references >Date: Thu, 15 Feb 2007 16:56:40 -0500 > >BTW, you can use BOTH early binding and late binding by wrapping TWO sets >of >dim statements in #if statements: > >#Const EARLYBINDING = True > >#If EARLYBINDING = -1 Then >Private mxlApp As Excel.Application >Private mXLWB As Workbook >Private mXLWS As Worksheet >#Else >Private mxlApp As Object >Private mXLWB As Object >Private mXLWS As Object >#End If > >Now you can simply set EARLYBINDING to TRUE (-1) and the compiler will dim >the objects at compile time. > >Set EARLYBINDING to 0 and the compiler will dim the objects at run time. > >I do this so that I can use early binding during development, and then just >"throw a switch" to use late binding for runtime on the actual user's PC. >Of course you have to do that everywhere you want to bind such objects, >inside of functions that dim local objects, in the header for global >objects >etc. > >Once it is set up though it works very sweet. > >And Oh By The Way, there is a GLOBAL (to every module in the library) way >to >do this: > >In the VB Editor, click Tools / MyContainer Properties (the bottom menu >item) >In the General tab there is a "Conditional Compilation Arguments" where you >could define your EarlyBinding constant. > >Doing it there causes ALL MODULES that use that constant to switch from >early binding to late binding and back. > >Very handy!!! > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan Carbonnell >Sent: Thursday, February 15, 2007 4:38 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Missing references > >On 2/15/07, Mark A Matte wrote: > > > Since I'm not versed in Binding(Late or Early) ...I've looked at MS > > knowledge base...and most of what I found was problems and fixes. > > > > Any suggestions for 'crash course READING' in bindings? > >Here's a quick description that I lifted from an article I wrote >http://www.databaseadvisors.com/newsletters/newsletter072002/0207wordautomat >ionlpt1.asp > > >Early Binding Versus Late Binding > >First you need to decide whether to use Early Binding or Late Binding. >Early Binding allows you to dimension variables by their specific data >type. >For example, the following declarations refer to the Word Application and >Document objects rather than declaring both as generic >objects: > >Dim objWord as Word.Application >Dim doc as Word.Document > >Early Binding also enables a few built-in Intelli-sense features: Auto >Complete, Auto List Members, and Auto Quick Info. In addition, using early >binding allows you to view Word's object model in the Object Browser. > >The downside to Early Binding is that you have to set a reference to a >specific version of Word. Sometimes Access is smart enough to change the >reference to the specific version of Word that is installed on the PC you >are deploying your application; often it isn't, and you could end up with >problems relating to the references. > >If you decide to use Late Binding, you will have to dimension all of your >variables as Objects as follows: > >Dim objWord as Object >Dim doc as Object > >Consequently, you cannot access any of your variables until you set them to >a specific object as shown below: > >Set objWord = CreateObject("Word.Application") Set doc = >objWord.Documents.Open("C:\Path\To\file.doc") > >In addition, the Intelli-sense features, Auto Complete, Auto List Members, >Auto Quick Info and disables viewing of Word's object model in the Object >Browser. However, Late Binding doesn't require that you set a reference to >any Word Object Library, which can be advantageous if you are deploying >run-time versions of your application to mixed OS/Office Version platforms. > >Instead of choosing one or the other, we suggest you compromise and use >both. During the development phase use Early Binding. Once you release the >application, remove all specific references and change each to Object-the >best of both worlds! > >Now that the binding issue is resolved, let's roll up our sleeves and dive >into writing some code. > > > >-- >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 > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ >From predictions to trailers, check out the MSN Entertainment Guide to the Academy Awards? http://movies.msn.com/movies/oscars2007/?icid=ncoscartagline1 From martyconnelly at shaw.ca Thu Feb 15 16:38:39 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 15 Feb 2007 14:38:39 -0800 Subject: [AccessD] Missing references In-Reply-To: References: Message-ID: <45D4E0EF.7030500@shaw.ca> You could try using Terry Kraft's reference wizard mda Must be run first thing from autoexec I haven't tested beyond 2002 You might look at the code and simplify if you know the missing reference to restated http://www.mvps.org/access/modules/mdl0022.htm Mark A Matte wrote: > Thanks John, > > I'm not referencing any other app or docs...I was referring to when > you are in a module and goto TOOLS---REFERENCES...and there is > something missing or incorrect. > > Is binding relevant at this point? If not...back to the original > question:...how to handle the 'missing'??? > > Am I still confused>..lol...??? > > > Thanks, > > Mark A. Matte > > >> From: "JWColby" >> Reply-To: Access Developers discussion and problem >> solving >> To: "'Access Developers discussion and problem >> solving'" >> Subject: Re: [AccessD] Missing references >> Date: Thu, 15 Feb 2007 16:56:40 -0500 >> >> BTW, you can use BOTH early binding and late binding by wrapping TWO >> sets of >> dim statements in #if statements: >> >> #Const EARLYBINDING = True >> >> #If EARLYBINDING = -1 Then >> Private mxlApp As Excel.Application >> Private mXLWB As Workbook >> Private mXLWS As Worksheet >> #Else >> Private mxlApp As Object >> Private mXLWB As Object >> Private mXLWS As Object >> #End If >> >> Now you can simply set EARLYBINDING to TRUE (-1) and the compiler >> will dim >> the objects at compile time. >> >> Set EARLYBINDING to 0 and the compiler will dim the objects at run time. >> >> I do this so that I can use early binding during development, and >> then just >> "throw a switch" to use late binding for runtime on the actual user's >> PC. >> Of course you have to do that everywhere you want to bind such objects, >> inside of functions that dim local objects, in the header for global >> objects >> etc. >> >> Once it is set up though it works very sweet. >> >> And Oh By The Way, there is a GLOBAL (to every module in the library) >> way to >> do this: >> >> In the VB Editor, click Tools / MyContainer Properties (the bottom menu >> item) >> In the General tab there is a "Conditional Compilation Arguments" >> where you >> could define your EarlyBinding constant. >> >> Doing it there causes ALL MODULES that use that constant to switch from >> early binding to late binding and back. >> >> Very handy!!! >> >> John W. Colby >> Colby Consulting >> www.ColbyConsulting.com >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan >> Carbonnell >> Sent: Thursday, February 15, 2007 4:38 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Missing references >> >> On 2/15/07, Mark A Matte wrote: >> >> > Since I'm not versed in Binding(Late or Early) ...I've looked at MS >> > knowledge base...and most of what I found was problems and fixes. >> > >> > Any suggestions for 'crash course READING' in bindings? >> >> Here's a quick description that I lifted from an article I wrote >> http://www.databaseadvisors.com/newsletters/newsletter072002/0207wordautomat >> >> ionlpt1.asp >> >> >> Early Binding Versus Late Binding >> >> First you need to decide whether to use Early Binding or Late Binding. >> Early Binding allows you to dimension variables by their specific >> data type. >> For example, the following declarations refer to the Word Application >> and >> Document objects rather than declaring both as generic >> objects: >> >> Dim objWord as Word.Application >> Dim doc as Word.Document >> >> Early Binding also enables a few built-in Intelli-sense features: Auto >> Complete, Auto List Members, and Auto Quick Info. In addition, using >> early >> binding allows you to view Word's object model in the Object Browser. >> >> The downside to Early Binding is that you have to set a reference to a >> specific version of Word. Sometimes Access is smart enough to change the >> reference to the specific version of Word that is installed on the PC >> you >> are deploying your application; often it isn't, and you could end up >> with >> problems relating to the references. >> >> If you decide to use Late Binding, you will have to dimension all of >> your >> variables as Objects as follows: >> >> Dim objWord as Object >> Dim doc as Object >> >> Consequently, you cannot access any of your variables until you set >> them to >> a specific object as shown below: >> >> Set objWord = CreateObject("Word.Application") Set doc = >> objWord.Documents.Open("C:\Path\To\file.doc") >> >> In addition, the Intelli-sense features, Auto Complete, Auto List >> Members, >> Auto Quick Info and disables viewing of Word's object model in the >> Object >> Browser. However, Late Binding doesn't require that you set a >> reference to >> any Word Object Library, which can be advantageous if you are deploying >> run-time versions of your application to mixed OS/Office Version >> platforms. >> >> Instead of choosing one or the other, we suggest you compromise and use >> both. During the development phase use Early Binding. Once you >> release the >> application, remove all specific references and change each to >> Object-the >> best of both worlds! >> >> Now that the binding issue is resolved, let's roll up our sleeves and >> dive >> into writing some code. >> >> >> >> -- >> 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 >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > > _________________________________________________________________ > >> From predictions to trailers, check out the MSN Entertainment Guide >> to the > > Academy Awards? > http://movies.msn.com/movies/oscars2007/?icid=ncoscartagline1 > >------------------------------------------------------------------------ > >No virus found in this incoming message. >Checked by AVG Free Edition. >Version: 7.5.441 / Virus Database: 268.17.39/687 - Release Date: 14/02/2007 4:17 PM > > -- Marty Connelly Victoria, B.C. Canada From gustav at cactus.dk Thu Feb 15 17:03:43 2007 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 16 Feb 2007 00:03:43 +0100 Subject: [AccessD] Missing references Message-ID: Hi Mark Some years ago we had a lengthy thread on this. Look up here: http://databaseadvisors.com/pipermail/accessd/2003-July/011034.html /gustav >>> markamatte at hotmail.com 15-02-07 23:02 >>> Thanks John, I'm not referencing any other app or docs...I was referring to when you are in a module and goto TOOLS---REFERENCES...and there is something missing or incorrect. Is binding relevant at this point? If not...back to the original question:...how to handle the 'missing'??? Am I still confused>..lol...??? Thanks, Mark A. Matte From kp at sdsonline.net Thu Feb 15 17:16:02 2007 From: kp at sdsonline.net (Kath Pelletti) Date: Fri, 16 Feb 2007 10:16:02 +1100 Subject: [AccessD] Missing references References: Message-ID: <003601c75157$43878cf0$6401a8c0@office> What the others mean is that if under [Tools], [References] you have a reference to eg. Outlook, then that is early binding to Outlook. And the problem is that those references can suddenly be 'missing' on a given user's machine if their version of that application/file is different to the one you used on your machine. So you can untick the reference permanently and replace that with some code that will create the bind when needed (see previous emails) and that is called late binding. HTH Kath ----- Original Message ----- From: Mark A Matte To: accessd at databaseadvisors.com Sent: Friday, February 16, 2007 9:02 AM Subject: Re: [AccessD] Missing references Thanks John, I'm not referencing any other app or docs...I was referring to when you are in a module and goto TOOLS---REFERENCES...and there is something missing or incorrect. Is binding relevant at this point? If not...back to the original question:...how to handle the 'missing'??? Am I still confused>..lol...??? Thanks, Mark A. Matte >From: "JWColby" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] Missing references >Date: Thu, 15 Feb 2007 16:56:40 -0500 > >BTW, you can use BOTH early binding and late binding by wrapping TWO sets >of >dim statements in #if statements: > >#Const EARLYBINDING = True > >#If EARLYBINDING = -1 Then >Private mxlApp As Excel.Application >Private mXLWB As Workbook >Private mXLWS As Worksheet >#Else >Private mxlApp As Object >Private mXLWB As Object >Private mXLWS As Object >#End If > >Now you can simply set EARLYBINDING to TRUE (-1) and the compiler will dim >the objects at compile time. > >Set EARLYBINDING to 0 and the compiler will dim the objects at run time. > >I do this so that I can use early binding during development, and then just >"throw a switch" to use late binding for runtime on the actual user's PC. >Of course you have to do that everywhere you want to bind such objects, >inside of functions that dim local objects, in the header for global >objects >etc. > >Once it is set up though it works very sweet. > >And Oh By The Way, there is a GLOBAL (to every module in the library) way >to >do this: > >In the VB Editor, click Tools / MyContainer Properties (the bottom menu >item) >In the General tab there is a "Conditional Compilation Arguments" where you >could define your EarlyBinding constant. > >Doing it there causes ALL MODULES that use that constant to switch from >early binding to late binding and back. > >Very handy!!! > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan Carbonnell >Sent: Thursday, February 15, 2007 4:38 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Missing references > >On 2/15/07, Mark A Matte wrote: > > > Since I'm not versed in Binding(Late or Early) ...I've looked at MS > > knowledge base...and most of what I found was problems and fixes. > > > > Any suggestions for 'crash course READING' in bindings? > >Here's a quick description that I lifted from an article I wrote >http://www.databaseadvisors.com/newsletters/newsletter072002/0207wordautomat >ionlpt1.asp > > >Early Binding Versus Late Binding > >First you need to decide whether to use Early Binding or Late Binding. >Early Binding allows you to dimension variables by their specific data >type. >For example, the following declarations refer to the Word Application and >Document objects rather than declaring both as generic >objects: > >Dim objWord as Word.Application >Dim doc as Word.Document > >Early Binding also enables a few built-in Intelli-sense features: Auto >Complete, Auto List Members, and Auto Quick Info. In addition, using early >binding allows you to view Word's object model in the Object Browser. > >The downside to Early Binding is that you have to set a reference to a >specific version of Word. Sometimes Access is smart enough to change the >reference to the specific version of Word that is installed on the PC you >are deploying your application; often it isn't, and you could end up with >problems relating to the references. > >If you decide to use Late Binding, you will have to dimension all of your >variables as Objects as follows: > >Dim objWord as Object >Dim doc as Object > >Consequently, you cannot access any of your variables until you set them to >a specific object as shown below: > >Set objWord = CreateObject("Word.Application") Set doc = >objWord.Documents.Open("C:\Path\To\file.doc") > >In addition, the Intelli-sense features, Auto Complete, Auto List Members, >Auto Quick Info and disables viewing of Word's object model in the Object >Browser. However, Late Binding doesn't require that you set a reference to >any Word Object Library, which can be advantageous if you are deploying >run-time versions of your application to mixed OS/Office Version platforms. > >Instead of choosing one or the other, we suggest you compromise and use >both. During the development phase use Early Binding. Once you release the >application, remove all specific references and change each to Object-the >best of both worlds! > >Now that the binding issue is resolved, let's roll up our sleeves and dive >into writing some code. > > > >-- >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 > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ >From predictions to trailers, check out the MSN Entertainment Guide to the Academy Awards? http://movies.msn.com/movies/oscars2007/?icid=ncoscartagline1 ------------------------------------------------------------------------------ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Thu Feb 15 17:51:54 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 15 Feb 2007 15:51:54 -0800 Subject: [AccessD] Date() Problem In-Reply-To: Message-ID: <0JDJ0082C3I7BGW0@l-daemon> Hi Mark: Have all the appropriate patches been applied to the computer you are trying to migrate your application to? Make sure the destination system has all the current patches. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Thursday, February 15, 2007 12:33 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Date() Problem Gustav, First thing I checked for...on my machine I have: Visual Basic For Applications MS Access 8.0 Object Library MS DAO 3.6 object Library ...and the same on this machine??? <<>> It was the same...so I removed the DAO...and added it back(just to see)...and now it works...Thanks??? I give up...nothing is making sense today... Thanks again, Mark A. Matte >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] Date() Problem >Date: Thu, 15 Feb 2007 20:59:28 +0100 > >Hi Mark > >That is because you have a missing reference on that machine. > >/gustav > > >>> markamatte at hotmail.com 15-02-2007 20:52:35 >>> >Hello All, > >I have had a nightmare with dates lately. I have a query that runs using >Date() as criteria because I only want stuff for current date. I was using >Format()...but will change to FIX() after the last thread...the problem is >on 1 machine neither works with Date() as criteria. Just on this 1 >machine(that I know of) when I try to run the query I get the error: > >"Function isn't available in expressions in query expression ' >(((Fix([dt]))=Date()))'." > >If I switch Date() to an actual date #1/24/07# it runs fine. I even tried >FIX(Now())...and this worked...apparently this machine does not like >Date()??? > >Any ideas/suggestions? I need to know if I'm using Date() the wrong >way(kinda like FORMAT) or is this something unique to this 1 machine? > >Thanks Again, > >Mark A. Matte > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Dont miss your chance to WIN 10 hours of private jet travel from Microsoft Office Live http://clk.atdmt.com/MRT/go/mcrssaub0540002499mrt/direct/01/ From accessd at shaw.ca Thu Feb 15 18:08:21 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 15 Feb 2007 16:08:21 -0800 Subject: [AccessD] Missing references In-Reply-To: Message-ID: <0JDJ0080I49MBHY0@l-daemon> Hi Mark: You could scan through the entire source and then all the destination application references by using a module as follows: This function can be used to first scan for the required references as; CheckReferences ...or check for a specific for a specific references like; ... If CheckReferences("MSWORD10.OLB", False) = False Then ... I traditionally have the 'CheckReferences' auto run when the application is initialized. This should at least direct you to the specific missing reference(s). Public Function CheckReferences(Optional strSpecificReference As String, _ Optional bolAddFlag As Boolean) As Boolean Dim strMessage As String, strFullMessage Dim strTitle As String, strFullPath As String Dim refItem As Reference Dim bolRefExists As Boolean Dim bolBrokenRef As Boolean Dim i As Integer, intStartPosition As Integer On Error Resume Next If IsNull(bolAddFlag) Then bolAddFlag = False If IsNull(strSpecificReference) Then strSpecificReference = "" bolRefExists = False bolBrokenRef = False strFullPath = "" strMessage = "" strFullMessage = "" CheckReferences = False For Each refItem In References With refItem If .IsBroken = True Or InStr(1, .FullPath, "failed") > 0 Then If Len(strSpecificReference) > 0 Then If InStr(1, .FullPath, strSpecificReference) > 0 Then bolBrokenRef = True End If strMessage = "MISSING Reference: " & .Name & vbCrLf _ & "Location: Could not be found!" & vbCrLf Else If Len(strSpecificReference) > 0 Then If InStr(1, .FullPath, strSpecificReference) > 0 Then bolRefExists = True ElseIf bolAddFlag = True Then If .Name = "Access" Then intStartPosition = Len(.FullPath) For i = intStartPosition To 1 Step -1 If InStr(i, .FullPath, "\") > 0 Then strFullPath = Left(.FullPath, i) & strSpecificReference Exit For End If Next i End If End If End If strMessage = "Reference: " & refItem.Name & vbCrLf _ & "Location: " & .FullPath & vbCrLf End If End With If Len(strFullMessage) > 0 Then strFullMessage = strFullMessage & vbCrLf & strMessage Else strFullMessage = strMessage End If strMessage = "" Next refItem If Len(strFullMessage) > 0 Then If Len(strSpecificReference) > 0 Then If bolAddFlag = False Then CheckReferences = bolRefExists Else If bolRefExists = True Then CheckReferences = bolRefExists ElseIf bolBrokenRef = True Then CheckReferences = False Else Set refItem = References.AddFromFile(strFullPath) If Err.Number = 0 Then CheckReferences = True End If End If Else strFullMessage = strFullMessage & vbCrLf & "PLEASE record Information before Exiting." MsgBox strFullMessage, vbInformation End If End If End Function The previous code worked great for resolving remote client installation problems. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Thursday, February 15, 2007 2:02 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Missing references Thanks John, I'm not referencing any other app or docs...I was referring to when you are in a module and goto TOOLS---REFERENCES...and there is something missing or incorrect. Is binding relevant at this point? If not...back to the original question:...how to handle the 'missing'??? Am I still confused>..lol...??? Thanks, Mark A. Matte >From: "JWColby" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] Missing references >Date: Thu, 15 Feb 2007 16:56:40 -0500 > >BTW, you can use BOTH early binding and late binding by wrapping TWO sets >of >dim statements in #if statements: > >#Const EARLYBINDING = True > >#If EARLYBINDING = -1 Then >Private mxlApp As Excel.Application >Private mXLWB As Workbook >Private mXLWS As Worksheet >#Else >Private mxlApp As Object >Private mXLWB As Object >Private mXLWS As Object >#End If > >Now you can simply set EARLYBINDING to TRUE (-1) and the compiler will dim >the objects at compile time. > >Set EARLYBINDING to 0 and the compiler will dim the objects at run time. > >I do this so that I can use early binding during development, and then just >"throw a switch" to use late binding for runtime on the actual user's PC. >Of course you have to do that everywhere you want to bind such objects, >inside of functions that dim local objects, in the header for global >objects >etc. > >Once it is set up though it works very sweet. > >And Oh By The Way, there is a GLOBAL (to every module in the library) way >to >do this: > >In the VB Editor, click Tools / MyContainer Properties (the bottom menu >item) >In the General tab there is a "Conditional Compilation Arguments" where you >could define your EarlyBinding constant. > >Doing it there causes ALL MODULES that use that constant to switch from >early binding to late binding and back. > >Very handy!!! > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan Carbonnell >Sent: Thursday, February 15, 2007 4:38 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Missing references > >On 2/15/07, Mark A Matte wrote: > > > Since I'm not versed in Binding(Late or Early) ...I've looked at MS > > knowledge base...and most of what I found was problems and fixes. > > > > Any suggestions for 'crash course READING' in bindings? > >Here's a quick description that I lifted from an article I wrote >http://www.databaseadvisors.com/newsletters/newsletter072002/0207wordautoma t >ionlpt1.asp > > >Early Binding Versus Late Binding > >First you need to decide whether to use Early Binding or Late Binding. >Early Binding allows you to dimension variables by their specific data >type. >For example, the following declarations refer to the Word Application and >Document objects rather than declaring both as generic >objects: > >Dim objWord as Word.Application >Dim doc as Word.Document > >Early Binding also enables a few built-in Intelli-sense features: Auto >Complete, Auto List Members, and Auto Quick Info. In addition, using early >binding allows you to view Word's object model in the Object Browser. > >The downside to Early Binding is that you have to set a reference to a >specific version of Word. Sometimes Access is smart enough to change the >reference to the specific version of Word that is installed on the PC you >are deploying your application; often it isn't, and you could end up with >problems relating to the references. > >If you decide to use Late Binding, you will have to dimension all of your >variables as Objects as follows: > >Dim objWord as Object >Dim doc as Object > >Consequently, you cannot access any of your variables until you set them to >a specific object as shown below: > >Set objWord = CreateObject("Word.Application") Set doc = >objWord.Documents.Open("C:\Path\To\file.doc") > >In addition, the Intelli-sense features, Auto Complete, Auto List Members, >Auto Quick Info and disables viewing of Word's object model in the Object >Browser. However, Late Binding doesn't require that you set a reference to >any Word Object Library, which can be advantageous if you are deploying >run-time versions of your application to mixed OS/Office Version platforms. > >Instead of choosing one or the other, we suggest you compromise and use >both. During the development phase use Early Binding. Once you release the >application, remove all specific references and change each to Object-the >best of both worlds! > >Now that the binding issue is resolved, let's roll up our sleeves and dive >into writing some code. > > > >-- >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 > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ >From predictions to trailers, check out the MSN Entertainment Guide to the Academy Awards. http://movies.msn.com/movies/oscars2007/?icid=ncoscartagline1 From rockysmolin at bchacc.com Thu Feb 15 18:36:07 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Thu, 15 Feb 2007 16:36:07 -0800 Subject: [AccessD] OT: Excel Message-ID: <00a501c75162$733c1230$0201a8c0@HAL9005> Dear List: Sorry for the OT but I'm in Excel and hit something, some control key or alt-something, who knows? and now when I use the arrow keys the sheet moves instead of the cell with the focus moving. Can't figure out from the menus where this particular switch is. Nothing I put in Help seems to tell me. WHAT HAVE I DONE??!! Better yet, how do I undo it. MMTIA, Rocky From BarbaraRyan at cox.net Thu Feb 15 18:43:44 2007 From: BarbaraRyan at cox.net (Barbara Ryan) Date: Thu, 15 Feb 2007 19:43:44 -0500 Subject: [AccessD] OT: Excel References: <00a501c75162$733c1230$0201a8c0@HAL9005> Message-ID: <015801c75163$83592c60$0a00a8c0@PCRURI35> Is SCROLL LOCK on? ----- Original Message ----- From: "Rocky Smolin at Beach Access Software" To: "'Access Developers discussion and problem solving'" Sent: Thursday, February 15, 2007 7:36 PM Subject: [AccessD] OT: Excel > Dear List: > > Sorry for the OT but I'm in Excel and hit something, some control key or > alt-something, who knows? and now when I use the arrow keys the sheet > moves > instead of the cell with the focus moving. > > Can't figure out from the menus where this particular switch is. Nothing > I > put in Help seems to tell me. > > WHAT HAVE I DONE??!! Better yet, how do I undo it. > > MMTIA, > > Rocky > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From darrend at nimble.com.au Thu Feb 15 18:46:40 2007 From: darrend at nimble.com.au (Darren DICK) Date: Fri, 16 Feb 2007 11:46:40 +1100 Subject: [AccessD] OT: Excel In-Reply-To: <00a501c75162$733c1230$0201a8c0@HAL9005> Message-ID: <200702160046.l1G0kei05861@databaseadvisors.com> Scroll Lock is off Rocky A real PITA this one Simple to fix though Darren ------------------ T: 0424 696 433 -----Original Message----- From: Rocky Smolin at Beach Access Software [mailto:rockysmolin at bchacc.com] Sent: Friday, 16 February 2007 11:36 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT: Excel Dear List: Sorry for the OT but I'm in Excel and hit something, some control key or alt-something, who knows? and now when I use the arrow keys the sheet moves instead of the cell with the focus moving. Can't figure out from the menus where this particular switch is. Nothing I put in Help seems to tell me. WHAT HAVE I DONE??!! Better yet, how do I undo it. MMTIA, Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Thu Feb 15 18:58:20 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Thu, 15 Feb 2007 16:58:20 -0800 Subject: [AccessD] OT: Excel In-Reply-To: <015801c75163$83592c60$0a00a8c0@PCRURI35> Message-ID: <00ad01c75165$8d61eba0$0201a8c0@HAL9005> Barbara and Darren: Scroll Lock. Who knew? Thanks. I still have some hair left. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Barbara Ryan Sent: Thursday, February 15, 2007 4:44 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Excel Is SCROLL LOCK on? ----- Original Message ----- From: "Rocky Smolin at Beach Access Software" To: "'Access Developers discussion and problem solving'" Sent: Thursday, February 15, 2007 7:36 PM Subject: [AccessD] OT: Excel > Dear List: > > Sorry for the OT but I'm in Excel and hit something, some control key or > alt-something, who knows? and now when I use the arrow keys the sheet > moves > instead of the cell with the focus moving. > > Can't figure out from the menus where this particular switch is. Nothing > I > put in Help seems to tell me. > > WHAT HAVE I DONE??!! Better yet, how do I undo it. > > MMTIA, > > Rocky > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.17.39/687 - Release Date: 2/14/2007 4:17 PM From hkotsch at arcor.de Fri Feb 16 01:27:32 2007 From: hkotsch at arcor.de (Helmut Kotsch) Date: Fri, 16 Feb 2007 08:27:32 +0100 Subject: [AccessD] Video Series: SQL Server 2005 Express Edition for Beginners Message-ID: Good morning, for everybody who is still on the early stages of the learning curve like me there is a well made video series available. http://msdn.microsoft.com/vstudio/express/sql/learning/default.aspx The 13 lessons (app. 9 hrs) start with the basics, however lessons 7 to 13 should be interesting to anyone being new to SQL server express. Helmut From Erwin.Craps at ithelps.eu Fri Feb 16 03:23:19 2007 From: Erwin.Craps at ithelps.eu (Erwin Craps - IT Helps) Date: Fri, 16 Feb 2007 10:23:19 +0100 Subject: [AccessD] WAY OT: Create a network Connection References: <20070215095635.UFEY6229.oaamta01ps.mx.bigpond.com@DENZILLAP> <45D45F6D.23632.238061@stuart.lexacorp.com.pg> Message-ID: <430E80531228BA4497C5EB1A7BA786B002420F@stekelbes.ithelps.local> I use to have (long time ago) an OCX that was able to create dial up profile, a Windows PPTP VPN connection is a regular dial-up profile, but I suspect there must be a windows API that is capable to create a dial up profile. That is if you are using the Windows built in VPN connection and not a third party IPSec, like Cisco, Linksys, Netgear or whatever. Search for API guide or API viewer to get a list of API programs with a lis tof API codes. Search for VPN or RAS (Remote Access Service) in an API list program. Maybe someone else can give a good link to such an API viewer. Success Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Thursday, February 15, 2007 2:26 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] WAY OT: Create a network Connection On 15 Feb 2007 at 20:56, Darren DICK wrote: > Anyone know how to create a VPN connection in code. The only way that I can see to do it would be to create an AutoIt script http://www.autoitscript.com/autoit3/ AutoIt v3 is a freeware BASIC-like scripting language designed for automating the Windows GUI and general scripting. It uses a combination of simulated keystrokes, mouse movement and window/control manipulation in order to automate tasks in a way not possible or reliable with other languages (e.g. VBScript and SendKeys). AutoIt is also very small, self- contained and will run on 95, 98, ME, NT4, 2000, XP, 2003 out of the box with no annoying "runtimes" required! You can even make compiled executable scripts that can run without AutoIt being installed! AutoIt was initially designed for PC "roll out" situations to reliably configure thousands of PCs, but with the arrival of v3 it has become a powerful language able to cope with most scripting needs. > > Or how to copy one from my "My Network" connections to the "My Network > Connections" on another person's PC > > I can make and copy the shortcut - but I want to copy the actual VPN > Network connection itself - can it be done? > > So that I can just drop it into their "My Network connections" (need > help with that too - anyone know what that folder is called) :-) > > Any suggestions?? -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.eu Fri Feb 16 03:25:36 2007 From: Erwin.Craps at ithelps.eu (Erwin Craps - IT Helps) Date: Fri, 16 Feb 2007 10:25:36 +0100 Subject: [AccessD] WAY OT: Start a REG file form a batch file References: <20070215153137.NNGM14659.oaamta04ps.mx.bigpond.com@DENZILLAP> Message-ID: <430E80531228BA4497C5EB1A7BA786B0024210@stekelbes.ithelps.local> This is how to do it. regedit KeyboardNumlockAtLogon.reg (KeyboardNumlockAtLogon.reg is the name of the file you wish to merge) But it not silent, it gives forst a warning message asking the user to confirm or deny and afterwards an confirmation. But it works. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Thursday, February 15, 2007 4:32 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] WAY OT: Start a REG file form a batch file Hi Arthur Thanks for the response Yes that is way cool But I wanted to run the "regsvr32 SomeCool.Reg" from a batch file It did end up working after Stuarts promptings Many thanks Darren -----Original Message----- From: artful at rogers.com [mailto:artful at rogers.com] Sent: Friday, 16 February 2007 1:25 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] WAY OT: Start a REG file form a batch file I know a very cool way to do this. Right click Send To on your start-menu and then add an item, which is equivalent to regsrvr32.exe. Once that is done you can then drop any .REG file on the Send To button and it will execute. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Darren DICK To: Access Developers discussion and problem solving Sent: Thursday, February 15, 2007 5:32:38 AM Subject: [AccessD] WAY OT: Start a REG file form a batch file Hi All I have a REG (registry file) that works fine when double clicked What would be the syntax for 'starting' it from a batch file? I have tried regsvr32 MSSSQL.REG and even tried regedit MSSSQL.REG No joy Any suggestions? Thanks DD -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Fri Feb 16 06:41:12 2007 From: wdhindman at dejpolsystems.com (William Hindman) Date: Fri, 16 Feb 2007 07:41:12 -0500 Subject: [AccessD] Video Series: SQL Server 2005 Express Edition forBeginners References: Message-ID: <000d01c751c7$be3ba470$9258eb44@50NM721> ...nice find ...tks :) William Hindman ----- Original Message ----- From: "Helmut Kotsch" To: "Access Developers discussion and problem solving" Sent: Friday, February 16, 2007 2:27 AM Subject: [AccessD] Video Series: SQL Server 2005 Express Edition forBeginners > Good morning, > > for everybody who is still on the early stages of the learning curve like > me > there is a well made video series available. > > http://msdn.microsoft.com/vstudio/express/sql/learning/default.aspx > > The 13 lessons (app. 9 hrs) start with the basics, however lessons 7 to 13 > should be interesting to anyone being new to > SQL server express. > > > Helmut > > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Gustav at cactus.dk Fri Feb 16 08:02:30 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 16 Feb 2007 15:02:30 +0100 Subject: [AccessD] Not that much OT: Friday humour Message-ID: Hi Arthur SQL Sensei? That was new! So what's next (or preceding)? JET Jongleur? Or JETeleer? /gustav >>> artful at rogers.com 15-02-2007 15:24:34 >>> Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com From artful at rogers.com Fri Feb 16 08:12:16 2007 From: artful at rogers.com (artful at rogers.com) Date: Fri, 16 Feb 2007 06:12:16 -0800 (PST) Subject: [AccessD] Not that much OT: Friday humour Message-ID: <20070216141217.97110.qmail@web88204.mail.re2.yahoo.com> But notice how melliflously it flows off the tongue. A. ----- Original Message ---- From: Gustav Brock To: accessd at databaseadvisors.com Sent: Friday, February 16, 2007 9:02:30 AM Subject: [AccessD] Not that much OT: Friday humour Hi Arthur SQL Sensei? That was new! So what's next (or preceding)? JET Jongleur? Or JETeleer? /gustav >>> artful at rogers.com 15-02-2007 15:24:34 >>> Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Feb 16 08:21:29 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Fri, 16 Feb 2007 09:21:29 -0500 Subject: [AccessD] Not that much OT: Friday humour In-Reply-To: Message-ID: <001301c751d5$c0a0dc40$6c7aa8c0@m6805> Ooo Ooo Ooo, can you make one up for me? I like yours Gustav. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, February 16, 2007 9:02 AM To: accessd at databaseadvisors.com Subject: [AccessD] Not that much OT: Friday humour Hi Arthur SQL Sensei? That was new! So what's next (or preceding)? JET Jongleur? Or JETeleer? /gustav >>> artful at rogers.com 15-02-2007 15:24:34 >>> Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.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 Feb 16 08:33:09 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 16 Feb 2007 15:33:09 +0100 Subject: [AccessD] Not that much OT: Friday humour Message-ID: Hi Arthur Sure I did (or at least I think so - once again you forced me to get up and browse my '86 copy of "American Heritage Dictionary" (it's Latin, from mellifluus)). /gustav >>> artful at rogers.com 16-02-2007 15:12:16 >>> But notice how melliflously it flows off the tongue. A. ----- Original Message ---- From: Gustav Brock To: accessd at databaseadvisors.com Sent: Friday, February 16, 2007 9:02:30 AM Subject: [AccessD] Not that much OT: Friday humour Hi Arthur SQL Sensei? That was new! So what's next (or preceding)? JET Jongleur? Or JETeleer? /gustav >>> artful at rogers.com 15-02-2007 15:24:34 >>> Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com From Gustav at cactus.dk Fri Feb 16 08:40:03 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 16 Feb 2007 15:40:03 +0100 Subject: [AccessD] Not that much OT: Friday humour Message-ID: Hi John It's free for you! You could also use some 4-digit abbreviation like JCMM (John Colby Multi-faceted Master). We had some plans putting something like that on our business cards. /gustav >>> jwcolby at colbyconsulting.com 16-02-2007 15:21:29 >>> Ooo Ooo Ooo, can you make one up for me? I like yours Gustav. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, February 16, 2007 9:02 AM To: accessd at databaseadvisors.com Subject: [AccessD] Not that much OT: Friday humour Hi Arthur SQL Sensei? That was new! So what's next (or preceding)? JET Jongleur? Or JETeleer? /gustav >>> artful at rogers.com 15-02-2007 15:24:34 >>> Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com From jimdettman at verizon.net Fri Feb 16 08:49:44 2007 From: jimdettman at verizon.net (Jim Dettman) Date: Fri, 16 Feb 2007 09:49:44 -0500 Subject: [AccessD] Missing references In-Reply-To: References: <00fa01c7512b$111fd190$657aa8c0@m6805> Message-ID: <011b01c751d9$b2ef9fb0$8abea8c0@XPS> Bryan, One thing you didn't mention is the performance hit; late binding costs you 10-15% for every operation perform. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan Carbonnell Sent: Thursday, February 15, 2007 4:38 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing references On 2/15/07, Mark A Matte wrote: > Since I'm not versed in Binding(Late or Early) ...I've looked at MS > knowledge base...and most of what I found was problems and fixes. > > Any suggestions for 'crash course READING' in bindings? Here's a quick description that I lifted from an article I wrote http://www.databaseadvisors.com/newsletters/newsletter072002/0207wordautomat ionlpt1.asp Early Binding Versus Late Binding First you need to decide whether to use Early Binding or Late Binding. Early Binding allows you to dimension variables by their specific data type. For example, the following declarations refer to the Word Application and Document objects rather than declaring both as generic objects: Dim objWord as Word.Application Dim doc as Word.Document Early Binding also enables a few built-in Intelli-sense features: Auto Complete, Auto List Members, and Auto Quick Info. In addition, using early binding allows you to view Word's object model in the Object Browser. The downside to Early Binding is that you have to set a reference to a specific version of Word. Sometimes Access is smart enough to change the reference to the specific version of Word that is installed on the PC you are deploying your application; often it isn't, and you could end up with problems relating to the references. If you decide to use Late Binding, you will have to dimension all of your variables as Objects as follows: Dim objWord as Object Dim doc as Object Consequently, you cannot access any of your variables until you set them to a specific object as shown below: Set objWord = CreateObject("Word.Application") Set doc = objWord.Documents.Open("C:\Path\To\file.doc") In addition, the Intelli-sense features, Auto Complete, Auto List Members, Auto Quick Info and disables viewing of Word's object model in the Object Browser. However, Late Binding doesn't require that you set a reference to any Word Object Library, which can be advantageous if you are deploying run-time versions of your application to mixed OS/Office Version platforms. Instead of choosing one or the other, we suggest you compromise and use both. During the development phase use Early Binding. Once you release the application, remove all specific references and change each to Object-the best of both worlds! Now that the binding issue is resolved, let's roll up our sleeves and dive into writing some code. -- 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 jwcolby at colbyconsulting.com Fri Feb 16 08:56:13 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Fri, 16 Feb 2007 09:56:13 -0500 Subject: [AccessD] Not that much OT: Friday humour In-Reply-To: Message-ID: <002101c751da$9aa89b90$6c7aa8c0@m6805> ROTFL. I particularly liked JETeleer. You have a knack for this! John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, February 16, 2007 9:40 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Not that much OT: Friday humour Hi John It's free for you! You could also use some 4-digit abbreviation like JCMM (John Colby Multi-faceted Master). We had some plans putting something like that on our business cards. /gustav >>> jwcolby at colbyconsulting.com 16-02-2007 15:21:29 >>> Ooo Ooo Ooo, can you make one up for me? I like yours Gustav. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, February 16, 2007 9:02 AM To: accessd at databaseadvisors.com Subject: [AccessD] Not that much OT: Friday humour Hi Arthur SQL Sensei? That was new! So what's next (or preceding)? JET Jongleur? Or JETeleer? /gustav >>> artful at rogers.com 15-02-2007 15:24:34 >>> Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Feb 16 09:02:31 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Fri, 16 Feb 2007 10:02:31 -0500 Subject: [AccessD] Missing references In-Reply-To: <011b01c751d9$b2ef9fb0$8abea8c0@XPS> Message-ID: <002501c751db$7c077660$6c7aa8c0@m6805> I would have to take issue with that statement Jim. The resolution of the object certainly takes longer, but often times that time will be dwarfed by other things. For example suppose I late bind excel objects. Yes, it takes longer to resolve the reference, but How long does it take to Open Excel? To make a new sheet? To insert data from a query into the sheet? To save the sheet back to disk? I do understand your point and I think there are situations where it can be critical, inside a loop executing a million times for example, but many times the effect on overall system operation will be negligible. And then there is the simple matter of "yea, it affects the time, but it simply doesn't matter since I have no idea what version of the library the user will have on their machine". In such a case, the fact that it "just works" outweighs all other considerations. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Friday, February 16, 2007 9:50 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references Bryan, One thing you didn't mention is the performance hit; late binding costs you 10-15% for every operation perform. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan Carbonnell Sent: Thursday, February 15, 2007 4:38 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing references On 2/15/07, Mark A Matte wrote: > Since I'm not versed in Binding(Late or Early) ...I've looked at MS > knowledge base...and most of what I found was problems and fixes. > > Any suggestions for 'crash course READING' in bindings? Here's a quick description that I lifted from an article I wrote http://www.databaseadvisors.com/newsletters/newsletter072002/0207wordautomat ionlpt1.asp Early Binding Versus Late Binding First you need to decide whether to use Early Binding or Late Binding. Early Binding allows you to dimension variables by their specific data type. For example, the following declarations refer to the Word Application and Document objects rather than declaring both as generic objects: Dim objWord as Word.Application Dim doc as Word.Document Early Binding also enables a few built-in Intelli-sense features: Auto Complete, Auto List Members, and Auto Quick Info. In addition, using early binding allows you to view Word's object model in the Object Browser. The downside to Early Binding is that you have to set a reference to a specific version of Word. Sometimes Access is smart enough to change the reference to the specific version of Word that is installed on the PC you are deploying your application; often it isn't, and you could end up with problems relating to the references. If you decide to use Late Binding, you will have to dimension all of your variables as Objects as follows: Dim objWord as Object Dim doc as Object Consequently, you cannot access any of your variables until you set them to a specific object as shown below: Set objWord = CreateObject("Word.Application") Set doc = objWord.Documents.Open("C:\Path\To\file.doc") In addition, the Intelli-sense features, Auto Complete, Auto List Members, Auto Quick Info and disables viewing of Word's object model in the Object Browser. However, Late Binding doesn't require that you set a reference to any Word Object Library, which can be advantageous if you are deploying run-time versions of your application to mixed OS/Office Version platforms. Instead of choosing one or the other, we suggest you compromise and use both. During the development phase use Early Binding. Once you release the application, remove all specific references and change each to Object-the best of both worlds! Now that the binding issue is resolved, let's roll up our sleeves and dive into writing some code. -- 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Fri Feb 16 09:15:45 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 16 Feb 2007 15:15:45 +0000 Subject: [AccessD] Missing references In-Reply-To: <0JDJ0080I49MBHY0@l-daemon> Message-ID: Thanks Everyone, for all of the feedback!!! I'l dive back in now. Thanks Again, Mark A. Matte >From: Jim Lawrence >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] Missing references >Date: Thu, 15 Feb 2007 16:08:21 -0800 > >Hi Mark: > >You could scan through the entire source and then all the destination >application references by using a module as follows: > >This function can be used to first scan for the required references as; > >CheckReferences > >...or check for a specific for a specific references like; > >... > >If CheckReferences("MSWORD10.OLB", False) = False Then > >... > >I traditionally have the 'CheckReferences' auto run when the application is >initialized. This should at least direct you to the specific missing >reference(s). > > >Public Function CheckReferences(Optional strSpecificReference As String, _ > Optional bolAddFlag As Boolean) As Boolean > > Dim strMessage As String, strFullMessage > Dim strTitle As String, strFullPath As String > Dim refItem As Reference > Dim bolRefExists As Boolean > Dim bolBrokenRef As Boolean > Dim i As Integer, intStartPosition As Integer > > On Error Resume Next > > If IsNull(bolAddFlag) Then bolAddFlag = False > If IsNull(strSpecificReference) Then strSpecificReference = "" > bolRefExists = False > bolBrokenRef = False > strFullPath = "" > strMessage = "" > strFullMessage = "" > > CheckReferences = False > > For Each refItem In References > With refItem > If .IsBroken = True Or InStr(1, .FullPath, "failed") > 0 Then > If Len(strSpecificReference) > 0 Then > If InStr(1, .FullPath, strSpecificReference) > 0 Then >bolBrokenRef = True > End If > > strMessage = "MISSING Reference: " & .Name & vbCrLf _ > & "Location: Could not be found!" & vbCrLf > Else > If Len(strSpecificReference) > 0 Then > If InStr(1, .FullPath, strSpecificReference) > 0 Then > bolRefExists = True > ElseIf bolAddFlag = True Then > If .Name = "Access" Then > intStartPosition = Len(.FullPath) > For i = intStartPosition To 1 Step -1 > If InStr(i, .FullPath, "\") > 0 Then > strFullPath = Left(.FullPath, i) & >strSpecificReference > Exit For > End If > Next i > End If > End If > End If > > strMessage = "Reference: " & refItem.Name & vbCrLf _ > & "Location: " & .FullPath & vbCrLf > End If > End With > > If Len(strFullMessage) > 0 Then > strFullMessage = strFullMessage & vbCrLf & strMessage > Else > strFullMessage = strMessage > End If > strMessage = "" > Next refItem > > If Len(strFullMessage) > 0 Then > If Len(strSpecificReference) > 0 Then > If bolAddFlag = False Then > CheckReferences = bolRefExists > Else > If bolRefExists = True Then > CheckReferences = bolRefExists > ElseIf bolBrokenRef = True Then > CheckReferences = False > Else > Set refItem = References.AddFromFile(strFullPath) > If Err.Number = 0 Then CheckReferences = True > End If > End If > Else > strFullMessage = strFullMessage & vbCrLf & "PLEASE record >Information before Exiting." > MsgBox strFullMessage, vbInformation > End If > End If > >End Function > > >The previous code worked great for resolving remote client installation >problems. > >HTH >Jim > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: Thursday, February 15, 2007 2:02 PM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Missing references > >Thanks John, > >I'm not referencing any other app or docs...I was referring to when you are >in a module and goto TOOLS---REFERENCES...and there is something missing or >incorrect. > >Is binding relevant at this point? If not...back to the original >question:...how to handle the 'missing'??? > >Am I still confused>..lol...??? > > >Thanks, > >Mark A. Matte > > > >From: "JWColby" > >Reply-To: Access Developers discussion and problem > >solving > >To: "'Access Developers discussion and problem > >solving'" > >Subject: Re: [AccessD] Missing references > >Date: Thu, 15 Feb 2007 16:56:40 -0500 > > > >BTW, you can use BOTH early binding and late binding by wrapping TWO sets > >of > >dim statements in #if statements: > > > >#Const EARLYBINDING = True > > > >#If EARLYBINDING = -1 Then > >Private mxlApp As Excel.Application > >Private mXLWB As Workbook > >Private mXLWS As Worksheet > >#Else > >Private mxlApp As Object > >Private mXLWB As Object > >Private mXLWS As Object > >#End If > > > >Now you can simply set EARLYBINDING to TRUE (-1) and the compiler will >dim > >the objects at compile time. > > > >Set EARLYBINDING to 0 and the compiler will dim the objects at run time. > > > >I do this so that I can use early binding during development, and then >just > >"throw a switch" to use late binding for runtime on the actual user's PC. > >Of course you have to do that everywhere you want to bind such objects, > >inside of functions that dim local objects, in the header for global > >objects > >etc. > > > >Once it is set up though it works very sweet. > > > >And Oh By The Way, there is a GLOBAL (to every module in the library) way > >to > >do this: > > > >In the VB Editor, click Tools / MyContainer Properties (the bottom menu > >item) > >In the General tab there is a "Conditional Compilation Arguments" where >you > >could define your EarlyBinding constant. > > > >Doing it there causes ALL MODULES that use that constant to switch from > >early binding to late binding and back. > > > >Very handy!!! > > > >John W. Colby > >Colby Consulting > >www.ColbyConsulting.com > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan >Carbonnell > >Sent: Thursday, February 15, 2007 4:38 PM > >To: Access Developers discussion and problem solving > >Subject: Re: [AccessD] Missing references > > > >On 2/15/07, Mark A Matte wrote: > > > > > Since I'm not versed in Binding(Late or Early) ...I've looked at MS > > > knowledge base...and most of what I found was problems and fixes. > > > > > > Any suggestions for 'crash course READING' in bindings? > > > >Here's a quick description that I lifted from an article I wrote > >http://www.databaseadvisors.com/newsletters/newsletter072002/0207wordautoma >t > >ionlpt1.asp > > > > > >Early Binding Versus Late Binding > > > >First you need to decide whether to use Early Binding or Late Binding. > >Early Binding allows you to dimension variables by their specific data > >type. > >For example, the following declarations refer to the Word Application and > >Document objects rather than declaring both as generic > >objects: > > > >Dim objWord as Word.Application > >Dim doc as Word.Document > > > >Early Binding also enables a few built-in Intelli-sense features: Auto > >Complete, Auto List Members, and Auto Quick Info. In addition, using >early > >binding allows you to view Word's object model in the Object Browser. > > > >The downside to Early Binding is that you have to set a reference to a > >specific version of Word. Sometimes Access is smart enough to change the > >reference to the specific version of Word that is installed on the PC you > >are deploying your application; often it isn't, and you could end up with > >problems relating to the references. > > > >If you decide to use Late Binding, you will have to dimension all of your > >variables as Objects as follows: > > > >Dim objWord as Object > >Dim doc as Object > > > >Consequently, you cannot access any of your variables until you set them >to > >a specific object as shown below: > > > >Set objWord = CreateObject("Word.Application") Set doc = > >objWord.Documents.Open("C:\Path\To\file.doc") > > > >In addition, the Intelli-sense features, Auto Complete, Auto List >Members, > >Auto Quick Info and disables viewing of Word's object model in the Object > >Browser. However, Late Binding doesn't require that you set a reference >to > >any Word Object Library, which can be advantageous if you are deploying > >run-time versions of your application to mixed OS/Office Version >platforms. > > > >Instead of choosing one or the other, we suggest you compromise and use > >both. During the development phase use Early Binding. Once you release >the > >application, remove all specific references and change each to Object-the > >best of both worlds! > > > >Now that the binding issue is resolved, let's roll up our sleeves and >dive > >into writing some code. > > > > > > > >-- > >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 > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > >_________________________________________________________________ > >From predictions to trailers, check out the MSN Entertainment Guide to >the >Academy Awards. >http://movies.msn.com/movies/oscars2007/?icid=ncoscartagline1 > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ The average US Credit Score is 675. The cost to see yours: $0 by Experian. http://www.freecreditreport.com/pm/default.aspx?sc=660600&bcd=EMAILFOOTERAVERAGE From artful at rogers.com Fri Feb 16 09:18:35 2007 From: artful at rogers.com (artful at rogers.com) Date: Fri, 16 Feb 2007 07:18:35 -0800 (PST) Subject: [AccessD] Not that much OT: Friday humour Message-ID: <135025.27221.qm@web88213.mail.re2.yahoo.com> How about MailingList Maestro? A. ----- Original Message ---- From: Gustav Brock To: accessd at databaseadvisors.com Sent: Friday, February 16, 2007 9:40:03 AM Subject: Re: [AccessD] Not that much OT: Friday humour Hi John It's free for you! You could also use some 4-digit abbreviation like JCMM (John Colby Multi-faceted Master). We had some plans putting something like that on our business cards. /gustav >>> jwcolby at colbyconsulting.com 16-02-2007 15:21:29 >>> Ooo Ooo Ooo, can you make one up for me? I like yours Gustav. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, February 16, 2007 9:02 AM To: accessd at databaseadvisors.com Subject: [AccessD] Not that much OT: Friday humour Hi Arthur SQL Sensei? That was new! So what's next (or preceding)? JET Jongleur? Or JETeleer? /gustav >>> artful at rogers.com 15-02-2007 15:24:34 >>> Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Fri Feb 16 09:20:44 2007 From: artful at rogers.com (artful at rogers.com) Date: Fri, 16 Feb 2007 07:20:44 -0800 (PST) Subject: [AccessD] Missing references Message-ID: <891940.82217.qm@web88207.mail.re2.yahoo.com> Is this verifiable, Jim? I haven't ever used late-binding, which I admit has caused various installation issues, but I am curious. Is this a thumbnail calculation or can you supply concrete arithmetical evidence? A. ----- Original Message ---- From: Jim Dettman To: Access Developers discussion and problem solving Sent: Friday, February 16, 2007 9:49:44 AM Subject: Re: [AccessD] Missing references Bryan, One thing you didn't mention is the performance hit; late binding costs you 10-15% for every operation perform. Jim. From jwcolby at colbyconsulting.com Fri Feb 16 09:39:01 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Fri, 16 Feb 2007 10:39:01 -0500 Subject: [AccessD] Missing references In-Reply-To: <891940.82217.qm@web88207.mail.re2.yahoo.com> Message-ID: <003401c751e0$95936ee0$6c7aa8c0@m6805> It is quantifiable. I have a class for timing things and you can do late binding vs. early binding in a loop a million times to measure the effects of each. Essentially binding requires the compiler to look up the object in an object table to obtain the pointer to the object as well as the parameters, their types, the return type if any etc. Early binding does that at compile time, once. Late binding does the exact same thing at run time, every time the object is resolved. The question is, how often is it done? For example, if you have a global reference to a word object, at runtime the object has to be resolved, but since it is a global variable, it is only resolved once, and so the hit is a once-off affair. Now take the example of a reference to a word object in the header of a class module. Now this has to be done once, every time the class loads, for each instance of the class loading. Now take the example of a reference to a cell in a spreadsheet dimensioned in a method of a class. The object has to be resolved every time the function is called. That may be once, or it may be hundreds or thousands of times. Notice that in ALL cases, the object is resolved ONCE for each dimension statement. The difference between these three examples is the LOCATION of the dimension statement. It is actually possible in VBA to dimension an object down in code, so you could literally dimension an object inside of a loop. Generally speaking that would be a disaster using late binding. Actually dimensioning a variable of any kind down in the middle of code is considered bad practice anyway. DREW are you listening? Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Friday, February 16, 2007 10:21 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing references Is this verifiable, Jim? I haven't ever used late-binding, which I admit has caused various installation issues, but I am curious. Is this a thumbnail calculation or can you supply concrete arithmetical evidence? A. ----- Original Message ---- From: Jim Dettman To: Access Developers discussion and problem solving Sent: Friday, February 16, 2007 9:49:44 AM Subject: Re: [AccessD] Missing references Bryan, One thing you didn't mention is the performance hit; late binding costs you 10-15% for every operation perform. Jim. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Feb 16 09:44:01 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Fri, 16 Feb 2007 10:44:01 -0500 Subject: [AccessD] Missing references In-Reply-To: <003401c751e0$95936ee0$6c7aa8c0@m6805> Message-ID: <003501c751e1$4882c690$6c7aa8c0@m6805> Excuse me, I misspoke. The reference is resolved at the SET statement, not the dim statement. (flogging self with a cat-o-nines) John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Friday, February 16, 2007 10:39 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references It is quantifiable. I have a class for timing things and you can do late binding vs. early binding in a loop a million times to measure the effects of each. Essentially binding requires the compiler to look up the object in an object table to obtain the pointer to the object as well as the parameters, their types, the return type if any etc. Early binding does that at compile time, once. Late binding does the exact same thing at run time, every time the object is resolved. The question is, how often is it done? For example, if you have a global reference to a word object, at runtime the object has to be resolved, but since it is a global variable, it is only resolved once, and so the hit is a once-off affair. Now take the example of a reference to a word object in the header of a class module. Now this has to be done once, every time the class loads, for each instance of the class loading. Now take the example of a reference to a cell in a spreadsheet dimensioned in a method of a class. The object has to be resolved every time the function is called. That may be once, or it may be hundreds or thousands of times. Notice that in ALL cases, the object is resolved ONCE for each dimension statement. The difference between these three examples is the LOCATION of the dimension statement. It is actually possible in VBA to dimension an object down in code, so you could literally dimension an object inside of a loop. Generally speaking that would be a disaster using late binding. Actually dimensioning a variable of any kind down in the middle of code is considered bad practice anyway. DREW are you listening? Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Friday, February 16, 2007 10:21 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing references Is this verifiable, Jim? I haven't ever used late-binding, which I admit has caused various installation issues, but I am curious. Is this a thumbnail calculation or can you supply concrete arithmetical evidence? A. ----- Original Message ---- From: Jim Dettman To: Access Developers discussion and problem solving Sent: Friday, February 16, 2007 9:49:44 AM Subject: Re: [AccessD] Missing references Bryan, One thing you didn't mention is the performance hit; late binding costs you 10-15% for every operation perform. Jim. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jim.Hale at FleetPride.com Fri Feb 16 09:41:36 2007 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Fri, 16 Feb 2007 09:41:36 -0600 Subject: [AccessD] Not that much OT: Friday humour Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DE2BF@corp-es01.fleetpride.com> JETson? OCXymoron? DLLbert? DOSboot? (wordplay only, not trying to start a flame war) :-) Jim Hale -----Original Message----- From: artful at rogers.com [mailto:artful at rogers.com] Sent: Friday, February 16, 2007 9:19 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Not that much OT: Friday humour How about MailingList Maestro? A. ----- Original Message ---- From: Gustav Brock To: accessd at databaseadvisors.com Sent: Friday, February 16, 2007 9:40:03 AM Subject: Re: [AccessD] Not that much OT: Friday humour Hi John It's free for you! You could also use some 4-digit abbreviation like JCMM (John Colby Multi-faceted Master). We had some plans putting something like that on our business cards. /gustav >>> jwcolby at colbyconsulting.com 16-02-2007 15:21:29 >>> Ooo Ooo Ooo, can you make one up for me? I like yours Gustav. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, February 16, 2007 9:02 AM To: accessd at databaseadvisors.com Subject: [AccessD] Not that much OT: Friday humour Hi Arthur SQL Sensei? That was new! So what's next (or preceding)? JET Jongleur? Or JETeleer? /gustav >>> artful at rogers.com 15-02-2007 15:24:34 >>> Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 jwcolby at colbyconsulting.com Fri Feb 16 10:07:20 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Fri, 16 Feb 2007 11:07:20 -0500 Subject: [AccessD] Not that much OT: Friday humour In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB67727DE2BF@corp-es01.fleetpride.com> Message-ID: <003601c751e4$89ac1ce0$6c7aa8c0@m6805> LOL. I thought for a moment you were calling me names. You're NOT calling me names are you? ;-) John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Friday, February 16, 2007 10:42 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Not that much OT: Friday humour JETson? OCXymoron? DLLbert? DOSboot? (wordplay only, not trying to start a flame war) :-) Jim Hale -----Original Message----- From: artful at rogers.com [mailto:artful at rogers.com] Sent: Friday, February 16, 2007 9:19 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Not that much OT: Friday humour How about MailingList Maestro? A. From Jim.Hale at FleetPride.com Fri Feb 16 10:20:10 2007 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Fri, 16 Feb 2007 10:20:10 -0600 Subject: [AccessD] Not that much OT: Friday humour Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DE2C0@corp-es01.fleetpride.com> Nope, I was just having fun with the words! :-) Jim Hale -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Friday, February 16, 2007 10:07 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Not that much OT: Friday humour LOL. I thought for a moment you were calling me names. You're NOT calling me names are you? ;-) John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Friday, February 16, 2007 10:42 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Not that much OT: Friday humour JETson? OCXymoron? DLLbert? DOSboot? (wordplay only, not trying to start a flame war) :-) Jim Hale *********************************************************************** 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 markamatte at hotmail.com Fri Feb 16 10:23:25 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 16 Feb 2007 16:23:25 +0000 Subject: [AccessD] Missing references In-Reply-To: Message-ID: Thanks Gustav, This is almost embarrassing...I see the code...I know what the code does...I can write VBA...ALL...DAY...LONGGGG...But I don't know how to convert your IF statement back to a macro??? lol...Not sure why but I find this fact amusing, but I do. Here is the VBA/Macro... '------------------------------------------------------------ ' AutoExec ' '------------------------------------------------------------ Function AutoExec() DoCmd.Echo False, "" If (CheckReferences() = False) Then Call VerifyReferences(True) DoCmd.OpenModule "USysReferencesCheck", "" DoCmd.RunCommand acCmdCompileAndSaveAllMod DoCmd.Close , "" End If DoCmd.Echo True, "" End Function I got the echo part...lol...but how do you do the if statement? Thanks, Mark A. Matte >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] Missing references >Date: Fri, 16 Feb 2007 00:03:43 +0100 > >Hi Mark > >Some years ago we had a lengthy thread on this. >Look up here: > >http://databaseadvisors.com/pipermail/accessd/2003-July/011034.html > >/gustav > > >>> markamatte at hotmail.com 15-02-07 23:02 >>> >Thanks John, > >I'm not referencing any other app or docs...I was referring to when you are >in a module and goto TOOLS---REFERENCES...and there is something missing or >incorrect. > >Is binding relevant at this point? If not...back to the original >question:...how to handle the 'missing'??? > >Am I still confused>..lol...??? > > >Thanks, > >Mark A. Matte > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ With tax season right around the corner, make sure to follow these few simple tips. http://articles.moneycentral.msn.com/Taxes/PreparationTips/PreparationTips.aspx?icid=HMFebtagline From wdhindman at dejpolsystems.com Fri Feb 16 10:38:54 2007 From: wdhindman at dejpolsystems.com (William Hindman) Date: Fri, 16 Feb 2007 11:38:54 -0500 Subject: [AccessD] Missing references References: <003501c751e1$4882c690$6c7aa8c0@m6805> Message-ID: <008601c751e8$f3137670$9258eb44@50NM721> DREW, are you listening? :)))) William Hindman ----- Original Message ----- From: "JWColby" To: "'Access Developers discussion and problem solving'" Sent: Friday, February 16, 2007 10:44 AM Subject: Re: [AccessD] Missing references > Excuse me, I misspoke. The reference is resolved at the SET statement, > not > the dim statement. > > (flogging self with a cat-o-nines) > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby > Sent: Friday, February 16, 2007 10:39 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Missing references > > It is quantifiable. I have a class for timing things and you can do late > binding vs. early binding in a loop a million times to measure the effects > of each. Essentially binding requires the compiler to look up the object > in > an object table to obtain the pointer to the object as well as the > parameters, their types, the return type if any etc. Early binding does > that at compile time, once. Late binding does the exact same thing at run > time, every time the object is resolved. > > The question is, how often is it done? For example, if you have a global > reference to a word object, at runtime the object has to be resolved, but > since it is a global variable, it is only resolved once, and so the hit is > a > once-off affair. > > Now take the example of a reference to a word object in the header of a > class module. Now this has to be done once, every time the class loads, > for > each instance of the class loading. > > Now take the example of a reference to a cell in a spreadsheet dimensioned > in a method of a class. The object has to be resolved every time the > function is called. That may be once, or it may be hundreds or thousands > of > times. > > Notice that in ALL cases, the object is resolved ONCE for each dimension > statement. The difference between these three examples is the LOCATION of > the dimension statement. > > It is actually possible in VBA to dimension an object down in code, so you > could literally dimension an object inside of a loop. Generally speaking > that would be a disaster using late binding. > > Actually dimensioning a variable of any kind down in the middle of code is > considered bad practice anyway. > > DREW are you listening? > > Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. > Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. > Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. > Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. > Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. > Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. > Bad Practice. > > > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > artful at rogers.com > Sent: Friday, February 16, 2007 10:21 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Missing references > > Is this verifiable, Jim? I haven't ever used late-binding, which I admit > has > caused various installation issues, but I am curious. Is this a thumbnail > calculation or can you supply concrete arithmetical evidence? > > A. > > > > ----- Original Message ---- > From: Jim Dettman > To: Access Developers discussion and problem solving > > Sent: Friday, February 16, 2007 9:49:44 AM > Subject: Re: [AccessD] Missing references > > > Bryan, > > One thing you didn't mention is the performance hit; late binding costs > you 10-15% for every operation perform. > > Jim. > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Gustav at cactus.dk Fri Feb 16 10:43:20 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 16 Feb 2007 17:43:20 +0100 Subject: [AccessD] Missing references Message-ID: Hi Mark You need to show the two columns for condition etc. However, you can read the full macro in from a file. Cut and paste the text below into a new textfile (Notepad). Version = 131074 ColumnsShown = 3 Begin Action ="Echo" Argument ="0" End Begin Condition ="CheckReferences()=False" Action ="RunCode" Argument ="VerifyReferences(True)" End Begin Condition ="..." Action ="OpenModule" Argument ="USysReferencesCheck" End Begin Condition ="..." Action ="RunCommand" Argument ="126" End Begin Condition ="..." Action ="Close" Argument ="-1" Argument ="" Argument ="0" End Begin Action ="Echo" Argument ="-1" End Then import it in Access with the command in the immediate window: LoadFromText acMacro, "AutoExec", "d:\filename.txt" /gustav >>> markamatte at hotmail.com 16-02-2007 17:23:25 >>> Thanks Gustav, This is almost embarrassing...I see the code...I know what the code does...I can write VBA...ALL...DAY...LONGGGG...But I don't know how to convert your IF statement back to a macro??? lol...Not sure why but I find this fact amusing, but I do. Here is the VBA/Macro... '------------------------------------------------------------ ' AutoExec ' '------------------------------------------------------------ Function AutoExec() DoCmd.Echo False, "" If (CheckReferences() = False) Then Call VerifyReferences(True) DoCmd.OpenModule "USysReferencesCheck", "" DoCmd.RunCommand acCmdCompileAndSaveAllMod DoCmd.Close , "" End If DoCmd.Echo True, "" End Function I got the echo part...lol...but how do you do the if statement? Thanks, Mark A. Matte >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] Missing references >Date: Fri, 16 Feb 2007 00:03:43 +0100 > >Hi Mark > >Some years ago we had a lengthy thread on this. >Look up here: > >http://databaseadvisors.com/pipermail/accessd/2003-July/011034.html > >/gustav > > >>> markamatte at hotmail.com 15-02-07 23:02 >>> >Thanks John, > >I'm not referencing any other app or docs...I was referring to when you are >in a module and goto TOOLS---REFERENCES...and there is something missing or >incorrect. > >Is binding relevant at this point? If not...back to the original >question:...how to handle the 'missing'??? > >Am I still confused>..lol...??? > > >Thanks, > >Mark A. Matte From Lambert.Heenan at AIG.com Fri Feb 16 10:53:21 2007 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Fri, 16 Feb 2007 11:53:21 -0500 Subject: [AccessD] Missing references Message-ID: <34C8A2AB1EF3564CB0D64DB6AFFDD5C2012010E1@xlivmbx35.aig.com> You open the macro in design view, and from the View menu select "Conditions". In the conditions column you can then type CheckReferences() = False If that statement is true all the macro action on that line will execute In other words to convert If SomeCondition() Then DoSomething DoSomethingElse Else DoADiffferentThing Endif To a macro it would look like Condition : Action ===================================== SomeCondition()=True : DoSomething SomeCondition()=True : DoSomethingElse SomeCondition()=False : DoADiffferentThing Note that each statement in the True part of the IF needs a condition, otherwise the DoSomethingElse part would execute every time, regardless of what the result of SomeCondition() was. HTH Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Friday, February 16, 2007 11:23 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Missing references Thanks Gustav, This is almost embarrassing...I see the code...I know what the code does...I can write VBA...ALL...DAY...LONGGGG...But I don't know how to convert your IF statement back to a macro??? lol...Not sure why but I find this fact amusing, but I do. Here is the VBA/Macro... '------------------------------------------------------------ ' AutoExec ' '------------------------------------------------------------ Function AutoExec() DoCmd.Echo False, "" If (CheckReferences() = False) Then Call VerifyReferences(True) DoCmd.OpenModule "USysReferencesCheck", "" DoCmd.RunCommand acCmdCompileAndSaveAllMod DoCmd.Close , "" End If DoCmd.Echo True, "" End Function I got the echo part...lol...but how do you do the if statement? Thanks, Mark A. Matte >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] Missing references >Date: Fri, 16 Feb 2007 00:03:43 +0100 > >Hi Mark > >Some years ago we had a lengthy thread on this. >Look up here: > >http://databaseadvisors.com/pipermail/accessd/2003-July/011034.html > >/gustav > > >>> markamatte at hotmail.com 15-02-07 23:02 >>> >Thanks John, > >I'm not referencing any other app or docs...I was referring to when you >are in a module and goto TOOLS---REFERENCES...and there is something >missing or incorrect. > >Is binding relevant at this point? If not...back to the original >question:...how to handle the 'missing'??? > >Am I still confused>..lol...??? > > >Thanks, > >Mark A. Matte > >-- From artful at rogers.com Fri Feb 16 11:30:53 2007 From: artful at rogers.com (artful at rogers.com) Date: Fri, 16 Feb 2007 09:30:53 -0800 (PST) Subject: [AccessD] Not that much OT: Friday humour Message-ID: <437239.89286.qm@web88214.mail.re2.yahoo.com> The Jet sons-o-bitches. A. ----- Original Message ---- From: JWColby To: Access Developers discussion and problem solving Sent: Friday, February 16, 2007 11:07:20 AM Subject: Re: [AccessD] Not that much OT: Friday humour LOL. I thought for a moment you were calling me names. You're NOT calling me names are you? ;-) From artful at rogers.com Fri Feb 16 11:43:48 2007 From: artful at rogers.com (artful at rogers.com) Date: Fri, 16 Feb 2007 09:43:48 -0800 (PST) Subject: [AccessD] CodeLib Message-ID: <20070216174348.93951.qmail@web88204.mail.re2.yahoo.com> Does anyone use this but me? I've been recreating my CodeLib library this morning, delving into several Access MDBs and ADPs and copying the code for functions, classes and modules into CodeLib. The question arises, how to share it. It is not straightforward how to import a bunch of your code into my CodeLib database. Has anyone done this? If we could do this, it would be a cool way to archive all the collective code that you listers have so generously supplied over the years. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com From markamatte at hotmail.com Fri Feb 16 12:24:04 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 16 Feb 2007 18:24:04 +0000 Subject: [AccessD] Missing references In-Reply-To: Message-ID: Thanks Gustav, 1 last question if I may...I now see where the IF came from in the macro...but how in the macro would I have used an ELSE with that IF? Thanks, Mark A. Matte >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] Missing references >Date: Fri, 16 Feb 2007 17:43:20 +0100 > >Hi Mark > >You need to show the two columns for condition etc. > >However, you can read the full macro in from a file. >Cut and paste the text below into a new textfile (Notepad). > > >Version = 131074 >ColumnsShown = 3 >Begin > Action ="Echo" > Argument ="0" >End >Begin > Condition ="CheckReferences()=False" > Action ="RunCode" > Argument ="VerifyReferences(True)" >End >Begin > Condition ="..." > Action ="OpenModule" > Argument ="USysReferencesCheck" >End >Begin > Condition ="..." > Action ="RunCommand" > Argument ="126" >End >Begin > Condition ="..." > Action ="Close" > Argument ="-1" > Argument ="" > Argument ="0" >End >Begin > Action ="Echo" > Argument ="-1" >End > > >Then import it in Access with the command in the immediate window: > > LoadFromText acMacro, "AutoExec", "d:\filename.txt" > >/gustav > > >>> markamatte at hotmail.com 16-02-2007 17:23:25 >>> >Thanks Gustav, > >This is almost embarrassing...I see the code...I know what the code >does...I >can write VBA...ALL...DAY...LONGGGG...But I don't know how to convert your >IF statement back to a macro??? lol...Not sure why but I find this fact >amusing, but I do. Here is the VBA/Macro... > > > >'------------------------------------------------------------ >' AutoExec >' >'------------------------------------------------------------ >Function AutoExec() > > DoCmd.Echo False, "" > If (CheckReferences() = False) Then > Call VerifyReferences(True) > DoCmd.OpenModule "USysReferencesCheck", "" > DoCmd.RunCommand acCmdCompileAndSaveAllMod > DoCmd.Close , "" > End If > DoCmd.Echo True, "" > >End Function > > > >I got the echo part...lol...but how do you do the if statement? > >Thanks, > >Mark A. Matte > > >From: "Gustav Brock" > >Reply-To: Access Developers discussion and problem > >solving > >To: > >Subject: Re: [AccessD] Missing references > >Date: Fri, 16 Feb 2007 00:03:43 +0100 > > > >Hi Mark > > > >Some years ago we had a lengthy thread on this. > >Look up here: > > > >http://databaseadvisors.com/pipermail/accessd/2003-July/011034.html > > > >/gustav > > > > >>> markamatte at hotmail.com 15-02-07 23:02 >>> > >Thanks John, > > > >I'm not referencing any other app or docs...I was referring to when you >are > >in a module and goto TOOLS---REFERENCES...and there is something missing >or > >incorrect. > > > >Is binding relevant at this point? If not...back to the original > >question:...how to handle the 'missing'??? > > > >Am I still confused>..lol...??? > > > > > >Thanks, > > > >Mark A. Matte > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ With tax season right around the corner, make sure to follow these few simple tips. http://articles.moneycentral.msn.com/Taxes/PreparationTips/PreparationTips.aspx?icid=HMFebtagline From Gustav at cactus.dk Fri Feb 16 12:36:02 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 16 Feb 2007 19:36:02 +0100 Subject: [AccessD] Missing references Message-ID: Hi Mark I don't think you can. That's one of the reasons why you don't use macros. It's better to write code all day long - as you do. Macros have "improved" though in A2007. Sounds scary to me. /gustav >>> markamatte at hotmail.com 16-02-2007 19:24:04 >>> Thanks Gustav, 1 last question if I may...I now see where the IF came from in the macro...but how in the macro would I have used an ELSE with that IF? Thanks, Mark A. Matte From bheid at sc.rr.com Fri Feb 16 12:42:28 2007 From: bheid at sc.rr.com (Bobby Heid) Date: Fri, 16 Feb 2007 13:42:28 -0500 Subject: [AccessD] Missing references In-Reply-To: References: Message-ID: <000001c751fa$35c8bb90$2d01a8c0@bhxp> Mark, I don't use macros, but if you can not use ELSE, then use the same IF statement, but make it negative. That is, instead of the equivalent of: If i=0 then something else something else end if use the equivalent of: If i=0 then something end if if i<>0 then something else end if Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Friday, February 16, 2007 1:24 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Missing references Thanks Gustav, 1 last question if I may...I now see where the IF came from in the macro...but how in the macro would I have used an ELSE with that IF? Thanks, Mark A. Matte From jimdettman at verizon.net Fri Feb 16 12:54:04 2007 From: jimdettman at verizon.net (Jim Dettman) Date: Fri, 16 Feb 2007 13:54:04 -0500 Subject: [AccessD] Missing references In-Reply-To: <891940.82217.qm@web88207.mail.re2.yahoo.com> References: <891940.82217.qm@web88207.mail.re2.yahoo.com> Message-ID: <001e01c751fb$d5a59bf0$8abea8c0@XPS> <> Pretty much yes. As I said to John, it depends on the mix of operations that you are performing. But in all cases it is faster without a doubt. It's just a matter of how much. From past timings that I did, I found as a general rule of thumb that it was a 10% - 15% overall difference in speed. <> I did this years ago and have always used early binding as a result whenever possible. If I use late binding, I put it in the spec and note that it is a performance drain. So I'll use late if I have to, but I don't like it Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Friday, February 16, 2007 10:21 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing references Is this verifiable, Jim? I haven't ever used late-binding, which I admit has caused various installation issues, but I am curious. Is this a thumbnail calculation or can you supply concrete arithmetical evidence? A. ----- Original Message ---- From: Jim Dettman To: Access Developers discussion and problem solving Sent: Friday, February 16, 2007 9:49:44 AM Subject: Re: [AccessD] Missing references Bryan, One thing you didn't mention is the performance hit; late binding costs you 10-15% for every operation perform. Jim. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at verizon.net Fri Feb 16 12:54:04 2007 From: jimdettman at verizon.net (Jim Dettman) Date: Fri, 16 Feb 2007 13:54:04 -0500 Subject: [AccessD] Missing references In-Reply-To: <002501c751db$7c077660$6c7aa8c0@m6805> References: <011b01c751d9$b2ef9fb0$8abea8c0@XPS> <002501c751db$7c077660$6c7aa8c0@m6805> Message-ID: <001f01c751fb$d73d52f0$8abea8c0@XPS> John, <> Well except for the case where there is a loop for a million times. As you say, it is a trade off. My point was that the performance issue was not mentioned and it should be as it's significant enough to make a difference. <> According to Microsoft, the difference is that it is at least twice as fast using early vs. late. See here: http://support.microsoft.com/kb/245115 and read the section "Which Form of Binding Should I Use?" almost at the bottom. In overall time with all operations taken into account, I have found the difference to amount to 10% to 15% between early and late. That is a generalization to a certain extent as I have worked on projects where the manipulation of an Excel spreadsheet for example was almost cut in half when I switched. Then I've worked on other where the difference has been small. As you said, it depends on the mix of operations. But there is no denying that there is a difference and the difference more often then not is significant. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Friday, February 16, 2007 10:03 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references I would have to take issue with that statement Jim. The resolution of the object certainly takes longer, but often times that time will be dwarfed by other things. For example suppose I late bind excel objects. Yes, it takes longer to resolve the reference, but How long does it take to Open Excel? To make a new sheet? To insert data from a query into the sheet? To save the sheet back to disk? I do understand your point and I think there are situations where it can be critical, inside a loop executing a million times for example, but many times the effect on overall system operation will be negligible. And then there is the simple matter of "yea, it affects the time, but it simply doesn't matter since I have no idea what version of the library the user will have on their machine". In such a case, the fact that it "just works" outweighs all other considerations. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Friday, February 16, 2007 9:50 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references Bryan, One thing you didn't mention is the performance hit; late binding costs you 10-15% for every operation perform. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan Carbonnell Sent: Thursday, February 15, 2007 4:38 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing references On 2/15/07, Mark A Matte wrote: > Since I'm not versed in Binding(Late or Early) ...I've looked at MS > knowledge base...and most of what I found was problems and fixes. > > Any suggestions for 'crash course READING' in bindings? Here's a quick description that I lifted from an article I wrote http://www.databaseadvisors.com/newsletters/newsletter072002/0207wordautomat ionlpt1.asp Early Binding Versus Late Binding First you need to decide whether to use Early Binding or Late Binding. Early Binding allows you to dimension variables by their specific data type. For example, the following declarations refer to the Word Application and Document objects rather than declaring both as generic objects: Dim objWord as Word.Application Dim doc as Word.Document Early Binding also enables a few built-in Intelli-sense features: Auto Complete, Auto List Members, and Auto Quick Info. In addition, using early binding allows you to view Word's object model in the Object Browser. The downside to Early Binding is that you have to set a reference to a specific version of Word. Sometimes Access is smart enough to change the reference to the specific version of Word that is installed on the PC you are deploying your application; often it isn't, and you could end up with problems relating to the references. If you decide to use Late Binding, you will have to dimension all of your variables as Objects as follows: Dim objWord as Object Dim doc as Object Consequently, you cannot access any of your variables until you set them to a specific object as shown below: Set objWord = CreateObject("Word.Application") Set doc = objWord.Documents.Open("C:\Path\To\file.doc") In addition, the Intelli-sense features, Auto Complete, Auto List Members, Auto Quick Info and disables viewing of Word's object model in the Object Browser. However, Late Binding doesn't require that you set a reference to any Word Object Library, which can be advantageous if you are deploying run-time versions of your application to mixed OS/Office Version platforms. Instead of choosing one or the other, we suggest you compromise and use both. During the development phase use Early Binding. Once you release the application, remove all specific references and change each to Object-the best of both worlds! Now that the binding issue is resolved, let's roll up our sleeves and dive into writing some code. -- 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Fri Feb 16 13:36:22 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 16 Feb 2007 11:36:22 -0800 Subject: [AccessD] Missing references In-Reply-To: <001e01c751fb$d5a59bf0$8abea8c0@XPS> Message-ID: <0JDK0047CMCYICV0@l-daemon> Hi Jim: The main reason for using late-binding is that an application developer does not know what version of Word or Excel is on the clients' computer until the application is run. By checking the local references a program can then adapt to its' current surroundings; but this requires a late-binding design. Just a comment Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Friday, February 16, 2007 10:54 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references <> Pretty much yes. As I said to John, it depends on the mix of operations that you are performing. But in all cases it is faster without a doubt. It's just a matter of how much. From past timings that I did, I found as a general rule of thumb that it was a 10% - 15% overall difference in speed. <> I did this years ago and have always used early binding as a result whenever possible. If I use late binding, I put it in the spec and note that it is a performance drain. So I'll use late if I have to, but I don't like it Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Friday, February 16, 2007 10:21 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing references Is this verifiable, Jim? I haven't ever used late-binding, which I admit has caused various installation issues, but I am curious. Is this a thumbnail calculation or can you supply concrete arithmetical evidence? A. ----- Original Message ---- From: Jim Dettman To: Access Developers discussion and problem solving Sent: Friday, February 16, 2007 9:49:44 AM Subject: Re: [AccessD] Missing references Bryan, One thing you didn't mention is the performance hit; late binding costs you 10-15% for every operation perform. Jim. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Fri Feb 16 14:43:25 2007 From: artful at rogers.com (artful at rogers.com) Date: Fri, 16 Feb 2007 12:43:25 -0800 (PST) Subject: [AccessD] Missing references Message-ID: <490793.58413.qm@web88202.mail.re2.yahoo.com> Quite right, and insofar as you resolve the late-bind issue asap, then such binding shall not impede the subsequent performance of your app. Having resolved it once, the app will behave as if it were early-bound thereafter. A. ----- Original Message ---- From: Jim Lawrence To: Access Developers discussion and problem solving Sent: Friday, February 16, 2007 2:36:22 PM Subject: Re: [AccessD] Missing references Hi Jim: The main reason for using late-binding is that an application developer does not know what version of Word or Excel is on the clients' computer until the application is run. By checking the local references a program can then adapt to its' current surroundings; but this requires a late-binding design. Just a comment Jim From cfoust at infostatsystems.com Fri Feb 16 15:18:52 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 16 Feb 2007 13:18:52 -0800 Subject: [AccessD] CodeLib In-Reply-To: <20070216174348.93951.qmail@web88204.mail.re2.yahoo.com> References: <20070216174348.93951.qmail@web88204.mail.re2.yahoo.com> Message-ID: I've used it for years. To import an entire library, in the XP version, open CodeLibrarian, click on the Code Librarian menu item and choose Add. The Existing Library option will allow you to browse to a clb file and include it in your Code Librarian project. Alternatively, the toolbar Open icon will let you browse to a clb file. I give my clbs distinct names so I can recall where they came from and distinguish them from the MS provided stuff. It was messy getting from 2000 to XP because the file format changed, IIRC, and you have to specify a version 9.0 Code Library to open it in XP. I've never wanted to copy whole mdoules (except classes) because I'd lose the granularity of the code and it would be hard to find a particular routine. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Friday, February 16, 2007 9:44 AM To: Access Developers discussion and problem solving Subject: [AccessD] CodeLib Does anyone use this but me? I've been recreating my CodeLib library this morning, delving into several Access MDBs and ADPs and copying the code for functions, classes and modules into CodeLib. The question arises, how to share it. It is not straightforward how to import a bunch of your code into my CodeLib database. Has anyone done this? If we could do this, it would be a cool way to archive all the collective code that you listers have so generously supplied over the years. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Patricia.O'Connor at otda.state.ny.us Fri Feb 16 15:40:02 2007 From: Patricia.O'Connor at otda.state.ny.us (O'Connor, Patricia (OTDA)) Date: Fri, 16 Feb 2007 16:40:02 -0500 Subject: [AccessD] Dates As Criteria In-Reply-To: References: Message-ID: <01DBAB52E30A9A4AB3D94EF8029EDBE8021BAD48@EXCNYSM0A1AI.nysemail.nyenet> I stopped using BETWEEN quite awhile ago because of problems I had run into using Access as a front end to Oracle. Even in passthru queries and straight PlSql queries I use the date before and the date after. This way I am guaranteed to get all records with the correct date even if the "time" is 00:00:00. SO if you wanted between March 15, 2004 and July 10, 2004 I would write SELECT tblArrests.ArrestDT, tblArrests.ArrestLocation FROM tblArrests WHERE ArrestDT > '14-MAR-2004' And ArrestDt < '11-JUL-2004' So in your form you could have hidden fields with the day added and subtracted or SELECT tblArrests.ArrestDT, tblArrests.ArrestLocation FROM tblArrests WHERE ArrestDT > DateAdd("D",-1,[Forms]![frmReports]![StartDate] ) And ArrestDt < DateAdd("D",1,[Forms]![frmReports]![EndDate] ) Or something similar ************************************************** * Patricia O'Connor * Associate Computer Programmer Analyst * OTDA - BDMA * (W) mailto:Patricia.O'Connor at otda.state.ny.us * (w) mailto:aa1160 at nysemail.state.ny.us ************************************************** > -------------------------------------------------------- This e-mail, including any attachments, may be confidential, privileged or otherwise legally protected. It is intended only for the addressee. If you received this e-mail in error or from someone who was not authorized to send it to you, do not disseminate, copy or otherwise use this e-mail or its attachments. Please notify the sender immediately by reply e-mail and delete the e-mail from your system. -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Mark A Matte > Sent: Wednesday, February 14, 2007 10:46 AM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Dates As Criteria > > I set the parameters...no change...and the reason I I use the > format function is that the field ArrestDT is stored as a > general date...with time. > So I format to get just the short date. > > > >From: "Gustav Brock" > >Reply-To: Access Developers discussion and problem > >solving > >To: > >Subject: Re: [AccessD] Dates As Criteria > >Date: Wed, 14 Feb 2007 16:30:03 +0100 > > > >Hi Mark > > > >First, I would follow the advice from Arthur. > >If not possible, then try this: > > > >PARAMETERS > > [Forms]![frmReports]![StartDate] DateTime, > > [Forms]![frmReports]![EndDate] DateTime; > > > >SELECT tblArrests.ArrestDT, tblArrests.ArrestLocation > >FROM tblArrests > >WHERE ArrestDT Between > > [Forms]![frmReports]![StartDate] And > > [Forms]![frmReports]![EndDate]; > > > >/gustav > > > > >>> markamatte at hotmail.com 14-02-2007 16:09:43 >>> > >Here she is...This is making NO SENSE to me...at all??? > > > >SELECT tblArrests.ArrestDT, tblArrests.ArrestLocation > >FROM tblArrests > >WHERE (((Format([ArrestDT],"Short Date")) Between > >[Forms]![frmReports]![StartDate] And > [Forms]![frmReports]![endDate])); > > > > > > > > >From: "Gustav Brock" > > >Reply-To: Access Developers discussion and problem > > >solving > > >To: > > >Subject: Re: [AccessD] Dates As Criteria > > >Date: Wed, 14 Feb 2007 00:13:12 +0100 > > > > > >Hi Mark > > > > > >Show us your query, the SQL. > > >It probably has to do with a missing US format of the date values. > > > > > >/gustav > > > > > > >>> markamatte at hotmail.com 13-02-07 22:22 >>> > > >Hello All, > > > > > >In A2K I ahve a form that has 2 unbound date fields...have > input masks > >and > > >formats as SHORT DATE...I have a query that uses these > fields as criteria > >in > > >a BETWEEN statement. The field in the table is a general > date. I'm > >using 2 > > >records to check...if I set the startdate and enddate on > the form to the > > >dates that are in the db...they return..but if I use ofther > >dates...nothing > > >comes back. Example: > > > > > >StartDate:2/6/2007 > > >EndDate: 2/13/2007 > > > > > >2 records: > > >DT=2/9/2007 > > >DT=2/13/2007 > > > > > >Using the above "between startdate and enddate" I return 1 record? > > >If I change the startdate to 2/9/2007 then I return both > > >IF I use 2/6 and2/17 as the start and end...I return NOTHING... > > > > > >Anyone...please help...I'm sure I've done something > silly...but this just > > >doesn't make sense??? > > > > > >Thanks, > > > > > >Mark A. Matte > > > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > _________________________________________________________________ > Don't miss your chance to WIN 10 hours of private jet travel > from Microsoft > Office Live > http://clk.atdmt.com/MRT/go/mcrssaub0540002499mrt/direct/01/ > > From artful at rogers.com Fri Feb 16 16:06:26 2007 From: artful at rogers.com (artful at rogers.com) Date: Fri, 16 Feb 2007 14:06:26 -0800 (PST) Subject: [AccessD] CodeLib Message-ID: <234612.62923.qm@web88207.mail.re2.yahoo.com> Well that makes two of us, Charlotte. I wish there were more, we could build something nice. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Charlotte Foust To: Access Developers discussion and problem solving Sent: Friday, February 16, 2007 4:18:52 PM Subject: Re: [AccessD] CodeLib I've used it for years. To import an entire library, in the XP version, open CodeLibrarian, click on the Code Librarian menu item and choose Add. The Existing Library option will allow you to browse to a clb file and include it in your Code Librarian project. Alternatively, the toolbar Open icon will let you browse to a clb file. I give my clbs distinct names so I can recall where they came from and distinguish them from the MS provided stuff. It was messy getting from 2000 to XP because the file format changed, IIRC, and you have to specify a version 9.0 Code Library to open it in XP. I've never wanted to copy whole mdoules (except classes) because I'd lose the granularity of the code and it would be hard to find a particular routine. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Friday, February 16, 2007 9:44 AM To: Access Developers discussion and problem solving Subject: [AccessD] CodeLib Does anyone use this but me? I've been recreating my CodeLib library this morning, delving into several Access MDBs and ADPs and copying the code for functions, classes and modules into CodeLib. The question arises, how to share it. It is not straightforward how to import a bunch of your code into my CodeLib database. Has anyone done this? If we could do this, it would be a cool way to archive all the collective code that you listers have so generously supplied over the years. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Feb 16 16:44:55 2007 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 16 Feb 2007 23:44:55 +0100 Subject: [AccessD] Dates As Criteria Message-ID: Hi Patricia But that will return 2004-03-14 12:00:00 as well ... /gustav >>> Patricia.O'Connor at otda.state.ny.us 16-02-07 22:40 >>> I stopped using BETWEEN quite awhile ago because of problems I had run into using Access as a front end to Oracle. Even in passthru queries and straight PlSql queries I use the date before and the date after. This way I am guaranteed to get all records with the correct date even if the "time" is 00:00:00. SO if you wanted between March 15, 2004 and July 10, 2004 I would write SELECT tblArrests.ArrestDT, tblArrests.ArrestLocation FROM tblArrests WHERE ArrestDT > '14-MAR-2004' And ArrestDt < '11-JUL-2004' From stuart at lexacorp.com.pg Fri Feb 16 18:08:16 2007 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 17 Feb 2007 10:08:16 +1000 Subject: [AccessD] Missing references In-Reply-To: <003401c751e0$95936ee0$6c7aa8c0@m6805> References: <891940.82217.qm@web88207.mail.re2.yahoo.com>, <003401c751e0$95936ee0$6c7aa8c0@m6805> Message-ID: <45D64770.6934.795CC57@stuart.lexacorp.com.pg> On 16 Feb 2007 at 10:39, JWColby wrote: > Actually dimensioning a variable of any kind down in the middle of code is > considered bad practice anyway. It used to be. There seems to be a growing trend towards "decentralisation" rather than "consolidation" of declarations. Now we have "Block Scoped variables" in VB.Net which *have* to be declared in the middle of code and many MS code examples now declare all variables immediately before first use. Anyone for another round of Bound/Unbound or Surrogate/Natural et al which we're at it? :-) -- Stuart From garykjos at gmail.com Fri Feb 16 18:11:55 2007 From: garykjos at gmail.com (Gary Kjos) Date: Fri, 16 Feb 2007 18:11:55 -0600 Subject: [AccessD] Dates As Criteria In-Reply-To: <01DBAB52E30A9A4AB3D94EF8029EDBE8021BAD48@EXCNYSM0A1AI.nysemail.nyenet> References: <01DBAB52E30A9A4AB3D94EF8029EDBE8021BAD48@EXCNYSM0A1AI.nysemail.nyenet> Message-ID: That will only work if you don't have times in your Oracle based dates. The end date is OK but the start date will get you all the records that have any time other than 00:00:00 for the start date. I put the time into the form that the user uses to enter the date range and tell them to use 00:00:00am for the start date and 11:59:59pm for time in the end date or 23:59:59 for those who prefer the 24 hour clock. Some of our Oracle Dates have times and some don't. Even sometimes the same field will sometimes have times in some records and other records won't, it depends on the program that updated that field in the Oracle Application. By always selecting from the beginning time of the beginning day to the ending time of the last day we get all the records. GK On 2/16/07, O'Connor, Patricia (OTDA) wrote: > I stopped using BETWEEN quite awhile ago because of problems I had run > into using Access as a front end to Oracle. Even in passthru queries and > straight PlSql queries I use the date before and the date after. This > way I am guaranteed to get all records with the correct date even if the > "time" is 00:00:00. > > SO if you wanted between March 15, 2004 and July 10, 2004 I would write > > SELECT tblArrests.ArrestDT, tblArrests.ArrestLocation > FROM tblArrests > WHERE ArrestDT > '14-MAR-2004' > And ArrestDt < '11-JUL-2004' > > So in your form you could have hidden fields with the day added and > subtracted or > > SELECT tblArrests.ArrestDT, tblArrests.ArrestLocation > FROM tblArrests > WHERE ArrestDT > DateAdd("D",-1,[Forms]![frmReports]![StartDate] ) > And ArrestDt < DateAdd("D",1,[Forms]![frmReports]![EndDate] ) > > Or something similar > > ************************************************** > * Patricia O'Connor > * Associate Computer Programmer Analyst > * OTDA - BDMA > * (W) mailto:Patricia.O'Connor at otda.state.ny.us > * (w) mailto:aa1160 at nysemail.state.ny.us > ************************************************** > > > > > -------------------------------------------------------- > This e-mail, including any attachments, may be confidential, privileged or otherwise legally protected. It is intended only for the addressee. If you received this e-mail in error or from someone who was not authorized to send it to you, do not disseminate, copy or otherwise use this e-mail or its attachments. Please notify the sender immediately by reply e-mail and delete the e-mail from your system. > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > Mark A Matte > > Sent: Wednesday, February 14, 2007 10:46 AM > > To: accessd at databaseadvisors.com > > Subject: Re: [AccessD] Dates As Criteria > > > > I set the parameters...no change...and the reason I I use the > > format function is that the field ArrestDT is stored as a > > general date...with time. > > So I format to get just the short date. > > > > > > >From: "Gustav Brock" > > >Reply-To: Access Developers discussion and problem > > >solving > > >To: > > >Subject: Re: [AccessD] Dates As Criteria > > >Date: Wed, 14 Feb 2007 16:30:03 +0100 > > > > > >Hi Mark > > > > > >First, I would follow the advice from Arthur. > > >If not possible, then try this: > > > > > >PARAMETERS > > > [Forms]![frmReports]![StartDate] DateTime, > > > [Forms]![frmReports]![EndDate] DateTime; > > > > > >SELECT tblArrests.ArrestDT, tblArrests.ArrestLocation > > >FROM tblArrests > > >WHERE ArrestDT Between > > > [Forms]![frmReports]![StartDate] And > > > [Forms]![frmReports]![EndDate]; > > > > > >/gustav > > > > > > >>> markamatte at hotmail.com 14-02-2007 16:09:43 >>> > > >Here she is...This is making NO SENSE to me...at all??? > > > > > >SELECT tblArrests.ArrestDT, tblArrests.ArrestLocation > > >FROM tblArrests > > >WHERE (((Format([ArrestDT],"Short Date")) Between > > >[Forms]![frmReports]![StartDate] And > > [Forms]![frmReports]![endDate])); > > > > > > > > > > > > >From: "Gustav Brock" > > > >Reply-To: Access Developers discussion and problem > > > >solving > > > >To: > > > >Subject: Re: [AccessD] Dates As Criteria > > > >Date: Wed, 14 Feb 2007 00:13:12 +0100 > > > > > > > >Hi Mark > > > > > > > >Show us your query, the SQL. > > > >It probably has to do with a missing US format of the date values. > > > > > > > >/gustav > > > > > > > > >>> markamatte at hotmail.com 13-02-07 22:22 >>> > > > >Hello All, > > > > > > > >In A2K I ahve a form that has 2 unbound date fields...have > > input masks > > >and > > > >formats as SHORT DATE...I have a query that uses these > > fields as criteria > > >in > > > >a BETWEEN statement. The field in the table is a general > > date. I'm > > >using 2 > > > >records to check...if I set the startdate and enddate on > > the form to the > > > >dates that are in the db...they return..but if I use ofther > > >dates...nothing > > > >comes back. Example: > > > > > > > >StartDate:2/6/2007 > > > >EndDate: 2/13/2007 > > > > > > > >2 records: > > > >DT=2/9/2007 > > > >DT=2/13/2007 > > > > > > > >Using the above "between startdate and enddate" I return 1 record? > > > >If I change the startdate to 2/9/2007 then I return both > > > >IF I use 2/6 and2/17 as the start and end...I return NOTHING... > > > > > > > >Anyone...please help...I'm sure I've done something > > silly...but this just > > > >doesn't make sense??? > > > > > > > >Thanks, > > > > > > > >Mark A. Matte > > > > > > > > >-- > > >AccessD mailing list > > >AccessD at databaseadvisors.com > > >http://databaseadvisors.com/mailman/listinfo/accessd > > >Website: http://www.databaseadvisors.com > > > > _________________________________________________________________ > > Don't miss your chance to WIN 10 hours of private jet travel > > from Microsoft > > Office Live > > http://clk.atdmt.com/MRT/go/mcrssaub0540002499mrt/direct/01/ > > > > > -- > 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 wdhindman at dejpolsystems.com Fri Feb 16 18:46:16 2007 From: wdhindman at dejpolsystems.com (William Hindman) Date: Fri, 16 Feb 2007 19:46:16 -0500 Subject: [AccessD] CodeLib References: <234612.62923.qm@web88207.mail.re2.yahoo.com> Message-ID: <001501c7522d$08b0f810$9258eb44@50NM721> ...I've tried CL a couple of times and found it bloated and unnecessarily complicated to use ...I now use TreePad which I keep on a gig-stick on a neck chain ...no matter where I am I have full access to a text version of my entire code library and TreePad makes it very easy to find what I need. William Hindman ----- Original Message ----- From: To: "Access Developers discussion and problem solving" Sent: Friday, February 16, 2007 5:06 PM Subject: Re: [AccessD] CodeLib > Well that makes two of us, Charlotte. I wish there were more, we could > build something nice. > > > Arthur Fuller > Technical Writer, Data Modeler, SQL Sensei > Artful Databases Organization > www.artfulsoftware.com > > > > > ----- Original Message ---- > From: Charlotte Foust > To: Access Developers discussion and problem solving > > Sent: Friday, February 16, 2007 4:18:52 PM > Subject: Re: [AccessD] CodeLib > > > I've used it for years. To import an entire library, in the XP version, > open CodeLibrarian, click on the Code Librarian menu item and choose > Add. The Existing Library option will allow you to browse to a clb file > and include it in your Code Librarian project. Alternatively, the > toolbar Open icon will let you browse to a clb file. I give my clbs > distinct names so I can recall where they came from and distinguish them > from the MS provided stuff. > > It was messy getting from 2000 to XP because the file format changed, > IIRC, and you have to specify a version 9.0 Code Library to open it in > XP. I've never wanted to copy whole mdoules (except classes) because > I'd lose the granularity of the code and it would be hard to find a > particular routine. > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > artful at rogers.com > Sent: Friday, February 16, 2007 9:44 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] CodeLib > > Does anyone use this but me? I've been recreating my CodeLib library > this morning, delving into several Access MDBs and ADPs and copying the > code for functions, classes and modules into CodeLib. > > The question arises, how to share it. It is not straightforward how to > import a bunch of your code into my CodeLib database. Has anyone done > this? If we could do this, it would be a cool way to archive all the > collective code that you listers have so generously supplied over the > years. > > Arthur Fuller > Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization > www.artfulsoftware.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Fri Feb 16 18:56:44 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Fri, 16 Feb 2007 19:56:44 -0500 Subject: [AccessD] Missing references In-Reply-To: <45D64770.6934.795CC57@stuart.lexacorp.com.pg> Message-ID: <006401c7522e$7f119360$6c7aa8c0@m6805> >and many MS code examples now declare all variables immediately before first use. Don't get me started on Microsoft's summer interns "best practices" examples. Anyone for the trading database as a way to demonstrate correct normalization. It doesn't help their cause that they foist such monstrosities on us. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, February 16, 2007 7:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing references On 16 Feb 2007 at 10:39, JWColby wrote: > Actually dimensioning a variable of any kind down in the middle of > code is considered bad practice anyway. It used to be. There seems to be a growing trend towards "decentralisation" rather than "consolidation" of declarations. Now we have "Block Scoped variables" in VB.Net which *have* to be declared in the middle of code and many MS code examples now declare all variables immediately before first use. Anyone for another round of Bound/Unbound or Surrogate/Natural et al which we're at it? :-) -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at gmail.com Fri Feb 16 19:11:29 2007 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Fri, 16 Feb 2007 20:11:29 -0500 Subject: [AccessD] Missing references In-Reply-To: References: <012801c7514c$2c884180$657aa8c0@m6805> Message-ID: On 2/15/07, Mark A Matte wrote: > I'm not referencing any other app or docs...I was referring to when you are > in a module and goto TOOLS---REFERENCES...and there is something missing or > incorrect. > > Is binding relevant at this point? If not...back to the original > question:...how to handle the 'missing'??? Late to the party again. :( If you aren't referencing any other app, they why are you concerned about missing refs? -- 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 carbonnb at gmail.com Fri Feb 16 19:12:58 2007 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Fri, 16 Feb 2007 20:12:58 -0500 Subject: [AccessD] Missing references In-Reply-To: <011b01c751d9$b2ef9fb0$8abea8c0@XPS> References: <00fa01c7512b$111fd190$657aa8c0@m6805> <011b01c751d9$b2ef9fb0$8abea8c0@XPS> Message-ID: On 2/16/07, Jim Dettman wrote: > Bryan, > > One thing you didn't mention is the performance hit; late binding costs > you 10-15% for every operation perform. Didn't know that. Never been an issue for what I have done. -- 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 carbonnb at gmail.com Fri Feb 16 19:17:20 2007 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Fri, 16 Feb 2007 20:17:20 -0500 Subject: [AccessD] Design Question In-Reply-To: <0JD3007U9WK6DVM1@l-daemon> References: <0JD3007U9WK6DVM1@l-daemon> Message-ID: On 2/7/07, Jim Lawrence wrote: > > The only particular about this type of table is that you as the programmer > > would most likely have to maintain it with your code.... sorry not bound. > > This system works great and I have used it to resolve many similar issues. > > In this case, I doubt it's gonna happen. He's not a programmer. Just a > manager :) > > That is why there is programmer at your office. If the manager who I assume Nope. No programmers here. Just us lowly managers :) > has no programming experience, wishes to do it himself then it is not > possible. (Had a similar situation at a office; the manager, a Systems > Architect fooled around with a similar problem for 3 weeks before finally > asking me to do it... it took 3 hours to solve and code.) Surprising how that works, eh? :) It'd probably take me a week to do what he wants, but since I don't work for him, I'll just guide him. -- 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 wdhindman at dejpolsystems.com Fri Feb 16 19:26:36 2007 From: wdhindman at dejpolsystems.com (William Hindman) Date: Fri, 16 Feb 2007 20:26:36 -0500 Subject: [AccessD] Missing references References: <006401c7522e$7f119360$6c7aa8c0@m6805> Message-ID: <005301c75232$aabc5460$9258eb44@50NM721> ...you're preaching to the choir JC :( William Hindman ----- Original Message ----- From: "JWColby" To: "'Access Developers discussion and problem solving'" Sent: Friday, February 16, 2007 7:56 PM Subject: Re: [AccessD] Missing references > >and many MS code examples now declare all variables immediately before > first use. > > Don't get me started on Microsoft's summer interns "best practices" > examples. Anyone for the trading database as a way to demonstrate correct > normalization. > > It doesn't help their cause that they foist such monstrosities on us. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > McLachlan > Sent: Friday, February 16, 2007 7:08 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Missing references > > On 16 Feb 2007 at 10:39, JWColby wrote: > >> Actually dimensioning a variable of any kind down in the middle of >> code is considered bad practice anyway. > > It used to be. There seems to be a growing trend towards > "decentralisation" > rather than "consolidation" of declarations. > > Now we have "Block Scoped variables" in VB.Net which *have* to be > declared > in the middle of code and many MS code examples now declare all variables > immediately before first use. > > Anyone for another round of Bound/Unbound or Surrogate/Natural et al which > we're at it? :-) > > > > > > -- > 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 martyconnelly at shaw.ca Fri Feb 16 19:53:10 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 16 Feb 2007 17:53:10 -0800 Subject: [AccessD] Missing references In-Reply-To: <45D64770.6934.795CC57@stuart.lexacorp.com.pg> References: <891940.82217.qm@web88207.mail.re2.yahoo.com> <003401c751e0$95936ee0$6c7aa8c0@m6805> <45D64770.6934.795CC57@stuart.lexacorp.com.pg> Message-ID: <45D66006.2050006@shaw.ca> Bring back Fortran II "Labeled Common Areas" Stuart McLachlan wrote: >On 16 Feb 2007 at 10:39, JWColby wrote: > > > >>Actually dimensioning a variable of any kind down in the middle of code is >>considered bad practice anyway. >> >> > >It used to be. There seems to be a growing trend towards >"decentralisation" rather than "consolidation" of declarations. > >Now we have "Block Scoped variables" in VB.Net which *have* to be declared >in the middle of code and many MS code examples now declare all variables >immediately before first use. > >Anyone for another round of Bound/Unbound or Surrogate/Natural et al which >we're at it? :-) > > > > > > > -- Marty Connelly Victoria, B.C. Canada From DorisH3 at aol.com Fri Feb 16 22:16:54 2007 From: DorisH3 at aol.com (DorisH3 at aol.com) Date: Fri, 16 Feb 2007 23:16:54 EST Subject: [AccessD] Macro for Excel Message-ID: Does anyone know how to write a macro to move query records to MS Excel....thanks in advance. Doris From martyconnelly at shaw.ca Fri Feb 16 23:23:48 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 16 Feb 2007 21:23:48 -0800 Subject: [AccessD] Macro for Excel In-Reply-To: References: Message-ID: <45D69164.3040706@shaw.ca> Just replace tblExcelNew with a query Sub ExportExcelToAccess() Dim sqlString As String Dim dbs As Database Set dbs = CurrentDb ' Here are some other syntax methods using ADO ' http://support.microsoft.com/kb/295646/EN-US/ ' http://support.microsoft.com/kb/257819/EN-US/ 'export to Excel 'sqlString = " INSERT INTO [Excel 8.0;Database=C:\temp\MyWorkbook.xls;].[MySheet1$E6:G65536]" & _ ' " SELECT * FROM tblExcelNew WHERE MyKeyCol = 99" sqlString = "SELECT * INTO [Sheet1] IN '' [Excel 8.0;Database=" & _ "C:\Excel\ExcelADO\book2.xls]" & " FROM tblExcelNew" Debug.Print sqlString dbs.Execute sqlString End Sub DorisH3 at aol.com wrote: >Does anyone know how to write a macro to move query records to MS >Excel....thanks in advance. > >Doris > > -- Marty Connelly Victoria, B.C. Canada From artful at rogers.com Sat Feb 17 07:37:30 2007 From: artful at rogers.com (artful at rogers.com) Date: Sat, 17 Feb 2007 05:37:30 -0800 (PST) Subject: [AccessD] Missing references Message-ID: <482793.81822.qm@web88203.mail.re2.yahoo.com> The MS folks seem to have moved to this convention largely due to the work of Steve McConnell (Code Complete), where he argues that copying and pasting code is much easier when you don't have to hunt around for the declarations. A. ----- Original Message ---- From: Stuart McLachlan To: Access Developers discussion and problem solving Sent: Friday, February 16, 2007 7:08:16 PM Subject: Re: [AccessD] Missing references On 16 Feb 2007 at 10:39, JWColby wrote: > Actually dimensioning a variable of any kind down in the middle of code is > considered bad practice anyway. It used to be. There seems to be a growing trend towards "decentralisation" rather than "consolidation" of declarations. Now we have "Block Scoped variables" in VB.Net which *have* to be declared in the middle of code and many MS code examples now declare all variables immediately before first use. Anyone for another round of Bound/Unbound or Surrogate/Natural et al which we're at it? :-) -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sat Feb 17 08:34:45 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Sat, 17 Feb 2007 09:34:45 -0500 Subject: [AccessD] Missing references In-Reply-To: <482793.81822.qm@web88203.mail.re2.yahoo.com> Message-ID: <000401c752a0$c59d8bf0$657aa8c0@m6805> The whole point of reusable code is NOT to cut and paste, so to say I am unimpressed with his logic would be an understatement. I have a function. Cool function, 100 lines of code. Statistics tell us that every 20 lines of code there is a bug. 5 bugs in that code. I now cut and paste that code 47 different places. I now fix ONE bug.... I now have to FIND (where did I use that again?) and fix 47 different places, to fix one bug. Understand that I use my framework for EVERY project I do. Thus I would not only have to search THIS project but every other project. Oh yea, I am a HUGE fan of cut and paste. I also LOVE to be stretched on the rack, flogged with a whip, waterboarded by the CIA and all the other lovely means of torture man can conceive of. However if you like self flagellation I urge you to cut and paste. It does have one plus though, job security fixing all your bugs. Until the boss discovers I only have to fix bugs in ONE place and then I will have your job. Not that I WANT your job, having to find and replace all that cut and pasted code. CUT AND PASTE? Steve MUST be my hero. NOT. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Saturday, February 17, 2007 8:38 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing references The MS folks seem to have moved to this convention largely due to the work of Steve McConnell (Code Complete), where he argues that copying and pasting code is much easier when you don't have to hunt around for the declarations. A. ----- Original Message ---- From: Stuart McLachlan To: Access Developers discussion and problem solving Sent: Friday, February 16, 2007 7:08:16 PM Subject: Re: [AccessD] Missing references On 16 Feb 2007 at 10:39, JWColby wrote: > Actually dimensioning a variable of any kind down in the middle of > code is considered bad practice anyway. It used to be. There seems to be a growing trend towards "decentralisation" rather than "consolidation" of declarations. Now we have "Block Scoped variables" in VB.Net which *have* to be declared in the middle of code and many MS code examples now declare all variables immediately before first use. Anyone for another round of Bound/Unbound or Surrogate/Natural et al which we're at it? :-) -- 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 shamil at users.mns.ru Sat Feb 17 08:43:27 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Sat, 17 Feb 2007 17:43:27 +0300 Subject: [AccessD] Missing references In-Reply-To: <482793.81822.qm@web88203.mail.re2.yahoo.com> Message-ID: <000901c752a1$fc14c3a0$6401a8c0@nant> <<< you don't have to hunt around for the declarations >>> Arthur, I'd suppose this is more influence of code refactoring and eXtreme Programming techniques (Ward Cunningham, Kent Beck, Martin Fawler)... Just my 2 kopecks... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Saturday, February 17, 2007 4:38 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing references The MS folks seem to have moved to this convention largely due to the work of Steve McConnell (Code Complete), where he argues that copying and pasting code is much easier when you don't have to hunt around for the declarations. A. ----- Original Message ---- From: Stuart McLachlan To: Access Developers discussion and problem solving Sent: Friday, February 16, 2007 7:08:16 PM Subject: Re: [AccessD] Missing references On 16 Feb 2007 at 10:39, JWColby wrote: > Actually dimensioning a variable of any kind down in the middle of code is > considered bad practice anyway. It used to be. There seems to be a growing trend towards "decentralisation" rather than "consolidation" of declarations. Now we have "Block Scoped variables" in VB.Net which *have* to be declared in the middle of code and many MS code examples now declare all variables immediately before first use. Anyone for another round of Bound/Unbound or Surrogate/Natural et al which we're at it? :-) -- 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 robert at servicexp.com Sat Feb 17 08:54:47 2007 From: robert at servicexp.com (Robert) Date: Sat, 17 Feb 2007 09:54:47 -0500 Subject: [AccessD] Missing references In-Reply-To: <490793.58413.qm@web88202.mail.re2.yahoo.com> References: <490793.58413.qm@web88202.mail.re2.yahoo.com> Message-ID: <000f01c752a3$929ce090$6501a8c0@roberts> Interesting thread.. I have not seen it mentioned that if you early bind to an early version, Access will "re-reference" to any later installed version. This of course this does not work if the user has an earlier version or no version at all installed ;-) Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Friday, February 16, 2007 3:43 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing references Quite right, and insofar as you resolve the late-bind issue asap, then such binding shall not impede the subsequent performance of your app. Having resolved it once, the app will behave as if it were early-bound thereafter. A. ----- Original Message ---- From: Jim Lawrence To: Access Developers discussion and problem solving Sent: Friday, February 16, 2007 2:36:22 PM Subject: Re: [AccessD] Missing references Hi Jim: The main reason for using late-binding is that an application developer does not know what version of Word or Excel is on the clients' computer until the application is run. By checking the local references a program can then adapt to its' current surroundings; but this requires a late-binding design. Just a comment Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From robert at servicexp.com Sat Feb 17 09:10:17 2007 From: robert at servicexp.com (Robert) Date: Sat, 17 Feb 2007 10:10:17 -0500 Subject: [AccessD] Riddle me this, Riddle me that.. In-Reply-To: <000901c752a1$fc14c3a0$6401a8c0@nant> References: <482793.81822.qm@web88203.mail.re2.yahoo.com> <000901c752a1$fc14c3a0$6401a8c0@nant> Message-ID: <001001c752a5$bc903f80$6501a8c0@roberts> Ok, I have a front end AXP .mde that weighs in at about 27 megs. When I use Wise to compile a new install with a few other objects, it compresses the entire install down to about 8 megs. Now.... If I take ANY other database, even one created from the objects from this FE, the .mde does not compress down. Does anyone have any idea why THIS one FE compresses down, and other will not...?? Robert From shamil at users.mns.ru Sat Feb 17 09:22:43 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Sat, 17 Feb 2007 18:22:43 +0300 Subject: [AccessD] Missing references In-Reply-To: <000f01c752a3$929ce090$6501a8c0@roberts> Message-ID: <000301c752a7$78a7afe0$6401a8c0@nant> <<< Having resolved it once, the app will behave as if it were early-bound thereafter. >>> Arthur, You probably meant VBA's/VB6's or VB.NET's With ==== Operator? For "With" operator - yes, it was written somewhere that if you use e.g. Dim wapp as object Set wapp = CreateObject("Word.Application") Dim wdoc as object Set wdoc = wapp.OpenDocument(....) ... With wapp.Selection.Font .Size = ... .Bold = ... .Italic = ... ... Then wapp.Selection.Font will be saved as internal object reference and it will not be recalculated for wapp.Selection.Font.Size, wapp.Selection.Font.Bold, wapp.Selection.Font.Italic, ... etc. Although the next usage in the code of With wapp.Selection.Font Code construct, even in the same function will result in several late-bound "round-trips" via IDispatch COM interface proxy-stub boundaries to dynamically recalculate actual target object reference... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Sent: Saturday, February 17, 2007 5:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references Interesting thread.. I have not seen it mentioned that if you early bind to an early version, Access will "re-reference" to any later installed version. This of course this does not work if the user has an earlier version or no version at all installed ;-) Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Friday, February 16, 2007 3:43 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing references Quite right, and insofar as you resolve the late-bind issue asap, then such binding shall not impede the subsequent performance of your app. Having resolved it once, the app will behave as if it were early-bound thereafter. A. ----- Original Message ---- From: Jim Lawrence To: Access Developers discussion and problem solving Sent: Friday, February 16, 2007 2:36:22 PM Subject: Re: [AccessD] Missing references Hi Jim: The main reason for using late-binding is that an application developer does not know what version of Word or Excel is on the clients' computer until the application is run. By checking the local references a program can then adapt to its' current surroundings; but this requires a late-binding design. Just a comment Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Sat Feb 17 10:13:33 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Sat, 17 Feb 2007 08:13:33 -0800 Subject: [AccessD] Missing references In-Reply-To: <45D64770.6934.795CC57@stuart.lexacorp.com.pg> Message-ID: <002201c752ae$92408ec0$0201a8c0@HAL9005> I haven't thought about this much but I'll cast a vote anyway. Seems like sometimes when I declared variable in a procedure I got into some kind of scoping problem. So I always Dim everything at the top of the module, group them by type, and never use a variable for more than one specific purpose. There easy to find(Ctrl-Home), easy to see. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, February 16, 2007 4:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing references On 16 Feb 2007 at 10:39, JWColby wrote: > Actually dimensioning a variable of any kind down in the middle of > code is considered bad practice anyway. It used to be. There seems to be a growing trend towards "decentralisation" rather than "consolidation" of declarations. Now we have "Block Scoped variables" in VB.Net which *have* to be declared in the middle of code and many MS code examples now declare all variables immediately before first use. Anyone for another round of Bound/Unbound or Surrogate/Natural et al which we're at it? :-) -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.0/689 - Release Date: 2/15/2007 5:40 PM From jwcolby at colbyconsulting.com Sat Feb 17 10:20:07 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Sat, 17 Feb 2007 11:20:07 -0500 Subject: [AccessD] Riddle me this, Riddle me that.. In-Reply-To: <001001c752a5$bc903f80$6501a8c0@roberts> Message-ID: <000b01c752af$7de2d2c0$657aa8c0@m6805> It wasn't compacted / repaired before changing to an MDE? John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Sent: Saturday, February 17, 2007 10:10 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Riddle me this, Riddle me that.. Ok, I have a front end AXP .mde that weighs in at about 27 megs. When I use Wise to compile a new install with a few other objects, it compresses the entire install down to about 8 megs. Now.... If I take ANY other database, even one created from the objects from this FE, the .mde does not compress down. Does anyone have any idea why THIS one FE compresses down, and other will not...?? Robert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From robert at servicexp.com Sat Feb 17 10:27:55 2007 From: robert at servicexp.com (Robert) Date: Sat, 17 Feb 2007 11:27:55 -0500 Subject: [AccessD] Riddle me this, Riddle me that.. In-Reply-To: <000b01c752af$7de2d2c0$657aa8c0@m6805> References: <001001c752a5$bc903f80$6501a8c0@roberts> <000b01c752af$7de2d2c0$657aa8c0@m6805> Message-ID: <001101c752b0$94f2a480$6501a8c0@roberts> Yes, in both cases, makes no difference.. Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Saturday, February 17, 2007 11:20 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Riddle me this, Riddle me that.. It wasn't compacted / repaired before changing to an MDE? John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Sent: Saturday, February 17, 2007 10:10 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Riddle me this, Riddle me that.. Ok, I have a front end AXP .mde that weighs in at about 27 megs. When I use Wise to compile a new install with a few other objects, it compresses the entire install down to about 8 megs. Now.... If I take ANY other database, even one created from the objects from this FE, the .mde does not compress down. Does anyone have any idea why THIS one FE compresses down, and other will not...?? 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 From kp at sdsonline.net Sat Feb 17 18:32:21 2007 From: kp at sdsonline.net (Kath Pelletti) Date: Sun, 18 Feb 2007 11:32:21 +1100 Subject: [AccessD] Riddle me this, Riddle me that.. References: <001001c752a5$bc903f80$6501a8c0@roberts><000b01c752af$7de2d2c0$657aa8c0@m6805> <001101c752b0$94f2a480$6501a8c0@roberts> Message-ID: <004401c752f4$41e9aec0$6401a8c0@office> I have found that too. I have also found that when importing all objects into a new clean mdb that the size can (sometimes) be reduced dramatically. I wonder if you put both of yours into new mdbs and THEN used wise to create mde's, would they reduce down much at all? Kath ----- Original Message ----- From: Robert To: 'Access Developers discussion and problem solving' Sent: Sunday, February 18, 2007 3:27 AM Subject: Re: [AccessD] Riddle me this, Riddle me that.. Yes, in both cases, makes no difference.. Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Saturday, February 17, 2007 11:20 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Riddle me this, Riddle me that.. It wasn't compacted / repaired before changing to an MDE? John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Sent: Saturday, February 17, 2007 10:10 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Riddle me this, Riddle me that.. Ok, I have a front end AXP .mde that weighs in at about 27 megs. When I use Wise to compile a new install with a few other objects, it compresses the entire install down to about 8 megs. Now.... If I take ANY other database, even one created from the objects from this FE, the .mde does not compress down. Does anyone have any idea why THIS one FE compresses down, and other will not...?? 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Sat Feb 17 22:53:31 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Sat, 17 Feb 2007 20:53:31 -0800 Subject: [AccessD] OT Could not save this until Friday In-Reply-To: <45D69164.3040706@shaw.ca> Message-ID: <0JDN002NZ6TCUTZ1@l-daemon> OT This is either a late Friday or an early Friday... Hi All: Training is always fun: http://www.youtube.com/watch?v=eRjVeRbhtRU Regards Jim From markamatte at hotmail.com Sun Feb 18 00:00:35 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Sun, 18 Feb 2007 06:00:35 +0000 Subject: [AccessD] Missing references In-Reply-To: Message-ID: Hey Bryan, Moved app to new machine...and had to goto TOOLS---REFERENCES...and to correct missing references...trying to avoid this step for end users. This I got it with some code from Gustave. Thanks, Mark A. Matte >From: "Bryan Carbonnell" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Missing references >Date: Fri, 16 Feb 2007 20:11:29 -0500 > >On 2/15/07, Mark A Matte wrote: > > > I'm not referencing any other app or docs...I was referring to when you >are > > in a module and goto TOOLS---REFERENCES...and there is something missing >or > > incorrect. > > > > Is binding relevant at this point? If not...back to the original > > question:...how to handle the 'missing'??? > >Late to the party again. :( > >If you aren't referencing any other app, they why are you concerned >about missing refs? > >-- >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 _________________________________________________________________ With tax season right around the corner, make sure to follow these few simple tips. http://articles.moneycentral.msn.com/Taxes/PreparationTips/PreparationTips.aspx?icid=HMFebtagline From kp at sdsonline.net Sun Feb 18 00:16:34 2007 From: kp at sdsonline.net (Kath Pelletti) Date: Sun, 18 Feb 2007 17:16:34 +1100 Subject: [AccessD] OT Could not save this until Friday References: <0JDN002NZ6TCUTZ1@l-daemon> Message-ID: <000c01c75324$578ec190$6401a8c0@office> pure gold..... Kath ----- Original Message ----- From: Jim Lawrence To: 'Access Developers discussion and problem solving' Sent: Sunday, February 18, 2007 3:53 PM Subject: [AccessD] OT Could not save this until Friday OT This is either a late Friday or an early Friday... Hi All: Training is always fun: http://www.youtube.com/watch?v=eRjVeRbhtRU Regards Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mmattys at rochester.rr.com Sun Feb 18 05:50:22 2007 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Sun, 18 Feb 2007 06:50:22 -0500 Subject: [AccessD] Missing references References: <000401c752a0$c59d8bf0$657aa8c0@m6805> Message-ID: <002701c75352$f9a5e110$0202a8c0@default> Er ... I haven't read Code Complete but ... Isn't it the case that the declarations and type-defs of the Windows API are what is being cut and pasted because there are so many that don't apply to the project at hand? That there is no way to compile or run the code unless and until it conforms to the Windows 'framework?' Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "JWColby" To: "'Access Developers discussion and problem solving'" Sent: Saturday, February 17, 2007 9:34 AM Subject: Re: [AccessD] Missing references > The whole point of reusable code is NOT to cut and paste, so to say I am > unimpressed with his logic would be an understatement. > > I have a function. Cool function, 100 lines of code. Statistics tell us > that every 20 lines of code there is a bug. 5 bugs in that code. I now > cut > and paste that code 47 different places. I now fix ONE bug.... I now > have > to FIND (where did I use that again?) and fix 47 different places, to fix > one bug. > > Understand that I use my framework for EVERY project I do. Thus I would > not > only have to search THIS project but every other project. > > Oh yea, I am a HUGE fan of cut and paste. I also LOVE to be stretched on > the rack, flogged with a whip, waterboarded by the CIA and all the other > lovely means of torture man can conceive of. > > However if you like self flagellation I urge you to cut and paste. It > does > have one plus though, job security fixing all your bugs. Until the boss > discovers I only have to fix bugs in ONE place and then I will have your > job. Not that I WANT your job, having to find and replace all that cut > and > pasted code. > > CUT AND PASTE? Steve MUST be my hero. > > NOT. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > artful at rogers.com > Sent: Saturday, February 17, 2007 8:38 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Missing references > > The MS folks seem to have moved to this convention largely due to the work > of Steve McConnell (Code Complete), where he argues that copying and > pasting > code is much easier when you don't have to hunt around for the > declarations. > > > A. > > > > ----- Original Message ---- > From: Stuart McLachlan > To: Access Developers discussion and problem solving > > Sent: Friday, February 16, 2007 7:08:16 PM > Subject: Re: [AccessD] Missing references > > > On 16 Feb 2007 at 10:39, JWColby wrote: > >> Actually dimensioning a variable of any kind down in the middle of >> code is considered bad practice anyway. > > It used to be. There seems to be a growing trend towards > "decentralisation" > rather than "consolidation" of declarations. > > Now we have "Block Scoped variables" in VB.Net which *have* to be > declared > in the middle of code and many MS code examples now declare all variables > immediately before first use. > > Anyone for another round of Bound/Unbound or Surrogate/Natural et al which > we're at it? :-) > > > > > > -- > 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 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sun Feb 18 07:07:02 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Sun, 18 Feb 2007 08:07:02 -0500 Subject: [AccessD] Missing references In-Reply-To: Message-ID: <000801c7535d$ae8600b0$6c7aa8c0@m6805> I don't think you have ever mentioned what reference was missing? John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Sunday, February 18, 2007 1:01 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Missing references Hey Bryan, Moved app to new machine...and had to goto TOOLS---REFERENCES...and to correct missing references...trying to avoid this step for end users. This I got it with some code from Gustave. Thanks, Mark A. Matte >From: "Bryan Carbonnell" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Missing references >Date: Fri, 16 Feb 2007 20:11:29 -0500 > >On 2/15/07, Mark A Matte wrote: > > > I'm not referencing any other app or docs...I was referring to when > > you >are > > in a module and goto TOOLS---REFERENCES...and there is something > > missing >or > > incorrect. > > > > Is binding relevant at this point? If not...back to the original > > question:...how to handle the 'missing'??? > >Late to the party again. :( > >If you aren't referencing any other app, they why are you concerned >about missing refs? > >-- >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 _________________________________________________________________ With tax season right around the corner, make sure to follow these few simple tips. http://articles.moneycentral.msn.com/Taxes/PreparationTips/PreparationTips.a spx?icid=HMFebtagline -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sun Feb 18 07:16:16 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Sun, 18 Feb 2007 08:16:16 -0500 Subject: [AccessD] Missing references In-Reply-To: <002701c75352$f9a5e110$0202a8c0@default> Message-ID: <000901c7535e$f8d5f070$6c7aa8c0@m6805> LOL, I haven't read it either. However CodeLib and the like are about having code that is available to "paste" in to your project. I suppose that as long as you are just pasting it into your library module so that it is available in only one place, then no harm done. Cutting and pasting code throughout a project is just verboten. In any event, the implication here: > The MS folks seem to have moved to this convention largely due to the work of Steve McConnell (Code Complete), where he argues that copying and > pasting code is much easier when you don't have to hunt around for the declarations. Is that cutting and pasting is an everyday occurrence, and by inference that it is a good thing to do. In which case, it would be much better for the software industry if we simply had the CIA render him off to Egypt or somewhere where he could come to understand the effects of torture and perhaps make an informed decision not to do that anymore. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys Sent: Sunday, February 18, 2007 6:50 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing references Er ... I haven't read Code Complete but ... Isn't it the case that the declarations and type-defs of the Windows API are what is being cut and pasted because there are so many that don't apply to the project at hand? That there is no way to compile or run the code unless and until it conforms to the Windows 'framework?' Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "JWColby" To: "'Access Developers discussion and problem solving'" Sent: Saturday, February 17, 2007 9:34 AM Subject: Re: [AccessD] Missing references > The whole point of reusable code is NOT to cut and paste, so to say I am > unimpressed with his logic would be an understatement. > > I have a function. Cool function, 100 lines of code. Statistics tell us > that every 20 lines of code there is a bug. 5 bugs in that code. I now > cut > and paste that code 47 different places. I now fix ONE bug.... I now > have > to FIND (where did I use that again?) and fix 47 different places, to fix > one bug. > > Understand that I use my framework for EVERY project I do. Thus I would > not > only have to search THIS project but every other project. > > Oh yea, I am a HUGE fan of cut and paste. I also LOVE to be stretched on > the rack, flogged with a whip, waterboarded by the CIA and all the other > lovely means of torture man can conceive of. > > However if you like self flagellation I urge you to cut and paste. It > does > have one plus though, job security fixing all your bugs. Until the boss > discovers I only have to fix bugs in ONE place and then I will have your > job. Not that I WANT your job, having to find and replace all that cut > and > pasted code. > > CUT AND PASTE? Steve MUST be my hero. > > NOT. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > artful at rogers.com > Sent: Saturday, February 17, 2007 8:38 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Missing references > > The MS folks seem to have moved to this convention largely due to the work > of Steve McConnell (Code Complete), where he argues that copying and > pasting > code is much easier when you don't have to hunt around for the > declarations. > > > A. > > > > ----- Original Message ---- > From: Stuart McLachlan > To: Access Developers discussion and problem solving > > Sent: Friday, February 16, 2007 7:08:16 PM > Subject: Re: [AccessD] Missing references > > > On 16 Feb 2007 at 10:39, JWColby wrote: > >> Actually dimensioning a variable of any kind down in the middle of >> code is considered bad practice anyway. > > It used to be. There seems to be a growing trend towards > "decentralisation" > rather than "consolidation" of declarations. > > Now we have "Block Scoped variables" in VB.Net which *have* to be > declared > in the middle of code and many MS code examples now declare all variables > immediately before first use. > > Anyone for another round of Bound/Unbound or Surrogate/Natural et al which > we're at it? :-) > > > > > > -- > 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 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 setel.com Sun Feb 18 18:12:37 2007 From: ssharkins at setel.com (Susan Harkins) Date: Sun, 18 Feb 2007 19:12:37 -0500 Subject: [AccessD] Value verses OldValue Message-ID: <000001c753ba$aaadfc60$7bb62ad1@SUSANONE> I ran into something interesting with the following expression: If ctl.Value <> ctl.OldValue Then It appears that unless you've changed the value, ctl.Value is empty. If there's been no change, shouldn't Value and OldValue been the same? Why is Value empty? This is in a form's Before Update event, which might matter. Susan H. From rockysmolin at bchacc.com Sun Feb 18 20:09:23 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Sun, 18 Feb 2007 18:09:23 -0800 Subject: [AccessD] OT: Rocky On The Radio Message-ID: <00b101c753ca$f9640790$0201a8c0@HAL9005> What's more exciting than looking at manufacturing software? Why, listening to someone talk about it! Now you get a chance to do just that. I was interviewed on CRM Talk Radio (internet based talk radio show) a few days ago about manufacturing systems and E-Z-MRP. You can hear it here: http://www.wsradio.com/internet-talk-radio.cfm/shows/The-CRM-Talk-Radio-Show .html Unless you have a life. Rocky From kp at sdsonline.net Sun Feb 18 21:33:02 2007 From: kp at sdsonline.net (Kath Pelletti) Date: Mon, 19 Feb 2007 14:33:02 +1100 Subject: [AccessD] OT: Rocky On The Radio References: <00b101c753ca$f9640790$0201a8c0@HAL9005> Message-ID: <003801c753d6$a9a7ed50$6401a8c0@office> Great to hear your 'real' voice, Rocky! Kath ----- Original Message ----- From: Rocky Smolin at Beach Access Software To: 'Access Developers discussion and problem solving' Sent: Monday, February 19, 2007 1:09 PM Subject: [AccessD] OT: Rocky On The Radio What's more exciting than looking at manufacturing software? Why, listening to someone talk about it! Now you get a chance to do just that. I was interviewed on CRM Talk Radio (internet based talk radio show) a few days ago about manufacturing systems and E-Z-MRP. You can hear it here: http://www.wsradio.com/internet-talk-radio.cfm/shows/The-CRM-Talk-Radio-Show .html Unless you have a life. Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Mon Feb 19 02:11:36 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 19 Feb 2007 09:11:36 +0100 Subject: [AccessD] Value verses OldValue Message-ID: Hi Susan You mean OldValue is empty, right? As far as I know it's empty until an update has happened. /gustav >>> ssharkins at setel.com 19-02-2007 01:12:37 >>> I ran into something interesting with the following expression: If ctl.Value <> ctl.OldValue Then It appears that unless you've changed the value, ctl.Value is empty. If there's been no change, shouldn't Value and OldValue been the same? Why is Value empty? This is in a form's Before Update event, which might matter. Susan H. From jimdettman at verizon.net Mon Feb 19 07:41:07 2007 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 19 Feb 2007 08:41:07 -0500 Subject: [AccessD] Missing references In-Reply-To: <0JDK0047CMCYICV0@l-daemon> References: <001e01c751fb$d5a59bf0$8abea8c0@XPS> <0JDK0047CMCYICV0@l-daemon> Message-ID: <044801c7542b$9c406020$8abea8c0@XPS> Jim, <> How so? If your dimming something as an object, you using late binding. I don't know of anyway of changing from late to early without re-compiling the program. And if you use late binding, your carrying the performance hit all the time. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Friday, February 16, 2007 2:36 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references Hi Jim: The main reason for using late-binding is that an application developer does not know what version of Word or Excel is on the clients' computer until the application is run. By checking the local references a program can then adapt to its' current surroundings; but this requires a late-binding design. Just a comment Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Friday, February 16, 2007 10:54 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references <> Pretty much yes. As I said to John, it depends on the mix of operations that you are performing. But in all cases it is faster without a doubt. It's just a matter of how much. From past timings that I did, I found as a general rule of thumb that it was a 10% - 15% overall difference in speed. <> I did this years ago and have always used early binding as a result whenever possible. If I use late binding, I put it in the spec and note that it is a performance drain. So I'll use late if I have to, but I don't like it Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Friday, February 16, 2007 10:21 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing references Is this verifiable, Jim? I haven't ever used late-binding, which I admit has caused various installation issues, but I am curious. Is this a thumbnail calculation or can you supply concrete arithmetical evidence? A. ----- Original Message ---- From: Jim Dettman To: Access Developers discussion and problem solving Sent: Friday, February 16, 2007 9:49:44 AM Subject: Re: [AccessD] Missing references Bryan, One thing you didn't mention is the performance hit; late binding costs you 10-15% for every operation perform. Jim. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Mon Feb 19 07:55:14 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 19 Feb 2007 14:55:14 +0100 Subject: [AccessD] Missing references Message-ID: Hi Jim et al Also, don't forget that by verifying the references at launch, you have the option to catch and resolve possible errors before the user at some later point - while using your app - gets a bad experience with annoying error messages he/she can't handle at the spot anyway. /gustav >>> jimdettman at verizon.net 19-02-2007 14:41:07 >>> Jim, <> How so? If your dimming something as an object, you using late binding. I don't know of anyway of changing from late to early without re-compiling the program. And if you use late binding, your carrying the performance hit all the time. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Friday, February 16, 2007 2:36 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references Hi Jim: The main reason for using late-binding is that an application developer does not know what version of Word or Excel is on the clients' computer until the application is run. By checking the local references a program can then adapt to its' current surroundings; but this requires a late-binding design. Just a comment Jim From jwcolby at colbyconsulting.com Mon Feb 19 08:01:53 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Mon, 19 Feb 2007 09:01:53 -0500 Subject: [AccessD] Missing references In-Reply-To: <044801c7542b$9c406020$8abea8c0@XPS> Message-ID: <000901c7542e$82d22f30$657aa8c0@m6805> I think Jim Lawrence meant use / not use outlook, use / not use Excel etc. when he said "adapt to it's surroundings". You are correct, you cannot go from late to early binding or v.v. at run time. I THINK it is possible to perform reference checking with early binding, you just have to be careful not to use any syntax stored out in a lib (only built-in vba commands allowed) because as soon as the first reference to a lib occurs then the (missing) is discovered and an error occurs. I just punt. If the client has a unified install - all the same version of office everywhere, then I go with that version and use early reference. Even this has been known to bite me when the user upgraded (without informing me of course!!!) and uninstalled the old version. Otherwise I just use late binding. I have learned to bracket ALL object dim / set statements with the conditional compilation stuff and so can switch from early to late by changing a single conditional compilation constant. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, February 19, 2007 8:41 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references Jim, <> How so? If your dimming something as an object, you using late binding. I don't know of anyway of changing from late to early without re-compiling the program. And if you use late binding, your carrying the performance hit all the time. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Friday, February 16, 2007 2:36 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references Hi Jim: The main reason for using late-binding is that an application developer does not know what version of Word or Excel is on the clients' computer until the application is run. By checking the local references a program can then adapt to its' current surroundings; but this requires a late-binding design. Just a comment Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Friday, February 16, 2007 10:54 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references <> Pretty much yes. As I said to John, it depends on the mix of operations that you are performing. But in all cases it is faster without a doubt. It's just a matter of how much. From past timings that I did, I found as a general rule of thumb that it was a 10% - 15% overall difference in speed. <> I did this years ago and have always used early binding as a result whenever possible. If I use late binding, I put it in the spec and note that it is a performance drain. So I'll use late if I have to, but I don't like it Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Friday, February 16, 2007 10:21 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing references Is this verifiable, Jim? I haven't ever used late-binding, which I admit has caused various installation issues, but I am curious. Is this a thumbnail calculation or can you supply concrete arithmetical evidence? A. ----- Original Message ---- From: Jim Dettman To: Access Developers discussion and problem solving Sent: Friday, February 16, 2007 9:49:44 AM Subject: Re: [AccessD] Missing references Bryan, One thing you didn't mention is the performance hit; late binding costs you 10-15% for every operation perform. Jim. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Mon Feb 19 08:25:33 2007 From: artful at rogers.com (artful at rogers.com) Date: Mon, 19 Feb 2007 06:25:33 -0800 (PST) Subject: [AccessD] Missing references Message-ID: <484926.92918.qm@web88213.mail.re2.yahoo.com> You may be right, but it flies in the face of what little I know about Access. I was under the impression that code sitting in the MDB would be loaded on first call and thereafter reside in memory. Is that not true when you do something like create a Word object? Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Jim Dettman To: Access Developers discussion and problem solving Sent: Monday, February 19, 2007 8:41:07 AM Subject: Re: [AccessD] Missing references Jim, <> How so? If your dimming something as an object, you using late binding. I don't know of anyway of changing from late to early without re-compiling the program. And if you use late binding, your carrying the performance hit all the time. Jim. From jwcolby at colbyconsulting.com Mon Feb 19 09:06:17 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Mon, 19 Feb 2007 10:06:17 -0500 Subject: [AccessD] Missing references In-Reply-To: <484926.92918.qm@web88213.mail.re2.yahoo.com> Message-ID: <000d01c75437$8204de00$657aa8c0@m6805> As I attempted to explain in my earlier discourse on binding, using an "as object" syntax is late binding. The IMPACT of late binding is not as simple as "the code is loaded" but rather is determined by a myriad of things, but you can essentially boil it down to "how often is the set statement encountered". Early binding performs the LOOKUP of all the data about the object at COMPILE TIME. Thus there is NO IMPACT at run time, all the lookup of the object information has already been done. Late binding performs the LOOKUP of all the data about the object at RUN TIME, but more specifically at the instant that the SET statement is executed. Late binding will ALWAYS have some impact (assuming that the set statement is run) because the lookup must occur. I make the disclaimer "assuming the set statement is run" simply because, for example. I could have an EXCEL class or module in my project. It matters not whether it is in the FE or out in a library, what matter is, whether any code ever tries to ACTUALLY EXECUTE a SET STATEMENT to set a variable dimensioned as object. Thus one of my users may use the application for days and weeks and never experience the impact of late binding because his job never entails using that EXCEL code. Another user may experience the impact of late binding all day every day because his job requires using the code that executes the set statement, i.e. he uses Excel and I am late binding excel objects. NOW... How severe is the impact for that user? It may be very little or it may be extreme. What determines the impact to this user is HOW OFTEN the set statement is executed, how LONG does it take to perform the binding, and what % of the total code execution time is taken up by the binding. Let's take an example. The code does nothing more than load excel and open a worksheet. That would be at least two objects late bound, the Excel Application, and the worksheet. The time to bind the object that holds the pointer to Excel is completely DWARFED by the time to actually load Excel off the disk. We are talking a few milliseconds to do the binding and probably seconds to load excel. So the user would never even feel the difference between early and late binding. The same goes for loading the spreadsheet itself. Again, the binding itself takes a few milliseconds, but loading the worksheet would take a second or two. The user would never even feel the difference. Take another example however. This user has to load a spreadsheet, and the code is going to load and manipulate 10 thousand cells, placing data, formatting it, setting up formulas etc. NOW the time to reference each cell may take a few milliseconds but the time to actually manipulate the cells might well be sub-millisecond. So late binding in this case could slow down the app by orders of magnitude. It could do the whole thing in a second if early bound but take 10 seconds, 100 seconds etc if late bound. The DIFFERENCE is simply that the time to do the binding is occurring thousands or tens of thousands of times as the program manipulates the contents of the spreadsheet. Suddenly milliseconds start to add up. As you can see, this is a complex subject and one where the answer "is late binding costing me much" changes radically depending on what the code is doing. And it really has nothing to do with when it is loaded and whether it is sitting in memory. It is all about how many times the set statements execute, and how much of the total time those set statements use. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Monday, February 19, 2007 9:26 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing references You may be right, but it flies in the face of what little I know about Access. I was under the impression that code sitting in the MDB would be loaded on first call and thereafter reside in memory. Is that not true when you do something like create a Word object? Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Jim Dettman To: Access Developers discussion and problem solving Sent: Monday, February 19, 2007 8:41:07 AM Subject: Re: [AccessD] Missing references Jim, <> How so? If your dimming something as an object, you using late binding. I don't know of anyway of changing from late to early without re-compiling the program. And if you use late binding, your carrying the performance hit all the time. Jim. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at verizon.net Mon Feb 19 09:18:29 2007 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 19 Feb 2007 10:18:29 -0500 Subject: [AccessD] Missing references In-Reply-To: <000d01c75437$8204de00$657aa8c0@m6805> References: <484926.92918.qm@web88213.mail.re2.yahoo.com> <000d01c75437$8204de00$657aa8c0@m6805> Message-ID: <001201c75439$369b3980$8abea8c0@XPS> John, <> It's worse then that; it's a lookup at every property or method call to the object. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Monday, February 19, 2007 10:06 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references As I attempted to explain in my earlier discourse on binding, using an "as object" syntax is late binding. The IMPACT of late binding is not as simple as "the code is loaded" but rather is determined by a myriad of things, but you can essentially boil it down to "how often is the set statement encountered". Early binding performs the LOOKUP of all the data about the object at COMPILE TIME. Thus there is NO IMPACT at run time, all the lookup of the object information has already been done. Late binding performs the LOOKUP of all the data about the object at RUN TIME, but more specifically at the instant that the SET statement is executed. Late binding will ALWAYS have some impact (assuming that the set statement is run) because the lookup must occur. I make the disclaimer "assuming the set statement is run" simply because, for example. I could have an EXCEL class or module in my project. It matters not whether it is in the FE or out in a library, what matter is, whether any code ever tries to ACTUALLY EXECUTE a SET STATEMENT to set a variable dimensioned as object. Thus one of my users may use the application for days and weeks and never experience the impact of late binding because his job never entails using that EXCEL code. Another user may experience the impact of late binding all day every day because his job requires using the code that executes the set statement, i.e. he uses Excel and I am late binding excel objects. NOW... How severe is the impact for that user? It may be very little or it may be extreme. What determines the impact to this user is HOW OFTEN the set statement is executed, how LONG does it take to perform the binding, and what % of the total code execution time is taken up by the binding. Let's take an example. The code does nothing more than load excel and open a worksheet. That would be at least two objects late bound, the Excel Application, and the worksheet. The time to bind the object that holds the pointer to Excel is completely DWARFED by the time to actually load Excel off the disk. We are talking a few milliseconds to do the binding and probably seconds to load excel. So the user would never even feel the difference between early and late binding. The same goes for loading the spreadsheet itself. Again, the binding itself takes a few milliseconds, but loading the worksheet would take a second or two. The user would never even feel the difference. Take another example however. This user has to load a spreadsheet, and the code is going to load and manipulate 10 thousand cells, placing data, formatting it, setting up formulas etc. NOW the time to reference each cell may take a few milliseconds but the time to actually manipulate the cells might well be sub-millisecond. So late binding in this case could slow down the app by orders of magnitude. It could do the whole thing in a second if early bound but take 10 seconds, 100 seconds etc if late bound. The DIFFERENCE is simply that the time to do the binding is occurring thousands or tens of thousands of times as the program manipulates the contents of the spreadsheet. Suddenly milliseconds start to add up. As you can see, this is a complex subject and one where the answer "is late binding costing me much" changes radically depending on what the code is doing. And it really has nothing to do with when it is loaded and whether it is sitting in memory. It is all about how many times the set statements execute, and how much of the total time those set statements use. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Monday, February 19, 2007 9:26 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing references You may be right, but it flies in the face of what little I know about Access. I was under the impression that code sitting in the MDB would be loaded on first call and thereafter reside in memory. Is that not true when you do something like create a Word object? Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Jim Dettman To: Access Developers discussion and problem solving Sent: Monday, February 19, 2007 8:41:07 AM Subject: Re: [AccessD] Missing references Jim, <> How so? If your dimming something as an object, you using late binding. I don't know of anyway of changing from late to early without re-compiling the program. And if you use late binding, your carrying the performance hit all the time. Jim. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Mon Feb 19 09:35:37 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 19 Feb 2007 15:35:37 +0000 Subject: [AccessD] Missing references In-Reply-To: <000801c7535d$ae8600b0$6c7aa8c0@m6805> Message-ID: John, Moved app to new machine...and had to goto TOOLS---REFERENCES...and to correct missing references...trying to avoid this step for end users. Since I was asking in general about references...I didn't name one. In this case... the DAU reference was the problem. It was not missing...but once removed and replaced...everything worked as designed. This I got it with some code from Gustave. Thanks, Mark A. Matte >From: "JWColby" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] Missing references >Date: Sun, 18 Feb 2007 08:07:02 -0500 > >I don't think you have ever mentioned what reference was missing? > > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: Sunday, February 18, 2007 1:01 AM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Missing references > >Hey Bryan, > >Moved app to new machine...and had to goto TOOLS---REFERENCES...and to >correct missing references...trying to avoid this step for end users. > >This I got it with some code from Gustave. > >Thanks, > >Mark A. Matte > > > >From: "Bryan Carbonnell" > >Reply-To: Access Developers discussion and problem > >solving > >To: "Access Developers discussion and problem > >solving" > >Subject: Re: [AccessD] Missing references > >Date: Fri, 16 Feb 2007 20:11:29 -0500 > > > >On 2/15/07, Mark A Matte wrote: > > > > > I'm not referencing any other app or docs...I was referring to when > > > you > >are > > > in a module and goto TOOLS---REFERENCES...and there is something > > > missing > >or > > > incorrect. > > > > > > Is binding relevant at this point? If not...back to the original > > > question:...how to handle the 'missing'??? > > > >Late to the party again. :( > > > >If you aren't referencing any other app, they why are you concerned > >about missing refs? > > > >-- > >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 > >_________________________________________________________________ >With tax season right around the corner, make sure to follow these few >simple tips. >http://articles.moneycentral.msn.com/Taxes/PreparationTips/PreparationTips.a >spx?icid=HMFebtagline > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Play Flexicon: the crossword game that feeds your brain. PLAY now for FREE.? http://zone.msn.com/en/flexicon/default.htm?icid=flexicon_hmtagline From jwcolby at colbyconsulting.com Mon Feb 19 09:36:10 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Mon, 19 Feb 2007 10:36:10 -0500 Subject: [AccessD] Missing references In-Reply-To: <001201c75439$369b3980$8abea8c0@XPS> Message-ID: <000001c7543b$aea0b5c0$657aa8c0@m6805> Jim, > It's worse then that; it's a lookup at every property or method call to the object. I don't believe so. The set statement essentially loads all that stuff into memory and is a one time affair (per execution of the set statement). I think you are thinking of the syntax dim MyObject = NEW XXX In this case the dim and the set statement have been merged into one line of code and IIRC with this syntax you are correct. However if you break it out into a separate dim and set statement: Dim MyObj as object set MyOpject = ... Then the set statement permanently loads the object information for as long as the object stays in scope. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, February 19, 2007 10:18 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references John, <> It's worse then that; it's a lookup at every property or method call to the object. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Monday, February 19, 2007 10:06 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references As I attempted to explain in my earlier discourse on binding, using an "as object" syntax is late binding. The IMPACT of late binding is not as simple as "the code is loaded" but rather is determined by a myriad of things, but you can essentially boil it down to "how often is the set statement encountered". Early binding performs the LOOKUP of all the data about the object at COMPILE TIME. Thus there is NO IMPACT at run time, all the lookup of the object information has already been done. Late binding performs the LOOKUP of all the data about the object at RUN TIME, but more specifically at the instant that the SET statement is executed. Late binding will ALWAYS have some impact (assuming that the set statement is run) because the lookup must occur. I make the disclaimer "assuming the set statement is run" simply because, for example. I could have an EXCEL class or module in my project. It matters not whether it is in the FE or out in a library, what matter is, whether any code ever tries to ACTUALLY EXECUTE a SET STATEMENT to set a variable dimensioned as object. Thus one of my users may use the application for days and weeks and never experience the impact of late binding because his job never entails using that EXCEL code. Another user may experience the impact of late binding all day every day because his job requires using the code that executes the set statement, i.e. he uses Excel and I am late binding excel objects. NOW... How severe is the impact for that user? It may be very little or it may be extreme. What determines the impact to this user is HOW OFTEN the set statement is executed, how LONG does it take to perform the binding, and what % of the total code execution time is taken up by the binding. Let's take an example. The code does nothing more than load excel and open a worksheet. That would be at least two objects late bound, the Excel Application, and the worksheet. The time to bind the object that holds the pointer to Excel is completely DWARFED by the time to actually load Excel off the disk. We are talking a few milliseconds to do the binding and probably seconds to load excel. So the user would never even feel the difference between early and late binding. The same goes for loading the spreadsheet itself. Again, the binding itself takes a few milliseconds, but loading the worksheet would take a second or two. The user would never even feel the difference. Take another example however. This user has to load a spreadsheet, and the code is going to load and manipulate 10 thousand cells, placing data, formatting it, setting up formulas etc. NOW the time to reference each cell may take a few milliseconds but the time to actually manipulate the cells might well be sub-millisecond. So late binding in this case could slow down the app by orders of magnitude. It could do the whole thing in a second if early bound but take 10 seconds, 100 seconds etc if late bound. The DIFFERENCE is simply that the time to do the binding is occurring thousands or tens of thousands of times as the program manipulates the contents of the spreadsheet. Suddenly milliseconds start to add up. As you can see, this is a complex subject and one where the answer "is late binding costing me much" changes radically depending on what the code is doing. And it really has nothing to do with when it is loaded and whether it is sitting in memory. It is all about how many times the set statements execute, and how much of the total time those set statements use. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Monday, February 19, 2007 9:26 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing references You may be right, but it flies in the face of what little I know about Access. I was under the impression that code sitting in the MDB would be loaded on first call and thereafter reside in memory. Is that not true when you do something like create a Word object? Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Jim Dettman To: Access Developers discussion and problem solving Sent: Monday, February 19, 2007 8:41:07 AM Subject: Re: [AccessD] Missing references Jim, <> How so? If your dimming something as an object, you using late binding. I don't know of anyway of changing from late to early without re-compiling the program. And if you use late binding, your carrying the performance hit all the time. Jim. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Mon Feb 19 09:48:10 2007 From: wdhindman at dejpolsystems.com (William Hindman) Date: Mon, 19 Feb 2007 10:48:10 -0500 Subject: [AccessD] Missing references References: <000001c7543b$aea0b5c0$657aa8c0@m6805> Message-ID: <006701c7543d$5bb1ddb0$9258eb44@50NM721> ...give me a break, eh ...my head hurts ...too much information too early for a Monday morning :( William Hindman ----- Original Message ----- From: "JWColby" To: "'Access Developers discussion and problem solving'" Sent: Monday, February 19, 2007 10:36 AM Subject: Re: [AccessD] Missing references > Jim, > > >> It's worse then that; it's a lookup at every property or method call to > the object. > > I don't believe so. The set statement essentially loads all that stuff > into > memory and is a one time affair (per execution of the set statement). > > I think you are thinking of the syntax > > dim MyObject = NEW XXX > > In this case the dim and the set statement have been merged into one line > of > code and IIRC with this syntax you are correct. > > However if you break it out into a separate dim and set statement: > > Dim MyObj as object > set MyOpject = ... > > Then the set statement permanently loads the object information for as > long > as the object stays in scope. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman > Sent: Monday, February 19, 2007 10:18 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Missing references > > John, > > < TIME, but more specifically at the instant that the SET statement is > executed. >> > > It's worse then that; it's a lookup at every property or method call to > the object. > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby > Sent: Monday, February 19, 2007 10:06 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Missing references > > As I attempted to explain in my earlier discourse on binding, using an "as > object" syntax is late binding. The IMPACT of late binding is not as > simple > as "the code is loaded" but rather is determined by a myriad of things, > but > you can essentially boil it down to "how often is the set statement > encountered". > > Early binding performs the LOOKUP of all the data about the object at > COMPILE TIME. Thus there is NO IMPACT at run time, all the lookup of the > object information has already been done. > > Late binding performs the LOOKUP of all the data about the object at RUN > TIME, but more specifically at the instant that the SET statement is > executed. Late binding will ALWAYS have some impact (assuming that the > set > statement is run) because the lookup must occur. > > I make the disclaimer "assuming the set statement is run" simply because, > for example. I could have an EXCEL class or module in my project. It > matters not whether it is in the FE or out in a library, what matter is, > whether any code ever tries to ACTUALLY EXECUTE a SET STATEMENT to set a > variable dimensioned as object. Thus one of my users may use the > application for days and weeks and never experience the impact of late > binding because his job never entails using that EXCEL code. Another user > may experience the impact of late binding all day every day because his > job > requires using the code that executes the set statement, i.e. he uses > Excel > and I am late binding excel objects. > > NOW... How severe is the impact for that user? It may be very little or > it > may be extreme. What determines the impact to this user is HOW OFTEN the > set statement is executed, how LONG does it take to perform the binding, > and > what % of the total code execution time is taken up by the binding. > > Let's take an example. The code does nothing more than load excel and > open > a worksheet. That would be at least two objects late bound, the Excel > Application, and the worksheet. The time to bind the object that holds > the > pointer to Excel is completely DWARFED by the time to actually load Excel > off the disk. We are talking a few milliseconds to do the binding and > probably seconds to load excel. So the user would never even feel the > difference between early and late binding. The same goes for loading the > spreadsheet itself. Again, the binding itself takes a few milliseconds, > but > loading the worksheet would take a second or two. The user would never > even > feel the difference. > > Take another example however. This user has to load a spreadsheet, and > the > code is going to load and manipulate 10 thousand cells, placing data, > formatting it, setting up formulas etc. NOW the time to reference each > cell > may take a few milliseconds but the time to actually manipulate the cells > might well be sub-millisecond. So late binding in this case could slow > down > the app by orders of magnitude. It could do the whole thing in a second > if > early bound but take 10 seconds, 100 seconds etc if late bound. > > The DIFFERENCE is simply that the time to do the binding is occurring > thousands or tens of thousands of times as the program manipulates the > contents of the spreadsheet. Suddenly milliseconds start to add up. > > As you can see, this is a complex subject and one where the answer "is > late > binding costing me much" changes radically depending on what the code is > doing. > > And it really has nothing to do with when it is loaded and whether it is > sitting in memory. It is all about how many times the set statements > execute, and how much of the total time those set statements use. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > artful at rogers.com > Sent: Monday, February 19, 2007 9:26 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Missing references > > You may be right, but it flies in the face of what little I know about > Access. I was under the impression that code sitting in the MDB would be > loaded on first call and thereafter reside in memory. Is that not true > when > you do something like create a Word object? > > > Arthur Fuller > Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization > www.artfulsoftware.com > > > > > ----- Original Message ---- > From: Jim Dettman > To: Access Developers discussion and problem solving > > Sent: Monday, February 19, 2007 8:41:07 AM > Subject: Re: [AccessD] Missing references > > > Jim, > > < current > surroundings; but this requires a late-binding design.>> > > How so? If your dimming something as an object, you using late binding. > I don't know of anyway of changing from late to early without re-compiling > the program. And if you use late binding, your carrying the performance > hit all the time. > > Jim. > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From hollisvj at pgdp.usec.com Mon Feb 19 10:11:36 2007 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Mon, 19 Feb 2007 10:11:36 -0600 Subject: [AccessD] Multiple Tables Message-ID: <703BDA18A87DFA4CB265A86F42E4178D01E764C3@c2k3exchange.pgdp.corp.usec.com> I always have trouble with this. I have to set up a form for updating 3 different tables, Type, Model, and Manufacturer. tbl_Manufacturer tbl_Model tbl_type tbl_Main (this would be a table that contains all the information) Would I put ModelID, TypeID, etc into this table? So do I create another table that joins them together? At first I put the fields all as ModelID, TypeID in the main table & added each field to the main form & when they selected the Model I used a Select query to update the matching Type & Manuf. I need to create a form where the user can update the fields across for each Model & complete the Type and Manuf. If they are 3 separate tables how do they join together? How do they join to the main table? Ex: Model: F, Type: Truck, Manuf: Ford Model: Silverado, Type: Truck, Manuf: Chevy Virginia From artful at rogers.com Mon Feb 19 10:34:09 2007 From: artful at rogers.com (artful at rogers.com) Date: Mon, 19 Feb 2007 08:34:09 -0800 (PST) Subject: [AccessD] Multiple Tables Message-ID: <65569.94874.qm@web88202.mail.re2.yahoo.com> I don't see the usefulness of tblMain. I would model this: tbl_Manufacturer (PK ManufacturerID, ...) tbl_Model (PK ModelID, FK ManufacturerID, FK TypeID, ...) tbl_Type (PK TypeID, ...) As for UI, there are dozens of ways you could go. You could present a main form with a subform for models. Code a double-click in the subform to invoke a data-entry style form to make it easier to update. You could create a pair of listboxes on the main form, one for Manufacturer and the other for Model. A single-click on the Manufacturer list refreshes the Model list. A double-click on either invokes the data-entry form. Finally, I think the sample data you presented is inside out. You ought to begin with the manufacturer, then look at the models, and finally the type. (Admittedly, it might go Type first and then Model. I can see that, in some situations. Ford makes lots of trucks, for example, so the Type be be higher in the order of things than the Model.) hth, Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: "Hollis, Virginia" To: accessD at databaseadvisors.com Sent: Monday, February 19, 2007 11:11:36 AM Subject: [AccessD] Multiple Tables I always have trouble with this. I have to set up a form for updating 3 different tables, Type, Model, and Manufacturer. tbl_Manufacturer tbl_Model tbl_type tbl_Main (this would be a table that contains all the information) Would I put ModelID, TypeID, etc into this table? So do I create another table that joins them together? At first I put the fields all as ModelID, TypeID in the main table & added each field to the main form & when they selected the Model I used a Select query to update the matching Type & Manuf. I need to create a form where the user can update the fields across for each Model & complete the Type and Manuf. If they are 3 separate tables how do they join together? How do they join to the main table? Ex: Model: F, Type: Truck, Manuf: Ford Model: Silverado, Type: Truck, Manuf: Chevy Virginia -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From hollisvj at pgdp.usec.com Mon Feb 19 10:50:19 2007 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Mon, 19 Feb 2007 10:50:19 -0600 Subject: [AccessD] Multiple Tables Message-ID: <703BDA18A87DFA4CB265A86F42E4178D01E764D1@c2k3exchange.pgdp.corp.usec.com> Tbl_Main is just where most of the other fields are, the data. Anyway.... So would tbl_Model have all the ID fields (FKs?) from each of the other tables and a description of the Model? All the other tables would just have their own PK & description? ************************ I don't see the usefulness of tblMain. I would model this: tbl_Manufacturer (PK ManufacturerID, ...) tbl_Model (PK ModelID, FK ManufacturerID, FK TypeID, ...) tbl_Type (PK TypeID, ...) As for UI, there are dozens of ways you could go. You could present a main form with a subform for models. Code a double-click in the subform to invoke a data-entry style form to make it easier to update. You could create a pair of listboxes on the main form, one for Manufacturer and the other for Model. A single-click on the Manufacturer list refreshes the Model list. A double-click on either invokes the data-entry form. Finally, I think the sample data you presented is inside out. You ought to begin with the manufacturer, then look at the models, and finally the type. (Admittedly, it might go Type first and then Model. I can see that, in some situations. Ford makes lots of trucks, for example, so the Type be be higher in the order of things than the Model.) hth, Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization From jimdettman at verizon.net Mon Feb 19 10:51:25 2007 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 19 Feb 2007 11:51:25 -0500 Subject: [AccessD] Missing references In-Reply-To: <000001c7543b$aea0b5c0$657aa8c0@m6805> References: <001201c75439$369b3980$8abea8c0@XPS> <000001c7543b$aea0b5c0$657aa8c0@m6805> Message-ID: <004201c75446$31dd0240$8abea8c0@XPS> Jim, From what I've been told/read in the past, the set statement merely gives you a pointer to the object and its address lookup table. With late binding, VBA does not know the address of the property/method call before hand, so it must execute a GetIDsOfNames and Invoke call with each property/method it encounters at runtime. With early binding, it already knows the address, so it just needs the invoke call. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Monday, February 19, 2007 10:36 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references Jim, > It's worse then that; it's a lookup at every property or method call to the object. I don't believe so. The set statement essentially loads all that stuff into memory and is a one time affair (per execution of the set statement). I think you are thinking of the syntax dim MyObject = NEW XXX In this case the dim and the set statement have been merged into one line of code and IIRC with this syntax you are correct. However if you break it out into a separate dim and set statement: Dim MyObj as object set MyOpject = ... Then the set statement permanently loads the object information for as long as the object stays in scope. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, February 19, 2007 10:18 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references John, <> It's worse then that; it's a lookup at every property or method call to the object. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Monday, February 19, 2007 10:06 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references As I attempted to explain in my earlier discourse on binding, using an "as object" syntax is late binding. The IMPACT of late binding is not as simple as "the code is loaded" but rather is determined by a myriad of things, but you can essentially boil it down to "how often is the set statement encountered". Early binding performs the LOOKUP of all the data about the object at COMPILE TIME. Thus there is NO IMPACT at run time, all the lookup of the object information has already been done. Late binding performs the LOOKUP of all the data about the object at RUN TIME, but more specifically at the instant that the SET statement is executed. Late binding will ALWAYS have some impact (assuming that the set statement is run) because the lookup must occur. I make the disclaimer "assuming the set statement is run" simply because, for example. I could have an EXCEL class or module in my project. It matters not whether it is in the FE or out in a library, what matter is, whether any code ever tries to ACTUALLY EXECUTE a SET STATEMENT to set a variable dimensioned as object. Thus one of my users may use the application for days and weeks and never experience the impact of late binding because his job never entails using that EXCEL code. Another user may experience the impact of late binding all day every day because his job requires using the code that executes the set statement, i.e. he uses Excel and I am late binding excel objects. NOW... How severe is the impact for that user? It may be very little or it may be extreme. What determines the impact to this user is HOW OFTEN the set statement is executed, how LONG does it take to perform the binding, and what % of the total code execution time is taken up by the binding. Let's take an example. The code does nothing more than load excel and open a worksheet. That would be at least two objects late bound, the Excel Application, and the worksheet. The time to bind the object that holds the pointer to Excel is completely DWARFED by the time to actually load Excel off the disk. We are talking a few milliseconds to do the binding and probably seconds to load excel. So the user would never even feel the difference between early and late binding. The same goes for loading the spreadsheet itself. Again, the binding itself takes a few milliseconds, but loading the worksheet would take a second or two. The user would never even feel the difference. Take another example however. This user has to load a spreadsheet, and the code is going to load and manipulate 10 thousand cells, placing data, formatting it, setting up formulas etc. NOW the time to reference each cell may take a few milliseconds but the time to actually manipulate the cells might well be sub-millisecond. So late binding in this case could slow down the app by orders of magnitude. It could do the whole thing in a second if early bound but take 10 seconds, 100 seconds etc if late bound. The DIFFERENCE is simply that the time to do the binding is occurring thousands or tens of thousands of times as the program manipulates the contents of the spreadsheet. Suddenly milliseconds start to add up. As you can see, this is a complex subject and one where the answer "is late binding costing me much" changes radically depending on what the code is doing. And it really has nothing to do with when it is loaded and whether it is sitting in memory. It is all about how many times the set statements execute, and how much of the total time those set statements use. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Monday, February 19, 2007 9:26 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing references You may be right, but it flies in the face of what little I know about Access. I was under the impression that code sitting in the MDB would be loaded on first call and thereafter reside in memory. Is that not true when you do something like create a Word object? Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Jim Dettman To: Access Developers discussion and problem solving Sent: Monday, February 19, 2007 8:41:07 AM Subject: Re: [AccessD] Missing references Jim, <> How so? If your dimming something as an object, you using late binding. I don't know of anyway of changing from late to early without re-compiling the program. And if you use late binding, your carrying the performance hit all the time. Jim. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Mon Feb 19 11:00:04 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 19 Feb 2007 11:00:04 -0600 Subject: [AccessD] WAY OT: Create a network Connection In-Reply-To: <20070215095635.UFEY6229.oaamta01ps.mx.bigpond.com@DENZILLAP> Message-ID: Ya, you can shell out and start a VPN. I'll go look to find the command for it... rasdial nameofyourvpn username password /domain:domainname to disconnect: rasdial nameofyourvpn /disconnect There are 'ShellWait' functions out there, so that your code can pause until the vpn connection is made. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Thursday, February 15, 2007 3:57 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] WAY OT: Create a network Connection Hi All Anyone know how to create a VPN connection in code Or how to copy one from my "My Network" connections to the "My Network Connections" on another person's PC I can make and copy the shortcut - but I want to copy the actual VPN Network connection itself - can it be done? So that I can just drop it into their "My Network connections" (need help with that too - anyone know what that folder is called) :-) Any suggestions?? This is way OT so please respond off list Thanks See ya DD -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Feb 19 11:02:19 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Mon, 19 Feb 2007 12:02:19 -0500 Subject: [AccessD] Missing references In-Reply-To: <004201c75446$31dd0240$8abea8c0@XPS> Message-ID: <000a01c75447$b7761990$657aa8c0@m6805> Jim, >so it must execute a GetIDsOfNames and Invoke call with each property/method it encounters at runtime. This makes no sense. The SET statement does the lookup and gets the pointer. Every reference to any property / method etc AFTER the set statement does not need to do that lookup again because the set statement did it already. AFAIK, late binding and early binding do EXACTLY the same thing, they bind a dimensioned variable to the object being referenced. Once that binding occurs there is no further penalty. The thing to keep in mind though is that as soon as the object variable loses scope, the binding is lost and must be re-established if used again. Can you point us to anything that says that late bound objects continue to incur a penalty AFTER the set statement? John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, February 19, 2007 11:51 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references Jim, From what I've been told/read in the past, the set statement merely gives you a pointer to the object and its address lookup table. With late binding, VBA does not know the address of the property/method call before hand, so it must execute a GetIDsOfNames and Invoke call with each property/method it encounters at runtime. With early binding, it already knows the address, so it just needs the invoke call. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Monday, February 19, 2007 10:36 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references Jim, > It's worse then that; it's a lookup at every property or method call > to the object. I don't believe so. The set statement essentially loads all that stuff into memory and is a one time affair (per execution of the set statement). I think you are thinking of the syntax dim MyObject = NEW XXX In this case the dim and the set statement have been merged into one line of code and IIRC with this syntax you are correct. However if you break it out into a separate dim and set statement: Dim MyObj as object set MyOpject = ... Then the set statement permanently loads the object information for as long as the object stays in scope. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, February 19, 2007 10:18 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references John, <> It's worse then that; it's a lookup at every property or method call to the object. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Monday, February 19, 2007 10:06 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references As I attempted to explain in my earlier discourse on binding, using an "as object" syntax is late binding. The IMPACT of late binding is not as simple as "the code is loaded" but rather is determined by a myriad of things, but you can essentially boil it down to "how often is the set statement encountered". Early binding performs the LOOKUP of all the data about the object at COMPILE TIME. Thus there is NO IMPACT at run time, all the lookup of the object information has already been done. Late binding performs the LOOKUP of all the data about the object at RUN TIME, but more specifically at the instant that the SET statement is executed. Late binding will ALWAYS have some impact (assuming that the set statement is run) because the lookup must occur. I make the disclaimer "assuming the set statement is run" simply because, for example. I could have an EXCEL class or module in my project. It matters not whether it is in the FE or out in a library, what matter is, whether any code ever tries to ACTUALLY EXECUTE a SET STATEMENT to set a variable dimensioned as object. Thus one of my users may use the application for days and weeks and never experience the impact of late binding because his job never entails using that EXCEL code. Another user may experience the impact of late binding all day every day because his job requires using the code that executes the set statement, i.e. he uses Excel and I am late binding excel objects. NOW... How severe is the impact for that user? It may be very little or it may be extreme. What determines the impact to this user is HOW OFTEN the set statement is executed, how LONG does it take to perform the binding, and what % of the total code execution time is taken up by the binding. Let's take an example. The code does nothing more than load excel and open a worksheet. That would be at least two objects late bound, the Excel Application, and the worksheet. The time to bind the object that holds the pointer to Excel is completely DWARFED by the time to actually load Excel off the disk. We are talking a few milliseconds to do the binding and probably seconds to load excel. So the user would never even feel the difference between early and late binding. The same goes for loading the spreadsheet itself. Again, the binding itself takes a few milliseconds, but loading the worksheet would take a second or two. The user would never even feel the difference. Take another example however. This user has to load a spreadsheet, and the code is going to load and manipulate 10 thousand cells, placing data, formatting it, setting up formulas etc. NOW the time to reference each cell may take a few milliseconds but the time to actually manipulate the cells might well be sub-millisecond. So late binding in this case could slow down the app by orders of magnitude. It could do the whole thing in a second if early bound but take 10 seconds, 100 seconds etc if late bound. The DIFFERENCE is simply that the time to do the binding is occurring thousands or tens of thousands of times as the program manipulates the contents of the spreadsheet. Suddenly milliseconds start to add up. As you can see, this is a complex subject and one where the answer "is late binding costing me much" changes radically depending on what the code is doing. And it really has nothing to do with when it is loaded and whether it is sitting in memory. It is all about how many times the set statements execute, and how much of the total time those set statements use. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Monday, February 19, 2007 9:26 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing references You may be right, but it flies in the face of what little I know about Access. I was under the impression that code sitting in the MDB would be loaded on first call and thereafter reside in memory. Is that not true when you do something like create a Word object? Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Jim Dettman To: Access Developers discussion and problem solving Sent: Monday, February 19, 2007 8:41:07 AM Subject: Re: [AccessD] Missing references Jim, <> How so? If your dimming something as an object, you using late binding. I don't know of anyway of changing from late to early without re-compiling the program. And if you use late binding, your carrying the performance hit all the time. Jim. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Mon Feb 19 11:08:10 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 19 Feb 2007 11:08:10 -0600 Subject: [AccessD] Missing references In-Reply-To: <003401c751e0$95936ee0$6c7aa8c0@m6805> Message-ID: Yes, I'm listening...been sick since last Wednesday...just coughed and sneezed in envelope for ya, what's your mailing address? All this binding early/late of Excel, haven't ya all figured out how to use ADO to modify excel files? Admittedly, it doesn't do formatting, but for data transfers it rocks! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Friday, February 16, 2007 9:39 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references It is quantifiable. I have a class for timing things and you can do late binding vs. early binding in a loop a million times to measure the effects of each. Essentially binding requires the compiler to look up the object in an object table to obtain the pointer to the object as well as the parameters, their types, the return type if any etc. Early binding does that at compile time, once. Late binding does the exact same thing at run time, every time the object is resolved. The question is, how often is it done? For example, if you have a global reference to a word object, at runtime the object has to be resolved, but since it is a global variable, it is only resolved once, and so the hit is a once-off affair. Now take the example of a reference to a word object in the header of a class module. Now this has to be done once, every time the class loads, for each instance of the class loading. Now take the example of a reference to a cell in a spreadsheet dimensioned in a method of a class. The object has to be resolved every time the function is called. That may be once, or it may be hundreds or thousands of times. Notice that in ALL cases, the object is resolved ONCE for each dimension statement. The difference between these three examples is the LOCATION of the dimension statement. It is actually possible in VBA to dimension an object down in code, so you could literally dimension an object inside of a loop. Generally speaking that would be a disaster using late binding. Actually dimensioning a variable of any kind down in the middle of code is considered bad practice anyway. DREW are you listening? Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Friday, February 16, 2007 10:21 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing references Is this verifiable, Jim? I haven't ever used late-binding, which I admit has caused various installation issues, but I am curious. Is this a thumbnail calculation or can you supply concrete arithmetical evidence? A. ----- Original Message ---- From: Jim Dettman To: Access Developers discussion and problem solving Sent: Friday, February 16, 2007 9:49:44 AM Subject: Re: [AccessD] Missing references Bryan, One thing you didn't mention is the performance hit; late binding costs you 10-15% for every operation perform. Jim. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Mon Feb 19 11:09:33 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 19 Feb 2007 11:09:33 -0600 Subject: [AccessD] Missing references In-Reply-To: Message-ID: Why not make a function, and just use RunCode in the AutoExec macro.... Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Friday, February 16, 2007 10:23 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Missing references Thanks Gustav, This is almost embarrassing...I see the code...I know what the code does...I can write VBA...ALL...DAY...LONGGGG...But I don't know how to convert your IF statement back to a macro??? lol...Not sure why but I find this fact amusing, but I do. Here is the VBA/Macro... '------------------------------------------------------------ ' AutoExec ' '------------------------------------------------------------ Function AutoExec() DoCmd.Echo False, "" If (CheckReferences() = False) Then Call VerifyReferences(True) DoCmd.OpenModule "USysReferencesCheck", "" DoCmd.RunCommand acCmdCompileAndSaveAllMod DoCmd.Close , "" End If DoCmd.Echo True, "" End Function I got the echo part...lol...but how do you do the if statement? Thanks, Mark A. Matte >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] Missing references >Date: Fri, 16 Feb 2007 00:03:43 +0100 > >Hi Mark > >Some years ago we had a lengthy thread on this. >Look up here: > >http://databaseadvisors.com/pipermail/accessd/2003-July/011034.html > >/gustav > > >>> markamatte at hotmail.com 15-02-07 23:02 >>> >Thanks John, > >I'm not referencing any other app or docs...I was referring to when you are >in a module and goto TOOLS---REFERENCES...and there is something missing or >incorrect. > >Is binding relevant at this point? If not...back to the original >question:...how to handle the 'missing'??? > >Am I still confused>..lol...??? > > >Thanks, > >Mark A. Matte > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ With tax season right around the corner, make sure to follow these few simple tips. http://articles.moneycentral.msn.com/Taxes/PreparationTips/PreparationTi ps.aspx?icid=HMFebtagline -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Mon Feb 19 11:10:31 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 19 Feb 2007 11:10:31 -0600 Subject: [AccessD] Missing references In-Reply-To: <008601c751e8$f3137670$9258eb44@50NM721> Message-ID: I was letting him slide on that one....being a recent convert to the unbound side, we cut our members some slack here and there.... ;) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Friday, February 16, 2007 10:39 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing references DREW, are you listening? :)))) William Hindman ----- Original Message ----- From: "JWColby" To: "'Access Developers discussion and problem solving'" Sent: Friday, February 16, 2007 10:44 AM Subject: Re: [AccessD] Missing references > Excuse me, I misspoke. The reference is resolved at the SET statement, > not > the dim statement. > > (flogging self with a cat-o-nines) > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby > Sent: Friday, February 16, 2007 10:39 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Missing references > > It is quantifiable. I have a class for timing things and you can do late > binding vs. early binding in a loop a million times to measure the effects > of each. Essentially binding requires the compiler to look up the object > in > an object table to obtain the pointer to the object as well as the > parameters, their types, the return type if any etc. Early binding does > that at compile time, once. Late binding does the exact same thing at run > time, every time the object is resolved. > > The question is, how often is it done? For example, if you have a global > reference to a word object, at runtime the object has to be resolved, but > since it is a global variable, it is only resolved once, and so the hit is > a > once-off affair. > > Now take the example of a reference to a word object in the header of a > class module. Now this has to be done once, every time the class loads, > for > each instance of the class loading. > > Now take the example of a reference to a cell in a spreadsheet dimensioned > in a method of a class. The object has to be resolved every time the > function is called. That may be once, or it may be hundreds or thousands > of > times. > > Notice that in ALL cases, the object is resolved ONCE for each dimension > statement. The difference between these three examples is the LOCATION of > the dimension statement. > > It is actually possible in VBA to dimension an object down in code, so you > could literally dimension an object inside of a loop. Generally speaking > that would be a disaster using late binding. > > Actually dimensioning a variable of any kind down in the middle of code is > considered bad practice anyway. > > DREW are you listening? > > Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. > Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. > Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. > Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. > Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. > Bad Practice. Bad Practice. Bad Practice. Bad Practice. Bad Practice. > Bad Practice. > > > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > artful at rogers.com > Sent: Friday, February 16, 2007 10:21 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Missing references > > Is this verifiable, Jim? I haven't ever used late-binding, which I admit > has > caused various installation issues, but I am curious. Is this a thumbnail > calculation or can you supply concrete arithmetical evidence? > > A. > > > > ----- Original Message ---- > From: Jim Dettman > To: Access Developers discussion and problem solving > > Sent: Friday, February 16, 2007 9:49:44 AM > Subject: Re: [AccessD] Missing references > > > Bryan, > > One thing you didn't mention is the performance hit; late binding costs > you 10-15% for every operation perform. > > Jim. > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Mon Feb 19 11:14:03 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 19 Feb 2007 11:14:03 -0600 Subject: [AccessD] Missing references In-Reply-To: <45D64770.6934.795CC57@stuart.lexacorp.com.pg> Message-ID: As long as VB keeps realizing that 'strTemp' and 'strtemp' are the SAME variable, I'm happy.... ;) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, February 16, 2007 6:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing references On 16 Feb 2007 at 10:39, JWColby wrote: > Actually dimensioning a variable of any kind down in the middle of code is > considered bad practice anyway. It used to be. There seems to be a growing trend towards "decentralisation" rather than "consolidation" of declarations. Now we have "Block Scoped variables" in VB.Net which *have* to be declared in the middle of code and many MS code examples now declare all variables immediately before first use. Anyone for another round of Bound/Unbound or Surrogate/Natural et al which we're at it? :-) -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From prodevmg at yahoo.com Mon Feb 19 11:18:35 2007 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Mon, 19 Feb 2007 09:18:35 -0800 (PST) Subject: [AccessD] Value verses OldValue Message-ID: <248137.34282.qm@web33105.mail.mud.yahoo.com> Susan, Did you find anything else about this? Actually I did not know the property existed. I have always used variables or the tag property to store this. I was going to start using it and an associate says there are also problems with checkbox booleans and comboxes. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us ----- Original Message ---- From: Susan Harkins To: Access Developers discussion and problem solving Sent: Sunday, February 18, 2007 6:12:37 PM Subject: [AccessD] Value verses OldValue I ran into something interesting with the following expression: If ctl.Value <> ctl.OldValue Then It appears that unless you've changed the value, ctl.Value is empty. If there's been no change, shouldn't Value and OldValue been the same? Why is Value empty? This is in a form's Before Update event, which might matter. Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ____________________________________________________________________________________ Now that's room service! Choose from over 150,000 hotels in 45,000 destinations on Yahoo! Travel to find your fit. http://farechase.yahoo.com/promo-generic-14795097 From Chester_Kaup at kindermorgan.com Mon Feb 19 11:30:05 2007 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Mon, 19 Feb 2007 11:30:05 -0600 Subject: [AccessD] Join expression not supported Message-ID: I an getting a join expression not supported error from the following query. I am not seeing the problem. Thanks SELECT dbo_DSS_CompletionMaster.PID, Right(ConfigMaster.PID,Len(ConfigMaster.PID)-4) AS WellName FROM ConfigMaster, dbo_DSS_CompletionMaster LEFT JOIN ConfigMaster ON Right([ConfigMaster].[PID],Len([ConfigMaster].[PID])-4))= dbo_DSS_CompletionMaster.Well_Number WHERE (((ConfigMaster.PID) Like "PAT*") AND ((Right([ConfigMaster].[PID],Len([ConfigMaster].[PID])-4)) Not Like "*GAP") GROUP BY dbo_DSS_CompletionMaster.PID, Right(ConfigMaster.PID,Len(ConfigMaster.PID)-4); Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 ? No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. From artful at rogers.com Mon Feb 19 11:39:22 2007 From: artful at rogers.com (artful at rogers.com) Date: Mon, 19 Feb 2007 09:39:22 -0800 (PST) Subject: [AccessD] Multiple Tables Message-ID: <208688.42313.qm@web88201.mail.re2.yahoo.com> Yep. If you insist on tbl_Main, make it a query not a table, but I still don't see how it benefits you. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: "Hollis, Virginia" To: accessd at databaseadvisors.com Sent: Monday, February 19, 2007 11:50:19 AM Subject: [AccessD] Multiple Tables Tbl_Main is just where most of the other fields are, the data. Anyway.... So would tbl_Model have all the ID fields (FKs?) from each of the other tables and a description of the Model? All the other tables would just have their own PK & description? From DWUTKA at Marlow.com Mon Feb 19 11:39:38 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 19 Feb 2007 11:39:38 -0600 Subject: [AccessD] Join expression not supported In-Reply-To: Message-ID: Does it run? You just can't view a join like this in the query builder in Access. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Monday, February 19, 2007 11:30 AM To: Access Developers discussion and problem solving Subject: [AccessD] Join expression not supported I an getting a join expression not supported error from the following query. I am not seeing the problem. Thanks SELECT dbo_DSS_CompletionMaster.PID, Right(ConfigMaster.PID,Len(ConfigMaster.PID)-4) AS WellName FROM ConfigMaster, dbo_DSS_CompletionMaster LEFT JOIN ConfigMaster ON Right([ConfigMaster].[PID],Len([ConfigMaster].[PID])-4))= dbo_DSS_CompletionMaster.Well_Number WHERE (((ConfigMaster.PID) Like "PAT*") AND ((Right([ConfigMaster].[PID],Len([ConfigMaster].[PID])-4)) Not Like "*GAP") GROUP BY dbo_DSS_CompletionMaster.PID, Right(ConfigMaster.PID,Len(ConfigMaster.PID)-4); Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 ? 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 Chester_Kaup at kindermorgan.com Mon Feb 19 12:21:48 2007 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Mon, 19 Feb 2007 12:21:48 -0600 Subject: [AccessD] Join expression not supported In-Reply-To: References: Message-ID: No it does not run. Just returns error message. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Monday, February 19, 2007 11:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Join expression not supported Does it run? You just can't view a join like this in the query builder in Access. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Monday, February 19, 2007 11:30 AM To: Access Developers discussion and problem solving Subject: [AccessD] Join expression not supported I an getting a join expression not supported error from the following query. I am not seeing the problem. Thanks SELECT dbo_DSS_CompletionMaster.PID, Right(ConfigMaster.PID,Len(ConfigMaster.PID)-4) AS WellName FROM ConfigMaster, dbo_DSS_CompletionMaster LEFT JOIN ConfigMaster ON Right([ConfigMaster].[PID],Len([ConfigMaster].[PID])-4))= dbo_DSS_CompletionMaster.Well_Number WHERE (((ConfigMaster.PID) Like "PAT*") AND ((Right([ConfigMaster].[PID],Len([ConfigMaster].[PID])-4)) Not Like "*GAP") GROUP BY dbo_DSS_CompletionMaster.PID, Right(ConfigMaster.PID,Len(ConfigMaster.PID)-4); Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 ? 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 martyconnelly at shaw.ca Mon Feb 19 12:19:32 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 19 Feb 2007 10:19:32 -0800 Subject: [AccessD] Missing references In-Reply-To: References: Message-ID: <45D9EA34.9050109@shaw.ca> I don't think this type of code line will work DoCmd.Echo False, "" You haven't disambiguated the call so it will force a reference check and any missing reference at that point will fail. You have to add Access. or VBA. to your code Should be Access.DoCmd.Echo False, "" See Kaplan's Musings on this Subject: INFO: How to guarantee that references will work in your applications http://www.trigeminal.com/usenet/usenet026.asp?1033 Drew Wutka wrote: >Why not make a function, and just use RunCode in the AutoExec macro.... > >Drew > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: Friday, February 16, 2007 10:23 AM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Missing references > >Thanks Gustav, > >This is almost embarrassing...I see the code...I know what the code >does...I >can write VBA...ALL...DAY...LONGGGG...But I don't know how to convert >your >IF statement back to a macro??? lol...Not sure why but I find this fact > >amusing, but I do. Here is the VBA/Macro... > > > >'------------------------------------------------------------ >' AutoExec >' >'------------------------------------------------------------ >Function AutoExec() > > DoCmd.Echo False, "" > If (CheckReferences() = False) Then > Call VerifyReferences(True) > DoCmd.OpenModule "USysReferencesCheck", "" > DoCmd.RunCommand acCmdCompileAndSaveAllMod > DoCmd.Close , "" > End If > DoCmd.Echo True, "" > >End Function > > > >I got the echo part...lol...but how do you do the if statement? > >Thanks, > >Mark A. Matte > > > >>From: "Gustav Brock" >>Reply-To: Access Developers discussion and problem >>solving >>To: >>Subject: Re: [AccessD] Missing references >>Date: Fri, 16 Feb 2007 00:03:43 +0100 >> >>Hi Mark >> >>Some years ago we had a lengthy thread on this. >>Look up here: >> >>http://databaseadvisors.com/pipermail/accessd/2003-July/011034.html >> >>/gustav >> >> >> >>>>>markamatte at hotmail.com 15-02-07 23:02 >>> >>>>> >>>>> >>Thanks John, >> >>I'm not referencing any other app or docs...I was referring to when you >> >> >are > > >>in a module and goto TOOLS---REFERENCES...and there is something >> >> >missing or > > >>incorrect. >> >>Is binding relevant at this point? If not...back to the original >>question:...how to handle the 'missing'??? >> >>Am I still confused>..lol...??? >> >> >>Thanks, >> >>Mark A. Matte >> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >> > >_________________________________________________________________ >With tax season right around the corner, make sure to follow these few >simple tips. >http://articles.moneycentral.msn.com/Taxes/PreparationTips/PreparationTi >ps.aspx?icid=HMFebtagline > > > -- Marty Connelly Victoria, B.C. Canada From artful at rogers.com Mon Feb 19 12:48:35 2007 From: artful at rogers.com (artful at rogers.com) Date: Mon, 19 Feb 2007 10:48:35 -0800 (PST) Subject: [AccessD] Value verses OldValue Message-ID: <20070219184835.67439.qmail@web88205.mail.re2.yahoo.com> I posted a zipped Access file demonstrating how this works. It was only 14k as a zip but apparently it's being held up by the anti-terrorist squad. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Lonnie Johnson To: Access Developers discussion and problem solving Sent: Monday, February 19, 2007 12:18:35 PM Subject: Re: [AccessD] Value verses OldValue Susan, Did you find anything else about this? Actually I did not know the property existed. I have always used variables or the tag property to store this. I was going to start using it and an associate says there are also problems with checkbox booleans and comboxes. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us ----- Original Message ---- From: Susan Harkins To: Access Developers discussion and problem solving Sent: Sunday, February 18, 2007 6:12:37 PM Subject: [AccessD] Value verses OldValue I ran into something interesting with the following expression: If ctl.Value <> ctl.OldValue Then It appears that unless you've changed the value, ctl.Value is empty. If there's been no change, shouldn't Value and OldValue been the same? Why is Value empty? This is in a form's Before Update event, which might matter. Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ____________________________________________________________________________________ Now that's room service! Choose from over 150,000 hotels in 45,000 destinations on Yahoo! Travel to find your fit. http://farechase.yahoo.com/promo-generic-14795097 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at gmail.com Mon Feb 19 12:52:07 2007 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Mon, 19 Feb 2007 13:52:07 -0500 Subject: [AccessD] Value verses OldValue In-Reply-To: <20070219184835.67439.qmail@web88205.mail.re2.yahoo.com> References: <20070219184835.67439.qmail@web88205.mail.re2.yahoo.com> Message-ID: On 2/19/07, artful at rogers.com wrote: > I posted a zipped Access file demonstrating how this works. It was only 14k as a zip but apparently it's being held up by the anti-terrorist squad. Attachments are a no-no on the list. They have to go off-list. -- 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 jwcolby at colbyconsulting.com Mon Feb 19 12:53:17 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Mon, 19 Feb 2007 13:53:17 -0500 Subject: [AccessD] Value verses OldValue In-Reply-To: <20070219184835.67439.qmail@web88205.mail.re2.yahoo.com> Message-ID: <001601c75457$387cf630$657aa8c0@m6805> LOL, yep. No attachments allowed, as I discovered the other day. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Monday, February 19, 2007 1:49 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Value verses OldValue I posted a zipped Access file demonstrating how this works. It was only 14k as a zip but apparently it's being held up by the anti-terrorist squad. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Lonnie Johnson To: Access Developers discussion and problem solving Sent: Monday, February 19, 2007 12:18:35 PM Subject: Re: [AccessD] Value verses OldValue Susan, Did you find anything else about this? Actually I did not know the property existed. I have always used variables or the tag property to store this. I was going to start using it and an associate says there are also problems with checkbox booleans and comboxes. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us ----- Original Message ---- From: Susan Harkins To: Access Developers discussion and problem solving Sent: Sunday, February 18, 2007 6:12:37 PM Subject: [AccessD] Value verses OldValue I ran into something interesting with the following expression: If ctl.Value <> ctl.OldValue Then It appears that unless you've changed the value, ctl.Value is empty. If there's been no change, shouldn't Value and OldValue been the same? Why is Value empty? This is in a form's Before Update event, which might matter. Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ____________________________________________________________________________ ________ Now that's room service! Choose from over 150,000 hotels in 45,000 destinations on Yahoo! Travel to find your fit. http://farechase.yahoo.com/promo-generic-14795097 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Feb 19 13:05:04 2007 From: artful at rogers.com (artful at rogers.com) Date: Mon, 19 Feb 2007 11:05:04 -0800 (PST) Subject: [AccessD] Value v. OldValue demo Message-ID: <984009.17477.qm@web88211.mail.re2.yahoo.com> The list rejected my upload. So if anyone wants to see this tiny demo of value v. oldvalue, e me off list and I will send it. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com From artful at rogers.com Mon Feb 19 13:11:27 2007 From: artful at rogers.com (artful at rogers.com) Date: Mon, 19 Feb 2007 11:11:27 -0800 (PST) Subject: [AccessD] Join expression not supported Message-ID: <658124.20820.qm@web88211.mail.re2.yahoo.com> Try opening it in SQL view instead of design view. Offhand, I don't see the problem, but this will enable you to inspect the syntax closely, and running it from there might give you a better error message. I would also try creating a query for each table that creates a calculated column encompassing your Right() expression, etc. This might be the problem. With a calculated column the join would be straightforward and more amenable to Access's syntax checker. Also your WHERE seems unncecessarily complex. I might consider creating a calculated column for it as well. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: "Kaup, Chester" To: Access Developers discussion and problem solving Sent: Monday, February 19, 2007 1:21:48 PM Subject: Re: [AccessD] Join expression not supported No it does not run. Just returns error message. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Monday, February 19, 2007 11:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Join expression not supported Does it run? You just can't view a join like this in the query builder in Access. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Monday, February 19, 2007 11:30 AM To: Access Developers discussion and problem solving Subject: [AccessD] Join expression not supported I an getting a join expression not supported error from the following query. I am not seeing the problem. Thanks SELECT dbo_DSS_CompletionMaster.PID, Right(ConfigMaster.PID,Len(ConfigMaster.PID)-4) AS WellName FROM ConfigMaster, dbo_DSS_CompletionMaster LEFT JOIN ConfigMaster ON Right([ConfigMaster].[PID],Len([ConfigMaster].[PID])-4))= dbo_DSS_CompletionMaster.Well_Number WHERE (((ConfigMaster.PID) Like "PAT*") AND ((Right([ConfigMaster].[PID],Len([ConfigMaster].[PID])-4)) Not Like "*GAP") GROUP BY dbo_DSS_CompletionMaster.PID, Right(ConfigMaster.PID,Len(ConfigMaster.PID)-4); Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Chester_Kaup at kindermorgan.com Mon Feb 19 13:22:15 2007 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Mon, 19 Feb 2007 13:22:15 -0600 Subject: [AccessD] Join expression not supported In-Reply-To: <658124.20820.qm@web88211.mail.re2.yahoo.com> References: <658124.20820.qm@web88211.mail.re2.yahoo.com> Message-ID: The query posted below is from SQL view and unfortunately it gives no good error message. I am thinking it is just a little to complex for Access to evaluate all at one time. I am going to break it into more than one query. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Monday, February 19, 2007 1:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Join expression not supported Try opening it in SQL view instead of design view. Offhand, I don't see the problem, but this will enable you to inspect the syntax closely, and running it from there might give you a better error message. I would also try creating a query for each table that creates a calculated column encompassing your Right() expression, etc. This might be the problem. With a calculated column the join would be straightforward and more amenable to Access's syntax checker. Also your WHERE seems unncecessarily complex. I might consider creating a calculated column for it as well. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: "Kaup, Chester" To: Access Developers discussion and problem solving Sent: Monday, February 19, 2007 1:21:48 PM Subject: Re: [AccessD] Join expression not supported No it does not run. Just returns error message. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Monday, February 19, 2007 11:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Join expression not supported Does it run? You just can't view a join like this in the query builder in Access. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Monday, February 19, 2007 11:30 AM To: Access Developers discussion and problem solving Subject: [AccessD] Join expression not supported I an getting a join expression not supported error from the following query. I am not seeing the problem. Thanks SELECT dbo_DSS_CompletionMaster.PID, Right(ConfigMaster.PID,Len(ConfigMaster.PID)-4) AS WellName FROM ConfigMaster, dbo_DSS_CompletionMaster LEFT JOIN ConfigMaster ON Right([ConfigMaster].[PID],Len([ConfigMaster].[PID])-4))= dbo_DSS_CompletionMaster.Well_Number WHERE (((ConfigMaster.PID) Like "PAT*") AND ((Right([ConfigMaster].[PID],Len([ConfigMaster].[PID])-4)) Not Like "*GAP") GROUP BY dbo_DSS_CompletionMaster.PID, Right(ConfigMaster.PID,Len(ConfigMaster.PID)-4); Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Mon Feb 19 13:41:17 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 19 Feb 2007 19:41:17 +0000 Subject: [AccessD] Join expression not supported In-Reply-To: Message-ID: I had something similar last week...and it turned out to be a references issue. The functions I was using would not allow the query to run. Mine was the DATE() function in the query. I removed all references...and then 'selected' them again(note: nothing showed missing...just query would not run). I then compiled and the query ran fine. My error was very similar, and it was the functions in the SQL that was my thorn, not the SQL or the joins/criteria...worth a look??? Thanks, Mark A. Matte >From: "Kaup, Chester" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Join expression not supported >Date: Mon, 19 Feb 2007 13:22:15 -0600 > >The query posted below is from SQL view and unfortunately it gives no >good error message. I am thinking it is just a little to complex for >Access to evaluate all at one time. I am going to break it into more >than one query. > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >artful at rogers.com >Sent: Monday, February 19, 2007 1:11 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Join expression not supported > >Try opening it in SQL view instead of design view. Offhand, I don't see >the problem, but this will enable you to inspect the syntax closely, and >running it from there might give you a better error message. I would >also try creating a query for each table that creates a calculated >column encompassing your Right() expression, etc. This might be the >problem. With a calculated column the join would be straightforward and >more amenable to Access's syntax checker. > >Also your WHERE seems unncecessarily complex. I might consider creating >a calculated column for it as well. > >Arthur Fuller >Technical Writer, Data Modeler, SQL Sensei >Artful Databases Organization >www.artfulsoftware.com > > > > >----- Original Message ---- >From: "Kaup, Chester" >To: Access Developers discussion and problem solving > >Sent: Monday, February 19, 2007 1:21:48 PM >Subject: Re: [AccessD] Join expression not supported > > >No it does not run. Just returns error message. > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka >Sent: Monday, February 19, 2007 11:40 AM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Join expression not supported > >Does it run? You just can't view a join like this in the query builder >in Access. > >Drew > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester >Sent: Monday, February 19, 2007 11:30 AM >To: Access Developers discussion and problem solving >Subject: [AccessD] Join expression not supported > >I an getting a join expression not supported error from the following >query. I am not seeing the problem. Thanks > >SELECT dbo_DSS_CompletionMaster.PID, >Right(ConfigMaster.PID,Len(ConfigMaster.PID)-4) AS WellName >FROM ConfigMaster, dbo_DSS_CompletionMaster >LEFT JOIN ConfigMaster ON >Right([ConfigMaster].[PID],Len([ConfigMaster].[PID])-4))= >dbo_DSS_CompletionMaster.Well_Number >WHERE (((ConfigMaster.PID) Like "PAT*") AND >((Right([ConfigMaster].[PID],Len([ConfigMaster].[PID])-4)) Not Like >"*GAP") >GROUP BY dbo_DSS_CompletionMaster.PID, >Right(ConfigMaster.PID,Len(ConfigMaster.PID)-4); > >Chester Kaup >Engineering Technician >Kinder Morgan CO2 Company, LLP >Office (432) 688-3797 >FAX (432) 688-3799 > > >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 > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Find what you need at prices you?ll love. Compare products and save at MSN? Shopping. http://shopping.msn.com/default/shp/?ptnrid=37,ptnrdata=24102&tcode=T001MSN20A0701 From artful at rogers.com Mon Feb 19 13:43:45 2007 From: artful at rogers.com (artful at rogers.com) Date: Mon, 19 Feb 2007 11:43:45 -0800 (PST) Subject: [AccessD] Value verses OldValue Message-ID: <20070219194345.41178.qmail@web88210.mail.re2.yahoo.com> Recognized and offered off-list. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Bryan Carbonnell To: Access Developers discussion and problem solving Sent: Monday, February 19, 2007 1:52:07 PM Subject: Re: [AccessD] Value verses OldValue On 2/19/07, artful at rogers.com wrote: > I posted a zipped Access file demonstrating how this works. It was only 14k as a zip but apparently it's being held up by the anti-terrorist squad. Attachments are a no-no on the list. They have to go off-list. From jwcolby at colbyconsulting.com Mon Feb 19 13:44:15 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Mon, 19 Feb 2007 14:44:15 -0500 Subject: [AccessD] Join expression not supported In-Reply-To: Message-ID: <001a01c7545e$56e8e0f0$657aa8c0@m6805> Join expression not supported often means that the data types on the two sides of the join are not the same. I would do as you are suggesting, and break it down into several queries. Create a base query for: Right(ConfigMaster.PID,Len(ConfigMaster.PID)-4) AS WellName FROM ConfigMaster So that the alias has been evaluated and valid values are being returned (strings it appears). Once that is in a query as a simple string value, you can join that to another query or table on a string field. It appears that the where clause is also on the configMaster table and could be moved out to that base query as well. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Monday, February 19, 2007 2:22 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Join expression not supported The query posted below is from SQL view and unfortunately it gives no good error message. I am thinking it is just a little to complex for Access to evaluate all at one time. I am going to break it into more than one query. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Monday, February 19, 2007 1:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Join expression not supported Try opening it in SQL view instead of design view. Offhand, I don't see the problem, but this will enable you to inspect the syntax closely, and running it from there might give you a better error message. I would also try creating a query for each table that creates a calculated column encompassing your Right() expression, etc. This might be the problem. With a calculated column the join would be straightforward and more amenable to Access's syntax checker. Also your WHERE seems unncecessarily complex. I might consider creating a calculated column for it as well. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: "Kaup, Chester" To: Access Developers discussion and problem solving Sent: Monday, February 19, 2007 1:21:48 PM Subject: Re: [AccessD] Join expression not supported No it does not run. Just returns error message. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Monday, February 19, 2007 11:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Join expression not supported Does it run? You just can't view a join like this in the query builder in Access. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Monday, February 19, 2007 11:30 AM To: Access Developers discussion and problem solving Subject: [AccessD] Join expression not supported I an getting a join expression not supported error from the following query. I am not seeing the problem. Thanks SELECT dbo_DSS_CompletionMaster.PID, Right(ConfigMaster.PID,Len(ConfigMaster.PID)-4) AS WellName FROM ConfigMaster, dbo_DSS_CompletionMaster LEFT JOIN ConfigMaster ON Right([ConfigMaster].[PID],Len([ConfigMaster].[PID])-4))= dbo_DSS_CompletionMaster.Well_Number WHERE (((ConfigMaster.PID) Like "PAT*") AND ((Right([ConfigMaster].[PID],Len([ConfigMaster].[PID])-4)) Not Like "*GAP") GROUP BY dbo_DSS_CompletionMaster.PID, Right(ConfigMaster.PID,Len(ConfigMaster.PID)-4); Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Feb 19 13:48:55 2007 From: artful at rogers.com (artful at rogers.com) Date: Mon, 19 Feb 2007 11:48:55 -0800 (PST) Subject: [AccessD] Join expression not supported Message-ID: <896930.91520.qm@web88209.mail.re2.yahoo.com> I think that's a good idea. I have run into this sort of problem more than once with Access when designing a lengthy and complex query. Use the KISS principle. Incidentally, I have no benchmarks of consequence to substantiate my take on this, but rather the simplicity and reusability factors. I call my take on this "atomic and molecular queries". An atomic query draws data from exactly one table. A molecular query combines several atomic queries to deliver the desired results. I have occasionally read that there is a performance hit for this approach, but have seen no benchmarks to prove it. Your particular query is not especially complex, but the join requirements are. I am guessing that a calculated column will solve this problem. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: "Kaup, Chester" To: Access Developers discussion and problem solving Sent: Monday, February 19, 2007 2:22:15 PM Subject: Re: [AccessD] Join expression not supported The query posted below is from SQL view and unfortunately it gives no good error message. I am thinking it is just a little to complex for Access to evaluate all at one time. I am going to break it into more than one query. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Monday, February 19, 2007 1:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Join expression not supported Try opening it in SQL view instead of design view. Offhand, I don't see the problem, but this will enable you to inspect the syntax closely, and running it from there might give you a better error message. I would also try creating a query for each table that creates a calculated column encompassing your Right() expression, etc. This might be the problem. With a calculated column the join would be straightforward and more amenable to Access's syntax checker. Also your WHERE seems unncecessarily complex. I might consider creating a calculated column for it as well. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: "Kaup, Chester" To: Access Developers discussion and problem solving Sent: Monday, February 19, 2007 1:21:48 PM Subject: Re: [AccessD] Join expression not supported No it does not run. Just returns error message. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Monday, February 19, 2007 11:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Join expression not supported Does it run? You just can't view a join like this in the query builder in Access. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Monday, February 19, 2007 11:30 AM To: Access Developers discussion and problem solving Subject: [AccessD] Join expression not supported I an getting a join expression not supported error from the following query. I am not seeing the problem. Thanks SELECT dbo_DSS_CompletionMaster.PID, Right(ConfigMaster.PID,Len(ConfigMaster.PID)-4) AS WellName FROM ConfigMaster, dbo_DSS_CompletionMaster LEFT JOIN ConfigMaster ON Right([ConfigMaster].[PID],Len([ConfigMaster].[PID])-4))= dbo_DSS_CompletionMaster.Well_Number WHERE (((ConfigMaster.PID) Like "PAT*") AND ((Right([ConfigMaster].[PID],Len([ConfigMaster].[PID])-4)) Not Like "*GAP") GROUP BY dbo_DSS_CompletionMaster.PID, Right(ConfigMaster.PID,Len(ConfigMaster.PID)-4); Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 setel.com Mon Feb 19 14:20:13 2007 From: ssharkins at setel.com (Susan Harkins) Date: Mon, 19 Feb 2007 15:20:13 -0500 Subject: [AccessD] combo from multiple sources Message-ID: <000001c75463$62013410$aab62ad1@SUSANONE> I made a mistake on an article title "How to populate combo box with data from multiple sources" I meant something entirely different, but now I'm wondering -- do any of you use such a technique? Doing it isn't a problem. I just can't see how it would be useful, but if there's a good excuse, I'm always game. Susan H. From ssharkins at setel.com Mon Feb 19 14:20:14 2007 From: ssharkins at setel.com (Susan Harkins) Date: Mon, 19 Feb 2007 15:20:14 -0500 Subject: [AccessD] Value verses OldValue In-Reply-To: Message-ID: <001a01c75463$80948120$aab62ad1@SUSANONE> Gustav, as usual... that wasn't even the problem. :) Susan H. Hi Susan You mean OldValue is empty, right? As far as I know it's empty until an update has happened. From ssharkins at setel.com Mon Feb 19 14:32:52 2007 From: ssharkins at setel.com (Susan Harkins) Date: Mon, 19 Feb 2007 15:32:52 -0500 Subject: [AccessD] Value verses OldValue In-Reply-To: <248137.34282.qm@web33105.mail.mud.yahoo.com> Message-ID: <002a01c75465$218d31c0$aab62ad1@SUSANONE> Only that I wasn't paying close enough attention. The properties were working just fine. :) Look up the form Before update event in Help -- there's just a smidge in there about they maintain their values in this event, which is where you'll probably use them. Susan H. Susan, Did you find anything else about this? Actually I did not know the property existed. I have always used variables or the tag property to store this. I was going to start using it and an associate says there are also problems with checkbox booleans and comboxes. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us ----- Original Message ---- From: Susan Harkins To: Access Developers discussion and problem solving Sent: Sunday, February 18, 2007 6:12:37 PM Subject: [AccessD] Value verses OldValue I ran into something interesting with the following expression: If ctl.Value <> ctl.OldValue Then It appears that unless you've changed the value, ctl.Value is empty. If there's been no change, shouldn't Value and OldValue been the same? Why is Value empty? This is in a form's Before Update event, which might matter. Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ____________________________________________________________________________ ________ Now that's room service! Choose from over 150,000 hotels in 45,000 destinations on Yahoo! Travel to find your fit. http://farechase.yahoo.com/promo-generic-14795097 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.17.39/687 - Release Date: 2/14/2007 4:17 PM From shamil at users.mns.ru Mon Feb 19 15:03:46 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Tue, 20 Feb 2007 00:03:46 +0300 Subject: [AccessD] Missing references In-Reply-To: <000a01c75447$b7761990$657aa8c0@m6805> Message-ID: <003201c75469$72a406c0$6401a8c0@nant> Hi Everyone, Please have a look here: http://www.fredshack.com/docs/com.html << - Objects can be accessed in two modes: Early bound (the EXE can compile direct function calls by looking up the address of the method in the vtable array of pointers to functions), or late bound (the EXE go through the IDispatch interface to locate functions). Early binding is recommended for performance reasons, since calls are made directly to the ad hoc interface, while with late binding, calls are made through the IDispatch interface which can determine the methods and properties of the object at runtime. - Marshaling is the process of collecting the necessary information for an EXE to call a COM object that lives outside of the memory space of the calling EXE, since 32-bit versions of Windows keep the two processes separate - Marshaling isn't required if the COM server lives in the same address space as the calling EXE, but is required if the COM server is itself an EXE, and, thus, lives in a different address space. The COM EXE can run on either the same computer as the caller EXE, or on a remote computer, in which case the technology called Distributed Component Object Model (DCOM) is used - In Visual Basic you can implement early binding by adding a reference to an object via the references dialog box, then declaring a variable using the specific object type instead of As Object. This can substantially reduce the time it takes to access methods and properties in the object - Late binding occurs in Visual Basic when you dimension an object variable to be As Object. An object variable can hold any type of object. Since the variable can reference any object and must support whatever methods or properties that object may implement, it clearly can have no way of knowing until runtime what those methods and properties may be. Without late binding and the IDispatch Interface, the As Object type of variable would not be possible - OLE Automation ("Automation" for short) is the late-bound way of calling an object, and thus, relies on the existence of an IDispatch for this interface - The IDispatch interface consists of the following functions: GetTypeInfoCount(), GetTypeInfo(), GetIDsOfNames(), Invoke() Each method or property supported by an interface has a dispatch ID - a number that identifies that method or property. Thus, while each method has its own dispatch ID, the function to set a property and the function to retrieve that same property will share the same dispatch ID >> -- Shamil From artful at rogers.com Mon Feb 19 15:08:42 2007 From: artful at rogers.com (artful at rogers.com) Date: Mon, 19 Feb 2007 13:08:42 -0800 (PST) Subject: [AccessD] combo from multiple sources Message-ID: <556369.23253.qm@web88212.mail.re2.yahoo.com> I tend perhaps a little toward the academic on this, Susan, but I strongly discourage stopping one's normalization at 3NF, which leads to constructions such as (in an address table) CityID, StateID and CountryID. This IMO is nonsense. There is only one New York and it resides in New York State, which in turn resides in exactly one country. Therefore in my designs the only column I carry in the addresses table is CityID -- the rest is inferred. However, there are numerous Springfields in the USA (which, incidentally, is why the name was selected for The Simpsons). And thus the combo-box that uses a query drawing from three tables -- Cites, States and Countries. The actual query would look something like: Select CityID, CityName + ', ' + States.StateName + ', ' + Countries.CountryName FROM Cities Inner Join States on Cities.StateID = States.StateID Inner Join Countries on States.CountryID = Countries.CountryID (Substitute double-quotes for Access. Out of habit I write in SQL.) Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Susan Harkins To: Access Developers discussion and problem solving Sent: Monday, February 19, 2007 3:20:13 PM Subject: [AccessD] combo from multiple sources I made a mistake on an article title "How to populate combo box with data from multiple sources" I meant something entirely different, but now I'm wondering -- do any of you use such a technique? Doing it isn't a problem. I just can't see how it would be useful, but if there's a good excuse, I'm always game. Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Mon Feb 19 15:59:22 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 19 Feb 2007 21:59:22 +0000 Subject: [AccessD] combo from multiple sources In-Reply-To: <000001c75463$62013410$aab62ad1@SUSANONE> Message-ID: Hi Susan, I recently built, and donated, a db for the New Orleans Police department. One aspect was suspect info. I had to create another section to accomodate multiple aliases. I could have used a combo to list names from both tables...I ended up using a more detailed form to search...but a combo to list names and aliases could have been used...I would have just used a UNION query as the source. Thanks, Mark >From: "Susan Harkins" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: [AccessD] combo from multiple sources >Date: Mon, 19 Feb 2007 15:20:13 -0500 > >I made a mistake on an article title "How to populate combo box with data >from multiple sources" > >I meant something entirely different, but now I'm wondering -- do any of >you >use such a technique? Doing it isn't a problem. I just can't see how it >would be useful, but if there's a good excuse, I'm always game. > >Susan H. > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Refi Now: Rates near 39yr lows! $430,000 Mortgage for $1,399/mo - Calculate new payment http://www.lowermybills.com/lre/index.jsp?sourceid=lmb-9632-17727&moid=7581 From ssharkins at setel.com Mon Feb 19 16:15:49 2007 From: ssharkins at setel.com (Susan Harkins) Date: Mon, 19 Feb 2007 17:15:49 -0500 Subject: [AccessD] combo from multiple sources In-Reply-To: Message-ID: <001a01c75473$83a80f70$fcb82ad1@SUSANONE> I recently built, and donated, a db for the New Orleans Police department. One aspect was suspect info. I had to create another section to accomodate multiple aliases. I could have used a combo to list names from both tables...I ended up using a more detailed form to search...but a combo to list names and aliases could have been used...I would have just used a UNION query as the source. ===========Donated? You're a good guy. Bill spent a few weeks down there right after Katrina and he promised a few of the cops that we'd come back for a vacation and spend money. ;) So, if you created such a combo, what would you use it for? Susan H. From DWUTKA at Marlow.com Mon Feb 19 17:17:24 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 19 Feb 2007 17:17:24 -0600 Subject: [AccessD] combo from multiple sources In-Reply-To: <000001c75463$62013410$aab62ad1@SUSANONE> Message-ID: I've done it with listboxes, where I'm building the list from a callback, which is getting it's data from a collection class, which has data coming from all over. Could it be done from a query? Probably....but there's other advantages to the way I have it setup. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Monday, February 19, 2007 2:20 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] combo from multiple sources I made a mistake on an article title "How to populate combo box with data from multiple sources" I meant something entirely different, but now I'm wondering -- do any of you use such a technique? Doing it isn't a problem. I just can't see how it would be useful, but if there's a good excuse, I'm always game. Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Mon Feb 19 17:45:30 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 19 Feb 2007 15:45:30 -0800 Subject: [AccessD] OT: Rocky On The Radio In-Reply-To: <00b101c753ca$f9640790$0201a8c0@HAL9005> Message-ID: <0JDQ00AJ2HW51L14@l-daemon> Hi All: A link to Rocky's three part web-casts have been added to the DBA web site (http://www.databaseadvisors.com) if any of the list members did not notice quiet announcement. Congratulations, Rocky (If you need any help handling all your new business; just give me a call.) Regards Jim From wdhindman at dejpolsystems.com Mon Feb 19 18:23:05 2007 From: wdhindman at dejpolsystems.com (William Hindman) Date: Mon, 19 Feb 2007 19:23:05 -0500 Subject: [AccessD] combo from multiple sources References: <556369.23253.qm@web88212.mail.re2.yahoo.com> Message-ID: <008b01c75485$4aff7e30$9258eb44@50NM721> ...I've gone a step further Art ...I now have a tblGeo in my templates which holds unique info relevant to a geographical location including GeoID, PostCode, CityID, Prime, CountyID, StateID, NationID, RegionID, longitude, and latitude ...I moved to this format to resolve differences in worldwide postal addressing and then added long/lat to be able to target addresses within circular references when that need cropped up ...the GeoID becomes the fk in any query requiring address/location info. William Hindman ----- Original Message ----- From: To: "Access Developers discussion and problem solving" Sent: Monday, February 19, 2007 4:08 PM Subject: Re: [AccessD] combo from multiple sources >I tend perhaps a little toward the academic on this, Susan, but I strongly >discourage stopping one's normalization at 3NF, which leads to >constructions such as (in an address table) CityID, StateID and CountryID. >This IMO is nonsense. There is only one New York and it resides in New York >State, which in turn resides in exactly one country. Therefore in my >designs the only column I carry in the addresses table is CityID -- the >rest is inferred. > > However, there are numerous Springfields in the USA (which, incidentally, > is why the name was selected for The Simpsons). And thus the combo-box > that uses a query drawing from three tables -- Cites, States and > Countries. The actual query would look something like: > > Select CityID, CityName + ', ' + States.StateName + ', ' + > Countries.CountryName > FROM Cities Inner Join States on Cities.StateID = States.StateID > Inner Join Countries on States.CountryID = Countries.CountryID > > (Substitute double-quotes for Access. Out of habit I write in SQL.) > > > Arthur Fuller > Technical Writer, Data Modeler, SQL Sensei > Artful Databases Organization > www.artfulsoftware.com > > > > > ----- Original Message ---- > From: Susan Harkins > To: Access Developers discussion and problem solving > > Sent: Monday, February 19, 2007 3:20:13 PM > Subject: [AccessD] combo from multiple sources > > > I made a mistake on an article title "How to populate combo box with data > from multiple sources" > > I meant something entirely different, but now I'm wondering -- do any of > you > use such a technique? Doing it isn't a problem. I just can't see how it > would be useful, but if there's a good excuse, I'm always game. > > 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 newsgrps at dalyn.co.nz Mon Feb 19 18:31:30 2007 From: newsgrps at dalyn.co.nz (David Emerson) Date: Tue, 20 Feb 2007 13:31:30 +1300 Subject: [AccessD] Automating email Message-ID: <20070220004505.YMFB25916.fep04.xtra.co.nz@Dalyn.dalyn.co.nz> Group, I have the following code to create an email message: Public Function basSendEmail() Dim outApp As Outlook.Application, outMsg As MailItem Set outApp = CreateObject("Outlook.Application") Set outMsg = outApp.CreateItem(olMailItem) With outMsg .To = "newsgrps at dalyn.co.nz" .Subject = "Test egas email" .Body = "Test message" .Send End With Set outApp = Nothing Set outMsg = Nothing End Function This works fine but only puts the message into my Outlook outbox - it doesn't send it. This may be because although I have outlook installed I do not use it (and it has not been set up). However, my clients use outlook. Will the above code automatically send out emails? Another question - My client would prefer not to have copies in their outbox of the email being sent out (ultimately it will be to email out accounts and they don't want thousands of emails generated each month). Is there a way for the messages not to appear in outlook? From artful at rogers.com Mon Feb 19 18:51:42 2007 From: artful at rogers.com (artful at rogers.com) Date: Mon, 19 Feb 2007 16:51:42 -0800 (PST) Subject: [AccessD] combo from multiple sources Message-ID: <20070220005142.6577.qmail@web88210.mail.re2.yahoo.com> Well done. But the next time you call me Art, I shall send some 18th street gangers to drive by your house. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: William Hindman To: Access Developers discussion and problem solving Sent: Monday, February 19, 2007 7:23:05 PM Subject: Re: [AccessD] combo from multiple sources ...I've gone a step further Art ...I now have a tblGeo in my templates which holds unique info relevant to a geographical location including GeoID, PostCode, CityID, Prime, CountyID, StateID, NationID, RegionID, longitude, and latitude ...I moved to this format to resolve differences in worldwide postal addressing and then added long/lat to be able to target addresses within circular references when that need cropped up ...the GeoID becomes the fk in any query requiring address/location info. William Hindman From kp at sdsonline.net Mon Feb 19 18:57:38 2007 From: kp at sdsonline.net (Kath Pelletti) Date: Tue, 20 Feb 2007 11:57:38 +1100 Subject: [AccessD] Automating email References: <20070220004505.YMFB25916.fep04.xtra.co.nz@Dalyn.dalyn.co.nz> Message-ID: <005201c7548a$1e9d8c10$6401a8c0@office> Hi David - I only use the .Display option in my apps so that the users can add some text to the email if they want to before it is sent, but .send WILL send the email depending on their Outlook preferences. ie. if they have [tools] [options] [mail delivery] 'Send immediately when connected' turned on, then yes, it will send. I haven;t found any way of that email not going into sent items though. Kath ----- Original Message ----- From: David Emerson To: accessd at databaseadvisors.com Sent: Tuesday, February 20, 2007 11:31 AM Subject: [AccessD] Automating email Group, I have the following code to create an email message: Public Function basSendEmail() Dim outApp As Outlook.Application, outMsg As MailItem Set outApp = CreateObject("Outlook.Application") Set outMsg = outApp.CreateItem(olMailItem) With outMsg .To = "newsgrps at dalyn.co.nz" .Subject = "Test egas email" .Body = "Test message" .Send End With Set outApp = Nothing Set outMsg = Nothing End Function This works fine but only puts the message into my Outlook outbox - it doesn't send it. This may be because although I have outlook installed I do not use it (and it has not been set up). However, my clients use outlook. Will the above code automatically send out emails? Another question - My client would prefer not to have copies in their outbox of the email being sent out (ultimately it will be to email out accounts and they don't want thousands of emails generated each month). Is there a way for the messages not to appear in outlook? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From darrend at nimble.com.au Mon Feb 19 19:26:42 2007 From: darrend at nimble.com.au (Darren DICK) Date: Tue, 20 Feb 2007 12:26:42 +1100 Subject: [AccessD] OT: Batch File variable Message-ID: <200702200126.l1K1Qki13686@databaseadvisors.com> Hi All I realise this is OT so please respond off list to darrend at nimble.com.au I have many lines in a batch file - just moves downloaded local files to a network drive - simple The folders on the network drives are divided in to Current Year and Current Month EG \\SomeServer\SomeCoolFolder\SomeCoolFileFolder\200702 - For Feb this year - Rocket Science 'eh? On my local machine the files are stored in the second lowest level EG \\SomeServer\SomeCoolFolder\SomeCoolFileFilder - IE = without the Year Month At the beginning of each month I edit the Month (in this case 200702) in the batch file - many lines and is a real PITA if I stuff it up Is there a way to declare a variable in a batch file? EG varMonthYear = 200702 and then just 'tack' that to the end EG \\SomeServer\SomeCoolFolder\SomeCoolFileFilder\ & varmonthYear That way I only have to edit the variable I realise this is OT so feel free to respond off list please to darrend at nimble.com.au Many thanks See ya Darren From Andrew.Curtis at wapl.com.au Mon Feb 19 19:48:35 2007 From: Andrew.Curtis at wapl.com.au (Curtis, Andrew (WAPL)) Date: Tue, 20 Feb 2007 10:48:35 +0900 Subject: [AccessD] Riddle me this, Riddle me that.. In-Reply-To: <001001c752a5$bc903f80$6501a8c0@roberts> References: <482793.81822.qm@web88203.mail.re2.yahoo.com><000901c752a1$fc14c3a0$6401a8c0@nant> <001001c752a5$bc903f80$6501a8c0@roberts> Message-ID: Compression of databases, mde or not relies on the amount of temporary space used to run queries and other temporary objects. If an mde uses large temporary objects, compression will be considerable, simple non-intensive mdes will not, because there is little temp space to be reclaimed. More on this here http://support.microsoft.com/kb/q208285/ --andrew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Sent: Sunday, 18 February 2007 12:10 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Riddle me this, Riddle me that.. Ok, I have a front end AXP .mde that weighs in at about 27 megs. When I use Wise to compile a new install with a few other objects, it compresses the entire install down to about 8 megs. Now.... If I take ANY other database, even one created from the objects from this FE, the .mde does not compress down. Does anyone have any idea why THIS one FE compresses down, and other will not...?? Robert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This message and any attached files may contain information that is confidential and/or subject of legal privilege intended only for use by the intended recipient. If you are not the intended recipient or the person responsible for delivering the message to the intended recipient, be advised that you have received this message in error and that any dissemination, copying or use of this message or attachment is strictly forbidden, as is the disclosure of the information therein. If you have received this message in error please notify the sender immediately and delete the message. From stuart at lexacorp.com.pg Mon Feb 19 19:54:36 2007 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 20 Feb 2007 11:54:36 +1000 Subject: [AccessD] OT: Batch File variable In-Reply-To: <200702200126.l1K1Qki13686@databaseadvisors.com> References: <200702200126.l1K1Qki13686@databaseadvisors.com> Message-ID: <45DAE17C.26487.1F9F709E@stuart.lexacorp.com.pg> On 20 Feb 2007 at 12:26, Darren DICK wrote: > Is there a way to declare a variable in a batch file? > > EG varMonthYear = 200702 and then just 'tack' that to the end > > EG \\SomeServer\SomeCoolFolder\SomeCoolFileFilder\ > & varmonthYear > > That way I only have to edit the variable > Environment variables. To set it: SET varmonthyear = "200702" to use it: .... + %varmonthyear% From wdhindman at dejpolsystems.com Mon Feb 19 21:07:44 2007 From: wdhindman at dejpolsystems.com (William Hindman) Date: Mon, 19 Feb 2007 22:07:44 -0500 Subject: [AccessD] combo from multiple sources References: <20070220005142.6577.qmail@web88210.mail.re2.yahoo.com> Message-ID: <000a01c7549c$4b730910$9258eb44@50NM721> ...you did that the last time, eh ...wrapped them up and sent them back c.o.d I did :) William Hindman ----- Original Message ----- From: To: "Access Developers discussion and problem solving" Sent: Monday, February 19, 2007 7:51 PM Subject: Re: [AccessD] combo from multiple sources > Well done. But the next time you call me Art, I shall send some 18th > street gangers to drive by your house. > > > Arthur Fuller > Technical Writer, Data Modeler, SQL Sensei > Artful Databases Organization > www.artfulsoftware.com > > > > > ----- Original Message ---- > From: William Hindman > To: Access Developers discussion and problem solving > > Sent: Monday, February 19, 2007 7:23:05 PM > Subject: Re: [AccessD] combo from multiple sources > > > ...I've gone a step further Art ...I now have a tblGeo in my templates > which > holds unique info relevant to a geographical location including GeoID, > PostCode, CityID, Prime, CountyID, StateID, NationID, RegionID, longitude, > and latitude ...I moved to this format to resolve differences in worldwide > postal addressing and then added long/lat to be able to target addresses > within circular references when that need cropped up ...the GeoID becomes > the fk in any query requiring address/location info. > > William Hindman > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From DWUTKA at Marlow.com Tue Feb 20 00:11:56 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 20 Feb 2007 00:11:56 -0600 Subject: [AccessD] combo from multiple sources In-Reply-To: <20070220005142.6577.qmail@web88210.mail.re2.yahoo.com> Message-ID: You'd be going easy on ol' Billie boy there... ;) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Monday, February 19, 2007 6:52 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] combo from multiple sources Well done. But the next time you call me Art, I shall send some 18th street gangers to drive by your house. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: William Hindman To: Access Developers discussion and problem solving Sent: Monday, February 19, 2007 7:23:05 PM Subject: Re: [AccessD] combo from multiple sources ...I've gone a step further Art ...I now have a tblGeo in my templates which holds unique info relevant to a geographical location including GeoID, PostCode, CityID, Prime, CountyID, StateID, NationID, RegionID, longitude, and latitude ...I moved to this format to resolve differences in worldwide postal addressing and then added long/lat to be able to target addresses within circular references when that need cropped up ...the GeoID becomes the fk in any query requiring address/location info. William Hindman -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Tue Feb 20 01:50:09 2007 From: artful at rogers.com (artful at rogers.com) Date: Mon, 19 Feb 2007 23:50:09 -0800 (PST) Subject: [AccessD] OT: Batch File variable Message-ID: <905034.32493.qm@web88207.mail.re2.yahoo.com> If you wish you can also pass it from the command line. Call the batch file like this: myBatch 200702 and substitute %1 for every occurrence of 200702 EG \\SomeServer\SomeCoolFolder\SomeCoolFileFilder\ file:///\\SomeServer\SomeCoolFolder\SomeCoolFileFilder\%1 Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Stuart McLachlan To: Darren DICK ; Access Developers discussion and problem solving Sent: Monday, February 19, 2007 8:54:36 PM Subject: Re: [AccessD] OT: Batch File variable On 20 Feb 2007 at 12:26, Darren DICK wrote: > Is there a way to declare a variable in a batch file? > > EG varMonthYear = 200702 and then just 'tack' that to the end > > EG \\SomeServer\SomeCoolFolder\SomeCoolFileFilder\ > & varmonthYear > > That way I only have to edit the variable > Environment variables. To set it: SET varmonthyear = "200702" to use it: .... + %varmonthyear% -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.eu Tue Feb 20 02:49:49 2007 From: Erwin.Craps at ithelps.eu (Erwin Craps - IT Helps) Date: Tue, 20 Feb 2007 09:49:49 +0100 Subject: [AccessD] Automating email References: <20070220004505.YMFB25916.fep04.xtra.co.nz@Dalyn.dalyn.co.nz> <005201c7548a$1e9d8c10$6401a8c0@office> Message-ID: <430E80531228BA4497C5EB1A7BA786B002427A@stekelbes.ithelps.local> If you are not using Exchange server but a internet account and did not specified a valid smtp server, it is normal that your e-mail stays queded in the outbox. However, I seen it before in my programming that e-mails don't get send in one situation I believe it was a Outlook bug (thats solved in the meanwhile but since then I always also do this. I stronly suggest to resolve the recipients before sending. With outMsg .To = "newsgrps at dalyn.co.nz" .Subject = "Test egas email" strHTMLOriginalEmailBody = .HTMLBody strHTMLBody =" Hi this is my text in the e-mailbody" .HTMLBody = strHTMLBody & strHTMLOriginalEmailBody .Display .Recipients.ResolveAll .Send End with The .Display is no longer needed because the Outlook bug display/resolve is solved when you are fully updated. The reason why you need to display first (when bug is present) is that the resolve does not work when the message is hidden. Resolving the recipients will check if all e-mailaddresses are correct formatted and or exisisting in the contacts. Please also note that if the user has a E-mail footer it will disapear when simply dooing .body = "message" You need to store the body from the newly created mailitem and add it afterwards. Because Outlook is using by default, and most people do, HTML based e-mail you need to work with the .HTMLbody instead of the .body. If you mix both you gonna get some mish mash body :-) Hope this helps Greets -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Tuesday, February 20, 2007 1:58 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Automating email Hi David - I only use the .Display option in my apps so that the users can add some text to the email if they want to before it is sent, but .send WILL send the email depending on their Outlook preferences. ie. if they have [tools] [options] [mail delivery] 'Send immediately when connected' turned on, then yes, it will send. I haven;t found any way of that email not going into sent items though. Kath ----- Original Message ----- From: David Emerson To: accessd at databaseadvisors.com Sent: Tuesday, February 20, 2007 11:31 AM Subject: [AccessD] Automating email Group, I have the following code to create an email message: Public Function basSendEmail() Dim outApp As Outlook.Application, outMsg As MailItem Set outApp = CreateObject("Outlook.Application") Set outMsg = outApp.CreateItem(olMailItem) With outMsg .To = "newsgrps at dalyn.co.nz" .Subject = "Test egas email" .Body = "Test message" .Send End With Set outApp = Nothing Set outMsg = Nothing End Function This works fine but only puts the message into my Outlook outbox - it doesn't send it. This may be because although I have outlook installed I do not use it (and it has not been set up). However, my clients use outlook. Will the above code automatically send out emails? Another question - My client would prefer not to have copies in their outbox of the email being sent out (ultimately it will be to email out accounts and they don't want thousands of emails generated each month). Is there a way for the messages not to appear in outlook? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Feb 20 04:30:37 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 20 Feb 2007 11:30:37 +0100 Subject: [AccessD] Join expression not supported Message-ID: Hi Chester Maybe Well_Number is not a string? Thus: LEFT JOIN ConfigMaster ON Right([ConfigMaster].[PID],Len([ConfigMaster].[PID])-4))= CStr(dbo_DSS_CompletionMaster.Well_Number) /gustav >>> Chester_Kaup at kindermorgan.com 19-02-2007 18:30:05 >>> I an getting a join expression not supported error from the following query. I am not seeing the problem. Thanks SELECT dbo_DSS_CompletionMaster.PID, Right(ConfigMaster.PID,Len(ConfigMaster.PID)-4) AS WellName FROM ConfigMaster, dbo_DSS_CompletionMaster LEFT JOIN ConfigMaster ON Right([ConfigMaster].[PID],Len([ConfigMaster].[PID])-4))= dbo_DSS_CompletionMaster.Well_Number WHERE (((ConfigMaster.PID) Like "PAT*") AND ((Right([ConfigMaster].[PID],Len([ConfigMaster].[PID])-4)) Not Like "*GAP") GROUP BY dbo_DSS_CompletionMaster.PID, Right(ConfigMaster.PID,Len(ConfigMaster.PID)-4); Chester Kaup From Gustav at cactus.dk Tue Feb 20 06:06:35 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 20 Feb 2007 13:06:35 +0100 Subject: [AccessD] Missing references Message-ID: Hi Shamil Great site! Lots of info if you browse a little and many valuable links. /gustav >>> shamil at users.mns.ru 19-02-2007 22:03:46 >>> Hi Everyone, Please have a look here: http://www.fredshack.com/docs/com.html << - Objects can be accessed in two modes: Early bound (the EXE can compile direct function calls by looking up the address of the method in the vtable array of pointers to functions), or late bound (the EXE go through the IDispatch interface to locate functions). Early binding is recommended for performance reasons, since calls are made directly to the ad hoc interface, while with late binding, calls are made through the IDispatch interface which can determine the methods and properties of the object at runtime. - Marshaling is the process of collecting the necessary information for an EXE to call a COM object that lives outside of the memory space of the calling EXE, since 32-bit versions of Windows keep the two processes separate - Marshaling isn't required if the COM server lives in the same address space as the calling EXE, but is required if the COM server is itself an EXE, and, thus, lives in a different address space. The COM EXE can run on either the same computer as the caller EXE, or on a remote computer, in which case the technology called Distributed Component Object Model (DCOM) is used - In Visual Basic you can implement early binding by adding a reference to an object via the references dialog box, then declaring a variable using the specific object type instead of As Object. This can substantially reduce the time it takes to access methods and properties in the object - Late binding occurs in Visual Basic when you dimension an object variable to be As Object. An object variable can hold any type of object. Since the variable can reference any object and must support whatever methods or properties that object may implement, it clearly can have no way of knowing until runtime what those methods and properties may be. Without late binding and the IDispatch Interface, the As Object type of variable would not be possible - OLE Automation ("Automation" for short) is the late-bound way of calling an object, and thus, relies on the existence of an IDispatch for this interface - The IDispatch interface consists of the following functions: GetTypeInfoCount(), GetTypeInfo(), GetIDsOfNames(), Invoke() Each method or property supported by an interface has a dispatch ID - a number that identifies that method or property. Thus, while each method has its own dispatch ID, the function to set a property and the function to retrieve that same property will share the same dispatch ID >> -- Shamil From BarbaraRyan at cox.net Tue Feb 20 06:42:17 2007 From: BarbaraRyan at cox.net (Barbara Ryan) Date: Tue, 20 Feb 2007 07:42:17 -0500 Subject: [AccessD] Code Library, Sample Database, Etc. Message-ID: <007701c754ec$8eafcf10$0a00a8c0@PCRURI35> I have been using DAO in my Access databases but now am trying to learn ADO. I have found "snippets" of code on various websites, but was hoping to find a sample database showing how to "tie it all together". In your opinion, what is the best "Best Access Practices" list? (e.g., white papers, etc.) If anyone has a "code library" that they would like to share, I would be more than happy to see it! I have learned SO much from all of you --- even if many of the discussions have been "over my head" ---- Thanks! Thanks! Barb Ryan From jimdettman at verizon.net Tue Feb 20 09:11:23 2007 From: jimdettman at verizon.net (Jim Dettman) Date: Tue, 20 Feb 2007 10:11:23 -0500 Subject: [AccessD] Missing references In-Reply-To: <003201c75469$72a406c0$6401a8c0@nant> References: <000a01c75447$b7761990$657aa8c0@m6805> <003201c75469$72a406c0$6401a8c0@nant> Message-ID: <001401c75501$634c9500$8abea8c0@XPS> Shamil, <> Thanks for that site. I tried hunting for a bit yesterday to find something that specifically stated that when you create an object with a SET statement, the only thing that happens is that you get a pointer to the COM object. The above statement from the site you pointed out states exactly that. It's as I remembered it; each property/method reference must make a call to lookup the functions address. Those may be cached somewhere, but the calls are made each and every time. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Monday, February 19, 2007 4:04 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references Hi Everyone, Please have a look here: http://www.fredshack.com/docs/com.html << - Objects can be accessed in two modes: Early bound (the EXE can compile direct function calls by looking up the address of the method in the vtable array of pointers to functions), or late bound (the EXE go through the IDispatch interface to locate functions). Early binding is recommended for performance reasons, since calls are made directly to the ad hoc interface, while with late binding, calls are made through the IDispatch interface which can determine the methods and properties of the object at runtime. - Marshaling is the process of collecting the necessary information for an EXE to call a COM object that lives outside of the memory space of the calling EXE, since 32-bit versions of Windows keep the two processes separate - Marshaling isn't required if the COM server lives in the same address space as the calling EXE, but is required if the COM server is itself an EXE, and, thus, lives in a different address space. The COM EXE can run on either the same computer as the caller EXE, or on a remote computer, in which case the technology called Distributed Component Object Model (DCOM) is used - In Visual Basic you can implement early binding by adding a reference to an object via the references dialog box, then declaring a variable using the specific object type instead of As Object. This can substantially reduce the time it takes to access methods and properties in the object - Late binding occurs in Visual Basic when you dimension an object variable to be As Object. An object variable can hold any type of object. Since the variable can reference any object and must support whatever methods or properties that object may implement, it clearly can have no way of knowing until runtime what those methods and properties may be. Without late binding and the IDispatch Interface, the As Object type of variable would not be possible - OLE Automation ("Automation" for short) is the late-bound way of calling an object, and thus, relies on the existence of an IDispatch for this interface - The IDispatch interface consists of the following functions: GetTypeInfoCount(), GetTypeInfo(), GetIDsOfNames(), Invoke() Each method or property supported by an interface has a dispatch ID - a number that identifies that method or property. Thus, while each method has its own dispatch ID, the function to set a property and the function to retrieve that same property will share the same dispatch ID >> -- Shamil -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Tue Feb 20 09:28:27 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 20 Feb 2007 15:28:27 +0000 Subject: [AccessD] combo from multiple sources In-Reply-To: <001a01c75473$83a80f70$fcb82ad1@SUSANONE> Message-ID: I'm originally from Lafayette, LA...and last month a good friend called for a favor, for her friend, who happened to be a cop. The favor was Access Related(go figure)...so I looked at the db she was working on. She had done well with how the form looked and had most of the fields needed in some table somewhere...but 1 PK for all the tables...and it didn't play well with itself. After hearing how they got to this point(here's a little history): This is to track arrests, drugs, and weapons. Right now they write it down in a notebook...and then go through the book and count the points of interest to report up. They have no budget...so she was trying to build it herself. The officers take up a collection each week to have their 'Port-O-Jon" emptied. This kinda ticked me off. I mean how long has it been...and the cops have to pay for their own toilet? What other service is local government supposed to be providing, but can't because of lack of equipment/software? How does social services know they need to go check on little mary or bobby to make sure their getting fed??? Anyway, they just wanted a little 'shove' in the right direction with the db...but it seemed more like pushing them off a cliff...so I built the data model, all of the forms, and the logic needed to get the reports at the end...and some reports...but I left the db open for her to change the labels, colors, whatever...and to write additional queries as needed. I couldn't charge them. OK>>>Stepping down from podium<<<<< Sorry about the rant... At one point I wanted to show every name associated with a case in a combo to identify which name was used. This included alias's which were in a different table. So I needed data displayed from 2 different tables...and I just used a UNION query as the source. Does this address your question? Thanks, Mark A. Matte >From: "Susan Harkins" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] combo from multiple sources >Date: Mon, 19 Feb 2007 17:15:49 -0500 > > >I recently built, and donated, a db for the New Orleans Police department. >One aspect was suspect info. I had to create another section to accomodate >multiple aliases. I could have used a combo to list names from both >tables...I ended up using a more detailed form to search...but a combo to >list names and aliases could have been used...I would have just used a >UNION > >query as the source. > >===========Donated? You're a good guy. Bill spent a few weeks down there >right after Katrina and he promised a few of the cops that we'd come back >for a vacation and spend money. ;) > >So, if you created such a combo, what would you use it for? > >Susan H. > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Find a local pizza place, movie theater, and more?.then map the best route! http://maps.live.com/?icid=hmtag1&FORM=MGAC01 From ssharkins at setel.com Tue Feb 20 10:01:53 2007 From: ssharkins at setel.com (Susan Harkins) Date: Tue, 20 Feb 2007 11:01:53 -0500 Subject: [AccessD] combo from multiple sources In-Reply-To: Message-ID: <001a01c75508$73635ee0$3432fad1@SUSANONE> At one point I wanted to show every name associated with a case in a combo to identify which name was used. This included alias's which were in a different table. So I needed data displayed from 2 different tables...and I just used a UNION query as the source. Does this address your question? ==========About the rant? Nicely done. :) As for the combo box -- it would be for display? You weren't using it to filter other data? Sounds like an interesting project btw. :) Susan H. From artful at rogers.com Tue Feb 20 10:35:47 2007 From: artful at rogers.com (artful at rogers.com) Date: Tue, 20 Feb 2007 08:35:47 -0800 (PST) Subject: [AccessD] combo from multiple sources Message-ID: <400911.58344.qm@web88208.mail.re2.yahoo.com> Personally, I wouldn't keep the aliases in a separate table, for exactly one reason. Suppose that during my criminal career I had the following aliases: Arthur Harkins Arthur Hindman Alphonse Carbonnell Arthur W Colby Arthur G Brock Arturo Francisco Tapia etc. Presumably all these are tied to the birthname of the malfeasant Arthur Fuller. I would keep them all in a single table, with a column in it called OriginalPK, that was based on some unique identifier such as SSN or SIN (in Canada). For police applications, I think this is permitted. At any rate, I don't care that Arthur Hindman uses the alias Arthur Colby; what I care about is that Arthur Fuller has many aliases. This could be achieved with separate tables, but I don't really see the advantage to doing so. There is also the (potential) issue that the miscreant in question stopped using a particular alias at some point. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Susan Harkins To: Access Developers discussion and problem solving Sent: Tuesday, February 20, 2007 11:01:53 AM Subject: Re: [AccessD] combo from multiple sources At one point I wanted to show every name associated with a case in a combo to identify which name was used. This included alias's which were in a different table. So I needed data displayed from 2 different tables...and I just used a UNION query as the source. Does this address your question? ==========About the rant? Nicely done. :) As for the combo box -- it would be for display? You weren't using it to filter other data? Sounds like an interesting project btw. :) 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 Feb 20 10:56:38 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 20 Feb 2007 08:56:38 -0800 Subject: [AccessD] Code Library, Sample Database, Etc. In-Reply-To: <007701c754ec$8eafcf10$0a00a8c0@PCRURI35> References: <007701c754ec$8eafcf10$0a00a8c0@PCRURI35> Message-ID: I have several sample databases on Rogers' Access site that use ADO. http://www.rogersaccesslibrary.com/OtherLibraries.asp#Foust,%20Charlotte There were several books published by Wrox that covered ADO 2.5, but I haven't kept up with later publications. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Barbara Ryan Sent: Tuesday, February 20, 2007 4:42 AM To: Access List Subject: [AccessD] Code Library, Sample Database, Etc. I have been using DAO in my Access databases but now am trying to learn ADO. I have found "snippets" of code on various websites, but was hoping to find a sample database showing how to "tie it all together". In your opinion, what is the best "Best Access Practices" list? (e.g., white papers, etc.) If anyone has a "code library" that they would like to share, I would be more than happy to see it! I have learned SO much from all of you --- even if many of the discussions have been "over my head" ---- Thanks! Thanks! Barb Ryan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Tue Feb 20 11:00:02 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 20 Feb 2007 11:00:02 -0600 Subject: [AccessD] Code Library, Sample Database, Etc. In-Reply-To: <007701c754ec$8eafcf10$0a00a8c0@PCRURI35> Message-ID: ADO is very similar to DAO, here's the big differences: Connecting. In DAO, you have to create a workspace, then a database, then connect with a recordset, so you have three objects you are dealing with. In Access, you can just use CurrentDB, which already has it's own workspace. In ADO, you have a connection object then a recordset object. Just connect the connection object and you're off and running. The nice thing is that ADO can connect to all sorts of stuff, text files, excel files, word docs, .mdbs, ODBC connections, etc. One trick when dealing with Access, use the following: Function DBConnect(byref cnn as ADODB.Connection) Set cnn=new ADODB.Connection Cnn.provider="Microsoft.Jet.OLEDB.4.0" Cnn.Open "PathToYourDatabase" End function Almost every one of my projects uses the above function. Most of them have the db path hardcoded as I show above. When working within Access, you don't need to create a connection object, just use CurrentProject.Connection Wildcards. ADO doesn't use * (or the other wildcard symbols). In ADO, you use %. Which can be confusing within Access, because the querries in access will use *, but running SQL against an ADO recordset will require %. Recordset types. When opening a recordset, you have to set the cursor type and the lock type. Personally I use adOpenKeyset for ALL of my recordsets, and then adLockOptimistic or adLockReadOnly (if you only need to read data, it's better to only put a read lock on the recordset). Directly to a table. In ADO, if you are going to just open a table, instead of opening an SQL statement, at the end, you add adcmdTableDirect. Our old version of Oracle requires that even with an SQL statement. Go figure. There's obviously more to learn with ADO, but these are the biggies, IMO. Once these are under your belt, you'll find ADO to be just as easy as using DAO (sometimes easier). On connecting to different datasources, I used to have a website in my favorites that listed a ton of connection strings and provider strings, I looked, it's not there anymore.... sorry. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Barbara Ryan Sent: Tuesday, February 20, 2007 6:42 AM To: Access List Subject: [AccessD] Code Library, Sample Database, Etc. I have been using DAO in my Access databases but now am trying to learn ADO. I have found "snippets" of code on various websites, but was hoping to find a sample database showing how to "tie it all together". In your opinion, what is the best "Best Access Practices" list? (e.g., white papers, etc.) If anyone has a "code library" that they would like to share, I would be more than happy to see it! I have learned SO much from all of you --- even if many of the discussions have been "over my head" ---- Thanks! Thanks! Barb Ryan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Tue Feb 20 11:06:15 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 20 Feb 2007 11:06:15 -0600 Subject: [AccessD] combo from multiple sources In-Reply-To: <400911.58344.qm@web88208.mail.re2.yahoo.com> Message-ID: Right, but it is a potential many to many. Ie, There may be an Arthur Harkins by birth, and one by alias, there also may be 2 different people that both use Arthur Colby as an alias. So your people table would have every person listed once, your alias table would have every Alias name listed once (regardless of how many people go by Arthur Colby, or John Doe). Then you'd have a many to many table, one column being the ID of the people table, and the other the ID from the alias table. When they need to find Alphonse Cabonnell, the query would be a UNION query between the name field of the people table, and the join of the alias/many to many table. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Tuesday, February 20, 2007 10:36 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] combo from multiple sources Personally, I wouldn't keep the aliases in a separate table, for exactly one reason. Suppose that during my criminal career I had the following aliases: Arthur Harkins Arthur Hindman Alphonse Carbonnell Arthur W Colby Arthur G Brock Arturo Francisco Tapia etc. Presumably all these are tied to the birthname of the malfeasant Arthur Fuller. I would keep them all in a single table, with a column in it called OriginalPK, that was based on some unique identifier such as SSN or SIN (in Canada). For police applications, I think this is permitted. At any rate, I don't care that Arthur Hindman uses the alias Arthur Colby; what I care about is that Arthur Fuller has many aliases. This could be achieved with separate tables, but I don't really see the advantage to doing so. There is also the (potential) issue that the miscreant in question stopped using a particular alias at some point. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Susan Harkins To: Access Developers discussion and problem solving Sent: Tuesday, February 20, 2007 11:01:53 AM Subject: Re: [AccessD] combo from multiple sources At one point I wanted to show every name associated with a case in a combo to identify which name was used. This included alias's which were in a different table. So I needed data displayed from 2 different tables...and I just used a UNION query as the source. Does this address your question? ==========About the rant? Nicely done. :) As for the combo box -- it would be for display? You weren't using it to filter other data? Sounds like an interesting project btw. :) 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 cfoust at infostatsystems.com Tue Feb 20 11:11:07 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 20 Feb 2007 09:11:07 -0800 Subject: [AccessD] Code Library, Sample Database, Etc. In-Reply-To: References: <007701c754ec$8eafcf10$0a00a8c0@PCRURI35> Message-ID: One HUGE difference is that the object model of ADO contains relatively few objects, unlike DAO which contains a ton of them. ADO is like a Swiss Army Knife! You can do just about everything you can with a sophisticated toolkit, but you have to be more creative in doing so. LOL Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, February 20, 2007 8:57 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Library, Sample Database, Etc. I have several sample databases on Rogers' Access site that use ADO. http://www.rogersaccesslibrary.com/OtherLibraries.asp#Foust,%20Charlotte There were several books published by Wrox that covered ADO 2.5, but I haven't kept up with later publications. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Barbara Ryan Sent: Tuesday, February 20, 2007 4:42 AM To: Access List Subject: [AccessD] Code Library, Sample Database, Etc. I have been using DAO in my Access databases but now am trying to learn ADO. I have found "snippets" of code on various websites, but was hoping to find a sample database showing how to "tie it all together". In your opinion, what is the best "Best Access Practices" list? (e.g., white papers, etc.) If anyone has a "code library" that they would like to share, I would be more than happy to see it! I have learned SO much from all of you --- even if many of the discussions have been "over my head" ---- Thanks! Thanks! Barb Ryan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Tue Feb 20 11:44:19 2007 From: artful at rogers.com (artful at rogers.com) Date: Tue, 20 Feb 2007 09:44:19 -0800 (PST) Subject: [AccessD] Code Library, Sample Database, Etc. Message-ID: <898630.97480.qm@web88201.mail.re2.yahoo.com> Well phrased, Charlotte. The moment I saw the ADO model I dumped DAO and have seldom looked back. Arthur ----- Original Message ---- From: Charlotte Foust To: Access Developers discussion and problem solving Sent: Tuesday, February 20, 2007 12:11:07 PM Subject: Re: [AccessD] Code Library, Sample Database, Etc. One HUGE difference is that the object model of ADO contains relatively few objects, unlike DAO which contains a ton of them. ADO is like a Swiss Army Knife! You can do just about everything you can with a sophisticated toolkit, but you have to be more creative in doing so. LOL Charlotte From mmattys at rochester.rr.com Tue Feb 20 12:06:03 2007 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Tue, 20 Feb 2007 13:06:03 -0500 Subject: [AccessD] combo from multiple sources References: Message-ID: <005101c75519$d11c88c0$0202a8c0@default> Hi Mark, If those folks can use a wall map, they can download the map of New Orleans here: http://www.mattysconsulting.com/GalleryFrameset.htm I made a map of each state also (click on North America) and the click the image-map for Louisiana. Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "Mark A Matte" To: Sent: Tuesday, February 20, 2007 10:28 AM Subject: Re: [AccessD] combo from multiple sources > I'm originally from Lafayette, LA...and last month a good friend called > for > a favor, for her friend, who happened to be a cop. The favor was Access > Related(go figure)...so I looked at the db she was working on. She had > done > well with how the form looked and had most of the fields needed in some > table somewhere...but 1 PK for all the tables...and it didn't play well > with > itself. > > After hearing how they got to this point(here's a little history): This > is > to track arrests, drugs, and weapons. Right now they write it down in a > notebook...and then go through the book and count the points of interest > to > report up. They have no budget...so she was trying to build it herself. > The officers take up a collection each week to have their 'Port-O-Jon" > emptied. > > This kinda ticked me off. I mean how long has it been...and the cops have > to pay for their own toilet? What other service is local government > supposed to be providing, but can't because of lack of equipment/software? > How does social services know they need to go check on little mary or > bobby > to make sure their getting fed??? > > > Anyway, they just wanted a little 'shove' in the right direction with the > db...but it seemed more like pushing them off a cliff...so I built the > data > model, all of the forms, and the logic needed to get the reports at the > end...and some reports...but I left the db open for her to change the > labels, colors, whatever...and to write additional queries as needed. > > I couldn't charge them. OK>>>Stepping down from podium<<<<< > > Sorry about the rant... > > At one point I wanted to show every name associated with a case in a combo > to identify which name was used. This included alias's which were in a > different table. So I needed data displayed from 2 different tables...and > I > just used a UNION query as the source. > > Does this address your question? > > Thanks, > > Mark A. Matte From BarbaraRyan at cox.net Tue Feb 20 12:04:57 2007 From: BarbaraRyan at cox.net (Barbara Ryan) Date: Tue, 20 Feb 2007 13:04:57 -0500 Subject: [AccessD] Code Library, Sample Database, Etc. References: <898630.97480.qm@web88201.mail.re2.yahoo.com> Message-ID: <016001c75519$a1d913d0$0a00a8c0@PCRURI35> Thanks for the help! ....and I will check out your databases, Charlotte. Looks like there's LOTS of good stuff on Roger's site....Barb ----- Original Message ----- From: To: "Access Developers discussion and problem solving" Sent: Tuesday, February 20, 2007 12:44 PM Subject: Re: [AccessD] Code Library, Sample Database, Etc. > Well phrased, Charlotte. The moment I saw the ADO model I dumped DAO and > have seldom looked back. > > > Arthur > > > > ----- Original Message ---- > From: Charlotte Foust > To: Access Developers discussion and problem solving > > Sent: Tuesday, February 20, 2007 12:11:07 PM > Subject: Re: [AccessD] Code Library, Sample Database, Etc. > > > One HUGE difference is that the object model of ADO contains relatively > few objects, unlike DAO which contains a ton of them. ADO is like a > Swiss Army Knife! You can do just about everything you can with a > sophisticated toolkit, but you have to be more creative in doing so. LOL > > Charlotte > -- > 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 Feb 20 12:03:38 2007 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Tue, 20 Feb 2007 12:03:38 -0600 Subject: [AccessD] OT: Batch File variable In-Reply-To: References: Message-ID: <200702201805.l1KI5Zi04072@databaseadvisors.com> Take a look at WinBatch to do this kind of stuff. I believe you can pass the year and month into the batch file created with it. Robert At 12:00 PM 2/20/2007, you wrote: >Date: Tue, 20 Feb 2007 12:26:42 +1100 >From: "Darren DICK" >Subject: [AccessD] OT: Batch File variable >To: "'Access Developers discussion and problem solving'" > >Message-ID: <200702200126.l1K1Qki13686 at databaseadvisors.com> >Content-Type: text/plain; charset="us-ascii" > >Hi All > > > >I realise this is OT so please respond off list to darrend at nimble.com.au > > > >I have many lines in a batch file - just moves downloaded local files to a >network drive - simple > > > >The folders on the network drives are divided in to Current Year and Current >Month > > > >EG \\SomeServer\SomeCoolFolder\SomeCoolFileFolder\200702 > - >For Feb this >year - Rocket Science 'eh? > > > >On my local machine the files are stored in the second lowest level > >EG \\SomeServer\SomeCoolFolder\SomeCoolFileFilder > - IE = without the >Year Month > > > >At the beginning of each month I edit the Month (in this case 200702) in the >batch file - many lines and is a real PITA if I stuff it up > > > >Is there a way to declare a variable in a batch file? > > > >EG varMonthYear = 200702 and then just 'tack' that to the end > >EG \\SomeServer\SomeCoolFolder\SomeCoolFileFilder\ > & varmonthYear > > > >That way I only have to edit the variable > > > >I realise this is OT so feel free to respond off list please to >darrend at nimble.com.au > > > >Many thanks > > > >See ya > > > >Darren From rl_stewart at highstream.net Tue Feb 20 12:09:06 2007 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Tue, 20 Feb 2007 12:09:06 -0600 Subject: [AccessD] Code Library, Sample Database, Etc. In-Reply-To: References: Message-ID: <200702201810.l1KIAXi06195@databaseadvisors.com> Barb, I think the only way to completely "tie it all together" is to use SQL Server and an ADP. Behind the forms and such it s completely ADO. MDEs are not if you use a bound form. Robert P.S. Besides, I would never use Access for the database any way. SQL Server is much better at storing it and being stable. At 12:00 PM 2/20/2007, you wrote: >Date: Tue, 20 Feb 2007 07:42:17 -0500 >From: "Barbara Ryan" >Subject: [AccessD] Code Library, Sample Database, Etc. >To: "Access List" >Message-ID: <007701c754ec$8eafcf10$0a00a8c0 at PCRURI35> >Content-Type: text/plain; charset="iso-8859-1" > >I have been using DAO in my Access databases but now am trying to >learn ADO. I have found "snippets" of code on various websites, but >was hoping to find a sample database showing how to "tie it all together". > >In your opinion, what is the best "Best Access Practices" >list? (e.g., white papers, etc.) > >If anyone has a "code library" that they would like to share, I >would be more than happy to see it! > >I have learned SO much from all of you --- even if many of the >discussions have been "over my head" ---- Thanks! > >Thanks! >Barb Ryan From artful at rogers.com Tue Feb 20 12:21:36 2007 From: artful at rogers.com (artful at rogers.com) Date: Tue, 20 Feb 2007 10:21:36 -0800 (PST) Subject: [AccessD] combo from multiple sources Message-ID: <20070220182137.69482.qmail@web88210.mail.re2.yahoo.com> So you're the mastermind behind Google Maps? ----- Original Message ---- From: Michael R Mattys To: Access Developers discussion and problem solving Sent: Tuesday, February 20, 2007 1:06:03 PM Subject: Re: [AccessD] combo from multiple sources Hi Mark, If those folks can use a wall map, they can download the map of New Orleans here: http://www.mattysconsulting.com/GalleryFrameset.htm I made a map of each state also (click on North America) and the click the image-map for Louisiana. Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com From markamatte at hotmail.com Tue Feb 20 12:28:42 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 20 Feb 2007 18:28:42 +0000 Subject: [AccessD] combo from multiple sources In-Reply-To: <001a01c75508$73635ee0$3432fad1@SUSANONE> Message-ID: >==========About the rant? Nicely done. :) Thank you... >As for the combo box -- it would be for display? You weren't using it to >filter other data? Sounds like an interesting project btw. :) We changed the approach and didn't need it...but the names and aliases were related via a Person_ID...and the combo wasn't just for viewing...it was to select what name was used at that time. The db maintains all suspect info for lookup later...so if Bob Menard(his real name) was arrested and used the alias( John Boudreaux). He may have had 3 other known aliases. On the case the Person_ID would be used and the name Bob Menard shows...the combo comes in when they wanted to know what alias was used in this instance(but he could have used his real name). We didn't use it in the end...but this was the reason why. I probably would have structured the tables differently...but being short on time...it was the quickest fix storing aliases in different tables than the names. Thanks, Mark A. Matte >From: "Susan Harkins" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] combo from multiple sources >Date: Tue, 20 Feb 2007 11:01:53 -0500 > >At one point I wanted to show every name associated with a case in a combo >to identify which name was used. This included alias's which were in a >different table. So I needed data displayed from 2 different tables...and >I > >just used a UNION query as the source. > >Does this address your question? > >==========About the rant? Nicely done. :) > >As for the combo box -- it would be for display? You weren't using it to >filter other data? Sounds like an interesting project btw. :) > >Susan H. > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Find what you need at prices you?ll love. Compare products and save at MSN? Shopping. http://shopping.msn.com/default/shp/?ptnrid=37,ptnrdata=24102&tcode=T001MSN20A0701 From artful at rogers.com Tue Feb 20 12:31:27 2007 From: artful at rogers.com (artful at rogers.com) Date: Tue, 20 Feb 2007 10:31:27 -0800 (PST) Subject: [AccessD] CodeLib Message-ID: <20070220183128.22951.qmail@web88204.mail.re2.yahoo.com> I think that my copy of CodeLib came with my installation of VS Studio 6, but I may have installed more recent updates. The salient question is, is this freely downloadable from any MS site, or must one install VS6 in order to use it? Arthur Fuller Technical Writer, Data Modeler, SQL Sensei www.artfulsoftware.com From markamatte at hotmail.com Tue Feb 20 12:32:48 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 20 Feb 2007 18:32:48 +0000 Subject: [AccessD] combo from multiple sources In-Reply-To: <005101c75519$d11c88c0$0202a8c0@default> Message-ID: Thanks Michael, I think they have that covered...but i will forward it on. Thanks, Mark A. Matte >From: "Michael R Mattys" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] combo from multiple sources >Date: Tue, 20 Feb 2007 13:06:03 -0500 > >Hi Mark, > >If those folks can use a wall map, they can download the >map of New Orleans here: >http://www.mattysconsulting.com/GalleryFrameset.htm > >I made a map of each state also (click on North America) >and the click the image-map for Louisiana. > >Michael R. Mattys >MapPoint & Access Dev >www.mattysconsulting.com > >----- Original Message ----- >From: "Mark A Matte" >To: >Sent: Tuesday, February 20, 2007 10:28 AM >Subject: Re: [AccessD] combo from multiple sources > > > > I'm originally from Lafayette, LA...and last month a good friend called > > for > > a favor, for her friend, who happened to be a cop. The favor was Access > > Related(go figure)...so I looked at the db she was working on. She had > > done > > well with how the form looked and had most of the fields needed in some > > table somewhere...but 1 PK for all the tables...and it didn't play well > > with > > itself. > > > > After hearing how they got to this point(here's a little history): This > > is > > to track arrests, drugs, and weapons. Right now they write it down in a > > notebook...and then go through the book and count the points of interest > > to > > report up. They have no budget...so she was trying to build it herself. > > The officers take up a collection each week to have their 'Port-O-Jon" > > emptied. > > > > This kinda ticked me off. I mean how long has it been...and the cops >have > > to pay for their own toilet? What other service is local government > > supposed to be providing, but can't because of lack of >equipment/software? > > How does social services know they need to go check on little mary or > > bobby > > to make sure their getting fed??? > > > > > > Anyway, they just wanted a little 'shove' in the right direction with >the > > db...but it seemed more like pushing them off a cliff...so I built the > > data > > model, all of the forms, and the logic needed to get the reports at the > > end...and some reports...but I left the db open for her to change the > > labels, colors, whatever...and to write additional queries as needed. > > > > I couldn't charge them. OK>>>Stepping down from podium<<<<< > > > > Sorry about the rant... > > > > At one point I wanted to show every name associated with a case in a >combo > > to identify which name was used. This included alias's which were in a > > different table. So I needed data displayed from 2 different >tables...and > > I > > just used a UNION query as the source. > > > > Does this address your question? > > > > Thanks, > > > > Mark A. Matte > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Find a local pizza place, movie theater, and more?.then map the best route! http://maps.live.com/?icid=hmtag1&FORM=MGAC01 From newsgrps at dalyn.co.nz Tue Feb 20 12:38:21 2007 From: newsgrps at dalyn.co.nz (David Emerson) Date: Wed, 21 Feb 2007 07:38:21 +1300 Subject: [AccessD] Automating email In-Reply-To: <005201c7548a$1e9d8c10$6401a8c0@office> References: <20070220004505.YMFB25916.fep04.xtra.co.nz@Dalyn.dalyn.co.nz> <005201c7548a$1e9d8c10$6401a8c0@office> Message-ID: <20070220183803.KUO26198.fep06.xtra.co.nz@Dalyn.dalyn.co.nz> Thanks Kath and Erwin, I eventually found some code that doesn't rely on outlook but uses another file called CDOEx.dll. It doesn't leave any items in outlook. In references you need to set the reference to Microsoft CDO for Exchange 2000 Library Public Function SendCdoMsg() On Error GoTo Err_SendCdoMsg Dim msg As Message Set msg = CreateObject("CDO.Message") With msg With .Configuration.Fields .Item(cdoSMTPAuthenticate) = cdoAnonymous .Item(cdoSendUsingMethod) = cdoSendUsingPort .Item(cdoSMTPServer) = "smtp.xtra.co.nz" .Item(cdoSMTPConnectionTimeout) = 10 .Item(cdoSMTPServerPort) = 25 .Update End With .Organization = "my" .To = "you at yourprovider" .Subject = "Example subject" .TextBody = "Example body" .From = "me at myprovider" .AddAttachment ("d:\aaaatemp\accarch135.zip") .Send End With Set msg = Nothing Exit_SendCdoMsg: Exit Function Err_SendCdoMsg: Select Case Err Case 0 MsgBox "0 error", vbCritical, "Error heading" Case Else Call basErrorMsg("SendCdoMsg") End Select Resume Exit_SendCdoMsg End Function At 20/02/2007, you wrote: >Hi David - I only use the .Display option in my apps so that the >users can add some text to the email if they want to before it is >sent, but .send WILL send the email depending on their Outlook preferences. > >ie. if they have [tools] [options] [mail delivery] 'Send immediately >when connected' turned on, then yes, it will send. > >I haven;t found any way of that email not going into sent items though. > >Kath > > ----- Original Message ----- > From: David Emerson > To: accessd at databaseadvisors.com > Sent: Tuesday, February 20, 2007 11:31 AM > Subject: [AccessD] Automating email > > > Group, > > I have the following code to create an email message: > > Public Function basSendEmail() > > Dim outApp As Outlook.Application, outMsg As MailItem > > Set outApp = CreateObject("Outlook.Application") > Set outMsg = outApp.CreateItem(olMailItem) > > With outMsg > .To = "newsgrps at dalyn.co.nz" > .Subject = "Test egas email" > .Body = "Test message" > .Send > End With > > Set outApp = Nothing > Set outMsg = Nothing > > End Function > > This works fine but only puts the message into my Outlook outbox - it > doesn't send it. This may be because although I have outlook > installed I do not use it (and it has not been set up). > > However, my clients use outlook. Will the above code automatically > send out emails? > > Another question - My client would prefer not to have copies in their > outbox of the email being sent out (ultimately it will be to email > out accounts and they don't want thousands of emails generated each > month). Is there a way for the messages not to appear in outlook? > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Feb 20 12:38:37 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 20 Feb 2007 10:38:37 -0800 Subject: [AccessD] Code Library, Sample Database, Etc. In-Reply-To: <200702201810.l1KIAXi06195@databaseadvisors.com> References: <200702201810.l1KIAXi06195@databaseadvisors.com> Message-ID: >>P.S. Besides, I would never use Access for the database any way. SQL Server is much better at storing it and being stable. Heresy!! Get out the boiling oil! LOL Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Tuesday, February 20, 2007 10:09 AM To: accessd at databaseadvisors.com Cc: BarbaraRyan at cox.net Subject: Re: [AccessD] Code Library, Sample Database, Etc. Barb, I think the only way to completely "tie it all together" is to use SQL Server and an ADP. Behind the forms and such it s completely ADO. MDEs are not if you use a bound form. Robert P.S. Besides, I would never use Access for the database any way. SQL Server is much better at storing it and being stable. From artful at rogers.com Tue Feb 20 12:41:15 2007 From: artful at rogers.com (artful at rogers.com) Date: Tue, 20 Feb 2007 10:41:15 -0800 (PST) Subject: [AccessD] Code Library, Sample Database, Etc. Message-ID: <192199.96210.qm@web88202.mail.re2.yahoo.com> While I agree with you, I also fear that you will be flamed from numerous devotees to the MDB BE concept. I have my flame extinguisher ready in case you need it. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Robert L. Stewart To: accessd at databaseadvisors.com Cc: BarbaraRyan at cox.net Sent: Tuesday, February 20, 2007 1:09:06 PM Subject: Re: [AccessD] Code Library, Sample Database, Etc. Barb, I think the only way to completely "tie it all together" is to use SQL Server and an ADP. Behind the forms and such it s completely ADO. MDEs are not if you use a bound form. Robert P.S. Besides, I would never use Access for the database any way. SQL Server is much better at storing it and being stable. From mmattys at rochester.rr.com Tue Feb 20 12:44:40 2007 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Tue, 20 Feb 2007 13:44:40 -0500 Subject: [AccessD] combo from multiple sources References: <20070220182137.69482.qmail@web88210.mail.re2.yahoo.com> Message-ID: <008601c7551f$313bd3a0$0202a8c0@default> Hi Arthur, No ... :) Anyway, that's Microsoft MapPoint / Street & Trips. I'm just making my website galleries. Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: To: "Access Developers discussion and problem solving" Sent: Tuesday, February 20, 2007 1:21 PM Subject: Re: [AccessD] combo from multiple sources > So you're the mastermind behind Google Maps? > ----- Original Message ---- > From: Michael R Mattys > To: Access Developers discussion and problem solving > > Sent: Tuesday, February 20, 2007 1:06:03 PM > Subject: Re: [AccessD] combo from multiple sources > > > Hi Mark, > > If those folks can use a wall map, they can download the > map of New Orleans here: > http://www.mattysconsulting.com/GalleryFrameset.htm > > I made a map of each state also (click on North America) > and the click the image-map for Louisiana. > > Michael R. Mattys > MapPoint & Access Dev > www.mattysconsulting.com From cfoust at infostatsystems.com Tue Feb 20 12:40:52 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 20 Feb 2007 10:40:52 -0800 Subject: [AccessD] CodeLib In-Reply-To: <20070220183128.22951.qmail@web88204.mail.re2.yahoo.com> References: <20070220183128.22951.qmail@web88204.mail.re2.yahoo.com> Message-ID: It was part of the Office Developer tools in XP and 2000, not just VS 6. I don't think it's freely downloadable, but it may be in the 2007 developer extensions. I haven't looked. There is a viewer that is theoretically redistributable. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Tuesday, February 20, 2007 10:31 AM To: Access Developers discussion and problem solving Subject: [AccessD] CodeLib I think that my copy of CodeLib came with my installation of VS Studio 6, but I may have installed more recent updates. The salient question is, is this freely downloadable from any MS site, or must one install VS6 in order to use it? Arthur Fuller Technical Writer, Data Modeler, SQL Sensei www.artfulsoftware.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 Feb 20 13:08:24 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 20 Feb 2007 11:08:24 -0800 Subject: [AccessD] Code Library, Sample Database, Etc. In-Reply-To: <192199.96210.qm@web88202.mail.re2.yahoo.com> References: <192199.96210.qm@web88202.mail.re2.yahoo.com> Message-ID: LOL! Not flamed, Arthur, deep fried! ;o> Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Tuesday, February 20, 2007 10:41 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Library, Sample Database, Etc. While I agree with you, I also fear that you will be flamed from numerous devotees to the MDB BE concept. I have my flame extinguisher ready in case you need it. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Robert L. Stewart To: accessd at databaseadvisors.com Cc: BarbaraRyan at cox.net Sent: Tuesday, February 20, 2007 1:09:06 PM Subject: Re: [AccessD] Code Library, Sample Database, Etc. Barb, I think the only way to completely "tie it all together" is to use SQL Server and an ADP. Behind the forms and such it s completely ADO. MDEs are not if you use a bound form. Robert P.S. Besides, I would never use Access for the database any way. SQL Server is much better at storing it and being stable. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at users.mns.ru Tue Feb 20 13:21:29 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Tue, 20 Feb 2007 22:21:29 +0300 Subject: [AccessD] Missing references In-Reply-To: <001401c75501$634c9500$8abea8c0@XPS> Message-ID: <000001c75524$52b9a430$6401a8c0@nant> <<< each property/method reference must make a call to lookup the functions address. >>> Yes, Jim, that's how VBA works internally for late binding. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Tuesday, February 20, 2007 6:11 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references Shamil, <> Thanks for that site. I tried hunting for a bit yesterday to find something that specifically stated that when you create an object with a SET statement, the only thing that happens is that you get a pointer to the COM object. The above statement from the site you pointed out states exactly that. It's as I remembered it; each property/method reference must make a call to lookup the functions address. Those may be cached somewhere, but the calls are made each and every time. Jim. From DorisH3 at aol.com Tue Feb 20 13:22:17 2007 From: DorisH3 at aol.com (DorisH3 at aol.com) Date: Tue, 20 Feb 2007 14:22:17 EST Subject: [AccessD] Macro to export query records to Excel Message-ID: Does anyone know how to write a macro to export query records to MS Excel and have the Access macro open the Excel file? I know I've asked this question once before but I got VB code and I don't know VB, so please excuse the fact that I am a novice at this....I thank you in advance for any help that this list extents me. Doris


**************************************
Check out free AOL at http://free.aol.com/thenewaol/index.adp. Most comprehensive set of free safety and security tools, millions of free high-quality videos from across the web, free AOL Mail and much more. From wdhindman at dejpolsystems.com Tue Feb 20 13:23:44 2007 From: wdhindman at dejpolsystems.com (William Hindman) Date: Tue, 20 Feb 2007 14:23:44 -0500 Subject: [AccessD] Code Library, Sample Database, Etc. References: <192199.96210.qm@web88202.mail.re2.yahoo.com> Message-ID: <001701c75524$a3de0a90$9258eb44@50NM721> Arthur ...its not a matter of agreeing or disagreeing ...if you work in an environment where SS is available and the notwork resources are available to support it, of course you would use SS in most applications. ...but if you are a consultant working with many small businesses where you are it, then a well designed dao mdb fe/be can be highly stable and work every bit as well as an adp/SS combo ...in point of fact with up to at least 15 users a well designed dao based mdb will normally out perform an ado based fe. ...and with A'07 it appears that MS itself is moving back to the dao model ...what irks me is people declaring that their favorite model is best for everyone ...or casting unwarranted aspersions on Access be's and dao when they really don't work in an environment where that model functions best. William Hindman ----- Original Message ----- From: To: "Access Developers discussion and problem solving" Sent: Tuesday, February 20, 2007 1:41 PM Subject: Re: [AccessD] Code Library, Sample Database, Etc. > While I agree with you, I also fear that you will be flamed from numerous > devotees to the MDB BE concept. I have my flame extinguisher ready in case > you need it. > > > Arthur Fuller > Technical Writer, Data Modeler, SQL Sensei > Artful Databases Organization > www.artfulsoftware.com > > > > > ----- Original Message ---- > From: Robert L. Stewart > To: accessd at databaseadvisors.com > Cc: BarbaraRyan at cox.net > Sent: Tuesday, February 20, 2007 1:09:06 PM > Subject: Re: [AccessD] Code Library, Sample Database, Etc. > > > Barb, > > I think the only way to completely "tie it all together" > is to use SQL Server and an ADP. Behind the forms and such > it s completely ADO. MDEs are not if you use a bound form. > > Robert > > P.S. Besides, I would never use Access for the database any way. > SQL Server is much better at storing it and being stable. > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From BarbaraRyan at cox.net Tue Feb 20 13:56:01 2007 From: BarbaraRyan at cox.net (Barbara Ryan) Date: Tue, 20 Feb 2007 14:56:01 -0500 Subject: [AccessD] Code Library, Sample Database, Etc. References: <192199.96210.qm@web88202.mail.re2.yahoo.com> <001701c75524$a3de0a90$9258eb44@50NM721> Message-ID: <01ba01c75529$257dccd0$0a00a8c0@PCRURI35> > ...and with A'07 it appears that MS itself is moving back to the dao model I thought that Microsoft was moving away from DAO (i.e., no updates on it etc.)??.... that's why I decided I needed to learn ADO to keep up with the times. Barb From markamatte at hotmail.com Tue Feb 20 14:17:38 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 20 Feb 2007 20:17:38 +0000 Subject: [AccessD] Macro to export query records to Excel In-Reply-To: Message-ID: Doris, I think you can use the 'TransferSpreadsheet' in a macro and just fill out the info at the bottom. On the next line of the macro use 'RUNAPP' and at the bottom(command line) enter: excel.exe C:\temp\myspreadsheet.xls replace the path with the path to your file you created. Good Luck, Mark A. Matte >From: DorisH3 at aol.com >Reply-To: Access Developers discussion and problem >solving >To: accessd at databaseadvisors.com >Subject: [AccessD] Macro to export query records to Excel >Date: Tue, 20 Feb 2007 14:22:17 EST > >Does anyone know how to write a macro to export query records to MS Excel >and have the Access macro open the Excel file? I know I've asked this >question once before but I got VB code and I don't know VB, so please >excuse the >fact that I am a novice at this....I thank you in advance for any help >that this >list extents me. > >Doris >


**************************************
Check out free AOL >at >http://free.aol.com/thenewaol/index.adp. Most comprehensive set of free >safety and security tools, millions of free high-quality videos from across >the >web, free AOL Mail and much more. >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Find a local pizza place, movie theater, and more?.then map the best route! http://maps.live.com/?icid=hmtag1&FORM=MGAC01 From martyconnelly at shaw.ca Tue Feb 20 14:19:35 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 20 Feb 2007 12:19:35 -0800 Subject: [AccessD] Automating email In-Reply-To: <20070220183803.KUO26198.fep06.xtra.co.nz@Dalyn.dalyn.co.nz> References: <20070220004505.YMFB25916.fep04.xtra.co.nz@Dalyn.dalyn.co.nz> <005201c7548a$1e9d8c10$6401a8c0@office> <20070220183803.KUO26198.fep06.xtra.co.nz@Dalyn.dalyn.co.nz> Message-ID: <45DB57D7.3000209@shaw.ca> A couple of notes on this method ' You probably wont have your mail server full expanded smtp address 'If you go into netscape mail or outlook and look for the smtp name 'It will look like mine, "shawmail" or "shawnews" this dns resolves 'to "shawmail.cg.shawcable.net" CDO doesn't resolve this short name 'The quickest way to get this actual address without using the registry 'is run cmd and ping "shawmail" to return full qualified smtp address. 'This code wont run exactly unless you are on cable or LAN and signed 'onto the Shaw ISP or whatever is your domain, your cable modem 'is a node inside the ISP domain. This wont run on a dialup 'If you have illegal or wrong smtp address here code will run for 30- ' 60 seconds and finally give a transport error Your ISP may squawk if you send more than 100 Emails an hour This code runs for me via a cable modem Sub SendCDO() ' This example use late binding of CDOSys, you don't have to set a reference ' You must be online to net when you run the sub ' You must be running WinXP or Win2000 Dim cdoMessage As Object Dim objCDOMail As Object Dim strschema As String On Error GoTo ErrorHandler ' Enable error-handling routine. ' Set cdoMessage = CreateObject("CDO.Message") Set objCDOMail = CreateObject("CDO.Configuration") strschema = "http://schemas.microsoft.com/cdo/configuration/" objCDOMail.Load -1 ' CDO Source Default 'If you have illegal or wrong smtp address here it will run for 30- 60 seconds and finally give transport error With objCDOMail.Fields .Item(strschema & "sendusing") = 2 ' cdoSendUsingPort .Item(strschema & "smtpserver")= "shawmail.cg.shawcable.net" ' "Your SMTP server address here" .Item(strschema & "smtpserverport") = 25 'specify port number .Update End With With cdoMessage Set .Configuration = objCDOMail .to = "macon at g..." .From = "Winnie The Pooh " .CC = "" .BCC = "" .Subject = "This is another test from marty" .TextBody = "This is the text in the body just cdo defaults" .AddAttachment "C:\temp2\rptSampleCount.rtf" .AddAttachment "C:\temp2\frontimage.jpeg" .send End With Set cdoMessage = Nothing Set objCDOMail = Nothing Exit Sub ' Exit to avoid handler. ErrorHandler: ' Error-handling routine. Debug.Print Err.Number & "-" & Err.Description Set cdoMessage = Nothing Set objCDOMail = Nothing Exit Sub End Sub David Emerson wrote: >Thanks Kath and Erwin, > >I eventually found some code that doesn't rely on outlook but uses >another file called CDOEx.dll. It doesn't leave any items in outlook. > >In references you need to set the reference to Microsoft CDO for >Exchange 2000 Library > >Public Function SendCdoMsg() > > On Error GoTo Err_SendCdoMsg > > Dim msg As Message > > Set msg = CreateObject("CDO.Message") > > With msg > With .Configuration.Fields > .Item(cdoSMTPAuthenticate) = cdoAnonymous > .Item(cdoSendUsingMethod) = cdoSendUsingPort > .Item(cdoSMTPServer) = "smtp.xtra.co.nz" > .Item(cdoSMTPConnectionTimeout) = 10 > .Item(cdoSMTPServerPort) = 25 > .Update > End With > .Organization = "my" > .To = "you at yourprovider" > .Subject = "Example subject" > .TextBody = "Example body" > .From = "me at myprovider" > .AddAttachment ("d:\aaaatemp\accarch135.zip") > .Send > End With > > Set msg = Nothing > >Exit_SendCdoMsg: > Exit Function > >Err_SendCdoMsg: > Select Case Err > Case 0 > MsgBox "0 error", vbCritical, "Error heading" > Case Else > Call basErrorMsg("SendCdoMsg") > End Select > Resume Exit_SendCdoMsg > >End Function > > >At 20/02/2007, you wrote: > > >>Hi David - I only use the .Display option in my apps so that the >>users can add some text to the email if they want to before it is >>sent, but .send WILL send the email depending on their Outlook preferences. >> >>ie. if they have [tools] [options] [mail delivery] 'Send immediately >>when connected' turned on, then yes, it will send. >> >>I haven;t found any way of that email not going into sent items though. >> >>Kath >> >> ----- Original Message ----- >> From: David Emerson >> To: accessd at databaseadvisors.com >> Sent: Tuesday, February 20, 2007 11:31 AM >> Subject: [AccessD] Automating email >> >> >> Group, >> >> I have the following code to create an email message: >> >> Public Function basSendEmail() >> >> Dim outApp As Outlook.Application, outMsg As MailItem >> >> Set outApp = CreateObject("Outlook.Application") >> Set outMsg = outApp.CreateItem(olMailItem) >> >> With outMsg >> .To = "newsgrps at dalyn.co.nz" >> .Subject = "Test egas email" >> .Body = "Test message" >> .Send >> End With >> >> Set outApp = Nothing >> Set outMsg = Nothing >> >> End Function >> >> This works fine but only puts the message into my Outlook outbox - it >> doesn't send it. This may be because although I have outlook >> installed I do not use it (and it has not been set up). >> >> However, my clients use outlook. Will the above code automatically >> send out emails? >> >> Another question - My client would prefer not to have copies in their >> outbox of the email being sent out (ultimately it will be to email >> out accounts and they don't want thousands of emails generated each >> month). Is there a way for the messages not to appear in outlook? >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/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 artful at rogers.com Tue Feb 20 14:37:50 2007 From: artful at rogers.com (artful at rogers.com) Date: Tue, 20 Feb 2007 12:37:50 -0800 (PST) Subject: [AccessD] Code Library, Sample Database, Etc. Message-ID: <166730.83041.qm@web88201.mail.re2.yahoo.com> I didn't mean to irk you, or to assert that ADO/SQL is better. All I meant was that having discovered this path several years back, I narrowed my focus to it. Given the requirements of the apps I was working on (~70 users in 4 branch offices hooked together via a WAN, and about 50K customers with multiple orders and payments each), it proved the best way to go. I have nothing at all against the MDB approach, except that it postpones the changes required in the event of dramatic success. Should employees multiply by 10 and sales go through the roof, that's a bad time to make the change. One could do it sooner rather than at the moment of crisis, by using SQL Express as the BE now. Then the change in the event that you have to go to SQL is trivial. That's all I intended to say and infer. No slight upon DAO+MDB solutions was intended. Where they work well, they provide the best available Windows solution. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: William Hindman To: Access Developers discussion and problem solving Sent: Tuesday, February 20, 2007 2:23:44 PM Subject: Re: [AccessD] Code Library, Sample Database, Etc. Arthur ...its not a matter of agreeing or disagreeing ...if you work in an environment where SS is available and the notwork resources are available to support it, of course you would use SS in most applications. ...but if you are a consultant working with many small businesses where you are it, then a well designed dao mdb fe/be can be highly stable and work every bit as well as an adp/SS combo ...in point of fact with up to at least 15 users a well designed dao based mdb will normally out perform an ado based fe. ...and with A'07 it appears that MS itself is moving back to the dao model ...what irks me is people declaring that their favorite model is best for everyone ...or casting unwarranted aspersions on Access be's and dao when they really don't work in an environment where that model functions best. William Hindman ----- Original Message ----- From: To: "Access Developers discussion and problem solving" Sent: Tuesday, February 20, 2007 1:41 PM Subject: Re: [AccessD] Code Library, Sample Database, Etc. > While I agree with you, I also fear that you will be flamed from numerous > devotees to the MDB BE concept. I have my flame extinguisher ready in case > you need it. > > > Arthur Fuller > Technical Writer, Data Modeler, SQL Sensei > Artful Databases Organization > www.artfulsoftware.com > > > > > ----- Original Message ---- > From: Robert L. Stewart > To: accessd at databaseadvisors.com > Cc: BarbaraRyan at cox.net > Sent: Tuesday, February 20, 2007 1:09:06 PM > Subject: Re: [AccessD] Code Library, Sample Database, Etc. > > > Barb, > > I think the only way to completely "tie it all together" > is to use SQL Server and an ADP. Behind the forms and such > it s completely ADO. MDEs are not if you use a bound form. > > Robert > > P.S. Besides, I would never use Access for the database any way. > SQL Server is much better at storing it and being stable. > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From newsgrps at dalyn.co.nz Tue Feb 20 14:42:10 2007 From: newsgrps at dalyn.co.nz (David Emerson) Date: Wed, 21 Feb 2007 09:42:10 +1300 Subject: [AccessD] Automating email In-Reply-To: <45DB57D7.3000209@shaw.ca> References: <20070220004505.YMFB25916.fep04.xtra.co.nz@Dalyn.dalyn.co.nz> <005201c7548a$1e9d8c10$6401a8c0@office> <20070220183803.KUO26198.fep06.xtra.co.nz@Dalyn.dalyn.co.nz> <45DB57D7.3000209@shaw.ca> Message-ID: <20070220204141.RKBX24836.fep05.xtra.co.nz@Dalyn.dalyn.co.nz> At 21/02/2007, Marty Wrote wrote: >Your ISP may squawk if you send more than 100 Emails an hour Can you expand on this - Is it because they will think it is spam, or is there another reason? Regards David Emerson Dalyn Software Ltd Wellington, New Zealand From wdhindman at dejpolsystems.com Tue Feb 20 15:00:43 2007 From: wdhindman at dejpolsystems.com (William Hindman) Date: Tue, 20 Feb 2007 16:00:43 -0500 Subject: [AccessD] Code Library, Sample Database, Etc. References: <192199.96210.qm@web88202.mail.re2.yahoo.com><001701c75524$a3de0a90$9258eb44@50NM721> <01ba01c75529$257dccd0$0a00a8c0@PCRURI35> Message-ID: <006f01c75532$303342a0$9258eb44@50NM721> ...read the Access team blogs ...and look at A'07 itself. William Hindman ----- Original Message ----- From: "Barbara Ryan" To: "Access Developers discussion and problem solving" Sent: Tuesday, February 20, 2007 2:56 PM Subject: Re: [AccessD] Code Library, Sample Database, Etc. >> ...and with A'07 it appears that MS itself is moving back to the dao >> model > > I thought that Microsoft was moving away from DAO (i.e., no updates on it > etc.)??.... that's why I decided I needed to learn ADO to keep up with the > times. > > Barb > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From cfoust at infostatsystems.com Tue Feb 20 15:02:34 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 20 Feb 2007 13:02:34 -0800 Subject: [AccessD] Code Library, Sample Database, Etc. In-Reply-To: <001701c75524$a3de0a90$9258eb44@50NM721> References: <192199.96210.qm@web88202.mail.re2.yahoo.com> <001701c75524$a3de0a90$9258eb44@50NM721> Message-ID: I don't think anyone is casting aspersions, William. But the simple truth is that without user security in Access mdbs, they become less than useful for multiuser solutions. That doesn't depend on object model, it depends on having a mechanism for controlling who gets into the application and keeping track of who's there. Without that capability, Access 2007 becomes a desktop database for power users or a RAD frontend for SQL Server. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Tuesday, February 20, 2007 11:24 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Library, Sample Database, Etc. Arthur ...its not a matter of agreeing or disagreeing ...if you work in an environment where SS is available and the notwork resources are available to support it, of course you would use SS in most applications. ...but if you are a consultant working with many small businesses where you are it, then a well designed dao mdb fe/be can be highly stable and work every bit as well as an adp/SS combo ...in point of fact with up to at least 15 users a well designed dao based mdb will normally out perform an ado based fe. ...and with A'07 it appears that MS itself is moving back to the dao model ...what irks me is people declaring that their favorite model is best for everyone ...or casting unwarranted aspersions on Access be's and dao when they really don't work in an environment where that model functions best. William Hindman ----- Original Message ----- From: To: "Access Developers discussion and problem solving" Sent: Tuesday, February 20, 2007 1:41 PM Subject: Re: [AccessD] Code Library, Sample Database, Etc. > While I agree with you, I also fear that you will be flamed from numerous > devotees to the MDB BE concept. I have my flame extinguisher ready in case > you need it. > > > Arthur Fuller > Technical Writer, Data Modeler, SQL Sensei > Artful Databases Organization > www.artfulsoftware.com > > > > > ----- Original Message ---- > From: Robert L. Stewart > To: accessd at databaseadvisors.com > Cc: BarbaraRyan at cox.net > Sent: Tuesday, February 20, 2007 1:09:06 PM > Subject: Re: [AccessD] Code Library, Sample Database, Etc. > > > Barb, > > I think the only way to completely "tie it all together" > is to use SQL Server and an ADP. Behind the forms and such > it s completely ADO. MDEs are not if you use a bound form. > > Robert > > P.S. Besides, I would never use Access for the database any way. > SQL Server is much better at storing it and being stable. > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Tue Feb 20 15:06:50 2007 From: wdhindman at dejpolsystems.com (William Hindman) Date: Tue, 20 Feb 2007 16:06:50 -0500 Subject: [AccessD] Code Library, Sample Database, Etc. References: <192199.96210.qm@web88202.mail.re2.yahoo.com><001701c75524$a3de0a90$9258eb44@50NM721> <01ba01c75529$257dccd0$0a00a8c0@PCRURI35> Message-ID: <000301c75533$0b2fbf00$9258eb44@50NM721> http://www.utteraccess.com/forums/access/access109948.html ...further to my point. William Hindman ----- Original Message ----- From: "Barbara Ryan" To: "Access Developers discussion and problem solving" Sent: Tuesday, February 20, 2007 2:56 PM Subject: Re: [AccessD] Code Library, Sample Database, Etc. >> ...and with A'07 it appears that MS itself is moving back to the dao >> model > > I thought that Microsoft was moving away from DAO (i.e., no updates on it > etc.)??.... that's why I decided I needed to learn ADO to keep up with the > times. > > Barb > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From martyconnelly at shaw.ca Tue Feb 20 15:34:27 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 20 Feb 2007 13:34:27 -0800 Subject: [AccessD] Automating email In-Reply-To: <20070220204141.RKBX24836.fep05.xtra.co.nz@Dalyn.dalyn.co.nz> References: <20070220004505.YMFB25916.fep04.xtra.co.nz@Dalyn.dalyn.co.nz> <005201c7548a$1e9d8c10$6401a8c0@office> <20070220183803.KUO26198.fep06.xtra.co.nz@Dalyn.dalyn.co.nz> <45DB57D7.3000209@shaw.ca> <20070220204141.RKBX24836.fep05.xtra.co.nz@Dalyn.dalyn.co.nz> Message-ID: <45DB6963.9070604@shaw.ca> Depends on your ISP's Terms of Agreement or Acceptable Use Policy But ISP's worry about Bots and Zombie PC's sending out Spam It is not just the ISP but I believe Outlook and I know my AntiVirus AVG squawks if you send the same message or more than 10 messages a minute. Some of these limits are reset able. You will have to find by trial and error. There maybe some more info on your ISP in the FAQ or forums at http://www.dslreports.com David Emerson wrote: >At 21/02/2007, Marty Wrote wrote: > > >>Your ISP may squawk if you send more than 100 Emails an hour >> >> > >Can you expand on this - Is it because they will think it is spam, or >is there another reason? > >Regards > >David Emerson >Dalyn Software Ltd >Wellington, New Zealand > > > -- Marty Connelly Victoria, B.C. Canada From wdhindman at dejpolsystems.com Tue Feb 20 15:54:07 2007 From: wdhindman at dejpolsystems.com (William Hindman) Date: Tue, 20 Feb 2007 16:54:07 -0500 Subject: [AccessD] Code Library, Sample Database, Etc. References: <192199.96210.qm@web88202.mail.re2.yahoo.com><001701c75524$a3de0a90$9258eb44@50NM721> Message-ID: <000301c75539$a5afd7d0$9258eb44@50NM721> ...again Charlotte, that is heavily dependent upon the environment in which you work ...Access based user security has been a farce since '95 ...you cannot build an Access mdb to which I cannot gain access with readily available tools, both free and inexpensive ...so you build your own, a number of which are discussed in our archives, or you depend on XP security in small business environments ...so the decision by the Access development team to remove it from A'07 really has no bearing on its continued use in those environments. William Hindman ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Tuesday, February 20, 2007 4:02 PM Subject: Re: [AccessD] Code Library, Sample Database, Etc. >I don't think anyone is casting aspersions, William. But the simple > truth is that without user security in Access mdbs, they become less > than useful for multiuser solutions. That doesn't depend on object > model, it depends on having a mechanism for controlling who gets into > the application and keeping track of who's there. Without that > capability, Access 2007 becomes a desktop database for power users or a > RAD frontend for SQL Server. > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William > Hindman > Sent: Tuesday, February 20, 2007 11:24 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Code Library, Sample Database, Etc. > > Arthur > > ...its not a matter of agreeing or disagreeing ...if you work in an > environment where SS is available and the notwork resources are > available to support it, of course you would use SS in most > applications. > > ...but if you are a consultant working with many small businesses where > you are it, then a well designed dao mdb fe/be can be highly stable and > work every bit as well as an adp/SS combo ...in point of fact with up to > at least > 15 users a well designed dao based mdb will normally out perform an ado > based fe. > > ...and with A'07 it appears that MS itself is moving back to the dao > model ...what irks me is people declaring that their favorite model is > best for everyone ...or casting unwarranted aspersions on Access be's > and dao when they really don't work in an environment where that model > functions best. > > William Hindman > > ----- Original Message ----- > From: > To: "Access Developers discussion and problem solving" > > Sent: Tuesday, February 20, 2007 1:41 PM > Subject: Re: [AccessD] Code Library, Sample Database, Etc. > > >> While I agree with you, I also fear that you will be flamed from > numerous >> devotees to the MDB BE concept. I have my flame extinguisher ready in > case >> you need it. >> >> >> Arthur Fuller >> Technical Writer, Data Modeler, SQL Sensei >> Artful Databases Organization >> www.artfulsoftware.com >> >> >> >> >> ----- Original Message ---- >> From: Robert L. Stewart >> To: accessd at databaseadvisors.com >> Cc: BarbaraRyan at cox.net >> Sent: Tuesday, February 20, 2007 1:09:06 PM >> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >> >> >> Barb, >> >> I think the only way to completely "tie it all together" >> is to use SQL Server and an ADP. Behind the forms and such >> it s completely ADO. MDEs are not if you use a bound form. >> >> Robert >> >> P.S. Besides, I would never use Access for the database any way. >> SQL Server is much better at storing it and being stable. >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Tue Feb 20 16:06:45 2007 From: artful at rogers.com (artful at rogers.com) Date: Tue, 20 Feb 2007 14:06:45 -0800 (PST) Subject: [AccessD] Code Library, Sample Database, Etc. Message-ID: <3752.87025.qm@web88209.mail.re2.yahoo.com> Well, then. ADO proved yet another sidetrack. What none of the messages that I read mentioned is the future of the ADP file format. I have a heavy investment in this mode, in learning, and several clients have spent a lot of money hiring me to develop ADP apps. I shudder to think that an Office upgrade will have to be isolated from their Access app. Arthur ----- Original Message ---- From: William Hindman To: Access Developers discussion and problem solving Sent: Tuesday, February 20, 2007 4:06:50 PM Subject: Re: [AccessD] Code Library, Sample Database, Etc. http://www.utteraccess.com/forums/access/access109948.html ...further to my point. William Hindman From jwelz at hotmail.com Tue Feb 20 16:14:38 2007 From: jwelz at hotmail.com (Jurgen Welz) Date: Tue, 20 Feb 2007 15:14:38 -0700 Subject: [AccessD] combo from multiple sources In-Reply-To: <000001c75463$62013410$aab62ad1@SUSANONE> Message-ID: I use a callback to fill a list with files related to records. The files that can be seen depend on the users rights and are stored in different folders. For example, only certain people have rights to the estimate take off files, others have rights to general correspondence and then there are confidential documents relating to a record. Some confidential documents are payroll related, others are medical or disciplinary. All types of documents, regardless of location, are displayed in a filterable list where the list source depends on the particular user's rights to the file system and the filter they choose. An alternative example is to union All in a combo that allows a user to select between offices or province. A selection in the combo pulls from the table of offices by city or groups of offices by province. One of the columns contains a constant depending on the source table. ie: Select 0, 'All' from usystbl... Union select 1, CityName from tblOffice (joined by CityID to the City table actually) Union select 2, from tblProvince (all the offices joined thru city table via Province table). The first column constant in a hidden column in the combo tells the after update procedure which table provides the source of the selection to allow a select case procedure to adjust to the source chosen. This is useful to my users since they work on an office by office basis but frequentlly need data on a provincial basis. It allows the particular level of management using the system to see data in the way most pertinent to them. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: "Susan Harkins" >I made a mistake on an article title "How to populate combo box with data >from multiple sources" > >I meant something entirely different, but now I'm wondering -- do any of >you >use such a technique? Doing it isn't a problem. I just can't see how it >would be useful, but if there's a good excuse, I'm always game. > >Susan H. _________________________________________________________________ http://local.live.com/default.aspx?v=2&cp=43.658648~-79.383962&style=r&lvl=15&tilt=-90&dir=0&alt=-1000&scene=3702663&cid=7ABE80D1746919B4!1329 From rl_stewart at highstream.net Tue Feb 20 16:11:46 2007 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Tue, 20 Feb 2007 16:11:46 -0600 Subject: [AccessD] Code Library, Sample Database, Etc. In-Reply-To: References: Message-ID: <200702202215.l1KMFVi26656@databaseadvisors.com> William, PERSONAL OPINION FOLLOWING... With the advent of MSDE and SQL Express, Access as a BE should have disappeared. Even if you use an MDE against it. I have used Access since 1.0, co-authored a book on it for Access 97, and taught a Special Interest Group since 1.0. Yes, with an extremely well designed front end and back end Access will work wonders. However, with the members of this group excluded, I have yet to see a really well designed combination of the two. There are simply too many people that think that is they can spell "Access Programmer," they are one. ADO and DAO are irrelevant. Pick your poison and use it. Where I work now, we use both. In my special interest group, we do not use Access for a BE. I have stopped teaching the use of it and only showing SQL Server. Biased, you bet. Too many corrupt data files over the years in Access. Never had one in SQL Server. And I have been using it since 3.21. :-) Robert P.S. Charlotte, I had my asbestos long johns on before I wrote it. :-) Fried or flamed, no problem. At 03:35 PM 2/20/2007, you wrote: >Date: Tue, 20 Feb 2007 14:23:44 -0500 >From: "William Hindman" >Subject: Re: [AccessD] Code Library, Sample Database, Etc. >To: "Access Developers discussion and problem solving" > >Message-ID: <001701c75524$a3de0a90$9258eb44 at 50NM721> >Content-Type: text/plain; format=flowed; charset="Windows-1252"; > reply-type=original > >Arthur > >...its not a matter of agreeing or disagreeing ...if you work in an >environment where SS is available and the notwork resources are available to >support it, of course you would use SS in most applications. > >...but if you are a consultant working with many small businesses where you >are it, then a well designed dao mdb fe/be can be highly stable and work >every bit as well as an adp/SS combo ...in point of fact with up to at least >15 users a well designed dao based mdb will normally out perform an ado >based fe. > >...and with A'07 it appears that MS itself is moving back to the dao model >...what irks me is people declaring that their favorite model is best for >everyone ...or casting unwarranted aspersions on Access be's and dao when >they really don't work in an environment where that model functions best. > >William Hindman From DWUTKA at Marlow.com Tue Feb 20 16:26:32 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 20 Feb 2007 16:26:32 -0600 Subject: [AccessD] Code Library, Sample Database, Etc. In-Reply-To: <200702202215.l1KMFVi26656@databaseadvisors.com> Message-ID: Just an FYI, I have never had a corrupt .mdb where the interface was strictly web based. (that would be lots of .mdbs...probably 50+), used in various frequencies (most mutli-user almost all the time within working hours), and most have been online for at least 3 years.... Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Tuesday, February 20, 2007 4:12 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Code Library, Sample Database, Etc. William, PERSONAL OPINION FOLLOWING... With the advent of MSDE and SQL Express, Access as a BE should have disappeared. Even if you use an MDE against it. I have used Access since 1.0, co-authored a book on it for Access 97, and taught a Special Interest Group since 1.0. Yes, with an extremely well designed front end and back end Access will work wonders. However, with the members of this group excluded, I have yet to see a really well designed combination of the two. There are simply too many people that think that is they can spell "Access Programmer," they are one. ADO and DAO are irrelevant. Pick your poison and use it. Where I work now, we use both. In my special interest group, we do not use Access for a BE. I have stopped teaching the use of it and only showing SQL Server. Biased, you bet. Too many corrupt data files over the years in Access. Never had one in SQL Server. And I have been using it since 3.21. :-) Robert P.S. Charlotte, I had my asbestos long johns on before I wrote it. :-) Fried or flamed, no problem. At 03:35 PM 2/20/2007, you wrote: >Date: Tue, 20 Feb 2007 14:23:44 -0500 >From: "William Hindman" >Subject: Re: [AccessD] Code Library, Sample Database, Etc. >To: "Access Developers discussion and problem solving" > >Message-ID: <001701c75524$a3de0a90$9258eb44 at 50NM721> >Content-Type: text/plain; format=flowed; charset="Windows-1252"; > reply-type=original > >Arthur > >...its not a matter of agreeing or disagreeing ...if you work in an >environment where SS is available and the notwork resources are available to >support it, of course you would use SS in most applications. > >...but if you are a consultant working with many small businesses where you >are it, then a well designed dao mdb fe/be can be highly stable and work >every bit as well as an adp/SS combo ...in point of fact with up to at least >15 users a well designed dao based mdb will normally out perform an ado >based fe. > >...and with A'07 it appears that MS itself is moving back to the dao model >...what irks me is people declaring that their favorite model is best for >everyone ...or casting unwarranted aspersions on Access be's and dao when >they really don't work in an environment where that model functions best. > >William Hindman -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Tue Feb 20 16:30:22 2007 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 20 Feb 2007 16:30:22 -0600 Subject: [AccessD] Code Library, Sample Database, Etc. In-Reply-To: <29230126.1172009988624.JavaMail.root@Sniper26> References: <29230126.1172009988624.JavaMail.root@Sniper26> Message-ID: <002301c7553e$b66df020$0200a8c0@danwaters> Robert, With A2007, what will you tell people to use for a security mechanism. Granted, the Access security model in previous versions was nominal, but for me it worked well enough for my small business customers. Thanks! Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Tuesday, February 20, 2007 4:12 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Code Library, Sample Database, Etc. William, PERSONAL OPINION FOLLOWING... With the advent of MSDE and SQL Express, Access as a BE should have disappeared. Even if you use an MDE against it. I have used Access since 1.0, co-authored a book on it for Access 97, and taught a Special Interest Group since 1.0. Yes, with an extremely well designed front end and back end Access will work wonders. However, with the members of this group excluded, I have yet to see a really well designed combination of the two. There are simply too many people that think that is they can spell "Access Programmer," they are one. ADO and DAO are irrelevant. Pick your poison and use it. Where I work now, we use both. In my special interest group, we do not use Access for a BE. I have stopped teaching the use of it and only showing SQL Server. Biased, you bet. Too many corrupt data files over the years in Access. Never had one in SQL Server. And I have been using it since 3.21. :-) Robert P.S. Charlotte, I had my asbestos long johns on before I wrote it. :-) Fried or flamed, no problem. At 03:35 PM 2/20/2007, you wrote: >Date: Tue, 20 Feb 2007 14:23:44 -0500 >From: "William Hindman" >Subject: Re: [AccessD] Code Library, Sample Database, Etc. >To: "Access Developers discussion and problem solving" > >Message-ID: <001701c75524$a3de0a90$9258eb44 at 50NM721> >Content-Type: text/plain; format=flowed; charset="Windows-1252"; > reply-type=original > >Arthur > >...its not a matter of agreeing or disagreeing ...if you work in an >environment where SS is available and the notwork resources are available to >support it, of course you would use SS in most applications. > >...but if you are a consultant working with many small businesses where you >are it, then a well designed dao mdb fe/be can be highly stable and work >every bit as well as an adp/SS combo ...in point of fact with up to at least >15 users a well designed dao based mdb will normally out perform an ado >based fe. > >...and with A'07 it appears that MS itself is moving back to the dao model >...what irks me is people declaring that their favorite model is best for >everyone ...or casting unwarranted aspersions on Access be's and dao when >they really don't work in an environment where that model functions best. > >William Hindman -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Tue Feb 20 17:09:36 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 20 Feb 2007 15:09:36 -0800 Subject: [AccessD] Code Library, Sample Database, Etc. In-Reply-To: <000301c75539$a5afd7d0$9258eb44@50NM721> References: <192199.96210.qm@web88202.mail.re2.yahoo.com><001701c75524$a3de0a90$9258eb44@50NM721> <000301c75539$a5afd7d0$9258eb44@50NM721> Message-ID: The primary role of user security IMO has been to allow you to limit ordinary users to working with the interface. It has never been robust enough to keep out knowledgeable tamperers. However, I do NOT want Joe User going in and mucking about with the interface or code I built just because he now has full permissions to do so. I have never been wiling to roll my own security system for Access because I object to reinventing the wheel, even if the wheel is a bit crooked and flat on one side. XP security in small business environments?? You MUST be joking! I've never seen a small business environment with any security that hadn't been added on by a paranoid programmer or systems guy! ;o> Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Tuesday, February 20, 2007 1:54 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Library, Sample Database, Etc. ...again Charlotte, that is heavily dependent upon the environment in which you work ...Access based user security has been a farce since '95 ...you cannot build an Access mdb to which I cannot gain access with readily available tools, both free and inexpensive ...so you build your own, a number of which are discussed in our archives, or you depend on XP security in small business environments ...so the decision by the Access development team to remove it from A'07 really has no bearing on its continued use in those environments. William Hindman ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Tuesday, February 20, 2007 4:02 PM Subject: Re: [AccessD] Code Library, Sample Database, Etc. >I don't think anyone is casting aspersions, William. But the simple > truth is that without user security in Access mdbs, they become less > than useful for multiuser solutions. That doesn't depend on object > model, it depends on having a mechanism for controlling who gets into > the application and keeping track of who's there. Without that > capability, Access 2007 becomes a desktop database for power users or a > RAD frontend for SQL Server. > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William > Hindman > Sent: Tuesday, February 20, 2007 11:24 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Code Library, Sample Database, Etc. > > Arthur > > ...its not a matter of agreeing or disagreeing ...if you work in an > environment where SS is available and the notwork resources are > available to support it, of course you would use SS in most > applications. > > ...but if you are a consultant working with many small businesses where > you are it, then a well designed dao mdb fe/be can be highly stable and > work every bit as well as an adp/SS combo ...in point of fact with up to > at least > 15 users a well designed dao based mdb will normally out perform an ado > based fe. > > ...and with A'07 it appears that MS itself is moving back to the dao > model ...what irks me is people declaring that their favorite model is > best for everyone ...or casting unwarranted aspersions on Access be's > and dao when they really don't work in an environment where that model > functions best. > > William Hindman > > ----- Original Message ----- > From: > To: "Access Developers discussion and problem solving" > > Sent: Tuesday, February 20, 2007 1:41 PM > Subject: Re: [AccessD] Code Library, Sample Database, Etc. > > >> While I agree with you, I also fear that you will be flamed from > numerous >> devotees to the MDB BE concept. I have my flame extinguisher ready in > case >> you need it. >> >> >> Arthur Fuller >> Technical Writer, Data Modeler, SQL Sensei >> Artful Databases Organization >> www.artfulsoftware.com >> >> >> >> >> ----- Original Message ---- >> From: Robert L. Stewart >> To: accessd at databaseadvisors.com >> Cc: BarbaraRyan at cox.net >> Sent: Tuesday, February 20, 2007 1:09:06 PM >> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >> >> >> Barb, >> >> I think the only way to completely "tie it all together" >> is to use SQL Server and an ADP. Behind the forms and such >> it s completely ADO. MDEs are not if you use a bound form. >> >> Robert >> >> P.S. Besides, I would never use Access for the database any way. >> SQL Server is much better at storing it and being stable. >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Tue Feb 20 17:09:44 2007 From: wdhindman at dejpolsystems.com (William Hindman) Date: Tue, 20 Feb 2007 18:09:44 -0500 Subject: [AccessD] Code Library, Sample Database, Etc. References: <200702202215.l1KMFVi26656@databaseadvisors.com> Message-ID: <001801c75544$35d81840$9258eb44@50NM721> Robert ...msde's proved impractical because of scaling limitations MS built in ...so you're really only talking about SQL Express which is what, months old? ...and if your only problem with an Access be is corruption, then sorry, but with the exception of cheap NICS I've not seen a corrupted mdb since A95 ...except in client's I took over from other developers and had to rebuild ...and thus corruption is not, in my environment, sufficient cause to spend the time and money to convert to a non-JET be ...but I'll grant you that I'm getting long in the tooth and damned reluctant to learn every new db wonder cure that comes along. ...and while I'm at it, I'll also admit that I'm developing a commercial app based on a current client that will use a non-JET be because it needs to scale to at least 50 users ...what that will be depends on some testing yet to be accomplished but I'm not at all convinced that SQL Express isn't a one-off dog & pony show for MS. William Hindman ----- Original Message ----- From: "Robert L. Stewart" To: Sent: Tuesday, February 20, 2007 5:11 PM Subject: Re: [AccessD] Code Library, Sample Database, Etc. > William, > > PERSONAL OPINION FOLLOWING... > > With the advent of MSDE and SQL Express, Access as a BE > should have disappeared. Even if you use an MDE against > it. I have used Access since 1.0, co-authored a book on > it for Access 97, and taught a Special Interest Group since > 1.0. Yes, with an extremely well designed front end and > back end Access will work wonders. However, with the members > of this group excluded, I have yet to see a really well > designed combination of the two. There are simply too many > people that think that is they can spell "Access Programmer," > they are one. > > ADO and DAO are irrelevant. Pick your poison and use it. > Where I work now, we use both. > > In my special interest group, we do not use Access for a BE. > I have stopped teaching the use of it and only showing SQL > Server. > > Biased, you bet. Too many corrupt data files over the years > in Access. Never had one in SQL Server. And I have been > using it since 3.21. :-) > > Robert > > P.S. > > Charlotte, I had my asbestos long johns on before I wrote it. :-) > Fried or flamed, no problem. > > > At 03:35 PM 2/20/2007, you wrote: >>Date: Tue, 20 Feb 2007 14:23:44 -0500 >>From: "William Hindman" >>Subject: Re: [AccessD] Code Library, Sample Database, Etc. >>To: "Access Developers discussion and problem solving" >> >>Message-ID: <001701c75524$a3de0a90$9258eb44 at 50NM721> >>Content-Type: text/plain; format=flowed; charset="Windows-1252"; >> reply-type=original >> >>Arthur >> >>...its not a matter of agreeing or disagreeing ...if you work in an >>environment where SS is available and the notwork resources are available >>to >>support it, of course you would use SS in most applications. >> >>...but if you are a consultant working with many small businesses where >>you >>are it, then a well designed dao mdb fe/be can be highly stable and work >>every bit as well as an adp/SS combo ...in point of fact with up to at >>least >>15 users a well designed dao based mdb will normally out perform an ado >>based fe. >> >>...and with A'07 it appears that MS itself is moving back to the dao model >>...what irks me is people declaring that their favorite model is best for >>everyone ...or casting unwarranted aspersions on Access be's and dao when >>they really don't work in an environment where that model functions best. >> >>William Hindman > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From wdhindman at dejpolsystems.com Tue Feb 20 17:25:14 2007 From: wdhindman at dejpolsystems.com (William Hindman) Date: Tue, 20 Feb 2007 18:25:14 -0500 Subject: [AccessD] Code Library, Sample Database, Etc. References: <192199.96210.qm@web88202.mail.re2.yahoo.com><001701c75524$a3de0a90$9258eb44@50NM721><000301c75539$a5afd7d0$9258eb44@50NM721> Message-ID: <003301c75546$60660980$9258eb44@50NM721> ...I'm left dazed by your disparagement of XP security! :) ...pray tell why in a 12 user office where no personal information is available in the app, the xp user logon should not be sufficient to determine access rights to forms needing restricted access based upon user roles? William Hindman ...apparently a paranoid programmer ...who knew? :) ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Tuesday, February 20, 2007 6:09 PM Subject: Re: [AccessD] Code Library, Sample Database, Etc. > The primary role of user security IMO has been to allow you to limit > ordinary users to working with the interface. It has never been robust > enough to keep out knowledgeable tamperers. However, I do NOT want Joe > User going in and mucking about with the interface or code I built just > because he now has full permissions to do so. I have never been wiling > to roll my own security system for Access because I object to > reinventing the wheel, even if the wheel is a bit crooked and flat on > one side. XP security in small business environments?? You MUST be > joking! I've never seen a small business environment with any security > that hadn't been added on by a paranoid programmer or systems guy! ;o> > > Charlotte > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William > Hindman > Sent: Tuesday, February 20, 2007 1:54 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Code Library, Sample Database, Etc. > > ...again Charlotte, that is heavily dependent upon the environment in > which you work ...Access based user security has been a farce since '95 > ...you cannot build an Access mdb to which I cannot gain access with > readily available tools, both free and inexpensive ...so you build your > own, a number of which are discussed in our archives, or you depend on > XP security in small business environments ...so the decision by the > Access development team to remove it from A'07 really has no bearing on > its continued use in those environments. > > William Hindman > > ----- Original Message ----- > From: "Charlotte Foust" > To: "Access Developers discussion and problem solving" > > Sent: Tuesday, February 20, 2007 4:02 PM > Subject: Re: [AccessD] Code Library, Sample Database, Etc. > > >>I don't think anyone is casting aspersions, William. But the simple >> truth is that without user security in Access mdbs, they become less >> than useful for multiuser solutions. That doesn't depend on object >> model, it depends on having a mechanism for controlling who gets into >> the application and keeping track of who's there. Without that >> capability, Access 2007 becomes a desktop database for power users or > a >> RAD frontend for SQL Server. >> >> Charlotte Foust >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William >> Hindman >> Sent: Tuesday, February 20, 2007 11:24 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >> >> Arthur >> >> ...its not a matter of agreeing or disagreeing ...if you work in an >> environment where SS is available and the notwork resources are >> available to support it, of course you would use SS in most >> applications. >> >> ...but if you are a consultant working with many small businesses > where >> you are it, then a well designed dao mdb fe/be can be highly stable > and >> work every bit as well as an adp/SS combo ...in point of fact with up > to >> at least >> 15 users a well designed dao based mdb will normally out perform an > ado >> based fe. >> >> ...and with A'07 it appears that MS itself is moving back to the dao >> model ...what irks me is people declaring that their favorite model is >> best for everyone ...or casting unwarranted aspersions on Access be's >> and dao when they really don't work in an environment where that model >> functions best. >> >> William Hindman >> >> ----- Original Message ----- >> From: >> To: "Access Developers discussion and problem solving" >> >> Sent: Tuesday, February 20, 2007 1:41 PM >> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >> >> >>> While I agree with you, I also fear that you will be flamed from >> numerous >>> devotees to the MDB BE concept. I have my flame extinguisher ready in >> case >>> you need it. >>> >>> >>> Arthur Fuller >>> Technical Writer, Data Modeler, SQL Sensei >>> Artful Databases Organization >>> www.artfulsoftware.com >>> >>> >>> >>> >>> ----- Original Message ---- >>> From: Robert L. Stewart >>> To: accessd at databaseadvisors.com >>> Cc: BarbaraRyan at cox.net >>> Sent: Tuesday, February 20, 2007 1:09:06 PM >>> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >>> >>> >>> Barb, >>> >>> I think the only way to completely "tie it all together" >>> is to use SQL Server and an ADP. Behind the forms and such >>> it s completely ADO. MDEs are not if you use a bound form. >>> >>> Robert >>> >>> P.S. Besides, I would never use Access for the database any way. >>> SQL Server is much better at storing it and being stable. >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From martyconnelly at shaw.ca Tue Feb 20 17:34:41 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 20 Feb 2007 15:34:41 -0800 Subject: [AccessD] Code Library, Sample Database, Etc. In-Reply-To: <001801c75544$35d81840$9258eb44@50NM721> References: <200702202215.l1KMFVi26656@databaseadvisors.com> <001801c75544$35d81840$9258eb44@50NM721> Message-ID: <45DB8591.1070809@shaw.ca> Oracle and DB2 offer free similar scaled down products. William Hindman wrote: >Robert > >...msde's proved impractical because of scaling limitations MS built in >...so you're really only talking about SQL Express which is what, months >old? > >...and if your only problem with an Access be is corruption, then sorry, but >with the exception of cheap NICS I've not seen a corrupted mdb since A95 >...except in client's I took over from other developers and had to rebuild >...and thus corruption is not, in my environment, sufficient cause to spend >the time and money to convert to a non-JET be ...but I'll grant you that I'm >getting long in the tooth and damned reluctant to learn every new db wonder >cure that comes along. > >...and while I'm at it, I'll also admit that I'm developing a commercial app >based on a current client that will use a non-JET be because it needs to >scale to at least 50 users ...what that will be depends on some testing yet >to be accomplished but I'm not at all convinced that SQL Express isn't a >one-off dog & pony show for MS. > >William Hindman > >----- Original Message ----- >From: "Robert L. Stewart" >To: >Sent: Tuesday, February 20, 2007 5:11 PM >Subject: Re: [AccessD] Code Library, Sample Database, Etc. > > > > >>William, >> >>PERSONAL OPINION FOLLOWING... >> >>With the advent of MSDE and SQL Express, Access as a BE >>should have disappeared. Even if you use an MDE against >>it. I have used Access since 1.0, co-authored a book on >>it for Access 97, and taught a Special Interest Group since >>1.0. Yes, with an extremely well designed front end and >>back end Access will work wonders. However, with the members >>of this group excluded, I have yet to see a really well >>designed combination of the two. There are simply too many >>people that think that is they can spell "Access Programmer," >>they are one. >> >>ADO and DAO are irrelevant. Pick your poison and use it. >>Where I work now, we use both. >> >>In my special interest group, we do not use Access for a BE. >>I have stopped teaching the use of it and only showing SQL >>Server. >> >>Biased, you bet. Too many corrupt data files over the years >>in Access. Never had one in SQL Server. And I have been >>using it since 3.21. :-) >> >>Robert >> >>P.S. >> >>Charlotte, I had my asbestos long johns on before I wrote it. :-) >>Fried or flamed, no problem. >> >> >>At 03:35 PM 2/20/2007, you wrote: >> >> >>>Date: Tue, 20 Feb 2007 14:23:44 -0500 >>>From: "William Hindman" >>>Subject: Re: [AccessD] Code Library, Sample Database, Etc. >>>To: "Access Developers discussion and problem solving" >>> >>>Message-ID: <001701c75524$a3de0a90$9258eb44 at 50NM721> >>>Content-Type: text/plain; format=flowed; charset="Windows-1252"; >>> reply-type=original >>> >>>Arthur >>> >>>...its not a matter of agreeing or disagreeing ...if you work in an >>>environment where SS is available and the notwork resources are available >>>to >>>support it, of course you would use SS in most applications. >>> >>>...but if you are a consultant working with many small businesses where >>>you >>>are it, then a well designed dao mdb fe/be can be highly stable and work >>>every bit as well as an adp/SS combo ...in point of fact with up to at >>>least >>>15 users a well designed dao based mdb will normally out perform an ado >>>based fe. >>> >>>...and with A'07 it appears that MS itself is moving back to the dao model >>>...what irks me is people declaring that their favorite model is best for >>>everyone ...or casting unwarranted aspersions on Access be's and dao when >>>they really don't work in an environment where that model functions best. >>> >>>William Hindman >>> >>> >>-- >>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 Tue Feb 20 17:35:57 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 20 Feb 2007 17:35:57 -0600 Subject: [AccessD] Code Library, Sample Database, Etc. In-Reply-To: <003301c75546$60660980$9258eb44@50NM721> Message-ID: If you aren't using User Level security, what's the point in any 'security' within the db anyhow? Let's say you have a form that only Mr. X should be able to use. This form edits tblXYZ. Sure, from the .mde interface only Mr. X would get the form, if you design it that way. But any Joe Schmoe can link to ALL the tables in the .mde, and do whatever they want to the data..... Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Tuesday, February 20, 2007 5:25 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Library, Sample Database, Etc. ...I'm left dazed by your disparagement of XP security! :) ...pray tell why in a 12 user office where no personal information is available in the app, the xp user logon should not be sufficient to determine access rights to forms needing restricted access based upon user roles? William Hindman ...apparently a paranoid programmer ...who knew? :) ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Tuesday, February 20, 2007 6:09 PM Subject: Re: [AccessD] Code Library, Sample Database, Etc. > The primary role of user security IMO has been to allow you to limit > ordinary users to working with the interface. It has never been robust > enough to keep out knowledgeable tamperers. However, I do NOT want Joe > User going in and mucking about with the interface or code I built just > because he now has full permissions to do so. I have never been wiling > to roll my own security system for Access because I object to > reinventing the wheel, even if the wheel is a bit crooked and flat on > one side. XP security in small business environments?? You MUST be > joking! I've never seen a small business environment with any security > that hadn't been added on by a paranoid programmer or systems guy! ;o> > > Charlotte > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William > Hindman > Sent: Tuesday, February 20, 2007 1:54 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Code Library, Sample Database, Etc. > > ...again Charlotte, that is heavily dependent upon the environment in > which you work ...Access based user security has been a farce since '95 > ...you cannot build an Access mdb to which I cannot gain access with > readily available tools, both free and inexpensive ...so you build your > own, a number of which are discussed in our archives, or you depend on > XP security in small business environments ...so the decision by the > Access development team to remove it from A'07 really has no bearing on > its continued use in those environments. > > William Hindman > > ----- Original Message ----- > From: "Charlotte Foust" > To: "Access Developers discussion and problem solving" > > Sent: Tuesday, February 20, 2007 4:02 PM > Subject: Re: [AccessD] Code Library, Sample Database, Etc. > > >>I don't think anyone is casting aspersions, William. But the simple >> truth is that without user security in Access mdbs, they become less >> than useful for multiuser solutions. That doesn't depend on object >> model, it depends on having a mechanism for controlling who gets into >> the application and keeping track of who's there. Without that >> capability, Access 2007 becomes a desktop database for power users or > a >> RAD frontend for SQL Server. >> >> Charlotte Foust >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William >> Hindman >> Sent: Tuesday, February 20, 2007 11:24 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >> >> Arthur >> >> ...its not a matter of agreeing or disagreeing ...if you work in an >> environment where SS is available and the notwork resources are >> available to support it, of course you would use SS in most >> applications. >> >> ...but if you are a consultant working with many small businesses > where >> you are it, then a well designed dao mdb fe/be can be highly stable > and >> work every bit as well as an adp/SS combo ...in point of fact with up > to >> at least >> 15 users a well designed dao based mdb will normally out perform an > ado >> based fe. >> >> ...and with A'07 it appears that MS itself is moving back to the dao >> model ...what irks me is people declaring that their favorite model is >> best for everyone ...or casting unwarranted aspersions on Access be's >> and dao when they really don't work in an environment where that model >> functions best. >> >> William Hindman >> >> ----- Original Message ----- >> From: >> To: "Access Developers discussion and problem solving" >> >> Sent: Tuesday, February 20, 2007 1:41 PM >> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >> >> >>> While I agree with you, I also fear that you will be flamed from >> numerous >>> devotees to the MDB BE concept. I have my flame extinguisher ready in >> case >>> you need it. >>> >>> >>> Arthur Fuller >>> Technical Writer, Data Modeler, SQL Sensei >>> Artful Databases Organization >>> www.artfulsoftware.com >>> >>> >>> >>> >>> ----- Original Message ---- >>> From: Robert L. Stewart >>> To: accessd at databaseadvisors.com >>> Cc: BarbaraRyan at cox.net >>> Sent: Tuesday, February 20, 2007 1:09:06 PM >>> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >>> >>> >>> Barb, >>> >>> I think the only way to completely "tie it all together" >>> is to use SQL Server and an ADP. Behind the forms and such >>> it s completely ADO. MDEs are not if you use a bound form. >>> >>> Robert >>> >>> P.S. Besides, I would never use Access for the database any way. >>> SQL Server is much better at storing it and being stable. >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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.eu Tue Feb 20 17:54:22 2007 From: Erwin.Craps at ithelps.eu (Erwin Craps - IT Helps) Date: Wed, 21 Feb 2007 00:54:22 +0100 Subject: [AccessD] Automating email References: <20070220004505.YMFB25916.fep04.xtra.co.nz@Dalyn.dalyn.co.nz><005201c7548a$1e9d8c10$6401a8c0@office> <20070220183803.KUO26198.fep06.xtra.co.nz@Dalyn.dalyn.co.nz> Message-ID: <430E80531228BA4497C5EB1A7BA786B0024292@stekelbes.ithelps.local> Euh, Maybe I'm wrong with this but isn't CDO only available on a server running Exchange Server? -----Oorspronkelijk bericht----- Van: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] Namens David Emerson Verzonden: dinsdag 20 februari 2007 19:38 Aan: Access Developers discussion and problem solving Onderwerp: Re: [AccessD] Automating email Thanks Kath and Erwin, I eventually found some code that doesn't rely on outlook but uses another file called CDOEx.dll. It doesn't leave any items in outlook. In references you need to set the reference to Microsoft CDO for Exchange 2000 Library Public Function SendCdoMsg() On Error GoTo Err_SendCdoMsg Dim msg As Message Set msg = CreateObject("CDO.Message") With msg With .Configuration.Fields .Item(cdoSMTPAuthenticate) = cdoAnonymous .Item(cdoSendUsingMethod) = cdoSendUsingPort .Item(cdoSMTPServer) = "smtp.xtra.co.nz" .Item(cdoSMTPConnectionTimeout) = 10 .Item(cdoSMTPServerPort) = 25 .Update End With .Organization = "my" .To = "you at yourprovider" .Subject = "Example subject" .TextBody = "Example body" .From = "me at myprovider" .AddAttachment ("d:\aaaatemp\accarch135.zip") .Send End With Set msg = Nothing Exit_SendCdoMsg: Exit Function Err_SendCdoMsg: Select Case Err Case 0 MsgBox "0 error", vbCritical, "Error heading" Case Else Call basErrorMsg("SendCdoMsg") End Select Resume Exit_SendCdoMsg End Function At 20/02/2007, you wrote: >Hi David - I only use the .Display option in my apps so that the users >can add some text to the email if they want to before it is sent, but >.send WILL send the email depending on their Outlook preferences. > >ie. if they have [tools] [options] [mail delivery] 'Send immediately >when connected' turned on, then yes, it will send. > >I haven;t found any way of that email not going into sent items though. > >Kath > > ----- Original Message ----- > From: David Emerson > To: accessd at databaseadvisors.com > Sent: Tuesday, February 20, 2007 11:31 AM > Subject: [AccessD] Automating email > > > Group, > > I have the following code to create an email message: > > Public Function basSendEmail() > > Dim outApp As Outlook.Application, outMsg As MailItem > > Set outApp = CreateObject("Outlook.Application") > Set outMsg = outApp.CreateItem(olMailItem) > > With outMsg > .To = "newsgrps at dalyn.co.nz" > .Subject = "Test egas email" > .Body = "Test message" > .Send > End With > > Set outApp = Nothing > Set outMsg = Nothing > > End Function > > This works fine but only puts the message into my Outlook outbox - it > doesn't send it. This may be because although I have outlook > installed I do not use it (and it has not been set up). > > However, my clients use outlook. Will the above code automatically > send out emails? > > Another question - My client would prefer not to have copies in their > outbox of the email being sent out (ultimately it will be to email > out accounts and they don't want thousands of emails generated each > month). Is there a way for the messages not to appear in outlook? > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >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 Feb 20 18:02:42 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 20 Feb 2007 16:02:42 -0800 Subject: [AccessD] Code Library, Sample Database, Etc. In-Reply-To: References: <003301c75546$60660980$9258eb44@50NM721> Message-ID: I CAN'T believe it! I think we just agreed! LOL Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Tuesday, February 20, 2007 3:36 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Library, Sample Database, Etc. If you aren't using User Level security, what's the point in any 'security' within the db anyhow? Let's say you have a form that only Mr. X should be able to use. This form edits tblXYZ. Sure, from the .mde interface only Mr. X would get the form, if you design it that way. But any Joe Schmoe can link to ALL the tables in the .mde, and do whatever they want to the data..... Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Tuesday, February 20, 2007 5:25 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Library, Sample Database, Etc. ...I'm left dazed by your disparagement of XP security! :) ...pray tell why in a 12 user office where no personal information is available in the app, the xp user logon should not be sufficient to determine access rights to forms needing restricted access based upon user roles? William Hindman ...apparently a paranoid programmer ...who knew? :) ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Tuesday, February 20, 2007 6:09 PM Subject: Re: [AccessD] Code Library, Sample Database, Etc. > The primary role of user security IMO has been to allow you to limit > ordinary users to working with the interface. It has never been robust > enough to keep out knowledgeable tamperers. However, I do NOT want Joe > User going in and mucking about with the interface or code I built just > because he now has full permissions to do so. I have never been wiling > to roll my own security system for Access because I object to > reinventing the wheel, even if the wheel is a bit crooked and flat on > one side. XP security in small business environments?? You MUST be > joking! I've never seen a small business environment with any security > that hadn't been added on by a paranoid programmer or systems guy! ;o> > > Charlotte > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William > Hindman > Sent: Tuesday, February 20, 2007 1:54 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Code Library, Sample Database, Etc. > > ...again Charlotte, that is heavily dependent upon the environment in > which you work ...Access based user security has been a farce since '95 > ...you cannot build an Access mdb to which I cannot gain access with > readily available tools, both free and inexpensive ...so you build your > own, a number of which are discussed in our archives, or you depend on > XP security in small business environments ...so the decision by the > Access development team to remove it from A'07 really has no bearing on > its continued use in those environments. > > William Hindman > > ----- Original Message ----- > From: "Charlotte Foust" > To: "Access Developers discussion and problem solving" > > Sent: Tuesday, February 20, 2007 4:02 PM > Subject: Re: [AccessD] Code Library, Sample Database, Etc. > > >>I don't think anyone is casting aspersions, William. But the simple >> truth is that without user security in Access mdbs, they become less >> than useful for multiuser solutions. That doesn't depend on object >> model, it depends on having a mechanism for controlling who gets into >> the application and keeping track of who's there. Without that >> capability, Access 2007 becomes a desktop database for power users or > a >> RAD frontend for SQL Server. >> >> Charlotte Foust >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William >> Hindman >> Sent: Tuesday, February 20, 2007 11:24 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >> >> Arthur >> >> ...its not a matter of agreeing or disagreeing ...if you work in an >> environment where SS is available and the notwork resources are >> available to support it, of course you would use SS in most >> applications. >> >> ...but if you are a consultant working with many small businesses > where >> you are it, then a well designed dao mdb fe/be can be highly stable > and >> work every bit as well as an adp/SS combo ...in point of fact with up > to >> at least >> 15 users a well designed dao based mdb will normally out perform an > ado >> based fe. >> >> ...and with A'07 it appears that MS itself is moving back to the dao >> model ...what irks me is people declaring that their favorite model is >> best for everyone ...or casting unwarranted aspersions on Access be's >> and dao when they really don't work in an environment where that model >> functions best. >> >> William Hindman >> >> ----- Original Message ----- >> From: >> To: "Access Developers discussion and problem solving" >> >> Sent: Tuesday, February 20, 2007 1:41 PM >> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >> >> >>> While I agree with you, I also fear that you will be flamed from >> numerous >>> devotees to the MDB BE concept. I have my flame extinguisher ready in >> case >>> you need it. >>> >>> >>> Arthur Fuller >>> Technical Writer, Data Modeler, SQL Sensei >>> Artful Databases Organization >>> www.artfulsoftware.com >>> >>> >>> >>> >>> ----- Original Message ---- >>> From: Robert L. Stewart >>> To: accessd at databaseadvisors.com >>> Cc: BarbaraRyan at cox.net >>> Sent: Tuesday, February 20, 2007 1:09:06 PM >>> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >>> >>> >>> Barb, >>> >>> I think the only way to completely "tie it all together" >>> is to use SQL Server and an ADP. Behind the forms and such >>> it s completely ADO. MDEs are not if you use a bound form. >>> >>> Robert >>> >>> P.S. Besides, I would never use Access for the database any way. >>> SQL Server is much better at storing it and being stable. >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Feb 20 18:03:55 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 20 Feb 2007 16:03:55 -0800 Subject: [AccessD] Automating email In-Reply-To: <430E80531228BA4497C5EB1A7BA786B0024292@stekelbes.ithelps.local> References: <20070220004505.YMFB25916.fep04.xtra.co.nz@Dalyn.dalyn.co.nz><005201c7548a$1e9d8c10$6401a8c0@office><20070220183803.KUO26198.fep06.xtra.co.nz@Dalyn.dalyn.co.nz> <430E80531228BA4497C5EB1A7BA786B0024292@stekelbes.ithelps.local> Message-ID: Nope, it's part of Office/Windows as well. But it is NOT installed and made available by default. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Tuesday, February 20, 2007 3:54 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Automating email Euh, Maybe I'm wrong with this but isn't CDO only available on a server running Exchange Server? -----Oorspronkelijk bericht----- Van: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] Namens David Emerson Verzonden: dinsdag 20 februari 2007 19:38 Aan: Access Developers discussion and problem solving Onderwerp: Re: [AccessD] Automating email Thanks Kath and Erwin, I eventually found some code that doesn't rely on outlook but uses another file called CDOEx.dll. It doesn't leave any items in outlook. In references you need to set the reference to Microsoft CDO for Exchange 2000 Library Public Function SendCdoMsg() On Error GoTo Err_SendCdoMsg Dim msg As Message Set msg = CreateObject("CDO.Message") With msg With .Configuration.Fields .Item(cdoSMTPAuthenticate) = cdoAnonymous .Item(cdoSendUsingMethod) = cdoSendUsingPort .Item(cdoSMTPServer) = "smtp.xtra.co.nz" .Item(cdoSMTPConnectionTimeout) = 10 .Item(cdoSMTPServerPort) = 25 .Update End With .Organization = "my" .To = "you at yourprovider" .Subject = "Example subject" .TextBody = "Example body" .From = "me at myprovider" .AddAttachment ("d:\aaaatemp\accarch135.zip") .Send End With Set msg = Nothing Exit_SendCdoMsg: Exit Function Err_SendCdoMsg: Select Case Err Case 0 MsgBox "0 error", vbCritical, "Error heading" Case Else Call basErrorMsg("SendCdoMsg") End Select Resume Exit_SendCdoMsg End Function At 20/02/2007, you wrote: >Hi David - I only use the .Display option in my apps so that the users >can add some text to the email if they want to before it is sent, but >.send WILL send the email depending on their Outlook preferences. > >ie. if they have [tools] [options] [mail delivery] 'Send immediately >when connected' turned on, then yes, it will send. > >I haven;t found any way of that email not going into sent items though. > >Kath > > ----- Original Message ----- > From: David Emerson > To: accessd at databaseadvisors.com > Sent: Tuesday, February 20, 2007 11:31 AM > Subject: [AccessD] Automating email > > > Group, > > I have the following code to create an email message: > > Public Function basSendEmail() > > Dim outApp As Outlook.Application, outMsg As MailItem > > Set outApp = CreateObject("Outlook.Application") > Set outMsg = outApp.CreateItem(olMailItem) > > With outMsg > .To = "newsgrps at dalyn.co.nz" > .Subject = "Test egas email" > .Body = "Test message" > .Send > End With > > Set outApp = Nothing > Set outMsg = Nothing > > End Function > > This works fine but only puts the message into my Outlook outbox - it > doesn't send it. This may be because although I have outlook > installed I do not use it (and it has not been set up). > > However, my clients use outlook. Will the above code automatically > send out emails? > > Another question - My client would prefer not to have copies in their > outbox of the email being sent out (ultimately it will be to email > out accounts and they don't want thousands of emails generated each > month). Is there a way for the messages not to appear in outlook? > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Tue Feb 20 18:11:53 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 20 Feb 2007 18:11:53 -0600 Subject: [AccessD] Code Library, Sample Database, Etc. In-Reply-To: Message-ID: I won't tell anyone if you don't... ;) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, February 20, 2007 6:03 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Library, Sample Database, Etc. I CAN'T believe it! I think we just agreed! LOL Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Tuesday, February 20, 2007 3:36 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Library, Sample Database, Etc. If you aren't using User Level security, what's the point in any 'security' within the db anyhow? Let's say you have a form that only Mr. X should be able to use. This form edits tblXYZ. Sure, from the .mde interface only Mr. X would get the form, if you design it that way. But any Joe Schmoe can link to ALL the tables in the .mde, and do whatever they want to the data..... Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Tuesday, February 20, 2007 5:25 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Library, Sample Database, Etc. ...I'm left dazed by your disparagement of XP security! :) ...pray tell why in a 12 user office where no personal information is available in the app, the xp user logon should not be sufficient to determine access rights to forms needing restricted access based upon user roles? William Hindman ...apparently a paranoid programmer ...who knew? :) ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Tuesday, February 20, 2007 6:09 PM Subject: Re: [AccessD] Code Library, Sample Database, Etc. > The primary role of user security IMO has been to allow you to limit > ordinary users to working with the interface. It has never been robust > enough to keep out knowledgeable tamperers. However, I do NOT want Joe > User going in and mucking about with the interface or code I built just > because he now has full permissions to do so. I have never been wiling > to roll my own security system for Access because I object to > reinventing the wheel, even if the wheel is a bit crooked and flat on > one side. XP security in small business environments?? You MUST be > joking! I've never seen a small business environment with any security > that hadn't been added on by a paranoid programmer or systems guy! ;o> > > Charlotte > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William > Hindman > Sent: Tuesday, February 20, 2007 1:54 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Code Library, Sample Database, Etc. > > ...again Charlotte, that is heavily dependent upon the environment in > which you work ...Access based user security has been a farce since '95 > ...you cannot build an Access mdb to which I cannot gain access with > readily available tools, both free and inexpensive ...so you build your > own, a number of which are discussed in our archives, or you depend on > XP security in small business environments ...so the decision by the > Access development team to remove it from A'07 really has no bearing on > its continued use in those environments. > > William Hindman > > ----- Original Message ----- > From: "Charlotte Foust" > To: "Access Developers discussion and problem solving" > > Sent: Tuesday, February 20, 2007 4:02 PM > Subject: Re: [AccessD] Code Library, Sample Database, Etc. > > >>I don't think anyone is casting aspersions, William. But the simple >> truth is that without user security in Access mdbs, they become less >> than useful for multiuser solutions. That doesn't depend on object >> model, it depends on having a mechanism for controlling who gets into >> the application and keeping track of who's there. Without that >> capability, Access 2007 becomes a desktop database for power users or > a >> RAD frontend for SQL Server. >> >> Charlotte Foust >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William >> Hindman >> Sent: Tuesday, February 20, 2007 11:24 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >> >> Arthur >> >> ...its not a matter of agreeing or disagreeing ...if you work in an >> environment where SS is available and the notwork resources are >> available to support it, of course you would use SS in most >> applications. >> >> ...but if you are a consultant working with many small businesses > where >> you are it, then a well designed dao mdb fe/be can be highly stable > and >> work every bit as well as an adp/SS combo ...in point of fact with up > to >> at least >> 15 users a well designed dao based mdb will normally out perform an > ado >> based fe. >> >> ...and with A'07 it appears that MS itself is moving back to the dao >> model ...what irks me is people declaring that their favorite model is >> best for everyone ...or casting unwarranted aspersions on Access be's >> and dao when they really don't work in an environment where that model >> functions best. >> >> William Hindman >> >> ----- Original Message ----- >> From: >> To: "Access Developers discussion and problem solving" >> >> Sent: Tuesday, February 20, 2007 1:41 PM >> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >> >> >>> While I agree with you, I also fear that you will be flamed from >> numerous >>> devotees to the MDB BE concept. I have my flame extinguisher ready in >> case >>> you need it. >>> >>> >>> Arthur Fuller >>> Technical Writer, Data Modeler, SQL Sensei >>> Artful Databases Organization >>> www.artfulsoftware.com >>> >>> >>> >>> >>> ----- Original Message ---- >>> From: Robert L. Stewart >>> To: accessd at databaseadvisors.com >>> Cc: BarbaraRyan at cox.net >>> Sent: Tuesday, February 20, 2007 1:09:06 PM >>> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >>> >>> >>> Barb, >>> >>> I think the only way to completely "tie it all together" >>> is to use SQL Server and an ADP. Behind the forms and such >>> it s completely ADO. MDEs are not if you use a bound form. >>> >>> Robert >>> >>> P.S. Besides, I would never use Access for the database any way. >>> SQL Server is much better at storing it and being stable. >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Tue Feb 20 18:26:14 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 20 Feb 2007 16:26:14 -0800 Subject: [AccessD] Automating email In-Reply-To: <430E80531228BA4497C5EB1A7BA786B0024292@stekelbes.ithelps.local> References: <20070220004505.YMFB25916.fep04.xtra.co.nz@Dalyn.dalyn.co.nz> <005201c7548a$1e9d8c10$6401a8c0@office> <20070220183803.KUO26198.fep06.xtra.co.nz@Dalyn.dalyn.co.nz> <430E80531228BA4497C5EB1A7BA786B0024292@stekelbes.ithelps.local> Message-ID: <45DB91A6.8010801@shaw.ca> Nope the CDO client dll stuff comes with Win2000 and WinXP I think if at least Outlook express is installed. Should work with CDOSys.dll Windows Collaboration Objects CDONTS, CDOSYS, and CDOEX use Outlook Express DLLs See http://www.cdolive.com/cdo8.htm Erwin Craps - IT Helps wrote: >Euh, Maybe I'm wrong with this but isn't CDO only available on a server >running Exchange Server? > >-----Oorspronkelijk bericht----- >Van: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] Namens David Emerson >Verzonden: dinsdag 20 februari 2007 19:38 >Aan: Access Developers discussion and problem solving >Onderwerp: Re: [AccessD] Automating email > >Thanks Kath and Erwin, > >I eventually found some code that doesn't rely on outlook but uses >another file called CDOEx.dll. It doesn't leave any items in outlook. > >In references you need to set the reference to Microsoft CDO for >Exchange 2000 Library > >Public Function SendCdoMsg() > > On Error GoTo Err_SendCdoMsg > > Dim msg As Message > > Set msg = CreateObject("CDO.Message") > > With msg > With .Configuration.Fields > .Item(cdoSMTPAuthenticate) = cdoAnonymous > .Item(cdoSendUsingMethod) = cdoSendUsingPort > .Item(cdoSMTPServer) = "smtp.xtra.co.nz" > .Item(cdoSMTPConnectionTimeout) = 10 > .Item(cdoSMTPServerPort) = 25 > .Update > End With > .Organization = "my" > .To = "you at yourprovider" > .Subject = "Example subject" > .TextBody = "Example body" > .From = "me at myprovider" > .AddAttachment ("d:\aaaatemp\accarch135.zip") > .Send > End With > > Set msg = Nothing > >Exit_SendCdoMsg: > Exit Function > >Err_SendCdoMsg: > Select Case Err > Case 0 > MsgBox "0 error", vbCritical, "Error heading" > Case Else > Call basErrorMsg("SendCdoMsg") > End Select > Resume Exit_SendCdoMsg > >End Function > > >At 20/02/2007, you wrote: > > >>Hi David - I only use the .Display option in my apps so that the users >>can add some text to the email if they want to before it is sent, but >>.send WILL send the email depending on their Outlook preferences. >> >>ie. if they have [tools] [options] [mail delivery] 'Send immediately >>when connected' turned on, then yes, it will send. >> >>I haven;t found any way of that email not going into sent items though. >> >>Kath >> >> ----- Original Message ----- >> From: David Emerson >> To: accessd at databaseadvisors.com >> Sent: Tuesday, February 20, 2007 11:31 AM >> Subject: [AccessD] Automating email >> >> >> Group, >> >> I have the following code to create an email message: >> >> Public Function basSendEmail() >> >> Dim outApp As Outlook.Application, outMsg As MailItem >> >> Set outApp = CreateObject("Outlook.Application") >> Set outMsg = outApp.CreateItem(olMailItem) >> >> With outMsg >> .To = "newsgrps at dalyn.co.nz" >> .Subject = "Test egas email" >> .Body = "Test message" >> .Send >> End With >> >> Set outApp = Nothing >> Set outMsg = Nothing >> >> End Function >> >> This works fine but only puts the message into my Outlook outbox - >> >> >it > > >> doesn't send it. This may be because although I have outlook >> installed I do not use it (and it has not been set up). >> >> However, my clients use outlook. Will the above code automatically >> send out emails? >> >> Another question - My client would prefer not to have copies in >> >> >their > > >> outbox of the email being sent out (ultimately it will be to email >> out accounts and they don't want thousands of emails generated each >> month). Is there a way for the messages not to appear in outlook? >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >> > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > -- Marty Connelly Victoria, B.C. Canada From wdhindman at dejpolsystems.com Tue Feb 20 18:42:37 2007 From: wdhindman at dejpolsystems.com (William Hindman) Date: Tue, 20 Feb 2007 19:42:37 -0500 Subject: [AccessD] Code Library, Sample Database, Etc. References: Message-ID: <000901c75551$2ff29f10$9258eb44@50NM721> ...not in a runtime environment :) William Hindman ----- Original Message ----- From: "Drew Wutka" To: "Access Developers discussion and problem solving" Sent: Tuesday, February 20, 2007 6:35 PM Subject: Re: [AccessD] Code Library, Sample Database, Etc. > If you aren't using User Level security, what's the point in any > 'security' within the db anyhow? > > Let's say you have a form that only Mr. X should be able to use. This > form edits tblXYZ. Sure, from the .mde interface only Mr. X would get > the form, if you design it that way. But any Joe Schmoe can link to ALL > the tables in the .mde, and do whatever they want to the data..... > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William > Hindman > Sent: Tuesday, February 20, 2007 5:25 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Code Library, Sample Database, Etc. > > ...I'm left dazed by your disparagement of XP security! :) > > ...pray tell why in a 12 user office where no personal information is > available in the app, the xp user logon should not be sufficient to > determine access rights to forms needing restricted access based upon > user > roles? > > William Hindman ...apparently a paranoid programmer ...who knew? :) > > ----- Original Message ----- > From: "Charlotte Foust" > To: "Access Developers discussion and problem solving" > > Sent: Tuesday, February 20, 2007 6:09 PM > Subject: Re: [AccessD] Code Library, Sample Database, Etc. > > >> The primary role of user security IMO has been to allow you to limit >> ordinary users to working with the interface. It has never been > robust >> enough to keep out knowledgeable tamperers. However, I do NOT want > Joe >> User going in and mucking about with the interface or code I built > just >> because he now has full permissions to do so. I have never been > wiling >> to roll my own security system for Access because I object to >> reinventing the wheel, even if the wheel is a bit crooked and flat on >> one side. XP security in small business environments?? You MUST be >> joking! I've never seen a small business environment with any > security >> that hadn't been added on by a paranoid programmer or systems guy! ;o> >> >> Charlotte >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William >> Hindman >> Sent: Tuesday, February 20, 2007 1:54 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >> >> ...again Charlotte, that is heavily dependent upon the environment in >> which you work ...Access based user security has been a farce since > '95 >> ...you cannot build an Access mdb to which I cannot gain access with >> readily available tools, both free and inexpensive ...so you build > your >> own, a number of which are discussed in our archives, or you depend on >> XP security in small business environments ...so the decision by the >> Access development team to remove it from A'07 really has no bearing > on >> its continued use in those environments. >> >> William Hindman >> >> ----- Original Message ----- >> From: "Charlotte Foust" >> To: "Access Developers discussion and problem solving" >> >> Sent: Tuesday, February 20, 2007 4:02 PM >> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >> >> >>>I don't think anyone is casting aspersions, William. But the simple >>> truth is that without user security in Access mdbs, they become less >>> than useful for multiuser solutions. That doesn't depend on object >>> model, it depends on having a mechanism for controlling who gets into >>> the application and keeping track of who's there. Without that >>> capability, Access 2007 becomes a desktop database for power users or >> a >>> RAD frontend for SQL Server. >>> >>> Charlotte Foust >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William >>> Hindman >>> Sent: Tuesday, February 20, 2007 11:24 AM >>> To: Access Developers discussion and problem solving >>> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >>> >>> Arthur >>> >>> ...its not a matter of agreeing or disagreeing ...if you work in an >>> environment where SS is available and the notwork resources are >>> available to support it, of course you would use SS in most >>> applications. >>> >>> ...but if you are a consultant working with many small businesses >> where >>> you are it, then a well designed dao mdb fe/be can be highly stable >> and >>> work every bit as well as an adp/SS combo ...in point of fact with up >> to >>> at least >>> 15 users a well designed dao based mdb will normally out perform an >> ado >>> based fe. >>> >>> ...and with A'07 it appears that MS itself is moving back to the dao >>> model ...what irks me is people declaring that their favorite model > is >>> best for everyone ...or casting unwarranted aspersions on Access be's >>> and dao when they really don't work in an environment where that > model >>> functions best. >>> >>> William Hindman >>> >>> ----- Original Message ----- >>> From: >>> To: "Access Developers discussion and problem solving" >>> >>> Sent: Tuesday, February 20, 2007 1:41 PM >>> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >>> >>> >>>> While I agree with you, I also fear that you will be flamed from >>> numerous >>>> devotees to the MDB BE concept. I have my flame extinguisher ready > in >>> case >>>> you need it. >>>> >>>> >>>> Arthur Fuller >>>> Technical Writer, Data Modeler, SQL Sensei >>>> Artful Databases Organization >>>> www.artfulsoftware.com >>>> >>>> >>>> >>>> >>>> ----- Original Message ---- >>>> From: Robert L. Stewart >>>> To: accessd at databaseadvisors.com >>>> Cc: BarbaraRyan at cox.net >>>> Sent: Tuesday, February 20, 2007 1:09:06 PM >>>> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >>>> >>>> >>>> Barb, >>>> >>>> I think the only way to completely "tie it all together" >>>> is to use SQL Server and an ADP. Behind the forms and such >>>> it s completely ADO. MDEs are not if you use a bound form. >>>> >>>> Robert >>>> >>>> P.S. Besides, I would never use Access for the database any way. >>>> SQL Server is much better at storing it and being stable. >>>> -- >>>> AccessD mailing list >>>> AccessD at databaseadvisors.com >>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>> Website: http://www.databaseadvisors.com >>>> >>> >>> >>> >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 at ddisolutions.com.au Tue Feb 20 19:00:04 2007 From: michael at ddisolutions.com.au (Michael Maddison) Date: Wed, 21 Feb 2007 12:00:04 +1100 Subject: [AccessD] Automating email References: <20070220004505.YMFB25916.fep04.xtra.co.nz@Dalyn.dalyn.co.nz><005201c7548a$1e9d8c10$6401a8c0@office><20070220183803.KUO26198.fep06.xtra.co.nz@Dalyn.dalyn.co.nz><430E80531228BA4497C5EB1A7BA786B0024292@stekelbes.ithelps.local> <45DB91A6.8010801@shaw.ca> Message-ID: <59A61174B1F5B54B97FD4ADDE71E7D0116B071@ddi-01.DDI.local> I think there are different versions where some only work on the Exchange server. We are starting to use WebDav in a C# project, I seem to recall seeing VB6 sample code on MSDN. The advantage of WebDav is that no CDO or other libraries are required except for MSXML(?) which is a standard Windows dll. cheers Michael M Subject: Re: [AccessD] Automating email Nope the CDO client dll stuff comes with Win2000 and WinXP I think if at least Outlook express is installed. Should work with CDOSys.dll Windows Collaboration Objects CDONTS, CDOSYS, and CDOEX use Outlook Express DLLs See http://www.cdolive.com/cdo8.htm Erwin Craps - IT Helps wrote: >Euh, Maybe I'm wrong with this but isn't CDO only available on a server >running Exchange Server? > >-----Oorspronkelijk bericht----- >Van: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] Namens David Emerson >Verzonden: dinsdag 20 februari 2007 19:38 >Aan: Access Developers discussion and problem solving >Onderwerp: Re: [AccessD] Automating email > >Thanks Kath and Erwin, > >I eventually found some code that doesn't rely on outlook but uses >another file called CDOEx.dll. It doesn't leave any items in outlook. > >In references you need to set the reference to Microsoft CDO for >Exchange 2000 Library > >Public Function SendCdoMsg() > > On Error GoTo Err_SendCdoMsg > > Dim msg As Message > > Set msg = CreateObject("CDO.Message") > > With msg > With .Configuration.Fields > .Item(cdoSMTPAuthenticate) = cdoAnonymous > .Item(cdoSendUsingMethod) = cdoSendUsingPort > .Item(cdoSMTPServer) = "smtp.xtra.co.nz" > .Item(cdoSMTPConnectionTimeout) = 10 > .Item(cdoSMTPServerPort) = 25 > .Update > End With > .Organization = "my" > .To = "you at yourprovider" > .Subject = "Example subject" > .TextBody = "Example body" > .From = "me at myprovider" > .AddAttachment ("d:\aaaatemp\accarch135.zip") > .Send > End With > > Set msg = Nothing > >Exit_SendCdoMsg: > Exit Function > >Err_SendCdoMsg: > Select Case Err > Case 0 > MsgBox "0 error", vbCritical, "Error heading" > Case Else > Call basErrorMsg("SendCdoMsg") > End Select > Resume Exit_SendCdoMsg > >End Function > > >At 20/02/2007, you wrote: > > >>Hi David - I only use the .Display option in my apps so that the users >>can add some text to the email if they want to before it is sent, but >>.send WILL send the email depending on their Outlook preferences. >> >>ie. if they have [tools] [options] [mail delivery] 'Send immediately >>when connected' turned on, then yes, it will send. >> >>I haven;t found any way of that email not going into sent items though. >> >>Kath >> >> ----- Original Message ----- >> From: David Emerson >> To: accessd at databaseadvisors.com >> Sent: Tuesday, February 20, 2007 11:31 AM >> Subject: [AccessD] Automating email >> >> >> Group, >> >> I have the following code to create an email message: >> >> Public Function basSendEmail() >> >> Dim outApp As Outlook.Application, outMsg As MailItem >> >> Set outApp = CreateObject("Outlook.Application") >> Set outMsg = outApp.CreateItem(olMailItem) >> >> With outMsg >> .To = "newsgrps at dalyn.co.nz" >> .Subject = "Test egas email" >> .Body = "Test message" >> .Send >> End With >> >> Set outApp = Nothing >> Set outMsg = Nothing >> >> End Function >> >> This works fine but only puts the message into my Outlook outbox - >> >> >it > > >> doesn't send it. This may be because although I have outlook >> installed I do not use it (and it has not been set up). >> >> However, my clients use outlook. Will the above code automatically >> send out emails? >> >> Another question - My client would prefer not to have copies in >> >> >their > > >> outbox of the email being sent out (ultimately it will be to email >> out accounts and they don't want thousands of emails generated each >> month). Is there a way for the messages not to appear in outlook? >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/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 DWUTKA at Marlow.com Tue Feb 20 19:03:37 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 20 Feb 2007 19:03:37 -0600 Subject: [AccessD] Code Library, Sample Database, Etc. In-Reply-To: <000901c75551$2ff29f10$9258eb44@50NM721> Message-ID: Yep..... even in a runtime environment. An .mde only protects the forms/reports/code. The tables (and querries and the data within) are still accessible through ANYTHING that can connect to an Access .mdb. (Access itself, Excel, word, VBScript, heck, anything that can use ADO or DAO.). The only thing that protects an Access table (whether it's an .mdb, or .mde) is Access User Level Security. Don't believe me? Just open an .mdb, and go link a table, find an .mde to link to, and you'll see ALL of your tables right there.... Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Tuesday, February 20, 2007 6:43 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Library, Sample Database, Etc. ...not in a runtime environment :) William Hindman ----- Original Message ----- From: "Drew Wutka" To: "Access Developers discussion and problem solving" Sent: Tuesday, February 20, 2007 6:35 PM Subject: Re: [AccessD] Code Library, Sample Database, Etc. > If you aren't using User Level security, what's the point in any > 'security' within the db anyhow? > > Let's say you have a form that only Mr. X should be able to use. This > form edits tblXYZ. Sure, from the .mde interface only Mr. X would get > the form, if you design it that way. But any Joe Schmoe can link to ALL > the tables in the .mde, and do whatever they want to the data..... > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William > Hindman > Sent: Tuesday, February 20, 2007 5:25 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Code Library, Sample Database, Etc. > > ...I'm left dazed by your disparagement of XP security! :) > > ...pray tell why in a 12 user office where no personal information is > available in the app, the xp user logon should not be sufficient to > determine access rights to forms needing restricted access based upon > user > roles? > > William Hindman ...apparently a paranoid programmer ...who knew? :) > > ----- Original Message ----- > From: "Charlotte Foust" > To: "Access Developers discussion and problem solving" > > Sent: Tuesday, February 20, 2007 6:09 PM > Subject: Re: [AccessD] Code Library, Sample Database, Etc. > > >> The primary role of user security IMO has been to allow you to limit >> ordinary users to working with the interface. It has never been > robust >> enough to keep out knowledgeable tamperers. However, I do NOT want > Joe >> User going in and mucking about with the interface or code I built > just >> because he now has full permissions to do so. I have never been > wiling >> to roll my own security system for Access because I object to >> reinventing the wheel, even if the wheel is a bit crooked and flat on >> one side. XP security in small business environments?? You MUST be >> joking! I've never seen a small business environment with any > security >> that hadn't been added on by a paranoid programmer or systems guy! ;o> >> >> Charlotte >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William >> Hindman >> Sent: Tuesday, February 20, 2007 1:54 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >> >> ...again Charlotte, that is heavily dependent upon the environment in >> which you work ...Access based user security has been a farce since > '95 >> ...you cannot build an Access mdb to which I cannot gain access with >> readily available tools, both free and inexpensive ...so you build > your >> own, a number of which are discussed in our archives, or you depend on >> XP security in small business environments ...so the decision by the >> Access development team to remove it from A'07 really has no bearing > on >> its continued use in those environments. >> >> William Hindman >> >> ----- Original Message ----- >> From: "Charlotte Foust" >> To: "Access Developers discussion and problem solving" >> >> Sent: Tuesday, February 20, 2007 4:02 PM >> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >> >> >>>I don't think anyone is casting aspersions, William. But the simple >>> truth is that without user security in Access mdbs, they become less >>> than useful for multiuser solutions. That doesn't depend on object >>> model, it depends on having a mechanism for controlling who gets into >>> the application and keeping track of who's there. Without that >>> capability, Access 2007 becomes a desktop database for power users or >> a >>> RAD frontend for SQL Server. >>> >>> Charlotte Foust >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William >>> Hindman >>> Sent: Tuesday, February 20, 2007 11:24 AM >>> To: Access Developers discussion and problem solving >>> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >>> >>> Arthur >>> >>> ...its not a matter of agreeing or disagreeing ...if you work in an >>> environment where SS is available and the notwork resources are >>> available to support it, of course you would use SS in most >>> applications. >>> >>> ...but if you are a consultant working with many small businesses >> where >>> you are it, then a well designed dao mdb fe/be can be highly stable >> and >>> work every bit as well as an adp/SS combo ...in point of fact with up >> to >>> at least >>> 15 users a well designed dao based mdb will normally out perform an >> ado >>> based fe. >>> >>> ...and with A'07 it appears that MS itself is moving back to the dao >>> model ...what irks me is people declaring that their favorite model > is >>> best for everyone ...or casting unwarranted aspersions on Access be's >>> and dao when they really don't work in an environment where that > model >>> functions best. >>> >>> William Hindman >>> >>> ----- Original Message ----- >>> From: >>> To: "Access Developers discussion and problem solving" >>> >>> Sent: Tuesday, February 20, 2007 1:41 PM >>> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >>> >>> >>>> While I agree with you, I also fear that you will be flamed from >>> numerous >>>> devotees to the MDB BE concept. I have my flame extinguisher ready > in >>> case >>>> you need it. >>>> >>>> >>>> Arthur Fuller >>>> Technical Writer, Data Modeler, SQL Sensei >>>> Artful Databases Organization >>>> www.artfulsoftware.com >>>> >>>> >>>> >>>> >>>> ----- Original Message ---- >>>> From: Robert L. Stewart >>>> To: accessd at databaseadvisors.com >>>> Cc: BarbaraRyan at cox.net >>>> Sent: Tuesday, February 20, 2007 1:09:06 PM >>>> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >>>> >>>> >>>> Barb, >>>> >>>> I think the only way to completely "tie it all together" >>>> is to use SQL Server and an ADP. Behind the forms and such >>>> it s completely ADO. MDEs are not if you use a bound form. >>>> >>>> Robert >>>> >>>> P.S. Besides, I would never use Access for the database any way. >>>> SQL Server is much better at storing it and being stable. >>>> -- >>>> AccessD mailing list >>>> AccessD at databaseadvisors.com >>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>> Website: http://www.databaseadvisors.com >>>> >>> >>> >>> >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 setel.com Tue Feb 20 20:04:33 2007 From: ssharkins at setel.com (Susan Harkins) Date: Tue, 20 Feb 2007 21:04:33 -0500 Subject: [AccessD] Reset OrderBy Message-ID: <004d01c7555c$a1e04450$3432fad1@SUSANONE> I'm using a simple procedure to set a form's OrderBy property. When I close the form, I want to delete any setting, so that the property isn't saved with the form. How can I do that? I tried Private Sub Form_Close() 'Reset Order By property Me.OrderBy = "" End Sub But it doesn't work. Checked Help but didn't find anything helpful. I don't really want to set the sort order to "" -- I just want to wipe it clean. My guess is the property doesn't recognize "", although it doesn't error. Susan H. From mmattys at rochester.rr.com Tue Feb 20 20:18:25 2007 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Tue, 20 Feb 2007 21:18:25 -0500 Subject: [AccessD] Reset OrderBy References: <004d01c7555c$a1e04450$3432fad1@SUSANONE> Message-ID: <00a201c7555e$93bc0c90$0202a8c0@default> Hi Susan, If I recall correctly, you'd use .OrderByOn = False Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "Susan Harkins" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, February 20, 2007 9:04 PM Subject: [AccessD] Reset OrderBy > I'm using a simple procedure to set a form's OrderBy property. When I > close > the form, I want to delete any setting, so that the property isn't saved > with the form. How can I do that? I tried > > Private Sub Form_Close() > 'Reset Order By property > Me.OrderBy = "" > End Sub > > But it doesn't work. Checked Help but didn't find anything helpful. I > don't > really want to set the sort order to "" -- I just want to wipe it clean. > My > guess is the property doesn't recognize "", although it doesn't error. > > Susan H. > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Tue Feb 20 22:52:24 2007 From: wdhindman at dejpolsystems.com (William Hindman) Date: Tue, 20 Feb 2007 23:52:24 -0500 Subject: [AccessD] Code Library, Sample Database, Etc. References: Message-ID: <002701c75574$14807a40$9258eb44@50NM721> ...lol ...while technically true its not a concern ...my users don't have Access installed and William Hindman ----- Original Message ----- From: "Drew Wutka" To: "Access Developers discussion and problem solving" Sent: Tuesday, February 20, 2007 8:03 PM Subject: Re: [AccessD] Code Library, Sample Database, Etc. > Yep..... even in a runtime environment. An .mde only protects the > forms/reports/code. The tables (and querries and the data within) are > still accessible through ANYTHING that can connect to an Access .mdb. > (Access itself, Excel, word, VBScript, heck, anything that can use ADO > or DAO.). > > The only thing that protects an Access table (whether it's an .mdb, or > .mde) is Access User Level Security. > > Don't believe me? Just open an .mdb, and go link a table, find an .mde > to link to, and you'll see ALL of your tables right there.... > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William > Hindman > Sent: Tuesday, February 20, 2007 6:43 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Code Library, Sample Database, Etc. > > ...not in a runtime environment :) > > William Hindman > > ----- Original Message ----- > From: "Drew Wutka" > To: "Access Developers discussion and problem solving" > > Sent: Tuesday, February 20, 2007 6:35 PM > Subject: Re: [AccessD] Code Library, Sample Database, Etc. > > >> If you aren't using User Level security, what's the point in any >> 'security' within the db anyhow? >> >> Let's say you have a form that only Mr. X should be able to use. This >> form edits tblXYZ. Sure, from the .mde interface only Mr. X would get >> the form, if you design it that way. But any Joe Schmoe can link to > ALL >> the tables in the .mde, and do whatever they want to the data..... >> >> Drew >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William >> Hindman >> Sent: Tuesday, February 20, 2007 5:25 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >> >> ...I'm left dazed by your disparagement of XP security! :) >> >> ...pray tell why in a 12 user office where no personal information is >> available in the app, the xp user logon should not be sufficient to >> determine access rights to forms needing restricted access based upon >> user >> roles? >> >> William Hindman ...apparently a paranoid programmer ...who knew? :) >> >> ----- Original Message ----- >> From: "Charlotte Foust" >> To: "Access Developers discussion and problem solving" >> >> Sent: Tuesday, February 20, 2007 6:09 PM >> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >> >> >>> The primary role of user security IMO has been to allow you to limit >>> ordinary users to working with the interface. It has never been >> robust >>> enough to keep out knowledgeable tamperers. However, I do NOT want >> Joe >>> User going in and mucking about with the interface or code I built >> just >>> because he now has full permissions to do so. I have never been >> wiling >>> to roll my own security system for Access because I object to >>> reinventing the wheel, even if the wheel is a bit crooked and flat on >>> one side. XP security in small business environments?? You MUST be >>> joking! I've never seen a small business environment with any >> security >>> that hadn't been added on by a paranoid programmer or systems guy! > ;o> >>> >>> Charlotte >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William >>> Hindman >>> Sent: Tuesday, February 20, 2007 1:54 PM >>> To: Access Developers discussion and problem solving >>> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >>> >>> ...again Charlotte, that is heavily dependent upon the environment in >>> which you work ...Access based user security has been a farce since >> '95 >>> ...you cannot build an Access mdb to which I cannot gain access with >>> readily available tools, both free and inexpensive ...so you build >> your >>> own, a number of which are discussed in our archives, or you depend > on >>> XP security in small business environments ...so the decision by the >>> Access development team to remove it from A'07 really has no bearing >> on >>> its continued use in those environments. >>> >>> William Hindman >>> >>> ----- Original Message ----- >>> From: "Charlotte Foust" >>> To: "Access Developers discussion and problem solving" >>> >>> Sent: Tuesday, February 20, 2007 4:02 PM >>> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >>> >>> >>>>I don't think anyone is casting aspersions, William. But the simple >>>> truth is that without user security in Access mdbs, they become less >>>> than useful for multiuser solutions. That doesn't depend on object >>>> model, it depends on having a mechanism for controlling who gets > into >>>> the application and keeping track of who's there. Without that >>>> capability, Access 2007 becomes a desktop database for power users > or >>> a >>>> RAD frontend for SQL Server. >>>> >>>> Charlotte Foust >>>> >>>> -----Original Message----- >>>> From: accessd-bounces at databaseadvisors.com >>>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William >>>> Hindman >>>> Sent: Tuesday, February 20, 2007 11:24 AM >>>> To: Access Developers discussion and problem solving >>>> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >>>> >>>> Arthur >>>> >>>> ...its not a matter of agreeing or disagreeing ...if you work in an >>>> environment where SS is available and the notwork resources are >>>> available to support it, of course you would use SS in most >>>> applications. >>>> >>>> ...but if you are a consultant working with many small businesses >>> where >>>> you are it, then a well designed dao mdb fe/be can be highly stable >>> and >>>> work every bit as well as an adp/SS combo ...in point of fact with > up >>> to >>>> at least >>>> 15 users a well designed dao based mdb will normally out perform an >>> ado >>>> based fe. >>>> >>>> ...and with A'07 it appears that MS itself is moving back to the dao >>>> model ...what irks me is people declaring that their favorite model >> is >>>> best for everyone ...or casting unwarranted aspersions on Access > be's >>>> and dao when they really don't work in an environment where that >> model >>>> functions best. >>>> >>>> William Hindman >>>> >>>> ----- Original Message ----- >>>> From: >>>> To: "Access Developers discussion and problem solving" >>>> >>>> Sent: Tuesday, February 20, 2007 1:41 PM >>>> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >>>> >>>> >>>>> While I agree with you, I also fear that you will be flamed from >>>> numerous >>>>> devotees to the MDB BE concept. I have my flame extinguisher ready >> in >>>> case >>>>> you need it. >>>>> >>>>> >>>>> Arthur Fuller >>>>> Technical Writer, Data Modeler, SQL Sensei >>>>> Artful Databases Organization >>>>> www.artfulsoftware.com >>>>> >>>>> >>>>> >>>>> >>>>> ----- Original Message ---- >>>>> From: Robert L. Stewart >>>>> To: accessd at databaseadvisors.com >>>>> Cc: BarbaraRyan at cox.net >>>>> Sent: Tuesday, February 20, 2007 1:09:06 PM >>>>> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >>>>> >>>>> >>>>> Barb, >>>>> >>>>> I think the only way to completely "tie it all together" >>>>> is to use SQL Server and an ADP. Behind the forms and such >>>>> it s completely ADO. MDEs are not if you use a bound form. >>>>> >>>>> Robert >>>>> >>>>> P.S. Besides, I would never use Access for the database any way. >>>>> SQL Server is much better at storing it and being stable. >>>>> -- >>>>> AccessD mailing list >>>>> AccessD at databaseadvisors.com >>>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>>> Website: http://www.databaseadvisors.com >>>>> >>>> >>>> >>>> >>>> >>>> -- >>>> AccessD mailing list >>>> AccessD at databaseadvisors.com >>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>> Website: http://www.databaseadvisors.com >>>> -- >>>> AccessD mailing list >>>> AccessD at databaseadvisors.com >>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>> Website: http://www.databaseadvisors.com >>>> >>> >>> >>> >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Tue Feb 20 22:57:21 2007 From: artful at rogers.com (artful at rogers.com) Date: Tue, 20 Feb 2007 20:57:21 -0800 (PST) Subject: [AccessD] Automating email Message-ID: <551548.20862.qm@web88201.mail.re2.yahoo.com> I think you are wrong. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Erwin Craps - IT Helps To: Access Developers discussion and problem solving Sent: Tuesday, February 20, 2007 6:54:22 PM Subject: Re: [AccessD] Automating email Euh, Maybe I'm wrong with this but isn't CDO only available on a server running Exchange Server? From wdhindman at dejpolsystems.com Tue Feb 20 22:57:01 2007 From: wdhindman at dejpolsystems.com (William Hindman) Date: Tue, 20 Feb 2007 23:57:01 -0500 Subject: [AccessD] Code Library, Sample Database, Etc. References: Message-ID: <002e01c75574$b9ec0ad0$9258eb44@50NM721> ...busted send ...anyway, while technically true, my users never have Access installed and there are no Wutka's among them ...I'm just not going to wet my pants over the possibility that one of them could use excel or word vba to get to the tables ...they all know I'd colbyize them :) William Hindman ----- Original Message ----- From: "Drew Wutka" To: "Access Developers discussion and problem solving" Sent: Tuesday, February 20, 2007 8:03 PM Subject: Re: [AccessD] Code Library, Sample Database, Etc. > Yep..... even in a runtime environment. An .mde only protects the > forms/reports/code. The tables (and querries and the data within) are > still accessible through ANYTHING that can connect to an Access .mdb. > (Access itself, Excel, word, VBScript, heck, anything that can use ADO > or DAO.). > > The only thing that protects an Access table (whether it's an .mdb, or > .mde) is Access User Level Security. > > Don't believe me? Just open an .mdb, and go link a table, find an .mde > to link to, and you'll see ALL of your tables right there.... > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William > Hindman > Sent: Tuesday, February 20, 2007 6:43 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Code Library, Sample Database, Etc. > > ...not in a runtime environment :) > > William Hindman > > ----- Original Message ----- > From: "Drew Wutka" > To: "Access Developers discussion and problem solving" > > Sent: Tuesday, February 20, 2007 6:35 PM > Subject: Re: [AccessD] Code Library, Sample Database, Etc. > > >> If you aren't using User Level security, what's the point in any >> 'security' within the db anyhow? >> >> Let's say you have a form that only Mr. X should be able to use. This >> form edits tblXYZ. Sure, from the .mde interface only Mr. X would get >> the form, if you design it that way. But any Joe Schmoe can link to > ALL >> the tables in the .mde, and do whatever they want to the data..... >> >> Drew >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William >> Hindman >> Sent: Tuesday, February 20, 2007 5:25 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >> >> ...I'm left dazed by your disparagement of XP security! :) >> >> ...pray tell why in a 12 user office where no personal information is >> available in the app, the xp user logon should not be sufficient to >> determine access rights to forms needing restricted access based upon >> user >> roles? >> >> William Hindman ...apparently a paranoid programmer ...who knew? :) >> >> ----- Original Message ----- >> From: "Charlotte Foust" >> To: "Access Developers discussion and problem solving" >> >> Sent: Tuesday, February 20, 2007 6:09 PM >> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >> >> >>> The primary role of user security IMO has been to allow you to limit >>> ordinary users to working with the interface. It has never been >> robust >>> enough to keep out knowledgeable tamperers. However, I do NOT want >> Joe >>> User going in and mucking about with the interface or code I built >> just >>> because he now has full permissions to do so. I have never been >> wiling >>> to roll my own security system for Access because I object to >>> reinventing the wheel, even if the wheel is a bit crooked and flat on >>> one side. XP security in small business environments?? You MUST be >>> joking! I've never seen a small business environment with any >> security >>> that hadn't been added on by a paranoid programmer or systems guy! > ;o> >>> >>> Charlotte >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William >>> Hindman >>> Sent: Tuesday, February 20, 2007 1:54 PM >>> To: Access Developers discussion and problem solving >>> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >>> >>> ...again Charlotte, that is heavily dependent upon the environment in >>> which you work ...Access based user security has been a farce since >> '95 >>> ...you cannot build an Access mdb to which I cannot gain access with >>> readily available tools, both free and inexpensive ...so you build >> your >>> own, a number of which are discussed in our archives, or you depend > on >>> XP security in small business environments ...so the decision by the >>> Access development team to remove it from A'07 really has no bearing >> on >>> its continued use in those environments. >>> >>> William Hindman >>> >>> ----- Original Message ----- >>> From: "Charlotte Foust" >>> To: "Access Developers discussion and problem solving" >>> >>> Sent: Tuesday, February 20, 2007 4:02 PM >>> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >>> >>> >>>>I don't think anyone is casting aspersions, William. But the simple >>>> truth is that without user security in Access mdbs, they become less >>>> than useful for multiuser solutions. That doesn't depend on object >>>> model, it depends on having a mechanism for controlling who gets > into >>>> the application and keeping track of who's there. Without that >>>> capability, Access 2007 becomes a desktop database for power users > or >>> a >>>> RAD frontend for SQL Server. >>>> >>>> Charlotte Foust >>>> >>>> -----Original Message----- >>>> From: accessd-bounces at databaseadvisors.com >>>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William >>>> Hindman >>>> Sent: Tuesday, February 20, 2007 11:24 AM >>>> To: Access Developers discussion and problem solving >>>> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >>>> >>>> Arthur >>>> >>>> ...its not a matter of agreeing or disagreeing ...if you work in an >>>> environment where SS is available and the notwork resources are >>>> available to support it, of course you would use SS in most >>>> applications. >>>> >>>> ...but if you are a consultant working with many small businesses >>> where >>>> you are it, then a well designed dao mdb fe/be can be highly stable >>> and >>>> work every bit as well as an adp/SS combo ...in point of fact with > up >>> to >>>> at least >>>> 15 users a well designed dao based mdb will normally out perform an >>> ado >>>> based fe. >>>> >>>> ...and with A'07 it appears that MS itself is moving back to the dao >>>> model ...what irks me is people declaring that their favorite model >> is >>>> best for everyone ...or casting unwarranted aspersions on Access > be's >>>> and dao when they really don't work in an environment where that >> model >>>> functions best. >>>> >>>> William Hindman >>>> >>>> ----- Original Message ----- >>>> From: >>>> To: "Access Developers discussion and problem solving" >>>> >>>> Sent: Tuesday, February 20, 2007 1:41 PM >>>> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >>>> >>>> >>>>> While I agree with you, I also fear that you will be flamed from >>>> numerous >>>>> devotees to the MDB BE concept. I have my flame extinguisher ready >> in >>>> case >>>>> you need it. >>>>> >>>>> >>>>> Arthur Fuller >>>>> Technical Writer, Data Modeler, SQL Sensei >>>>> Artful Databases Organization >>>>> www.artfulsoftware.com >>>>> >>>>> >>>>> >>>>> >>>>> ----- Original Message ---- >>>>> From: Robert L. Stewart >>>>> To: accessd at databaseadvisors.com >>>>> Cc: BarbaraRyan at cox.net >>>>> Sent: Tuesday, February 20, 2007 1:09:06 PM >>>>> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >>>>> >>>>> >>>>> Barb, >>>>> >>>>> I think the only way to completely "tie it all together" >>>>> is to use SQL Server and an ADP. Behind the forms and such >>>>> it s completely ADO. MDEs are not if you use a bound form. >>>>> >>>>> Robert >>>>> >>>>> P.S. Besides, I would never use Access for the database any way. >>>>> SQL Server is much better at storing it and being stable. >>>>> -- >>>>> AccessD mailing list >>>>> AccessD at databaseadvisors.com >>>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>>> Website: http://www.databaseadvisors.com >>>>> >>>> >>>> >>>> >>>> >>>> -- >>>> AccessD mailing list >>>> AccessD at databaseadvisors.com >>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>> Website: http://www.databaseadvisors.com >>>> -- >>>> AccessD mailing list >>>> AccessD at databaseadvisors.com >>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>> Website: http://www.databaseadvisors.com >>>> >>> >>> >>> >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 vftt.co.uk Tue Feb 20 23:11:47 2007 From: accessd at vftt.co.uk (Pete Phillipps) Date: Wed, 21 Feb 2007 05:11:47 -0000 Subject: [AccessD] MS TechNet sub Message-ID: <039301c75576$d13f31b0$0201a8c0@HOLTS> Hello Everyone, I'm a UK-based MCP, and I'm looking at taking out a MS TechNet Plus Direct subscription. Before I spend my money I was just wanting to see what others here who have a TechNet sub think about it. Pete "Many [wargame] battles have been fought and won by soldiers nourished on beer" - Frederick the Great, 1777 Download VIEW FROM THE TRENCHES (Britain's Premier ASL Journal) free from http://www.vftt.co.uk Get the latest news about HEROES(ASL in Blackpool) at http://www.vftt.co.uk/heroesdetails.asp Get the latest news about INTENSIVE FIRE (Britain's biggest ASL tournament) at http://www.vftt.co.uk/ifdetails.asp Get the latest UK ASL Tournament news at http://www.asltourneys.co.uk Support the best at http://www.manutd.com/ -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/694 - Release Date: 20/02/2007 13:44 From ebarro at verizon.net Tue Feb 20 23:35:35 2007 From: ebarro at verizon.net (Eric Barro) Date: Tue, 20 Feb 2007 21:35:35 -0800 Subject: [AccessD] Code Library, Sample Database, Etc. In-Reply-To: <002e01c75574$b9ec0ad0$9258eb44@50NM721> Message-ID: <0JDS004IMSV63AD3@vms040.mailsrvcs.net> Eh? Do you work for Microsoft? This sounds exactly like their security philosophy -- security by anonymity... ;) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Tuesday, February 20, 2007 8:57 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Library, Sample Database, Etc. ...busted send ...anyway, while technically true, my users never have Access installed and there are no Wutka's among them ...I'm just not going to wet my pants over the possibility that one of them could use excel or word vba to get to the tables ...they all know I'd colbyize them :) William Hindman ----- Original Message ----- From: "Drew Wutka" To: "Access Developers discussion and problem solving" Sent: Tuesday, February 20, 2007 8:03 PM Subject: Re: [AccessD] Code Library, Sample Database, Etc. > Yep..... even in a runtime environment. An .mde only protects the > forms/reports/code. The tables (and querries and the data within) are > still accessible through ANYTHING that can connect to an Access .mdb. > (Access itself, Excel, word, VBScript, heck, anything that can use ADO > or DAO.). > > The only thing that protects an Access table (whether it's an .mdb, or > .mde) is Access User Level Security. > > Don't believe me? Just open an .mdb, and go link a table, find an .mde > to link to, and you'll see ALL of your tables right there.... > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William > Hindman > Sent: Tuesday, February 20, 2007 6:43 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Code Library, Sample Database, Etc. > > ...not in a runtime environment :) > > William Hindman > > ----- Original Message ----- > From: "Drew Wutka" > To: "Access Developers discussion and problem solving" > > Sent: Tuesday, February 20, 2007 6:35 PM > Subject: Re: [AccessD] Code Library, Sample Database, Etc. > > >> If you aren't using User Level security, what's the point in any >> 'security' within the db anyhow? >> >> Let's say you have a form that only Mr. X should be able to use. This >> form edits tblXYZ. Sure, from the .mde interface only Mr. X would get >> the form, if you design it that way. But any Joe Schmoe can link to > ALL >> the tables in the .mde, and do whatever they want to the data..... >> >> Drew >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William >> Hindman >> Sent: Tuesday, February 20, 2007 5:25 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >> >> ...I'm left dazed by your disparagement of XP security! :) >> >> ...pray tell why in a 12 user office where no personal information is >> available in the app, the xp user logon should not be sufficient to >> determine access rights to forms needing restricted access based upon >> user >> roles? >> >> William Hindman ...apparently a paranoid programmer ...who knew? :) >> >> ----- Original Message ----- >> From: "Charlotte Foust" >> To: "Access Developers discussion and problem solving" >> >> Sent: Tuesday, February 20, 2007 6:09 PM >> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >> >> >>> The primary role of user security IMO has been to allow you to limit >>> ordinary users to working with the interface. It has never been >> robust >>> enough to keep out knowledgeable tamperers. However, I do NOT want >> Joe >>> User going in and mucking about with the interface or code I built >> just >>> because he now has full permissions to do so. I have never been >> wiling >>> to roll my own security system for Access because I object to >>> reinventing the wheel, even if the wheel is a bit crooked and flat on >>> one side. XP security in small business environments?? You MUST be >>> joking! I've never seen a small business environment with any >> security >>> that hadn't been added on by a paranoid programmer or systems guy! > ;o> >>> >>> Charlotte >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William >>> Hindman >>> Sent: Tuesday, February 20, 2007 1:54 PM >>> To: Access Developers discussion and problem solving >>> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >>> >>> ...again Charlotte, that is heavily dependent upon the environment in >>> which you work ...Access based user security has been a farce since >> '95 >>> ...you cannot build an Access mdb to which I cannot gain access with >>> readily available tools, both free and inexpensive ...so you build >> your >>> own, a number of which are discussed in our archives, or you depend > on >>> XP security in small business environments ...so the decision by the >>> Access development team to remove it from A'07 really has no bearing >> on >>> its continued use in those environments. >>> >>> William Hindman >>> >>> ----- Original Message ----- >>> From: "Charlotte Foust" >>> To: "Access Developers discussion and problem solving" >>> >>> Sent: Tuesday, February 20, 2007 4:02 PM >>> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >>> >>> >>>>I don't think anyone is casting aspersions, William. But the simple >>>> truth is that without user security in Access mdbs, they become less >>>> than useful for multiuser solutions. That doesn't depend on object >>>> model, it depends on having a mechanism for controlling who gets > into >>>> the application and keeping track of who's there. Without that >>>> capability, Access 2007 becomes a desktop database for power users > or >>> a >>>> RAD frontend for SQL Server. >>>> >>>> Charlotte Foust >>>> >>>> -----Original Message----- >>>> From: accessd-bounces at databaseadvisors.com >>>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William >>>> Hindman >>>> Sent: Tuesday, February 20, 2007 11:24 AM >>>> To: Access Developers discussion and problem solving >>>> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >>>> >>>> Arthur >>>> >>>> ...its not a matter of agreeing or disagreeing ...if you work in an >>>> environment where SS is available and the notwork resources are >>>> available to support it, of course you would use SS in most >>>> applications. >>>> >>>> ...but if you are a consultant working with many small businesses >>> where >>>> you are it, then a well designed dao mdb fe/be can be highly stable >>> and >>>> work every bit as well as an adp/SS combo ...in point of fact with > up >>> to >>>> at least >>>> 15 users a well designed dao based mdb will normally out perform an >>> ado >>>> based fe. >>>> >>>> ...and with A'07 it appears that MS itself is moving back to the dao >>>> model ...what irks me is people declaring that their favorite model >> is >>>> best for everyone ...or casting unwarranted aspersions on Access > be's >>>> and dao when they really don't work in an environment where that >> model >>>> functions best. >>>> >>>> William Hindman >>>> >>>> ----- Original Message ----- >>>> From: >>>> To: "Access Developers discussion and problem solving" >>>> >>>> Sent: Tuesday, February 20, 2007 1:41 PM >>>> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >>>> >>>> >>>>> While I agree with you, I also fear that you will be flamed from >>>> numerous >>>>> devotees to the MDB BE concept. I have my flame extinguisher ready >> in >>>> case >>>>> you need it. >>>>> >>>>> >>>>> Arthur Fuller >>>>> Technical Writer, Data Modeler, SQL Sensei >>>>> Artful Databases Organization >>>>> www.artfulsoftware.com >>>>> >>>>> >>>>> >>>>> >>>>> ----- Original Message ---- >>>>> From: Robert L. Stewart >>>>> To: accessd at databaseadvisors.com >>>>> Cc: BarbaraRyan at cox.net >>>>> Sent: Tuesday, February 20, 2007 1:09:06 PM >>>>> Subject: Re: [AccessD] Code Library, Sample Database, Etc. >>>>> >>>>> >>>>> Barb, >>>>> >>>>> I think the only way to completely "tie it all together" >>>>> is to use SQL Server and an ADP. Behind the forms and such >>>>> it s completely ADO. MDEs are not if you use a bound form. >>>>> >>>>> Robert >>>>> >>>>> P.S. Besides, I would never use Access for the database any way. >>>>> SQL Server is much better at storing it and being stable. >>>>> -- >>>>> AccessD mailing list >>>>> AccessD at databaseadvisors.com >>>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>>> Website: http://www.databaseadvisors.com >>>>> >>>> >>>> >>>> >>>> >>>> -- >>>> AccessD mailing list >>>> AccessD at databaseadvisors.com >>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>> Website: http://www.databaseadvisors.com >>>> -- >>>> AccessD mailing list >>>> AccessD at databaseadvisors.com >>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>> Website: http://www.databaseadvisors.com >>>> >>> >>> >>> >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/694 - Release Date: 2/20/2007 1:44 PM From stuart at lexacorp.com.pg Tue Feb 20 23:46:48 2007 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 21 Feb 2007 15:46:48 +1000 Subject: [AccessD] Reset OrderBy In-Reply-To: <004d01c7555c$a1e04450$3432fad1@SUSANONE> References: <004d01c7555c$a1e04450$3432fad1@SUSANONE> Message-ID: <45DC6968.18071.5965C9B@stuart.lexacorp.com.pg> On 20 Feb 2007 at 21:04, Susan Harkins wrote: > I'm using a simple procedure to set a form's OrderBy property. When I close > the form, I want to delete any setting, so that the property isn't saved > with the form. How can I do that? I tried > > Private Sub Form_Close() > 'Reset Order By property > Me.OrderBy = "" > End Sub > > But it doesn't work. Checked Help but didn't find anything helpful. I don't > really want to set the sort order to "" -- I just want to wipe it clean. My > guess is the property doesn't recognize "", although it doesn't error. It's been a bug since A97 at least. See http://groups.google.com/group/comp.databases.ms- access/browse_thread/thread/ebaf98ff09ceec48/237910f76c0b80a0%23237910 f76c0b80a0 (watch for wrap) Putting Me.OrderBy = "" in Form_Load does work, so do it there to insclear any old info instead. -- Stuart From djkr at msn.com Wed Feb 21 01:00:15 2007 From: djkr at msn.com (DJK(John) Robinson) Date: Wed, 21 Feb 2007 07:00:15 -0000 Subject: [AccessD] MS TechNet sub In-Reply-To: <039301c75576$d13f31b0$0201a8c0@HOLTS> Message-ID: Pete I haven't looked at TechNet for a long time (a) because I'm broke after paying for M$DN, and (b) because the last time I looked at it, there didn't seem to be much in it for me - it seemed much more aimed at sys admins rather than developers. But that was some years ago, so I'd be interested in hearing what you (and others) might get out of it. And now I'm off for an MSDN day with MS... John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Pete Phillipps Sent: 21 February 2007 05:12 To: 'Access Developers discussion and problem solving' Subject: [AccessD] MS TechNet sub Hello Everyone, I'm a UK-based MCP, and I'm looking at taking out a MS TechNet Plus Direct subscription. Before I spend my money I was just wanting to see what others here who have a TechNet sub think about it. Pete "Many [wargame] battles have been fought and won by soldiers nourished on beer" - Frederick the Great, 1777 Download VIEW FROM THE TRENCHES (Britain's Premier ASL Journal) free from http://www.vftt.co.uk Get the latest news about HEROES(ASL in Blackpool) at http://www.vftt.co.uk/heroesdetails.asp Get the latest news about INTENSIVE FIRE (Britain's biggest ASL tournament) at http://www.vftt.co.uk/ifdetails.asp Get the latest UK ASL Tournament news at http://www.asltourneys.co.uk Support the best at http://www.manutd.com/ -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/694 - Release Date: 20/02/2007 13:44 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Wed Feb 21 01:03:34 2007 From: DWUTKA at Marlow.com (Drew Wutka) Date: Wed, 21 Feb 2007 01:03:34 -0600 Subject: [AccessD] Code Library, Sample Database, Etc. In-Reply-To: <002e01c75574$b9ec0ad0$9258eb44@50NM721> Message-ID: Nothing technical about it. I've been around 'ignorant' security, the type where there's a nice brick wall in place, which has the thickness of a very thin sheet of paper, and the only reason users aren't messing with things is because they are ignorant. There are rare cases where this is ok, but a system that stores business data needs to be protected on a principle level. For example, I have built a LOT of little data dbs, receiving data from test machines. I set every single one up so that data can be entered, but not modified. I get questioned on this, and my answer is simple. There isn't a test machine in the world that needs it's data changed. That's the entire purpose of the test. Now, while you may not care if labbie X decides to tweak the data, I rest soundly in the knowledge that unless he IS a hacker, when the sh*t hits the fan over falsified data, my design is not in question. I think it just boils down to integrity. If I'm trusted to create a database to store data, my integrity is in the end result preventing someone from changing it, other then someone authorized to do so...and then it's their butt. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Tuesday, February 20, 2007 10:57 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Library, Sample Database, Etc. ...busted send ...anyway, while technically true, my users never have Access installed and there are no Wutka's among them ...I'm just not going to wet my pants over the possibility that one of them could use excel or word vba to get to the tables ...they all know I'd colbyize them :) William Hindman ----- Original Message ----- From: "Drew Wutka" To: "Access Developers discussion and problem solving" Sent: Tuesday, February 20, 2007 8:03 PM Subject: Re: [AccessD] Code Library, Sample Database, Etc. > Yep..... even in a runtime environment. An .mde only protects the > forms/reports/code. The tables (and querries and the data within) are > still accessible through ANYTHING that can connect to an Access .mdb. > (Access itself, Excel, word, VBScript, heck, anything that can use ADO > or DAO.). > > The only thing that protects an Access table (whether it's an .mdb, or > .mde) is Access User Level Security. > > Don't believe me? Just open an .mdb, and go link a table, find an .mde > to link to, and you'll see ALL of your tables right there.... > > Drew > From accessd at shaw.ca Wed Feb 21 01:51:33 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 20 Feb 2007 23:51:33 -0800 Subject: [AccessD] Missing references In-Reply-To: <044801c7542b$9c406020$8abea8c0@XPS> Message-ID: <0JDS003F2Z22A345@l-daemon> Hi Jim: You can complete the binding within a compiled application by given an option through an if-then-else type scenario. There can be an option for say Word9 or 10 or 11. When a reference check is made, a global flag is set or the checking can be done just before selection and the appropriate version, when required, is called. The object is initially dimmed but late-binding is performed within app or all versions are pre-bound. This design may be considered half way between early and late binding but manages the best of both worlds. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, February 19, 2007 5:41 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references Jim, <> How so? If your dimming something as an object, you using late binding. I don't know of anyway of changing from late to early without re-compiling the program. And if you use late binding, your carrying the performance hit all the time. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Friday, February 16, 2007 2:36 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references Hi Jim: The main reason for using late-binding is that an application developer does not know what version of Word or Excel is on the clients' computer until the application is run. By checking the local references a program can then adapt to its' current surroundings; but this requires a late-binding design. Just a comment Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Friday, February 16, 2007 10:54 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references <> Pretty much yes. As I said to John, it depends on the mix of operations that you are performing. But in all cases it is faster without a doubt. It's just a matter of how much. From past timings that I did, I found as a general rule of thumb that it was a 10% - 15% overall difference in speed. <> I did this years ago and have always used early binding as a result whenever possible. If I use late binding, I put it in the spec and note that it is a performance drain. So I'll use late if I have to, but I don't like it Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Friday, February 16, 2007 10:21 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing references Is this verifiable, Jim? I haven't ever used late-binding, which I admit has caused various installation issues, but I am curious. Is this a thumbnail calculation or can you supply concrete arithmetical evidence? A. ----- Original Message ---- From: Jim Dettman To: Access Developers discussion and problem solving Sent: Friday, February 16, 2007 9:49:44 AM Subject: Re: [AccessD] Missing references Bryan, One thing you didn't mention is the performance hit; late binding costs you 10-15% for every operation perform. Jim. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed Feb 21 01:59:36 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 20 Feb 2007 23:59:36 -0800 Subject: [AccessD] Missing references In-Reply-To: <004201c75446$31dd0240$8abea8c0@XPS> Message-ID: <0JDS00G2NZFH26J0@l-daemon> Just a comment... My understanding is that when an object is just DIMmed space is set aside for an expected object. It is not until the SET is run that the object populated with the appropriate methods, properties, events etc. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, February 19, 2007 8:51 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references Jim, From what I've been told/read in the past, the set statement merely gives you a pointer to the object and its address lookup table. With late binding, VBA does not know the address of the property/method call before hand, so it must execute a GetIDsOfNames and Invoke call with each property/method it encounters at runtime. With early binding, it already knows the address, so it just needs the invoke call. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Monday, February 19, 2007 10:36 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references Jim, > It's worse then that; it's a lookup at every property or method call to the object. I don't believe so. The set statement essentially loads all that stuff into memory and is a one time affair (per execution of the set statement). I think you are thinking of the syntax dim MyObject = NEW XXX In this case the dim and the set statement have been merged into one line of code and IIRC with this syntax you are correct. However if you break it out into a separate dim and set statement: Dim MyObj as object set MyOpject = ... Then the set statement permanently loads the object information for as long as the object stays in scope. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, February 19, 2007 10:18 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references John, <> It's worse then that; it's a lookup at every property or method call to the object. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Monday, February 19, 2007 10:06 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references As I attempted to explain in my earlier discourse on binding, using an "as object" syntax is late binding. The IMPACT of late binding is not as simple as "the code is loaded" but rather is determined by a myriad of things, but you can essentially boil it down to "how often is the set statement encountered". Early binding performs the LOOKUP of all the data about the object at COMPILE TIME. Thus there is NO IMPACT at run time, all the lookup of the object information has already been done. Late binding performs the LOOKUP of all the data about the object at RUN TIME, but more specifically at the instant that the SET statement is executed. Late binding will ALWAYS have some impact (assuming that the set statement is run) because the lookup must occur. I make the disclaimer "assuming the set statement is run" simply because, for example. I could have an EXCEL class or module in my project. It matters not whether it is in the FE or out in a library, what matter is, whether any code ever tries to ACTUALLY EXECUTE a SET STATEMENT to set a variable dimensioned as object. Thus one of my users may use the application for days and weeks and never experience the impact of late binding because his job never entails using that EXCEL code. Another user may experience the impact of late binding all day every day because his job requires using the code that executes the set statement, i.e. he uses Excel and I am late binding excel objects. NOW... How severe is the impact for that user? It may be very little or it may be extreme. What determines the impact to this user is HOW OFTEN the set statement is executed, how LONG does it take to perform the binding, and what % of the total code execution time is taken up by the binding. Let's take an example. The code does nothing more than load excel and open a worksheet. That would be at least two objects late bound, the Excel Application, and the worksheet. The time to bind the object that holds the pointer to Excel is completely DWARFED by the time to actually load Excel off the disk. We are talking a few milliseconds to do the binding and probably seconds to load excel. So the user would never even feel the difference between early and late binding. The same goes for loading the spreadsheet itself. Again, the binding itself takes a few milliseconds, but loading the worksheet would take a second or two. The user would never even feel the difference. Take another example however. This user has to load a spreadsheet, and the code is going to load and manipulate 10 thousand cells, placing data, formatting it, setting up formulas etc. NOW the time to reference each cell may take a few milliseconds but the time to actually manipulate the cells might well be sub-millisecond. So late binding in this case could slow down the app by orders of magnitude. It could do the whole thing in a second if early bound but take 10 seconds, 100 seconds etc if late bound. The DIFFERENCE is simply that the time to do the binding is occurring thousands or tens of thousands of times as the program manipulates the contents of the spreadsheet. Suddenly milliseconds start to add up. As you can see, this is a complex subject and one where the answer "is late binding costing me much" changes radically depending on what the code is doing. And it really has nothing to do with when it is loaded and whether it is sitting in memory. It is all about how many times the set statements execute, and how much of the total time those set statements use. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Monday, February 19, 2007 9:26 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing references You may be right, but it flies in the face of what little I know about Access. I was under the impression that code sitting in the MDB would be loaded on first call and thereafter reside in memory. Is that not true when you do something like create a Word object? Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Jim Dettman To: Access Developers discussion and problem solving Sent: Monday, February 19, 2007 8:41:07 AM Subject: Re: [AccessD] Missing references Jim, <> How so? If your dimming something as an object, you using late binding. I don't know of anyway of changing from late to early without re-compiling the program. And if you use late binding, your carrying the performance hit all the time. Jim. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Feb 21 02:38:05 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 21 Feb 2007 00:38:05 -0800 Subject: [AccessD] Code Library, Sample Database, Etc. In-Reply-To: <898630.97480.qm@web88201.mail.re2.yahoo.com> Message-ID: <0JDT00CIW17M6ZA0@l-daemon> Hear Hear... Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Tuesday, February 20, 2007 9:44 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Library, Sample Database, Etc. Well phrased, Charlotte. The moment I saw the ADO model I dumped DAO and have seldom looked back. Arthur ----- Original Message ---- From: Charlotte Foust To: Access Developers discussion and problem solving Sent: Tuesday, February 20, 2007 12:11:07 PM Subject: Re: [AccessD] Code Library, Sample Database, Etc. One HUGE difference is that the object model of ADO contains relatively few objects, unlike DAO which contains a ton of them. ADO is like a Swiss Army Knife! You can do just about everything you can with a sophisticated toolkit, but you have to be more creative in doing so. LOL Charlotte -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Feb 21 04:49:08 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 21 Feb 2007 05:49:08 -0500 Subject: [AccessD] Missing references In-Reply-To: <0JDS00G2NZFH26J0@l-daemon> Message-ID: <008101c755a5$ea23d490$657aa8c0@m6805> >My understanding is that when an object is just DIMmed space is set aside for an expected object. That is correct. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, February 21, 2007 3:00 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references Just a comment... My understanding is that when an object is just DIMmed space is set aside for an expected object. It is not until the SET is run that the object populated with the appropriate methods, properties, events etc. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, February 19, 2007 8:51 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references Jim, From what I've been told/read in the past, the set statement merely gives you a pointer to the object and its address lookup table. With late binding, VBA does not know the address of the property/method call before hand, so it must execute a GetIDsOfNames and Invoke call with each property/method it encounters at runtime. With early binding, it already knows the address, so it just needs the invoke call. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Monday, February 19, 2007 10:36 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references Jim, > It's worse then that; it's a lookup at every property or method call > to the object. I don't believe so. The set statement essentially loads all that stuff into memory and is a one time affair (per execution of the set statement). I think you are thinking of the syntax dim MyObject = NEW XXX In this case the dim and the set statement have been merged into one line of code and IIRC with this syntax you are correct. However if you break it out into a separate dim and set statement: Dim MyObj as object set MyOpject = ... Then the set statement permanently loads the object information for as long as the object stays in scope. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, February 19, 2007 10:18 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references John, <> It's worse then that; it's a lookup at every property or method call to the object. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Monday, February 19, 2007 10:06 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing references As I attempted to explain in my earlier discourse on binding, using an "as object" syntax is late binding. The IMPACT of late binding is not as simple as "the code is loaded" but rather is determined by a myriad of things, but you can essentially boil it down to "how often is the set statement encountered". Early binding performs the LOOKUP of all the data about the object at COMPILE TIME. Thus there is NO IMPACT at run time, all the lookup of the object information has already been done. Late binding performs the LOOKUP of all the data about the object at RUN TIME, but more specifically at the instant that the SET statement is executed. Late binding will ALWAYS have some impact (assuming that the set statement is run) because the lookup must occur. I make the disclaimer "assuming the set statement is run" simply because, for example. I could have an EXCEL class or module in my project. It matters not whether it is in the FE or out in a library, what matter is, whether any code ever tries to ACTUALLY EXECUTE a SET STATEMENT to set a variable dimensioned as object. Thus one of my users may use the application for days and weeks and never experience the impact of late binding because his job never entails using that EXCEL code. Another user may experience the impact of late binding all day every day because his job requires using the code that executes the set statement, i.e. he uses Excel and I am late binding excel objects. NOW... How severe is the impact for that user? It may be very little or it may be extreme. What determines the impact to this user is HOW OFTEN the set statement is executed, how LONG does it take to perform the binding, and what % of the total code execution time is taken up by the binding. Let's take an example. The code does nothing more than load excel and open a worksheet. That would be at least two objects late bound, the Excel Application, and the worksheet. The time to bind the object that holds the pointer to Excel is completely DWARFED by the time to actually load Excel off the disk. We are talking a few milliseconds to do the binding and probably seconds to load excel. So the user would never even feel the difference between early and late binding. The same goes for loading the spreadsheet itself. Again, the binding itself takes a few milliseconds, but loading the worksheet would take a second or two. The user would never even feel the difference. Take another example however. This user has to load a spreadsheet, and the code is going to load and manipulate 10 thousand cells, placing data, formatting it, setting up formulas etc. NOW the time to reference each cell may take a few milliseconds but the time to actually manipulate the cells might well be sub-millisecond. So late binding in this case could slow down the app by orders of magnitude. It could do the whole thing in a second if early bound but take 10 seconds, 100 seconds etc if late bound. The DIFFERENCE is simply that the time to do the binding is occurring thousands or tens of thousands of times as the program manipulates the contents of the spreadsheet. Suddenly milliseconds start to add up. As you can see, this is a complex subject and one where the answer "is late binding costing me much" changes radically depending on what the code is doing. And it really has nothing to do with when it is loaded and whether it is sitting in memory. It is all about how many times the set statements execute, and how much of the total time those set statements use. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Monday, February 19, 2007 9:26 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing references You may be right, but it flies in the face of what little I know about Access. I was under the impression that code sitting in the MDB would be loaded on first call and thereafter reside in memory. Is that not true when you do something like create a Word object? Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Jim Dettman To: Access Developers discussion and problem solving Sent: Monday, February 19, 2007 8:41:07 AM Subject: Re: [AccessD] Missing references Jim, <> How so? If your dimming something as an object, you using late binding. I don't know of anyway of changing from late to early without re-compiling the program. And if you use late binding, your carrying the performance hit all the time. Jim. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Feb 21 06:18:10 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 21 Feb 2007 13:18:10 +0100 Subject: [AccessD] Code Library, Sample Database, Etc. Message-ID: Hi William Our experiences match your comments. Corruptions - as few as they are - have never been related to Access/JET but some outside source, mostly network issues. When you have chosen your backend SQL engine, would you mind sharing your considerations? /gustav >>> wdhindman at dejpolsystems.com 21-02-2007 00:09:44 >>> Robert ...msde's proved impractical because of scaling limitations MS built in ...so you're really only talking about SQL Express which is what, months old? ...and if your only problem with an Access be is corruption, then sorry, but with the exception of cheap NICS I've not seen a corrupted mdb since A95 ...except in client's I took over from other developers and had to rebuild ...and thus corruption is not, in my environment, sufficient cause to spend the time and money to convert to a non-JET be ...but I'll grant you that I'm getting long in the tooth and damned reluctant to learn every new db wonder cure that comes along. ...and while I'm at it, I'll also admit that I'm developing a commercial app based on a current client that will use a non-JET be because it needs to scale to at least 50 users ...what that will be depends on some testing yet to be accomplished but I'm not at all convinced that SQL Express isn't a one-off dog & pony show for MS. William Hindman From Erwin.Craps at ithelps.eu Wed Feb 21 06:22:20 2007 From: Erwin.Craps at ithelps.eu (Erwin Craps - IT Helps) Date: Wed, 21 Feb 2007 13:22:20 +0100 Subject: [AccessD] Automating email References: <551548.20862.qm@web88201.mail.re2.yahoo.com> Message-ID: <430E80531228BA4497C5EB1A7BA786B00242A0@stekelbes.ithelps.local> Well, Indeed I am :-( -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Wednesday, February 21, 2007 5:57 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Automating email I think you are wrong. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Erwin Craps - IT Helps To: Access Developers discussion and problem solving Sent: Tuesday, February 20, 2007 6:54:22 PM Subject: Re: [AccessD] Automating email Euh, Maybe I'm wrong with this but isn't CDO only available on a server running Exchange Server? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Wed Feb 21 06:37:42 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 21 Feb 2007 13:37:42 +0100 Subject: [AccessD] Code Library, Sample Database, Etc. Message-ID: Hi William Again your are so right. Both Windows Server and Novell NetWare environments can be locked down to extremely restricted access - in NetWare you can have access to a file without being able to browse for it, meaning that you need to know the exact filename to retrieve it, and if you succeed (try to guess a GUID filename?) it will be logged. Missing security is not caused by lack of options but lack of a true need. And if the need actually exists while security has not been implemented, the reason is sloppiness or lack of skills. Further, very restricted access creates a heavy burden on the users and reduces their options, thus you will not apply it unless needed. /gustav >>> wdhindman at dejpolsystems.com 21-02-2007 00:25:14 >>> ...I'm left dazed by your disparagement of XP security! :) ...pray tell why in a 12 user office where no personal information is available in the app, the xp user logon should not be sufficient to determine access rights to forms needing restricted access based upon user roles? William Hindman ...apparently a paranoid programmer ...who knew? :) ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Tuesday, February 20, 2007 6:09 PM Subject: Re: [AccessD] Code Library, Sample Database, Etc. > The primary role of user security IMO has been to allow you to limit > ordinary users to working with the interface. It has never been robust > enough to keep out knowledgeable tamperers. However, I do NOT want Joe > User going in and mucking about with the interface or code I built just > because he now has full permissions to do so. I have never been wiling > to roll my own security system for Access because I object to > reinventing the wheel, even if the wheel is a bit crooked and flat on > one side. XP security in small business environments?? You MUST be > joking! I've never seen a small business environment with any security > that hadn't been added on by a paranoid programmer or systems guy! ;o> > > Charlotte > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William > Hindman > Sent: Tuesday, February 20, 2007 1:54 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Code Library, Sample Database, Etc. > > ...again Charlotte, that is heavily dependent upon the environment in > which you work ...Access based user security has been a farce since '95 > ...you cannot build an Access mdb to which I cannot gain access with > readily available tools, both free and inexpensive ...so you build your > own, a number of which are discussed in our archives, or you depend on > XP security in small business environments ...so the decision by the > Access development team to remove it from A'07 really has no bearing on > its continued use in those environments. > > William Hindman From Gustav at cactus.dk Wed Feb 21 06:51:29 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 21 Feb 2007 13:51:29 +0100 Subject: [AccessD] Code Library, Sample Database, Etc. Message-ID: Hi Marty DB2 Express is not scaled down regarding the maximum database size. /gustav >>> martyconnelly at shaw.ca 21-02-2007 00:34:41 >>> Oracle and DB2 offer free similar scaled down products. William Hindman wrote: >Robert > >...msde's proved impractical because of scaling limitations MS built in >...so you're really only talking about SQL Express which is what, months >old? > >...and if your only problem with an Access be is corruption, then sorry, but >with the exception of cheap NICS I've not seen a corrupted mdb since A95 >...except in client's I took over from other developers and had to rebuild >...and thus corruption is not, in my environment, sufficient cause to spend >the time and money to convert to a non-JET be ...but I'll grant you that I'm >getting long in the tooth and damned reluctant to learn every new db wonder >cure that comes along. > >...and while I'm at it, I'll also admit that I'm developing a commercial app >based on a current client that will use a non-JET be because it needs to >scale to at least 50 users ...what that will be depends on some testing yet >to be accomplished but I'm not at all convinced that SQL Express isn't a >one-off dog & pony show for MS. > >William Hindman From wdhindman at dejpolsystems.com Wed Feb 21 08:13:00 2007 From: wdhindman at dejpolsystems.com (William Hindman) Date: Wed, 21 Feb 2007 09:13:00 -0500 Subject: [AccessD] Code Library, Sample Database, Etc. References: Message-ID: <000e01c755c2$655eb370$9258eb44@50NM721> ...sure thing gustav William Hindman ----- Original Message ----- From: "Gustav Brock" To: Sent: Wednesday, February 21, 2007 7:18 AM Subject: Re: [AccessD] Code Library, Sample Database, Etc. > Hi William > > Our experiences match your comments. > Corruptions - as few as they are - have never been related to Access/JET > but some outside source, mostly network issues. > > When you have chosen your backend SQL engine, would you mind sharing your > considerations? > > /gustav > >>>> wdhindman at dejpolsystems.com 21-02-2007 00:09:44 >>> > Robert > > ...msde's proved impractical because of scaling limitations MS built in > ...so you're really only talking about SQL Express which is what, months > old? > > ...and if your only problem with an Access be is corruption, then sorry, > but > with the exception of cheap NICS I've not seen a corrupted mdb since A95 > ...except in client's I took over from other developers and had to rebuild > ...and thus corruption is not, in my environment, sufficient cause to > spend > the time and money to convert to a non-JET be ...but I'll grant you that > I'm > getting long in the tooth and damned reluctant to learn every new db > wonder > cure that comes along. > > ...and while I'm at it, I'll also admit that I'm developing a commercial > app > based on a current client that will use a non-JET be because it needs to > scale to at least 50 users ...what that will be depends on some testing > yet > to be accomplished but I'm not at all convinced that SQL Express isn't a > one-off dog & pony show for MS. > > William Hindman > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From ssharkins at setel.com Wed Feb 21 08:24:36 2007 From: ssharkins at setel.com (Susan Harkins) Date: Wed, 21 Feb 2007 09:24:36 -0500 Subject: [AccessD] Reset OrderBy In-Reply-To: <45DC6968.18071.5965C9B@stuart.lexacorp.com.pg> Message-ID: <005101c755c4$05078b80$95b82ad1@SUSANONE> Thanks Stuart -- I never could get the link to work. I even copied it to Word and reset it, but I get an error at yahoo that there is no comp group -- but no matter, you included the solution -- I wish I'd thought to try it myself. Thank you! Susan H. Putting Me.OrderBy = "" in Form_Load does work, so do it there to insclear any old info instead. From jwcolby at colbyconsulting.com Wed Feb 21 09:08:42 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 21 Feb 2007 10:08:42 -0500 Subject: [AccessD] Code Library, Sample Database, Etc. In-Reply-To: <000e01c755c2$655eb370$9258eb44@50NM721> Message-ID: <008f01c755ca$2d7d2740$657aa8c0@m6805> I'd like to check in with an observation on MDB vs SQL Server data store. If you work remotely, and ever need to upload the data to work at your home / office, MDBs are much friendlier for that purpose. Zip / upload and go. One of my clients has a couple of tables out in SQL Server, the database for which belongs to a payroll processing company. Getting at that data here in my office is a PITA. I am actually exporting it to an mdb so that I can upload it, then relinking to point to the mdb. I am certainly not saying that this is a reason not to use sql server if it is required, but where an mdb will perform, this is just one reason to leave it in an mdb. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Wednesday, February 21, 2007 9:13 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code Library, Sample Database, Etc. ...sure thing gustav William Hindman ----- Original Message ----- From: "Gustav Brock" To: Sent: Wednesday, February 21, 2007 7:18 AM Subject: Re: [AccessD] Code Library, Sample Database, Etc. > Hi William > > Our experiences match your comments. > Corruptions - as few as they are - have never been related to Access/JET > but some outside source, mostly network issues. > > When you have chosen your backend SQL engine, would you mind sharing your > considerations? > > /gustav > >>>> wdhindman at dejpolsystems.com 21-02-2007 00:09:44 >>> > Robert > > ...msde's proved impractical because of scaling limitations MS built in > ...so you're really only talking about SQL Express which is what, months > old? > > ...and if your only problem with an Access be is corruption, then sorry, > but > with the exception of cheap NICS I've not seen a corrupted mdb since A95 > ...except in client's I took over from other developers and had to rebuild > ...and thus corruption is not, in my environment, sufficient cause to > spend > the time and money to convert to a non-JET be ...but I'll grant you that > I'm > getting long in the tooth and damned reluctant to learn every new db > wonder > cure that comes along. > > ...and while I'm at it, I'll also admit that I'm developing a commercial > app > based on a current client that will use a non-JET be because it needs to > scale to at least 50 users ...what that will be depends on some testing > yet > to be accomplished but I'm not at all convinced that SQL Express isn't a > one-off dog & pony show for MS. > > William Hindman > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Feb 21 10:33:23 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 21 Feb 2007 08:33:23 -0800 Subject: [AccessD] MS TechNet sub In-Reply-To: <039301c75576$d13f31b0$0201a8c0@HOLTS> References: <039301c75576$d13f31b0$0201a8c0@HOLTS> Message-ID: The line between TechNet and MSDN used to be clear but it has gotten fuzzier over the years. Of the two, I always preferred TechNet because it contained a KB, articles and the latest patches and service packs, but not a ton of software I didn't want to install anyhow. The price tag for MSDN was always too high for me, and I read the the EULA and decided I'd rather pay full price for my software and not agree to remove it from machine if my subscription expired. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Pete Phillipps Sent: Tuesday, February 20, 2007 9:12 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] MS TechNet sub Hello Everyone, I'm a UK-based MCP, and I'm looking at taking out a MS TechNet Plus Direct subscription. Before I spend my money I was just wanting to see what others here who have a TechNet sub think about it. Pete "Many [wargame] battles have been fought and won by soldiers nourished on beer" - Frederick the Great, 1777 Download VIEW FROM THE TRENCHES (Britain's Premier ASL Journal) free from http://www.vftt.co.uk Get the latest news about HEROES(ASL in Blackpool) at http://www.vftt.co.uk/heroesdetails.asp Get the latest news about INTENSIVE FIRE (Britain's biggest ASL tournament) at http://www.vftt.co.uk/ifdetails.asp Get the latest UK ASL Tournament news at http://www.asltourneys.co.uk Support the best at http://www.manutd.com/ -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/694 - Release Date: 20/02/2007 13:44 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Wed Feb 21 10:57:23 2007 From: john at winhaven.net (John Bartow) Date: Wed, 21 Feb 2007 10:57:23 -0600 Subject: [AccessD] MS TechNet sub In-Reply-To: References: <039301c75576$d13f31b0$0201a8c0@HOLTS> Message-ID: <05a101c755d9$5bef6bb0$6502a8c0@ScuzzPaq> Charlotte, AFAIK MSDN now includes everything that Tech Net does. As to requiring you to remove the software after your subscriptions ends -I have recently read in the MSDN FAQ that this is not (or no longer) true. The cost is still a huge issue though. My last subscription I did through a 3rd party for 2 years because it saved a small amount in cost but also saved the renewal hassle. It is certainly a much better deal for larger companies as you can utilize the software and licensing to a much greater degree. Plus you can designate a "MSDN Librarian" which you certainly need with the CD deliveries and may still be a good idea with the DVD option. The quantity of delivered disks is enormous. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust The line between TechNet and MSDN used to be clear but it has gotten fuzzier over the years. Of the two, I always preferred TechNet because it contained a KB, articles and the latest patches and service packs, but not a ton of software I didn't want to install anyhow. The price tag for MSDN was always too high for me, and I read the the EULA and decided I'd rather pay full price for my software and not agree to remove it from machine if my subscription expired. From cfoust at infostatsystems.com Wed Feb 21 11:04:06 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 21 Feb 2007 09:04:06 -0800 Subject: [AccessD] MS TechNet sub In-Reply-To: <05a101c755d9$5bef6bb0$6502a8c0@ScuzzPaq> References: <039301c75576$d13f31b0$0201a8c0@HOLTS> <05a101c755d9$5bef6bb0$6502a8c0@ScuzzPaq> Message-ID: Yes, but I don't want a ton of software I don't use anyhow, just the patches and service packs, etc. I don't need all the extant operating systems and all the MS applications or any of the other fat in MSDN. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Wednesday, February 21, 2007 8:57 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] MS TechNet sub Charlotte, AFAIK MSDN now includes everything that Tech Net does. As to requiring you to remove the software after your subscriptions ends -I have recently read in the MSDN FAQ that this is not (or no longer) true. The cost is still a huge issue though. My last subscription I did through a 3rd party for 2 years because it saved a small amount in cost but also saved the renewal hassle. It is certainly a much better deal for larger companies as you can utilize the software and licensing to a much greater degree. Plus you can designate a "MSDN Librarian" which you certainly need with the CD deliveries and may still be a good idea with the DVD option. The quantity of delivered disks is enormous. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust The line between TechNet and MSDN used to be clear but it has gotten fuzzier over the years. Of the two, I always preferred TechNet because it contained a KB, articles and the latest patches and service packs, but not a ton of software I didn't want to install anyhow. The price tag for MSDN was always too high for me, and I read the the EULA and decided I'd rather pay full price for my software and not agree to remove it from machine if my subscription expired. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at airtelbroadband.in Wed Feb 21 11:23:21 2007 From: adtp at airtelbroadband.in (A.D.TEJPAL) Date: Wed, 21 Feb 2007 22:53:21 +0530 Subject: [AccessD] Reset OrderBy References: <004d01c7555c$a1e04450$3432fad1@SUSANONE> Message-ID: <005401c755dd$244a4910$ed1b65cb@pcadt> Unlike FilterOn property, OrderByOn property followed by save action tends to get carried over to next opening of the form. Values assigned to Form's Filter & OrderBy properties tend to get carried over to next opening of form. Once stuck, these strings can not be replaced by zero length strings by mere assignment statements (See detailed note below). As such, form's close event is not always completely effective for ensuring that the form when opened next, does so with a clean slate. Instead, a single line of code in form's Load event, as given below, should suffice: Private Sub Form_Load() Me.OrderByOn = False End Sub Certain points relevant to form's Filter / Sort action are covered in the note placed below. Best wishes, A.D.Tejpal --------------- Form's Filter & Sort Order At Run-Time ============================== 1 - Factors to be considered for ensuring that the form opens with a clean slate (free of any filter or sort order). 1.1 - Once the Filter and OrderBy properties of a form have been set to some significant strings at run time, subsequent setting to zero length strings (Me.Filter = "" and Me.OrderBy = "") in the close event is not found effective in preventing a carry over to the next opening of form. (Though debug.Print statement placed within the close event, shows zero length strings for these two properties, their last significant values used prior to firing of close event are found to stick on and resurface when the form is opened next time). 1.2 - On a clean form (free of filter & sort), any values assigned at runtime to Filter and OrderBy properties, can be cleared by subsequent assignment of zero length strings provided such assignment is carried within same session of runtime and before reaching the Close event stage. In absence of any such action, the values assigned to Filter and OrderBy properties get carried over to the next opening of form. 1.3 - Assignment of zero length strings to Filter and OrderBy properties results in forcing the FilterOn and OrderByOn properties to False for the current session of runtime, till further interference. If such zero length assignment is followed by save statement, OrderByOn property also becomes False for next opening of form (FilterOn property is always false for fresh opening). 1.4 - If a form opens with carry-over values of Filter & OrderBy properties from the previous session, assignment of zero length strings to these properties, even if done before reaching the Close event, is effective only for current run session and does not get rid of old carry over values for next opening of the form. If however, fresh non-zero length strings are assigned (before reaching the Close event), these replace the earlier ones and become new carry-over values. 1.5 - FilterOn and OrderByOn properties are not available in design view and their default status is False. For any new opening of a form (whether free of Filter/OrderBy settings or not), the status of FilterOn is invariably False. On the other hand, if OrderByOn property had been set to True in previous run of the form and was not re-set to False before reaching the Close event (setting it to False in Close event alone, does not suffice), it is found to retain its True status in next opening of form. 1.6 - Conclusion - For ensuring clean status of form (free of filter & sort) when it opens, the following statement in its Load event should suffice. Private Sub Form_Load() Me.OrderByOn = False End Sub As an abundant precaution (and if the developer does not feel comfortable in their absence), the following additional statements (though redundant) can also be included in the Load event. Me.OrderBy = "" Me.Filter = "" Me.FilterOn = False 2 - Some general aspects relevant to filtering on forms at run time are summarized below. 2.1- Any filter inherent within the record-source continues to remain in force. Whatever is done via form's filter property, is merely supplementary to that (as if joined by " And " operator). 2.2 - Unlike a report, form's FilterOn property is not available for setting in design view. It has to be explicitly set to True at run time (on opening the form, default status of this property is False, even though Allow filters property is set to Yes). 2.3 - Order of placement of Me.FilterOn statement with respect to Me.Filter statement does not matter. 2.4 - Whenever the statement Me.Filter = "" is used, FilterOn property of the form gets automatically set to False. This implies that if at any stage in the code, Me.Filter is set to zero length string, subsequent assignment of a fresh string to the filter property won't be effective unless there is also a fresh statement Me.FilterOn = True (although Me.FilterOn was never set to False explicitly). 2.5 - Once a criteria gets assigned to form's filter property, it tends to stick. Subsequent assignment of zero length string to this property is not able to get rid of it (even though it can be made in-effective by setting the FilterOn property to false). If it is expressly desired to clear the filter in force, criteria string that always evaluates to true (e.g. "2 = 2") has to be assigned to form's filter property. 2.6 - If it is desired that form's filter, set during runtime, should carry over to next opening of the form (after it has been closed after the current session), the following statement should be included in form's load event. Me.FilterOn = True 2.7 - On the other hand, if it is to be doubly ensured that form's filter set during runtime, does not cause any interference on next opening of the form (after it has been closed after the current session), the following statement can be included in form's load event. Me.FilterOn = False (Strictly speaking, this statement is redundant, as on opening of a form, the default status of FilterOn property is False) 2.8 - After applying the filter, there is no need to use Me.Requery explicitly. Application of any fresh filter condition, forces requery as well. Note - If DoCmd.OpenForm statement, used for opening the form, contains a criteria string in its where argument, the form opens with its FilterOn property set to True and its Filter property set to the contents of where argument (in Docmd statement). Effect of this filter is supplementary to any filter inherent within the record source, as mentioned at (2.1) above. ===================================== ----- Original Message ----- From: Susan Harkins I'm using a simple procedure to set a form's OrderBy property. When I close the form, I want to delete any setting, so that the property isn't saved with the form. How can I do that? I tried Private Sub Form_Close() 'Reset Order By property Me.OrderBy = "" End Sub But it doesn't work. Checked Help but didn't find anything helpful. I don't really want to set the sort order to "" -- I just want to wipe it clean. My guess is the property doesn't recognize "", although it doesn't error. Susan H. From john at winhaven.net Wed Feb 21 11:28:33 2007 From: john at winhaven.net (John Bartow) Date: Wed, 21 Feb 2007 11:28:33 -0600 Subject: [AccessD] MS TechNet sub In-Reply-To: References: <039301c75576$d13f31b0$0201a8c0@HOLTS><05a101c755d9$5bef6bb0$6502a8c0@ScuzzPaq> Message-ID: <05bc01c755dd$b7318e00$6502a8c0@ScuzzPaq> For me, the cost is about equal to the software I don't have to buy OTS. I could do without a lot of it too but they always bundle the different levels of MSDN in a way that I have to get one of the more expensive levels - which includes a lot of things I don't need. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Yes, but I don't want a ton of software I don't use anyhow, just the patches and service packs, etc. I don't need all the extant operating systems and all the MS applications or any of the other fat in MSDN. From artful at rogers.com Wed Feb 21 11:30:46 2007 From: artful at rogers.com (artful at rogers.com) Date: Wed, 21 Feb 2007 09:30:46 -0800 (PST) Subject: [AccessD] MS TechNet sub Message-ID: <330041.72661.qm@web88213.mail.re2.yahoo.com> Can I purloin you a copy of Korean w98? LOL. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Charlotte Foust To: Access Developers discussion and problem solving Sent: Wednesday, February 21, 2007 12:04:06 PM Subject: Re: [AccessD] MS TechNet sub Yes, but I don't want a ton of software I don't use anyhow, just the patches and service packs, etc. I don't need all the extant operating systems and all the MS applications or any of the other fat in MSDN. Charlotte From ssharkins at setel.com Wed Feb 21 11:47:29 2007 From: ssharkins at setel.com (Susan Harkins) Date: Wed, 21 Feb 2007 12:47:29 -0500 Subject: [AccessD] Reset OrderBy In-Reply-To: <005401c755dd$244a4910$ed1b65cb@pcadt> Message-ID: <000201c755e0$5c29b160$56bc2ad1@SUSANONE> Private Sub Form_Load() 'Reset Order By property Me.OrderBy = "" End Sub Worked fine -- I'm using 2003. Susan H. Unlike FilterOn property, OrderByOn property followed by save action tends to get carried over to next opening of the form. Values assigned to Form's Filter & OrderBy properties tend to get carried over to next opening of form. Once stuck, these strings can not be replaced by zero length strings by mere assignment statements (See detailed note below). As such, form's close event is not always completely effective for ensuring that the form when opened next, does so with a clean slate. Instead, a single line of code in form's Load event, as given below, should suffice: Private Sub Form_Load() Me.OrderByOn = False End Sub Certain points relevant to form's Filter / Sort action are covered in the note placed below. Best wishes, A.D.Tejpal --------------- Form's Filter & Sort Order At Run-Time ============================== 1 - Factors to be considered for ensuring that the form opens with a clean slate (free of any filter or sort order). 1.1 - Once the Filter and OrderBy properties of a form have been set to some significant strings at run time, subsequent setting to zero length strings (Me.Filter = "" and Me.OrderBy = "") in the close event is not found effective in preventing a carry over to the next opening of form. (Though debug.Print statement placed within the close event, shows zero length strings for these two properties, their last significant values used prior to firing of close event are found to stick on and resurface when the form is opened next time). 1.2 - On a clean form (free of filter & sort), any values assigned at runtime to Filter and OrderBy properties, can be cleared by subsequent assignment of zero length strings provided such assignment is carried within same session of runtime and before reaching the Close event stage. In absence of any such action, the values assigned to Filter and OrderBy properties get carried over to the next opening of form. 1.3 - Assignment of zero length strings to Filter and OrderBy properties results in forcing the FilterOn and OrderByOn properties to False for the current session of runtime, till further interference. If such zero length assignment is followed by save statement, OrderByOn property also becomes False for next opening of form (FilterOn property is always false for fresh opening). 1.4 - If a form opens with carry-over values of Filter & OrderBy properties from the previous session, assignment of zero length strings to these properties, even if done before reaching the Close event, is effective only for current run session and does not get rid of old carry over values for next opening of the form. If however, fresh non-zero length strings are assigned (before reaching the Close event), these replace the earlier ones and become new carry-over values. 1.5 - FilterOn and OrderByOn properties are not available in design view and their default status is False. For any new opening of a form (whether free of Filter/OrderBy settings or not), the status of FilterOn is invariably False. On the other hand, if OrderByOn property had been set to True in previous run of the form and was not re-set to False before reaching the Close event (setting it to False in Close event alone, does not suffice), it is found to retain its True status in next opening of form. 1.6 - Conclusion - For ensuring clean status of form (free of filter & sort) when it opens, the following statement in its Load event should suffice. Private Sub Form_Load() Me.OrderByOn = False End Sub As an abundant precaution (and if the developer does not feel comfortable in their absence), the following additional statements (though redundant) can also be included in the Load event. Me.OrderBy = "" Me.Filter = "" Me.FilterOn = False 2 - Some general aspects relevant to filtering on forms at run time are summarized below. 2.1- Any filter inherent within the record-source continues to remain in force. Whatever is done via form's filter property, is merely supplementary to that (as if joined by " And " operator). 2.2 - Unlike a report, form's FilterOn property is not available for setting in design view. It has to be explicitly set to True at run time (on opening the form, default status of this property is False, even though Allow filters property is set to Yes). 2.3 - Order of placement of Me.FilterOn statement with respect to Me.Filter statement does not matter. 2.4 - Whenever the statement Me.Filter = "" is used, FilterOn property of the form gets automatically set to False. This implies that if at any stage in the code, Me.Filter is set to zero length string, subsequent assignment of a fresh string to the filter property won't be effective unless there is also a fresh statement Me.FilterOn = True (although Me.FilterOn was never set to False explicitly). 2.5 - Once a criteria gets assigned to form's filter property, it tends to stick. Subsequent assignment of zero length string to this property is not able to get rid of it (even though it can be made in-effective by setting the FilterOn property to false). If it is expressly desired to clear the filter in force, criteria string that always evaluates to true (e.g. "2 = 2") has to be assigned to form's filter property. 2.6 - If it is desired that form's filter, set during runtime, should carry over to next opening of the form (after it has been closed after the current session), the following statement should be included in form's load event. Me.FilterOn = True 2.7 - On the other hand, if it is to be doubly ensured that form's filter set during runtime, does not cause any interference on next opening of the form (after it has been closed after the current session), the following statement can be included in form's load event. Me.FilterOn = False (Strictly speaking, this statement is redundant, as on opening of a form, the default status of FilterOn property is False) 2.8 - After applying the filter, there is no need to use Me.Requery explicitly. Application of any fresh filter condition, forces requery as well. Note - If DoCmd.OpenForm statement, used for opening the form, contains a criteria string in its where argument, the form opens with its FilterOn property set to True and its Filter property set to the contents of where argument (in Docmd statement). Effect of this filter is supplementary to any filter inherent within the record source, as mentioned at (2.1) above. ===================================== ----- Original Message ----- From: Susan Harkins I'm using a simple procedure to set a form's OrderBy property. When I close the form, I want to delete any setting, so that the property isn't saved with the form. How can I do that? I tried Private Sub Form_Close() 'Reset Order By property Me.OrderBy = "" End Sub But it doesn't work. Checked Help but didn't find anything helpful. I don't really want to set the sort order to "" -- I just want to wipe it clean. My guess is the property doesn't recognize "", although it doesn't error. Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/694 - Release Date: 2/20/2007 1:44 PM From jwcolby at colbyconsulting.com Wed Feb 21 11:58:47 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 21 Feb 2007 12:58:47 -0500 Subject: [AccessD] Feeding parameters to SQL Server Message-ID: <00bd01c755e1$f02493c0$657aa8c0@m6805> Is it possible to feed a parameter to a SQL Server view from Access? I am linking (ODBC) to a pair of tables in SQL Server. The views return a set of data which will only grow larger over time. I would like to somehow tell sql server where... and feed in the value - where checkdate >=X and <=Y for example. These views are then used in queries inside of Access, linked to my tables and stuff. John W. Colby Colby Consulting www.ColbyConsulting.com From ebarro at verizon.net Wed Feb 21 12:05:14 2007 From: ebarro at verizon.net (Eric Barro) Date: Wed, 21 Feb 2007 10:05:14 -0800 Subject: [AccessD] Feeding parameters to SQL Server In-Reply-To: <00bd01c755e1$f02493c0$657aa8c0@m6805> Message-ID: <0JDT003PHRL2JPK7@vms046.mailsrvcs.net> John, Convert the SQL server view to a SQL server function that returns a table. Functions take parameters and return data sets based on the parameters that were passed to it. The general syntax for such a function would be... CREATE FUNCTION dbo.MyFunction ( @Parameter1 SQLDataType. @Parameter2 SQLDataType ) RETURNS TABLE AS RETURN ( SELECT fieldName1, fieldName2 FROM MyTable a (nolock) WHERE a.whereField1 BETWEEN @Parameter1 AND @Parameter2 ) Eric -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, February 21, 2007 9:59 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Feeding parameters to SQL Server Is it possible to feed a parameter to a SQL Server view from Access? I am linking (ODBC) to a pair of tables in SQL Server. The views return a set of data which will only grow larger over time. I would like to somehow tell sql server where... and feed in the value - where checkdate >=X and <=Y for example. These views are then used in queries inside of Access, linked to my tables and stuff. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/694 - Release Date: 2/20/2007 1:44 PM From jwcolby at colbyconsulting.com Wed Feb 21 12:36:31 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 21 Feb 2007 13:36:31 -0500 Subject: [AccessD] Feeding parameters to SQL Server In-Reply-To: <0JDT003PHRL2JPK7@vms046.mailsrvcs.net> Message-ID: <00c201c755e7$359ebbb0$657aa8c0@m6805> Eric, What is responsible for feeding in the parameters? Can the query that uses the linked view do that? John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Wednesday, February 21, 2007 1:05 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server John, Convert the SQL server view to a SQL server function that returns a table. Functions take parameters and return data sets based on the parameters that were passed to it. The general syntax for such a function would be... CREATE FUNCTION dbo.MyFunction ( @Parameter1 SQLDataType. @Parameter2 SQLDataType ) RETURNS TABLE AS RETURN ( SELECT fieldName1, fieldName2 FROM MyTable a (nolock) WHERE a.whereField1 BETWEEN @Parameter1 AND @Parameter2 ) Eric -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, February 21, 2007 9:59 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Feeding parameters to SQL Server Is it possible to feed a parameter to a SQL Server view from Access? I am linking (ODBC) to a pair of tables in SQL Server. The views return a set of data which will only grow larger over time. I would like to somehow tell sql server where... and feed in the value - where checkdate >=X and <=Y for example. These views are then used in queries inside of Access, linked to my tables and stuff. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/694 - Release Date: 2/20/2007 1:44 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Wed Feb 21 12:50:27 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 21 Feb 2007 18:50:27 +0000 Subject: [AccessD] Feeding parameters to SQL Server In-Reply-To: <00c201c755e7$359ebbb0$657aa8c0@m6805> Message-ID: Maybe I'm not understanding the question...but you have a linked table in access...that is really a view in SQL...would a passthru to this view work to add your criteria?? ??? Mark A. Matte >From: "JWColby" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] Feeding parameters to SQL Server >Date: Wed, 21 Feb 2007 13:36:31 -0500 > >Eric, > >What is responsible for feeding in the parameters? Can the query that uses >the linked view do that? > > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro >Sent: Wednesday, February 21, 2007 1:05 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Feeding parameters to SQL Server > >John, > >Convert the SQL server view to a SQL server function that returns a table. >Functions take parameters and return data sets based on the parameters that >were passed to it. > > >The general syntax for such a function would be... > > >CREATE FUNCTION dbo.MyFunction >( > @Parameter1 SQLDataType. > @Parameter2 SQLDataType >) >RETURNS TABLE >AS >RETURN >( >SELECT > fieldName1, > fieldName2 >FROM MyTable a (nolock) >WHERE a.whereField1 BETWEEN @Parameter1 AND @Parameter2 > ) > > > >Eric > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby >Sent: Wednesday, February 21, 2007 9:59 AM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] Feeding parameters to SQL Server > >Is it possible to feed a parameter to a SQL Server view from Access? I am >linking (ODBC) to a pair of tables in SQL Server. The views return a set >of >data which will only grow larger over time. I would like to somehow tell >sql server where... and feed in the value - where checkdate >=X and <=Y for >example. These views are then used in queries inside of Access, linked to >my tables and stuff. > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >No virus found in this incoming message. >Checked by AVG Free Edition. >Version: 7.5.441 / Virus Database: 268.18.3/694 - Release Date: 2/20/2007 >1:44 PM > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Want a degree but can't afford to quit? Top school degrees online - in as fast as 1 year http://forms.nextag.com/goto.jsp?url=/serv/main/buyer/education.jsp?doSearch=n&tm=y&search=education_text_links_88_h288c&s=4079&p=5116 From ebarro at verizon.net Wed Feb 21 12:53:06 2007 From: ebarro at verizon.net (Eric Barro) Date: Wed, 21 Feb 2007 10:53:06 -0800 Subject: [AccessD] Feeding parameters to SQL Server In-Reply-To: <00c201c755e7$359ebbb0$657aa8c0@m6805> Message-ID: <0JDT007O8TT1H334@vms046.mailsrvcs.net> Sorry...the general syntax for using the function is SELECT * FROM dbo.MyFunction(param1, param2) This will return the correct dataset You can use it as a regular "table" in a query this way... SELECT field1, field2 FROM myAccessTable a INNER JOIN ( SELECT * FROM dbo.MyFunction(param1, param2) ) b ON a.accessField = b.functionField -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, February 21, 2007 10:37 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Eric, What is responsible for feeding in the parameters? Can the query that uses the linked view do that? John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Wednesday, February 21, 2007 1:05 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server John, Convert the SQL server view to a SQL server function that returns a table. Functions take parameters and return data sets based on the parameters that were passed to it. The general syntax for such a function would be... CREATE FUNCTION dbo.MyFunction ( @Parameter1 SQLDataType. @Parameter2 SQLDataType ) RETURNS TABLE AS RETURN ( SELECT fieldName1, fieldName2 FROM MyTable a (nolock) WHERE a.whereField1 BETWEEN @Parameter1 AND @Parameter2 ) Eric -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, February 21, 2007 9:59 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Feeding parameters to SQL Server Is it possible to feed a parameter to a SQL Server view from Access? I am linking (ODBC) to a pair of tables in SQL Server. The views return a set of data which will only grow larger over time. I would like to somehow tell sql server where... and feed in the value - where checkdate >=X and <=Y for example. These views are then used in queries inside of Access, linked to my tables and stuff. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/694 - Release Date: 2/20/2007 1:44 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/694 - Release Date: 2/20/2007 1:44 PM From jwcolby at colbyconsulting.com Wed Feb 21 13:11:05 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 21 Feb 2007 14:11:05 -0500 Subject: [AccessD] Feeding parameters to SQL Server In-Reply-To: Message-ID: <00d301c755ec$097c1c80$657aa8c0@m6805> Well... I dunno. I have a view in SQL Server returning 8 fields, 6K records (currently), completely unfiltered, all records in the table. I pull that linked table into a query in order to do some preliminary filtering - check date between a pair of dates and check number not null. I want the view in sql server to do the "check number not null" for me, and I know how to do that. I want the SQL Server to take a pair of parameters - "From Date" and "To Date" and return only those records. If I could do this, then I could get rid of my "base query" in access which applies these filters, reduce traffic across the wire etc. However even if I do this, the view is not being requested by a form in XP (for example) where some magical thing happens in Access to pass the parameters off to SQL Server. The linked view will be used immediately in another query which joins this view to other tables (on one field - BEID - in the view) in order to build up a set of data for a report. So the "parent" query that is using the view will have to "feed" the parameters to the linked view. Being a nubee to SQL Server I do not even know if what I am attempting to do is possible. I cannot wrap my mind around how a query that is using a view can know that the view needs parameters, and if it did, what to feed it. If it is possible, I have never done so obviously, so I don't even have the basics of what to set in Access to do the parameter passing. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Wednesday, February 21, 2007 1:50 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Feeding parameters to SQL Server Maybe I'm not understanding the question...but you have a linked table in access...that is really a view in SQL...would a passthru to this view work to add your criteria?? ??? Mark A. Matte >From: "JWColby" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] Feeding parameters to SQL Server >Date: Wed, 21 Feb 2007 13:36:31 -0500 > >Eric, > >What is responsible for feeding in the parameters? Can the query that >uses the linked view do that? > > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro >Sent: Wednesday, February 21, 2007 1:05 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Feeding parameters to SQL Server > >John, > >Convert the SQL server view to a SQL server function that returns a table. >Functions take parameters and return data sets based on the parameters >that were passed to it. > > >The general syntax for such a function would be... > > >CREATE FUNCTION dbo.MyFunction >( > @Parameter1 SQLDataType. > @Parameter2 SQLDataType >) >RETURNS TABLE >AS >RETURN >( >SELECT > fieldName1, > fieldName2 >FROM MyTable a (nolock) >WHERE a.whereField1 BETWEEN @Parameter1 AND @Parameter2 > ) > > > >Eric > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby >Sent: Wednesday, February 21, 2007 9:59 AM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] Feeding parameters to SQL Server > >Is it possible to feed a parameter to a SQL Server view from Access? I >am linking (ODBC) to a pair of tables in SQL Server. The views return >a set of data which will only grow larger over time. I would like to >somehow tell sql server where... and feed in the value - where >checkdate >=X and <=Y for example. These views are then used in >queries inside of Access, linked to my tables and stuff. > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >No virus found in this incoming message. >Checked by AVG Free Edition. >Version: 7.5.441 / Virus Database: 268.18.3/694 - Release Date: >2/20/2007 >1:44 PM > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Want a degree but can't afford to quit? Top school degrees online - in as fast as 1 year http://forms.nextag.com/goto.jsp?url=/serv/main/buyer/education.jsp?doSearch =n&tm=y&search=education_text_links_88_h288c&s=4079&p=5116 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ebarro at verizon.net Wed Feb 21 13:24:02 2007 From: ebarro at verizon.net (Eric Barro) Date: Wed, 21 Feb 2007 11:24:02 -0800 Subject: [AccessD] Feeding parameters to SQL Server In-Reply-To: <00d301c755ec$097c1c80$657aa8c0@m6805> Message-ID: <0JDT004Y3V8032H5@vms040.mailsrvcs.net> John, Yes, it can be done with the SQL user-defined function. Let SQL server do all the work (check for null, filter records between date parameters) before it sends you the records across the wire. The UDF will accomplish this very nicely for you. Let me know if you need help in moving forward with this direction. Eric -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, February 21, 2007 11:11 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Well... I dunno. I have a view in SQL Server returning 8 fields, 6K records (currently), completely unfiltered, all records in the table. I pull that linked table into a query in order to do some preliminary filtering - check date between a pair of dates and check number not null. I want the view in sql server to do the "check number not null" for me, and I know how to do that. I want the SQL Server to take a pair of parameters - "From Date" and "To Date" and return only those records. If I could do this, then I could get rid of my "base query" in access which applies these filters, reduce traffic across the wire etc. However even if I do this, the view is not being requested by a form in XP (for example) where some magical thing happens in Access to pass the parameters off to SQL Server. The linked view will be used immediately in another query which joins this view to other tables (on one field - BEID - in the view) in order to build up a set of data for a report. So the "parent" query that is using the view will have to "feed" the parameters to the linked view. Being a nubee to SQL Server I do not even know if what I am attempting to do is possible. I cannot wrap my mind around how a query that is using a view can know that the view needs parameters, and if it did, what to feed it. If it is possible, I have never done so obviously, so I don't even have the basics of what to set in Access to do the parameter passing. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Wednesday, February 21, 2007 1:50 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Feeding parameters to SQL Server Maybe I'm not understanding the question...but you have a linked table in access...that is really a view in SQL...would a passthru to this view work to add your criteria?? ??? Mark A. Matte >From: "JWColby" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] Feeding parameters to SQL Server >Date: Wed, 21 Feb 2007 13:36:31 -0500 > >Eric, > >What is responsible for feeding in the parameters? Can the query that >uses the linked view do that? > > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro >Sent: Wednesday, February 21, 2007 1:05 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Feeding parameters to SQL Server > >John, > >Convert the SQL server view to a SQL server function that returns a table. >Functions take parameters and return data sets based on the parameters >that were passed to it. > > >The general syntax for such a function would be... > > >CREATE FUNCTION dbo.MyFunction >( > @Parameter1 SQLDataType. > @Parameter2 SQLDataType >) >RETURNS TABLE >AS >RETURN >( >SELECT > fieldName1, > fieldName2 >FROM MyTable a (nolock) >WHERE a.whereField1 BETWEEN @Parameter1 AND @Parameter2 > ) > > > >Eric > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby >Sent: Wednesday, February 21, 2007 9:59 AM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] Feeding parameters to SQL Server > >Is it possible to feed a parameter to a SQL Server view from Access? I >am linking (ODBC) to a pair of tables in SQL Server. The views return >a set of data which will only grow larger over time. I would like to >somehow tell sql server where... and feed in the value - where >checkdate >=X and <=Y for example. These views are then used in >queries inside of Access, linked to my tables and stuff. > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >No virus found in this incoming message. >Checked by AVG Free Edition. >Version: 7.5.441 / Virus Database: 268.18.3/694 - Release Date: >2/20/2007 >1:44 PM > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Want a degree but can't afford to quit? Top school degrees online - in as fast as 1 year http://forms.nextag.com/goto.jsp?url=/serv/main/buyer/education.jsp?doSearch =n&tm=y&search=education_text_links_88_h288c&s=4079&p=5116 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/694 - Release Date: 2/20/2007 1:44 PM From jwcolby at colbyconsulting.com Wed Feb 21 13:30:26 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 21 Feb 2007 14:30:26 -0500 Subject: [AccessD] Feeding parameters to SQL Server In-Reply-To: <0JDT004Y3V8032H5@vms040.mailsrvcs.net> Message-ID: <00d901c755ee$bd7ea700$657aa8c0@m6805> Eric, Thanks for your offer of help. Given your example: SELECT field1, field2 FROM myAccessTable a INNER JOIN ( SELECT * FROM dbo.MyFunction(param1, param2) ) b ON a.accessField = b.functionField What causes Param1, Param2 to be sent from Access to SQL Server? Does the parent query do this? If so, what do I do in that query to tell it to expect to be asked for Param1, Param1 and what to send in response to the request? John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Wednesday, February 21, 2007 2:24 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server John, Yes, it can be done with the SQL user-defined function. Let SQL server do all the work (check for null, filter records between date parameters) before it sends you the records across the wire. The UDF will accomplish this very nicely for you. Let me know if you need help in moving forward with this direction. Eric -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, February 21, 2007 11:11 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Well... I dunno. I have a view in SQL Server returning 8 fields, 6K records (currently), completely unfiltered, all records in the table. I pull that linked table into a query in order to do some preliminary filtering - check date between a pair of dates and check number not null. I want the view in sql server to do the "check number not null" for me, and I know how to do that. I want the SQL Server to take a pair of parameters - "From Date" and "To Date" and return only those records. If I could do this, then I could get rid of my "base query" in access which applies these filters, reduce traffic across the wire etc. However even if I do this, the view is not being requested by a form in XP (for example) where some magical thing happens in Access to pass the parameters off to SQL Server. The linked view will be used immediately in another query which joins this view to other tables (on one field - BEID - in the view) in order to build up a set of data for a report. So the "parent" query that is using the view will have to "feed" the parameters to the linked view. Being a nubee to SQL Server I do not even know if what I am attempting to do is possible. I cannot wrap my mind around how a query that is using a view can know that the view needs parameters, and if it did, what to feed it. If it is possible, I have never done so obviously, so I don't even have the basics of what to set in Access to do the parameter passing. John W. Colby Colby Consulting www.ColbyConsulting.com From rusty.hammond at cpiqpc.com Wed Feb 21 13:35:44 2007 From: rusty.hammond at cpiqpc.com (rusty.hammond at cpiqpc.com) Date: Wed, 21 Feb 2007 13:35:44 -0600 Subject: [AccessD] Feeding parameters to SQL Server Message-ID: <8301C8A868251E4C8ECD3D4FFEA40F8A2584B977@cpixchng-1.cpiqpc.net> John, As long as you don't need to update the data in the view coming from SQL, you can setup a stored procedure with parameters in SQL, then use a pass-through query in your Access front end to call the stored procedure and pass it the parameters. For example, say you have a table in SQL called tblMyInfo with fields: MyInfoID, SomeData1, SomeData2 Create a new stored procedure with parameters as in the following example: CREATE PROCEDURE [ap_GetMyInfo] @GetMyInfoID integer AS SELECT MyInfoID, SomeData1, SomeData2 FROM tblMyInfo WHERE MyInfoID = @GetMyInfoID GO Then in your pass through query in Access, setup your connection string to your SQL database(in the properties of the query) and call the stored procedure in the SQL ie: ap_GetMyInfo 6 When you run the pass-through query, you get a list of records that have a MyInfoID value of 6 HTH Rusty -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Wednesday, February 21, 2007 1:11 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Well... I dunno. I have a view in SQL Server returning 8 fields, 6K records (currently), completely unfiltered, all records in the table. I pull that linked table into a query in order to do some preliminary filtering - check date between a pair of dates and check number not null. I want the view in sql server to do the "check number not null" for me, and I know how to do that. I want the SQL Server to take a pair of parameters - "From Date" and "To Date" and return only those records. If I could do this, then I could get rid of my "base query" in access which applies these filters, reduce traffic across the wire etc. However even if I do this, the view is not being requested by a form in XP (for example) where some magical thing happens in Access to pass the parameters off to SQL Server. The linked view will be used immediately in another query which joins this view to other tables (on one field - BEID - in the view) in order to build up a set of data for a report. So the "parent" query that is using the view will have to "feed" the parameters to the linked view. Being a nubee to SQL Server I do not even know if what I am attempting to do is possible. I cannot wrap my mind around how a query that is using a view can know that the view needs parameters, and if it did, what to feed it. If it is possible, I have never done so obviously, so I don't even have the basics of what to set in Access to do the parameter passing. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Wednesday, February 21, 2007 1:50 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Feeding parameters to SQL Server Maybe I'm not understanding the question...but you have a linked table in access...that is really a view in SQL...would a passthru to this view work to add your criteria?? ??? Mark A. Matte >From: "JWColby" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] Feeding parameters to SQL Server >Date: Wed, 21 Feb 2007 13:36:31 -0500 > >Eric, > >What is responsible for feeding in the parameters? Can the query that >uses the linked view do that? > > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro >Sent: Wednesday, February 21, 2007 1:05 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Feeding parameters to SQL Server > >John, > >Convert the SQL server view to a SQL server function that returns a table. >Functions take parameters and return data sets based on the parameters >that were passed to it. > > >The general syntax for such a function would be... > > >CREATE FUNCTION dbo.MyFunction >( > @Parameter1 SQLDataType. > @Parameter2 SQLDataType >) >RETURNS TABLE >AS >RETURN >( >SELECT > fieldName1, > fieldName2 >FROM MyTable a (nolock) >WHERE a.whereField1 BETWEEN @Parameter1 AND @Parameter2 > ) > > > >Eric > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby >Sent: Wednesday, February 21, 2007 9:59 AM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] Feeding parameters to SQL Server > >Is it possible to feed a parameter to a SQL Server view from Access? I >am linking (ODBC) to a pair of tables in SQL Server. The views return >a set of data which will only grow larger over time. I would like to >somehow tell sql server where... and feed in the value - where >checkdate >=X and <=Y for example. These views are then used in >queries inside of Access, linked to my tables and stuff. > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >No virus found in this incoming message. >Checked by AVG Free Edition. >Version: 7.5.441 / Virus Database: 268.18.3/694 - Release Date: >2/20/2007 >1:44 PM > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Want a degree but can't afford to quit? Top school degrees online - in as fast as 1 year http://forms.nextag.com/goto.jsp?url=/serv/main/buyer/education.jsp?doSearch =n&tm=y&search=education_text_links_88_h288c&s=4079&p=5116 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** From jwcolby at colbyconsulting.com Wed Feb 21 13:55:10 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 21 Feb 2007 14:55:10 -0500 Subject: [AccessD] Feeding parameters to SQL Server In-Reply-To: <8301C8A868251E4C8ECD3D4FFEA40F8A2584B977@cpixchng-1.cpiqpc.net> Message-ID: <00dd01c755f2$31c921a0$657aa8c0@m6805> Wow. So you are saying that ap_GetMyInfo 6 Is valid SQL as long as the object at the other end of the connection string knows what to do with it? John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rusty.hammond at cpiqpc.com Sent: Wednesday, February 21, 2007 2:36 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Feeding parameters to SQL Server John, As long as you don't need to update the data in the view coming from SQL, you can setup a stored procedure with parameters in SQL, then use a pass-through query in your Access front end to call the stored procedure and pass it the parameters. For example, say you have a table in SQL called tblMyInfo with fields: MyInfoID, SomeData1, SomeData2 Create a new stored procedure with parameters as in the following example: CREATE PROCEDURE [ap_GetMyInfo] @GetMyInfoID integer AS SELECT MyInfoID, SomeData1, SomeData2 FROM tblMyInfo WHERE MyInfoID = @GetMyInfoID GO Then in your pass through query in Access, setup your connection string to your SQL database(in the properties of the query) and call the stored procedure in the SQL ie: ap_GetMyInfo 6 When you run the pass-through query, you get a list of records that have a MyInfoID value of 6 HTH Rusty -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Wednesday, February 21, 2007 1:11 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Well... I dunno. I have a view in SQL Server returning 8 fields, 6K records (currently), completely unfiltered, all records in the table. I pull that linked table into a query in order to do some preliminary filtering - check date between a pair of dates and check number not null. I want the view in sql server to do the "check number not null" for me, and I know how to do that. I want the SQL Server to take a pair of parameters - "From Date" and "To Date" and return only those records. If I could do this, then I could get rid of my "base query" in access which applies these filters, reduce traffic across the wire etc. However even if I do this, the view is not being requested by a form in XP (for example) where some magical thing happens in Access to pass the parameters off to SQL Server. The linked view will be used immediately in another query which joins this view to other tables (on one field - BEID - in the view) in order to build up a set of data for a report. So the "parent" query that is using the view will have to "feed" the parameters to the linked view. Being a nubee to SQL Server I do not even know if what I am attempting to do is possible. I cannot wrap my mind around how a query that is using a view can know that the view needs parameters, and if it did, what to feed it. If it is possible, I have never done so obviously, so I don't even have the basics of what to set in Access to do the parameter passing. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Wednesday, February 21, 2007 1:50 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Feeding parameters to SQL Server Maybe I'm not understanding the question...but you have a linked table in access...that is really a view in SQL...would a passthru to this view work to add your criteria?? ??? Mark A. Matte >From: "JWColby" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] Feeding parameters to SQL Server >Date: Wed, 21 Feb 2007 13:36:31 -0500 > >Eric, > >What is responsible for feeding in the parameters? Can the query that >uses the linked view do that? > > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro >Sent: Wednesday, February 21, 2007 1:05 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Feeding parameters to SQL Server > >John, > >Convert the SQL server view to a SQL server function that returns a table. >Functions take parameters and return data sets based on the parameters >that were passed to it. > > >The general syntax for such a function would be... > > >CREATE FUNCTION dbo.MyFunction >( > @Parameter1 SQLDataType. > @Parameter2 SQLDataType >) >RETURNS TABLE >AS >RETURN >( >SELECT > fieldName1, > fieldName2 >FROM MyTable a (nolock) >WHERE a.whereField1 BETWEEN @Parameter1 AND @Parameter2 > ) > > > >Eric > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby >Sent: Wednesday, February 21, 2007 9:59 AM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] Feeding parameters to SQL Server > >Is it possible to feed a parameter to a SQL Server view from Access? I >am linking (ODBC) to a pair of tables in SQL Server. The views return >a set of data which will only grow larger over time. I would like to >somehow tell sql server where... and feed in the value - where >checkdate >=X and <=Y for example. These views are then used in >queries inside of Access, linked to my tables and stuff. > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >No virus found in this incoming message. >Checked by AVG Free Edition. >Version: 7.5.441 / Virus Database: 268.18.3/694 - Release Date: >2/20/2007 >1:44 PM > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Want a degree but can't afford to quit? Top school degrees online - in as fast as 1 year http://forms.nextag.com/goto.jsp?url=/serv/main/buyer/education.jsp?doSearch =n&tm=y&search=education_text_links_88_h288c&s=4079&p=5116 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed Feb 21 14:07:08 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 21 Feb 2007 12:07:08 -0800 Subject: [AccessD] Feeding parameters to SQL Server In-Reply-To: <00bd01c755e1$f02493c0$657aa8c0@m6805> Message-ID: <0JDT00GXAX3Z7O72@l-daemon> Hi John: There is a DBA related article on subject (http://www.databaseadvisors.com/newsletters/newsletter112003/0311UnboundRep orts.asp ... don't get scared off by the name.) which will give a sample FE and BE DB on the design. ODBC works great for Updates and Deletes but when it comes to Selects that is where everything grinds to a halt. The small attached code app was part of a much larger application that could be accessed from anywhere in country, given the proper credentials and an appropriate MS Access FE. It shows the method of attachment (an MS Access or MS SQL BE work equally as well or any DB for that matter.), data management and parameter passing. If you need more specifics contact me offline. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, February 21, 2007 9:59 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Feeding parameters to SQL Server Is it possible to feed a parameter to a SQL Server view from Access? I am linking (ODBC) to a pair of tables in SQL Server. The views return a set of data which will only grow larger over time. I would like to somehow tell sql server where... and feed in the value - where checkdate >=X and <=Y for example. These views are then used in queries inside of Access, linked to my tables and stuff. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rusty.hammond at cpiqpc.com Wed Feb 21 14:13:18 2007 From: rusty.hammond at cpiqpc.com (rusty.hammond at cpiqpc.com) Date: Wed, 21 Feb 2007 14:13:18 -0600 Subject: [AccessD] Feeding parameters to SQL Server Message-ID: <8301C8A868251E4C8ECD3D4FFEA40F8A2584B979@cpixchng-1.cpiqpc.net> Yes. I will sometimes send a SQL SELECT string or INSERT statements using a pass-thru, but when I can, I call a stored procedure like this because MS SQL has already analyzed the stored procedure and knows the most optimal way to run it. The only gotcha is a pass-thru is read-only but for reporting it's nice. Rusty -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Wednesday, February 21, 2007 1:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Wow. So you are saying that ap_GetMyInfo 6 Is valid SQL as long as the object at the other end of the connection string knows what to do with it? John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rusty.hammond at cpiqpc.com Sent: Wednesday, February 21, 2007 2:36 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Feeding parameters to SQL Server John, As long as you don't need to update the data in the view coming from SQL, you can setup a stored procedure with parameters in SQL, then use a pass-through query in your Access front end to call the stored procedure and pass it the parameters. For example, say you have a table in SQL called tblMyInfo with fields: MyInfoID, SomeData1, SomeData2 Create a new stored procedure with parameters as in the following example: CREATE PROCEDURE [ap_GetMyInfo] @GetMyInfoID integer AS SELECT MyInfoID, SomeData1, SomeData2 FROM tblMyInfo WHERE MyInfoID = @GetMyInfoID GO Then in your pass through query in Access, setup your connection string to your SQL database(in the properties of the query) and call the stored procedure in the SQL ie: ap_GetMyInfo 6 When you run the pass-through query, you get a list of records that have a MyInfoID value of 6 HTH Rusty ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** From jwelz at hotmail.com Wed Feb 21 14:19:57 2007 From: jwelz at hotmail.com (Jurgen Welz) Date: Wed, 21 Feb 2007 13:19:57 -0700 Subject: [AccessD] MDB to SQL Server In-Reply-To: <008f01c755ca$2d7d2740$657aa8c0@m6805> Message-ID: People: Given that the organization I work for has decided that the database I built for them over the years will be going from a maximum of 41 to about 50 users in the course of this year and the complexity and size of our database has been growing at an ever accellerating rate and we have been suffering from the occasional corruption, the question of what we can do has been asked of me. We are running individual DAO FE files via a pair (soon to be four) of servers against a file server MDB on a gigabit LAN. Corruptions started happening a couple years back when users copied the backend MDB file to their local laptops. When we were on a local network, this never caused any grief but when we switched to a terminal server environment, the copy duration went to several minutes and, unhappily, the original server data flie frequently became corrupted. If any users logged on after the corruption, they were given an error about a damaged database while existing logins proceeded without issue. The only resolution was to bump everyone off, repair the BE file and then allow everyone back on again. Typically, one record in a single table would be found to be at fault with a ton of invalid junk in the fields. That record would typically have to be deleted. Curiously, it often contained out of range numbers even after repair. We put a stop to copying open MDB files to remote laptops (you could still make a copy on the server and then copy that copy without issue). Notwithstanding that, we occasionally get a corrupt MDB BE file showing a similar kind of damage. Of course I have no way of knowing whether anyone tried to copy the file or whether it was just the fact that user or MDB limits had been exceeded. Corruption may happen once every 4 to 8 months. When I started all this in about '96, my boss was told that our parent company would look at our data needs in 5 to 7 years. My boss was told today that it would be another 4 years at least. I suspect that target will be signifcantly exceeded. We could be up to 100 users by that time, with a 200 Megabyte BE file. The whole discussion about DAO/ADO caught my attention as I haven't been doing much with our system in the past 4 years other than some refinements and enhancements. Access development has become more of a sideline. I wrote the basics at a time when DAO was my only option and wasn't give the resources to convert to ADO. SQL Server has never been an option, even though the parent company, which grosses over a billion in annual revenue, relies on it for their systems. If I can provide sufficient justification, I may get the go ahead to upsize. The question I am posed is, what is the next step for the system I built. My boss is complaining about performance of some of our forms, but the fact is, our forms display considerably more information on a screen than any of the parent company forms and they still open and populate a great deal faster than our parent company forms. When I pull a safety stats report on screen from the parent company on a single manager on perhaps 20 projects, it may take 20 to 30 seconds to load, yet my slowest project form will load within 10 seconds. My load time is a bit slow because of a number of lists and combos that retrieve a large number of records or retrieve from tables that I can reduce in size by archiving datas, but it shows a great deal more information from a broader variety of sources. I know I can gain sginficant performance by denormalizing. I've always split my addresses into tables for country, province/state, city and address. By storing all the data in a single field rather than in separate tables, the joins process significantly faster. I have used Callback functions for many lists and combos to aviod hitting a BE repeatedly, but, for continuous forms using combos filling from a table with a large number of records, the forms poplulate quite slowly, much more slowly than when the combo is filled with an SQL rowsource. I could make Just In Time combos and use arrays of controls (as I have done in various situations) but I think my best option is to cut down the size of the data file, giving users the option to see current data only, and current data unioned with archived data and let them wait the small percentage of the time when that is necessary. Given that we are moving from 2 servers to 4 over the next few weeks, it seems that people are starting to realize that our division has increasingly significant needs and be more amenable to suggestions. I welcome any input from the list. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com _________________________________________________________________ Find out the restaurants participating in Winterlicious http://local.live.com/default.aspx?v=2&cp=43.658648~-79.383962&style=r&lvl=15&tilt=-90&dir=0&alt=-1000&scene=3702663&cid=7ABE80D1746919B4!1329 >From January 26 to February 8, 2007 From dwaters at usinternet.com Wed Feb 21 14:43:01 2007 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 21 Feb 2007 14:43:01 -0600 Subject: [AccessD] MDB to SQL Server In-Reply-To: <6028771.1172089554511.JavaMail.root@sniper56> References: <008f01c755ca$2d7d2740$657aa8c0@m6805> <6028771.1172089554511.JavaMail.root@sniper56> Message-ID: <003001c755f8$e1110d70$0200a8c0@danwaters> Jurgen, A few thoughts: 1) SQL Server 2005 Express has a 2G storage capacity, and is free. 2) You can protect your production BE data file using Windows folder permissions in an interesting and non-intuitive way. You'll need to get a copy of the book by Garry Robinson on Real World MS Access Security, and read through Chapter 12. This prevents regular users from opening the folder, but allows them to use a FE that connects to a BE in that folder. I use this at two customers, and it works well. 3) It sounds as though you have 10 years' data accumulated into one BE file. Is there a possibility that some of the data could be moved to an archive BE file? 4) For speedier performance, several people have suggested creating a connection to the BE from the FE when first opening a database. Keeping the connection open can improve performance because the overhead associated with opening and closing many connections (recordsets, queries, bound forms, etc.) can be avoided. However, there is a registry key which defines a time-out period for an inactive connection to Jet - the default value is 10 minutes. 5) Why are you getting complaints about your system which is faster? Because everyone knows that complaining to the corporate parent is useless, but when they ask you to do something, you respond! :-) HTH! Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jurgen Welz Sent: Wednesday, February 21, 2007 2:20 PM To: accessd at databaseadvisors.com Subject: [AccessD] MDB to SQL Server People: Given that the organization I work for has decided that the database I built for them over the years will be going from a maximum of 41 to about 50 users in the course of this year and the complexity and size of our database has been growing at an ever accellerating rate and we have been suffering from the occasional corruption, the question of what we can do has been asked of me. We are running individual DAO FE files via a pair (soon to be four) of servers against a file server MDB on a gigabit LAN. Corruptions started happening a couple years back when users copied the backend MDB file to their local laptops. When we were on a local network, this never caused any grief but when we switched to a terminal server environment, the copy duration went to several minutes and, unhappily, the original server data flie frequently became corrupted. If any users logged on after the corruption, they were given an error about a damaged database while existing logins proceeded without issue. The only resolution was to bump everyone off, repair the BE file and then allow everyone back on again. Typically, one record in a single table would be found to be at fault with a ton of invalid junk in the fields. That record would typically have to be deleted. Curiously, it often contained out of range numbers even after repair. We put a stop to copying open MDB files to remote laptops (you could still make a copy on the server and then copy that copy without issue). Notwithstanding that, we occasionally get a corrupt MDB BE file showing a similar kind of damage. Of course I have no way of knowing whether anyone tried to copy the file or whether it was just the fact that user or MDB limits had been exceeded. Corruption may happen once every 4 to 8 months. When I started all this in about '96, my boss was told that our parent company would look at our data needs in 5 to 7 years. My boss was told today that it would be another 4 years at least. I suspect that target will be signifcantly exceeded. We could be up to 100 users by that time, with a 200 Megabyte BE file. The whole discussion about DAO/ADO caught my attention as I haven't been doing much with our system in the past 4 years other than some refinements and enhancements. Access development has become more of a sideline. I wrote the basics at a time when DAO was my only option and wasn't give the resources to convert to ADO. SQL Server has never been an option, even though the parent company, which grosses over a billion in annual revenue, relies on it for their systems. If I can provide sufficient justification, I may get the go ahead to upsize. The question I am posed is, what is the next step for the system I built. My boss is complaining about performance of some of our forms, but the fact is, our forms display considerably more information on a screen than any of the parent company forms and they still open and populate a great deal faster than our parent company forms. When I pull a safety stats report on screen from the parent company on a single manager on perhaps 20 projects, it may take 20 to 30 seconds to load, yet my slowest project form will load within 10 seconds. My load time is a bit slow because of a number of lists and combos that retrieve a large number of records or retrieve from tables that I can reduce in size by archiving datas, but it shows a great deal more information from a broader variety of sources. I know I can gain sginficant performance by denormalizing. I've always split my addresses into tables for country, province/state, city and address. By storing all the data in a single field rather than in separate tables, the joins process significantly faster. I have used Callback functions for many lists and combos to aviod hitting a BE repeatedly, but, for continuous forms using combos filling from a table with a large number of records, the forms poplulate quite slowly, much more slowly than when the combo is filled with an SQL rowsource. I could make Just In Time combos and use arrays of controls (as I have done in various situations) but I think my best option is to cut down the size of the data file, giving users the option to see current data only, and current data unioned with archived data and let them wait the small percentage of the time when that is necessary. Given that we are moving from 2 servers to 4 over the next few weeks, it seems that people are starting to realize that our division has increasingly significant needs and be more amenable to suggestions. I welcome any input from the list. Ciao J|rgen Welz Edmonton, Alberta jwelz at hotmail.com _________________________________________________________________ Find out the restaurants participating in Winterlicious http://local.live.com/default.aspx?v=2&cp=43.658648~-79.383962&style=r&lvl=1 5&tilt=-90&dir=0&alt=-1000&scene=3702663&cid=7ABE80D1746919B4!1329 >From January 26 to February 8, 2007 From shamil at users.mns.ru Wed Feb 21 14:59:59 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Wed, 21 Feb 2007 23:59:59 +0300 Subject: [AccessD] Feeding parameters to SQL Server In-Reply-To: <00d301c755ec$097c1c80$657aa8c0@m6805> Message-ID: <000f01c755fb$409ece10$6401a8c0@nant> Hello John, Let's suppose you use NorthWind sample database and you have to calculate total Freight for a Shipper given from/to dates. I assume you do not use ADPs - if you have used them then you could have created - a stored procedure: ===================== CREATE PROCEDURE usp_TotalFreightStats (@fromDate datetime, @toDate datetime ) AS BEGIN select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName END - or a UDF =========== CREATE FUNCTION TotalFreightStats (@fromDate datetime, @toDate datetime ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN declare @fromDate1 dateTime declare @toDate1 dateTime INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName RETURN END And you could have bound your report to this stored procedure or UDF - on open this report would have requested from/to dates in parameters input dialog. I assume you use mdb and then you can: - create table to keep parameters ================================== CREATE TABLE [dbo].[ParametersForUDFs] ( [fromDate] [datetime] NULL , [toDate] [datetime] NULL ) ON [PRIMARY] GO - populate this table with parameters' values (clear in first) ============================================================= delete from ParametersForUDFs insert into ParametersForUDFs (fromDate, toDate) values ('1996-07-04', '1996-07-12') - create UDF ============ CREATE FUNCTION TotalFreightStats1 ( ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between (select top 1 fromDate from ParametersForUDFs) and (select top 1 toDate from ParametersForUDFs) Group by ShipName RETURN END - use UDF in view ================== CREATE VIEW dbo.vw_TotalFreightStats1 AS SELECT ShipperName, TotalFreight FROM dbo.TotalFreightStats1() TotalFreightStats1 ++++++++++++++++++++++++++++++++++++ - link view to MS Access mdb ++++++++++++++++++++++++++++++++++++ Of course that approach will not work well in multi-user environment if different users will need different from/to dates... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, February 21, 2007 10:11 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Well... I dunno. I have a view in SQL Server returning 8 fields, 6K records (currently), completely unfiltered, all records in the table. I pull that linked table into a query in order to do some preliminary filtering - check date between a pair of dates and check number not null. I want the view in sql server to do the "check number not null" for me, and I know how to do that. I want the SQL Server to take a pair of parameters - "From Date" and "To Date" and return only those records. If I could do this, then I could get rid of my "base query" in access which applies these filters, reduce traffic across the wire etc. However even if I do this, the view is not being requested by a form in XP (for example) where some magical thing happens in Access to pass the parameters off to SQL Server. The linked view will be used immediately in another query which joins this view to other tables (on one field - BEID - in the view) in order to build up a set of data for a report. So the "parent" query that is using the view will have to "feed" the parameters to the linked view. Being a nubee to SQL Server I do not even know if what I am attempting to do is possible. I cannot wrap my mind around how a query that is using a view can know that the view needs parameters, and if it did, what to feed it. If it is possible, I have never done so obviously, so I don't even have the basics of what to set in Access to do the parameter passing. John W. Colby Colby Consulting www.ColbyConsulting.com <<< tail skipped >>> From ebarro at verizon.net Wed Feb 21 15:47:27 2007 From: ebarro at verizon.net (Eric Barro) Date: Wed, 21 Feb 2007 13:47:27 -0800 Subject: [AccessD] Feeding parameters to SQL Server In-Reply-To: <000f01c755fb$409ece10$6401a8c0@nant> Message-ID: <0JDU00JK41V0KYB1@vms048.mailsrvcs.net> Unfortunately dynamic parameters and sql pass-thru queries don't play well in Access. http://www.utteraccess.com/forums/showflat.php?Board=82&Number=1361479 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, February 21, 2007 1:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Hello John, Let's suppose you use NorthWind sample database and you have to calculate total Freight for a Shipper given from/to dates. I assume you do not use ADPs - if you have used them then you could have created - a stored procedure: ===================== CREATE PROCEDURE usp_TotalFreightStats (@fromDate datetime, @toDate datetime ) AS BEGIN select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName END - or a UDF =========== CREATE FUNCTION TotalFreightStats (@fromDate datetime, @toDate datetime ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN declare @fromDate1 dateTime declare @toDate1 dateTime INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName RETURN END And you could have bound your report to this stored procedure or UDF - on open this report would have requested from/to dates in parameters input dialog. I assume you use mdb and then you can: - create table to keep parameters ================================== CREATE TABLE [dbo].[ParametersForUDFs] ( [fromDate] [datetime] NULL , [toDate] [datetime] NULL ) ON [PRIMARY] GO - populate this table with parameters' values (clear in first) ============================================================= delete from ParametersForUDFs insert into ParametersForUDFs (fromDate, toDate) values ('1996-07-04', '1996-07-12') - create UDF ============ CREATE FUNCTION TotalFreightStats1 ( ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between (select top 1 fromDate from ParametersForUDFs) and (select top 1 toDate from ParametersForUDFs) Group by ShipName RETURN END - use UDF in view ================== CREATE VIEW dbo.vw_TotalFreightStats1 AS SELECT ShipperName, TotalFreight FROM dbo.TotalFreightStats1() TotalFreightStats1 ++++++++++++++++++++++++++++++++++++ - link view to MS Access mdb ++++++++++++++++++++++++++++++++++++ Of course that approach will not work well in multi-user environment if different users will need different from/to dates... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, February 21, 2007 10:11 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Well... I dunno. I have a view in SQL Server returning 8 fields, 6K records (currently), completely unfiltered, all records in the table. I pull that linked table into a query in order to do some preliminary filtering - check date between a pair of dates and check number not null. I want the view in sql server to do the "check number not null" for me, and I know how to do that. I want the SQL Server to take a pair of parameters - "From Date" and "To Date" and return only those records. If I could do this, then I could get rid of my "base query" in access which applies these filters, reduce traffic across the wire etc. However even if I do this, the view is not being requested by a form in XP (for example) where some magical thing happens in Access to pass the parameters off to SQL Server. The linked view will be used immediately in another query which joins this view to other tables (on one field - BEID - in the view) in order to build up a set of data for a report. So the "parent" query that is using the view will have to "feed" the parameters to the linked view. Being a nubee to SQL Server I do not even know if what I am attempting to do is possible. I cannot wrap my mind around how a query that is using a view can know that the view needs parameters, and if it did, what to feed it. If it is possible, I have never done so obviously, so I don't even have the basics of what to set in Access to do the parameter passing. John W. Colby Colby Consulting www.ColbyConsulting.com <<< tail skipped >>> -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/694 - Release Date: 2/20/2007 1:44 PM From jim.moss at jlmoss.net Wed Feb 21 15:56:25 2007 From: jim.moss at jlmoss.net (Jim Moss) Date: Wed, 21 Feb 2007 15:56:25 -0600 (CST) Subject: [AccessD] MDB to SQL Server In-Reply-To: <003001c755f8$e1110d70$0200a8c0@danwaters> References: <008f01c755ca$2d7d2740$657aa8c0@m6805> <6028771.1172089554511.JavaMail.root@sniper56> <003001c755f8$e1110d70$0200a8c0@danwaters> Message-ID: <9972.65.196.182.34.1172094985.squirrel@65.196.182.34> Actually SQL Server 2005 Express has a 4G capacity per database, and I guess an unlimited number of databases per. Th 4 gig doesn't include the log file, just the .mdf. > Jurgen, > > A few thoughts: > > 1) SQL Server 2005 Express has a 2G storage capacity, and is free. > > 2) You can protect your production BE data file using Windows folder > permissions in an interesting and non-intuitive way. You'll need to get a > copy of the book by Garry Robinson on Real World MS Access Security, and > read through Chapter 12. This prevents regular users from opening the > folder, but allows them to use a FE that connects to a BE in that folder. > I > use this at two customers, and it works well. > > 3) It sounds as though you have 10 years' data accumulated into one BE > file. > Is there a possibility that some of the data could be moved to an archive > BE > file? > > 4) For speedier performance, several people have suggested creating a > connection to the BE from the FE when first opening a database. Keeping > the > connection open can improve performance because the overhead associated > with > opening and closing many connections (recordsets, queries, bound forms, > etc.) can be avoided. However, there is a registry key which defines a > time-out period for an inactive connection to Jet - the default value is > 10 > minutes. > > 5) Why are you getting complaints about your system which is faster? > Because everyone knows that complaining to the corporate parent is > useless, > but when they ask you to do something, you respond! :-) > > HTH! > Dan Waters > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jurgen Welz > Sent: Wednesday, February 21, 2007 2:20 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] MDB to SQL Server > > People: Given that the organization I work for has decided that the > database I built for them over the years will be going from a maximum of > 41 > to about 50 users in the course of this year and the complexity and size > of > our database has been growing at an ever accellerating rate and we have > been > > suffering from the occasional corruption, the question of what we can do > has > > been asked of me. We are running individual DAO FE files via a pair (soon > to be four) of servers against a file server MDB on a gigabit LAN. > > Corruptions started happening a couple years back when users copied the > backend MDB file to their local laptops. When we were on a local network, > this never caused any grief but when we switched to a terminal server > environment, the copy duration went to several minutes and, unhappily, the > original server data flie frequently became corrupted. If any users > logged > on after the corruption, they were given an error about a damaged database > while existing logins proceeded without issue. The only resolution was to > bump everyone off, repair the BE file and then allow everyone back on > again. > > Typically, one record in a single table would be found to be at fault > with > > a ton of invalid junk in the fields. That record would typically have to > be > > deleted. Curiously, it often contained out of range numbers even after > repair. > > We put a stop to copying open MDB files to remote laptops (you could still > make a copy on the server and then copy that copy without issue). > Notwithstanding that, we occasionally get a corrupt MDB BE file showing a > similar kind of damage. Of course I have no way of knowing whether anyone > tried to copy the file or whether it was just the fact that user or MDB > limits had been exceeded. Corruption may happen once every 4 to 8 months. > > When I started all this in about '96, my boss was told that our parent > company would look at our data needs in 5 to 7 years. My boss was told > today that it would be another 4 years at least. I suspect that target > will > > be signifcantly exceeded. We could be up to 100 users by that time, with > a > 200 Megabyte BE file. > > The whole discussion about DAO/ADO caught my attention as I haven't been > doing much with our system in the past 4 years other than some refinements > and enhancements. Access development has become more of a sideline. I > wrote the basics at a time when DAO was my only option and wasn't give the > resources to convert to ADO. SQL Server has never been an option, even > though the parent company, which grosses over a billion in annual revenue, > relies on it for their systems. If I can provide sufficient > justification, > I may get the go ahead to upsize. > > The question I am posed is, what is the next step for the system I built. > My boss is complaining about performance of some of our forms, but the > fact > is, our forms display considerably more information on a screen than any > of > the parent company forms and they still open and populate a great deal > faster than our parent company forms. When I pull a safety stats report > on > screen from the parent company on a single manager on perhaps 20 projects, > it may take 20 to 30 seconds to load, yet my slowest project form will > load > within 10 seconds. My load time is a bit slow because of a number of > lists > and combos that retrieve a large number of records or retrieve from tables > that I can reduce in size by archiving datas, but it shows a great deal > more > > information from a broader variety of sources. > > I know I can gain sginficant performance by denormalizing. I've always > split my addresses into tables for country, province/state, city and > address. By storing all the data in a single field rather than in > separate > tables, the joins process significantly faster. > > I have used Callback functions for many lists and combos to aviod hitting > a > BE repeatedly, but, for continuous forms using combos filling from a table > with a large number of records, the forms poplulate quite slowly, much > more > slowly than when the combo is filled with an SQL rowsource. I could make > Just In Time combos and use arrays of controls (as I have done in various > situations) but I think my best option is to cut down the size of the data > file, giving users the option to see current data only, and current data > unioned with archived data and let them wait the small percentage of the > time when that is necessary. > > Given that we are moving from 2 servers to 4 over the next few weeks, it > seems that people are starting to realize that our division has > increasingly > > significant needs and be more amenable to suggestions. I welcome any > input > from the list. > > Ciao > J|rgen Welz > Edmonton, Alberta > jwelz at hotmail.com > > _________________________________________________________________ > Find out the restaurants participating in Winterlicious > http://local.live.com/default.aspx?v=2&cp=43.658648~-79.383962&style=r&lvl=1 > 5&tilt=-90&dir=0&alt=-1000&scene=3702663&cid=7ABE80D1746919B4!1329 >>From January 26 to February 8, 2007 > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From shamil at users.mns.ru Wed Feb 21 16:31:05 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Thu, 22 Feb 2007 01:31:05 +0300 Subject: [AccessD] Feeding parameters to SQL Server In-Reply-To: <0JDU00JK41V0KYB1@vms048.mailsrvcs.net> Message-ID: <000301c75607$f9e4a6e0$6401a8c0@nant> Hello Eric, I didn't mention pass-through queries at all. To use parameterized stored procedure to get data from MS SQL, put it into local temp table and bind MS Access report on this temp table I'd propose to use ADODB (only the part getting an ADODB recordset is presented in the following sample code): Dim cnn As ADODB.Connection Dim strCnn As String Dim cmd As ADODB.Command Dim prm As ADODB.Parameter Dim rst As ADODB.Recordset Dim fromDate As Date Dim todate As Date fromDate = #7/4/1996# todate = #7/12/1996# strCnn = "Provider=sqloledb;Data Source=(local);Initial Catalog=Northwind;Integrated Security=SSPI;" Set cnn = New ADODB.Connection cnn.Open strCnn cnn.CursorLocation = adUseClient Set cmd = New ADODB.Command cmd.CommandType = adCmdStoredProc cmd.CommandText = "usp_TotalFreightStats" cmd.ActiveConnection = cnn.ConnectionString ' from date Set prm = cmd.CreateParameter("@fromDate", adDate, adParamInput, _ Value:=fromDate) cmd.Parameters.Append prm ' to Date Set prm = cmd.CreateParameter("@toDate", adDate, adParamInput, _ Value:=todate) cmd.Parameters.Append prm Set rst = cmd.Execute While Not rst.EOF Debug.Print rst(0).Value & " - " & rst(1).Value rst.MoveNext Wend cnn.Close -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Thursday, February 22, 2007 12:47 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Unfortunately dynamic parameters and sql pass-thru queries don't play well in Access. http://www.utteraccess.com/forums/showflat.php?Board=82&Number=1361479 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, February 21, 2007 1:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Hello John, Let's suppose you use NorthWind sample database and you have to calculate total Freight for a Shipper given from/to dates. I assume you do not use ADPs - if you have used them then you could have created - a stored procedure: ===================== CREATE PROCEDURE usp_TotalFreightStats (@fromDate datetime, @toDate datetime ) AS BEGIN select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName END - or a UDF =========== CREATE FUNCTION TotalFreightStats (@fromDate datetime, @toDate datetime ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN declare @fromDate1 dateTime declare @toDate1 dateTime INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName RETURN END And you could have bound your report to this stored procedure or UDF - on open this report would have requested from/to dates in parameters input dialog. I assume you use mdb and then you can: - create table to keep parameters ================================== CREATE TABLE [dbo].[ParametersForUDFs] ( [fromDate] [datetime] NULL , [toDate] [datetime] NULL ) ON [PRIMARY] GO - populate this table with parameters' values (clear in first) ============================================================= delete from ParametersForUDFs insert into ParametersForUDFs (fromDate, toDate) values ('1996-07-04', '1996-07-12') - create UDF ============ CREATE FUNCTION TotalFreightStats1 ( ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between (select top 1 fromDate from ParametersForUDFs) and (select top 1 toDate from ParametersForUDFs) Group by ShipName RETURN END - use UDF in view ================== CREATE VIEW dbo.vw_TotalFreightStats1 AS SELECT ShipperName, TotalFreight FROM dbo.TotalFreightStats1() TotalFreightStats1 ++++++++++++++++++++++++++++++++++++ - link view to MS Access mdb ++++++++++++++++++++++++++++++++++++ Of course that approach will not work well in multi-user environment if different users will need different from/to dates... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, February 21, 2007 10:11 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Well... I dunno. I have a view in SQL Server returning 8 fields, 6K records (currently), completely unfiltered, all records in the table. I pull that linked table into a query in order to do some preliminary filtering - check date between a pair of dates and check number not null. I want the view in sql server to do the "check number not null" for me, and I know how to do that. I want the SQL Server to take a pair of parameters - "From Date" and "To Date" and return only those records. If I could do this, then I could get rid of my "base query" in access which applies these filters, reduce traffic across the wire etc. However even if I do this, the view is not being requested by a form in XP (for example) where some magical thing happens in Access to pass the parameters off to SQL Server. The linked view will be used immediately in another query which joins this view to other tables (on one field - BEID - in the view) in order to build up a set of data for a report. So the "parent" query that is using the view will have to "feed" the parameters to the linked view. Being a nubee to SQL Server I do not even know if what I am attempting to do is possible. I cannot wrap my mind around how a query that is using a view can know that the view needs parameters, and if it did, what to feed it. If it is possible, I have never done so obviously, so I don't even have the basics of what to set in Access to do the parameter passing. John W. Colby Colby Consulting www.ColbyConsulting.com <<< tail skipped >>> -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/694 - Release Date: 2/20/2007 1:44 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed Feb 21 16:48:18 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 21 Feb 2007 14:48:18 -0800 Subject: [AccessD] Feeding parameters to SQL Server In-Reply-To: <0JDU00JK41V0KYB1@vms048.mailsrvcs.net> Message-ID: <0JDU002434KKD6T0@l-daemon> Eric My recommendation is do not use pass-through queries. They are more problem than they are worth as they seem to be an easy quick fix to start with but end up being slow, awkward and unstable. I believe this set of processes was designed to punish newbie developers scaring them off weaning from a MDB BE. MS should have simply remove that whole gambit of functions from Access and never bring them up again in polite company. Now if you want my unvarnished opinion on the subject don't be afraid to ask. :-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Wednesday, February 21, 2007 1:47 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Unfortunately dynamic parameters and sql pass-thru queries don't play well in Access. http://www.utteraccess.com/forums/showflat.php?Board=82&Number=1361479 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, February 21, 2007 1:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Hello John, Let's suppose you use NorthWind sample database and you have to calculate total Freight for a Shipper given from/to dates. I assume you do not use ADPs - if you have used them then you could have created - a stored procedure: ===================== CREATE PROCEDURE usp_TotalFreightStats (@fromDate datetime, @toDate datetime ) AS BEGIN select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName END - or a UDF =========== CREATE FUNCTION TotalFreightStats (@fromDate datetime, @toDate datetime ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN declare @fromDate1 dateTime declare @toDate1 dateTime INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName RETURN END And you could have bound your report to this stored procedure or UDF - on open this report would have requested from/to dates in parameters input dialog. I assume you use mdb and then you can: - create table to keep parameters ================================== CREATE TABLE [dbo].[ParametersForUDFs] ( [fromDate] [datetime] NULL , [toDate] [datetime] NULL ) ON [PRIMARY] GO - populate this table with parameters' values (clear in first) ============================================================= delete from ParametersForUDFs insert into ParametersForUDFs (fromDate, toDate) values ('1996-07-04', '1996-07-12') - create UDF ============ CREATE FUNCTION TotalFreightStats1 ( ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between (select top 1 fromDate from ParametersForUDFs) and (select top 1 toDate from ParametersForUDFs) Group by ShipName RETURN END - use UDF in view ================== CREATE VIEW dbo.vw_TotalFreightStats1 AS SELECT ShipperName, TotalFreight FROM dbo.TotalFreightStats1() TotalFreightStats1 ++++++++++++++++++++++++++++++++++++ - link view to MS Access mdb ++++++++++++++++++++++++++++++++++++ Of course that approach will not work well in multi-user environment if different users will need different from/to dates... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, February 21, 2007 10:11 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Well... I dunno. I have a view in SQL Server returning 8 fields, 6K records (currently), completely unfiltered, all records in the table. I pull that linked table into a query in order to do some preliminary filtering - check date between a pair of dates and check number not null. I want the view in sql server to do the "check number not null" for me, and I know how to do that. I want the SQL Server to take a pair of parameters - "From Date" and "To Date" and return only those records. If I could do this, then I could get rid of my "base query" in access which applies these filters, reduce traffic across the wire etc. However even if I do this, the view is not being requested by a form in XP (for example) where some magical thing happens in Access to pass the parameters off to SQL Server. The linked view will be used immediately in another query which joins this view to other tables (on one field - BEID - in the view) in order to build up a set of data for a report. So the "parent" query that is using the view will have to "feed" the parameters to the linked view. Being a nubee to SQL Server I do not even know if what I am attempting to do is possible. I cannot wrap my mind around how a query that is using a view can know that the view needs parameters, and if it did, what to feed it. If it is possible, I have never done so obviously, so I don't even have the basics of what to set in Access to do the parameter passing. John W. Colby Colby Consulting www.ColbyConsulting.com <<< tail skipped >>> -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/694 - Release Date: 2/20/2007 1:44 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed Feb 21 16:49:11 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 21 Feb 2007 14:49:11 -0800 Subject: [AccessD] Feeding parameters to SQL Server In-Reply-To: <000301c75607$f9e4a6e0$6401a8c0@nant> Message-ID: <0JDU003KM4M2SYF0@l-daemon> Right on Shamil... Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, February 21, 2007 2:31 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Hello Eric, I didn't mention pass-through queries at all. To use parameterized stored procedure to get data from MS SQL, put it into local temp table and bind MS Access report on this temp table I'd propose to use ADODB (only the part getting an ADODB recordset is presented in the following sample code): Dim cnn As ADODB.Connection Dim strCnn As String Dim cmd As ADODB.Command Dim prm As ADODB.Parameter Dim rst As ADODB.Recordset Dim fromDate As Date Dim todate As Date fromDate = #7/4/1996# todate = #7/12/1996# strCnn = "Provider=sqloledb;Data Source=(local);Initial Catalog=Northwind;Integrated Security=SSPI;" Set cnn = New ADODB.Connection cnn.Open strCnn cnn.CursorLocation = adUseClient Set cmd = New ADODB.Command cmd.CommandType = adCmdStoredProc cmd.CommandText = "usp_TotalFreightStats" cmd.ActiveConnection = cnn.ConnectionString ' from date Set prm = cmd.CreateParameter("@fromDate", adDate, adParamInput, _ Value:=fromDate) cmd.Parameters.Append prm ' to Date Set prm = cmd.CreateParameter("@toDate", adDate, adParamInput, _ Value:=todate) cmd.Parameters.Append prm Set rst = cmd.Execute While Not rst.EOF Debug.Print rst(0).Value & " - " & rst(1).Value rst.MoveNext Wend cnn.Close -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Thursday, February 22, 2007 12:47 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Unfortunately dynamic parameters and sql pass-thru queries don't play well in Access. http://www.utteraccess.com/forums/showflat.php?Board=82&Number=1361479 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, February 21, 2007 1:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Hello John, Let's suppose you use NorthWind sample database and you have to calculate total Freight for a Shipper given from/to dates. I assume you do not use ADPs - if you have used them then you could have created - a stored procedure: ===================== CREATE PROCEDURE usp_TotalFreightStats (@fromDate datetime, @toDate datetime ) AS BEGIN select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName END - or a UDF =========== CREATE FUNCTION TotalFreightStats (@fromDate datetime, @toDate datetime ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN declare @fromDate1 dateTime declare @toDate1 dateTime INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName RETURN END And you could have bound your report to this stored procedure or UDF - on open this report would have requested from/to dates in parameters input dialog. I assume you use mdb and then you can: - create table to keep parameters ================================== CREATE TABLE [dbo].[ParametersForUDFs] ( [fromDate] [datetime] NULL , [toDate] [datetime] NULL ) ON [PRIMARY] GO - populate this table with parameters' values (clear in first) ============================================================= delete from ParametersForUDFs insert into ParametersForUDFs (fromDate, toDate) values ('1996-07-04', '1996-07-12') - create UDF ============ CREATE FUNCTION TotalFreightStats1 ( ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between (select top 1 fromDate from ParametersForUDFs) and (select top 1 toDate from ParametersForUDFs) Group by ShipName RETURN END - use UDF in view ================== CREATE VIEW dbo.vw_TotalFreightStats1 AS SELECT ShipperName, TotalFreight FROM dbo.TotalFreightStats1() TotalFreightStats1 ++++++++++++++++++++++++++++++++++++ - link view to MS Access mdb ++++++++++++++++++++++++++++++++++++ Of course that approach will not work well in multi-user environment if different users will need different from/to dates... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, February 21, 2007 10:11 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Well... I dunno. I have a view in SQL Server returning 8 fields, 6K records (currently), completely unfiltered, all records in the table. I pull that linked table into a query in order to do some preliminary filtering - check date between a pair of dates and check number not null. I want the view in sql server to do the "check number not null" for me, and I know how to do that. I want the SQL Server to take a pair of parameters - "From Date" and "To Date" and return only those records. If I could do this, then I could get rid of my "base query" in access which applies these filters, reduce traffic across the wire etc. However even if I do this, the view is not being requested by a form in XP (for example) where some magical thing happens in Access to pass the parameters off to SQL Server. The linked view will be used immediately in another query which joins this view to other tables (on one field - BEID - in the view) in order to build up a set of data for a report. So the "parent" query that is using the view will have to "feed" the parameters to the linked view. Being a nubee to SQL Server I do not even know if what I am attempting to do is possible. I cannot wrap my mind around how a query that is using a view can know that the view needs parameters, and if it did, what to feed it. If it is possible, I have never done so obviously, so I don't even have the basics of what to set in Access to do the parameter passing. John W. Colby Colby Consulting www.ColbyConsulting.com <<< tail skipped >>> -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/694 - Release Date: 2/20/2007 1:44 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ebarro at verizon.net Wed Feb 21 16:50:33 2007 From: ebarro at verizon.net (Eric Barro) Date: Wed, 21 Feb 2007 14:50:33 -0800 Subject: [AccessD] Feeding parameters to SQL Server In-Reply-To: <0JDU002434KKD6T0@l-daemon> Message-ID: <0JDU00GUU4S3IM44@vms042.mailsrvcs.net> Uh..hmmm...Jim and Shamil...I was replying to Colby's question on passing parameters to SQL which was the original thread. Someone suggested pass-thru queries somewhere in the thread. I just happened to reply to the last message in the thread that came from Shamil. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, February 21, 2007 2:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Eric My recommendation is do not use pass-through queries. They are more problem than they are worth as they seem to be an easy quick fix to start with but end up being slow, awkward and unstable. I believe this set of processes was designed to punish newbie developers scaring them off weaning from a MDB BE. MS should have simply remove that whole gambit of functions from Access and never bring them up again in polite company. Now if you want my unvarnished opinion on the subject don't be afraid to ask. :-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Wednesday, February 21, 2007 1:47 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Unfortunately dynamic parameters and sql pass-thru queries don't play well in Access. http://www.utteraccess.com/forums/showflat.php?Board=82&Number=1361479 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, February 21, 2007 1:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Hello John, Let's suppose you use NorthWind sample database and you have to calculate total Freight for a Shipper given from/to dates. I assume you do not use ADPs - if you have used them then you could have created - a stored procedure: ===================== CREATE PROCEDURE usp_TotalFreightStats (@fromDate datetime, @toDate datetime ) AS BEGIN select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName END - or a UDF =========== CREATE FUNCTION TotalFreightStats (@fromDate datetime, @toDate datetime ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN declare @fromDate1 dateTime declare @toDate1 dateTime INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName RETURN END And you could have bound your report to this stored procedure or UDF - on open this report would have requested from/to dates in parameters input dialog. I assume you use mdb and then you can: - create table to keep parameters ================================== CREATE TABLE [dbo].[ParametersForUDFs] ( [fromDate] [datetime] NULL , [toDate] [datetime] NULL ) ON [PRIMARY] GO - populate this table with parameters' values (clear in first) ============================================================= delete from ParametersForUDFs insert into ParametersForUDFs (fromDate, toDate) values ('1996-07-04', '1996-07-12') - create UDF ============ CREATE FUNCTION TotalFreightStats1 ( ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between (select top 1 fromDate from ParametersForUDFs) and (select top 1 toDate from ParametersForUDFs) Group by ShipName RETURN END - use UDF in view ================== CREATE VIEW dbo.vw_TotalFreightStats1 AS SELECT ShipperName, TotalFreight FROM dbo.TotalFreightStats1() TotalFreightStats1 ++++++++++++++++++++++++++++++++++++ - link view to MS Access mdb ++++++++++++++++++++++++++++++++++++ Of course that approach will not work well in multi-user environment if different users will need different from/to dates... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, February 21, 2007 10:11 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Well... I dunno. I have a view in SQL Server returning 8 fields, 6K records (currently), completely unfiltered, all records in the table. I pull that linked table into a query in order to do some preliminary filtering - check date between a pair of dates and check number not null. I want the view in sql server to do the "check number not null" for me, and I know how to do that. I want the SQL Server to take a pair of parameters - "From Date" and "To Date" and return only those records. If I could do this, then I could get rid of my "base query" in access which applies these filters, reduce traffic across the wire etc. However even if I do this, the view is not being requested by a form in XP (for example) where some magical thing happens in Access to pass the parameters off to SQL Server. The linked view will be used immediately in another query which joins this view to other tables (on one field - BEID - in the view) in order to build up a set of data for a report. So the "parent" query that is using the view will have to "feed" the parameters to the linked view. Being a nubee to SQL Server I do not even know if what I am attempting to do is possible. I cannot wrap my mind around how a query that is using a view can know that the view needs parameters, and if it did, what to feed it. If it is possible, I have never done so obviously, so I don't even have the basics of what to set in Access to do the parameter passing. John W. Colby Colby Consulting www.ColbyConsulting.com <<< tail skipped >>> From artful at rogers.com Wed Feb 21 17:07:12 2007 From: artful at rogers.com (artful at rogers.com) Date: Wed, 21 Feb 2007 15:07:12 -0800 (PST) Subject: [AccessD] Feeding parameters to SQL Server Message-ID: <351181.28563.qm@web88213.mail.re2.yahoo.com> I didn't say it, but yeah, that's how it works. Arthur ----- Original Message ---- From: JWColby To: Access Developers discussion and problem solving Sent: Wednesday, February 21, 2007 2:55:10 PM Subject: Re: [AccessD] Feeding parameters to SQL Server Wow. So you are saying that ap_GetMyInfo 6 Is valid SQL as long as the object at the other end of the connection string knows what to do with it? John W. Colby Colby Consulting www.ColbyConsulting.com From artful at rogers.com Wed Feb 21 17:20:03 2007 From: artful at rogers.com (artful at rogers.com) Date: Wed, 21 Feb 2007 15:20:03 -0800 (PST) Subject: [AccessD] MDB to SQL Server Message-ID: <20070221232004.2679.qmail@web88205.mail.re2.yahoo.com> My suggestions: 1. If you wish to stay with an MDB back end (undoubtedly your least expensive choice), then I suggest replication as the way to go. You can even replicate a copy to every individual user. I did that with 70 users in 4 branch offices and it all worked nicely. Each branch had a server in charge of local replication, and HQ's server handled both HQ replication and also replication between the branches. This all occurred on a WAN. Every user everywhere was guaranteed to see the changes from everyone else within 15 minutes. A significant advantage of this approach is the dramatic cutdown on net traffic -- everyone has all the tables locally, so the only net traffic is the changes, not the data itself. 2. If you want to go beyond MDB, then install a copy of SQL Express. This would involve "translating" your app, but the result will ultimately be better. One thing you definitely should do is identify all your row and record sources that do not use named queries, and fix them to use named queries. If you don't do this before upsizing, you'll end up with dozens of objects whose names were manufactured and will be utterly meaningless to you. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Jurgen Welz To: accessd at databaseadvisors.com Sent: Wednesday, February 21, 2007 3:19:57 PM Subject: [AccessD] MDB to SQL Server People: Given that the organization I work for has decided that the database I built for them over the years will be going from a maximum of 41 to about 50 users in the course of this year and the complexity and size of our database has been growing at an ever accellerating rate and we have been suffering from the occasional corruption, the question of what we can do has been asked of me. We are running individual DAO FE files via a pair (soon to be four) of servers against a file server MDB on a gigabit LAN. Corruptions started happening a couple years back when users copied the backend MDB file to their local laptops. When we were on a local network, this never caused any grief but when we switched to a terminal server environment, the copy duration went to several minutes and, unhappily, the original server data flie frequently became corrupted. If any users logged on after the corruption, they were given an error about a damaged database while existing logins proceeded without issue. The only resolution was to bump everyone off, repair the BE file and then allow everyone back on again. Typically, one record in a single table would be found to be at fault with a ton of invalid junk in the fields. That record would typically have to be deleted. Curiously, it often contained out of range numbers even after repair. We put a stop to copying open MDB files to remote laptops (you could still make a copy on the server and then copy that copy without issue). Notwithstanding that, we occasionally get a corrupt MDB BE file showing a similar kind of damage. Of course I have no way of knowing whether anyone tried to copy the file or whether it was just the fact that user or MDB limits had been exceeded. Corruption may happen once every 4 to 8 months. When I started all this in about '96, my boss was told that our parent company would look at our data needs in 5 to 7 years. My boss was told today that it would be another 4 years at least. I suspect that target will be signifcantly exceeded. We could be up to 100 users by that time, with a 200 Megabyte BE file. The whole discussion about DAO/ADO caught my attention as I haven't been doing much with our system in the past 4 years other than some refinements and enhancements. Access development has become more of a sideline. I wrote the basics at a time when DAO was my only option and wasn't give the resources to convert to ADO. SQL Server has never been an option, even though the parent company, which grosses over a billion in annual revenue, relies on it for their systems. If I can provide sufficient justification, I may get the go ahead to upsize. The question I am posed is, what is the next step for the system I built. My boss is complaining about performance of some of our forms, but the fact is, our forms display considerably more information on a screen than any of the parent company forms and they still open and populate a great deal faster than our parent company forms. When I pull a safety stats report on screen from the parent company on a single manager on perhaps 20 projects, it may take 20 to 30 seconds to load, yet my slowest project form will load within 10 seconds. My load time is a bit slow because of a number of lists and combos that retrieve a large number of records or retrieve from tables that I can reduce in size by archiving datas, but it shows a great deal more information from a broader variety of sources. I know I can gain sginficant performance by denormalizing. I've always split my addresses into tables for country, province/state, city and address. By storing all the data in a single field rather than in separate tables, the joins process significantly faster. I have used Callback functions for many lists and combos to aviod hitting a BE repeatedly, but, for continuous forms using combos filling from a table with a large number of records, the forms poplulate quite slowly, much more slowly than when the combo is filled with an SQL rowsource. I could make Just In Time combos and use arrays of controls (as I have done in various situations) but I think my best option is to cut down the size of the data file, giving users the option to see current data only, and current data unioned with archived data and let them wait the small percentage of the time when that is necessary. Given that we are moving from 2 servers to 4 over the next few weeks, it seems that people are starting to realize that our division has increasingly significant needs and be more amenable to suggestions. I welcome any input from the list. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com From shamil at users.mns.ru Wed Feb 21 17:40:40 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Thu, 22 Feb 2007 02:40:40 +0300 Subject: [AccessD] Feeding parameters to SQL Server In-Reply-To: <0JDU00GUU4S3IM44@vms042.mailsrvcs.net> Message-ID: <000a01c75611$b27fc820$6401a8c0@nant> No problem, Eric, I anyway planned to write a short note here on ADODB and parameterized stored procedures... BTW, for parameterized UDFs ADODB can be also used but the issue with access permissions usually forces to use stored procedures - I mean UDF can't be used with a table if a user does not have access permissions for this table. As for stored procedure - it can be used with a table even if a user does not have access permission to this table - user should only have a permission to execute this stored procedure. Here is an example with parameterized UDF and ADODB - parameters's values in this sample are hardcoded in select expression: Dim cnn As ADODB.Connection Dim strCnn As String Dim cmd As ADODB.Command Dim prm As ADODB.Parameter Dim rst As ADODB.Recordset strCnn = "Provider=sqloledb;Data Source=(local);Initial Catalog=Northwind;Integrated Security=SSPI;" Set cnn = New ADODB.Connection cnn.Open strCnn cnn.CursorLocation = adUseClient Set cmd = New ADODB.Command cmd.CommandType = adCmdText cmd.CommandText = "select * from TotalFreightStats( _ '1996-07-02', '1996-07-12')" cmd.ActiveConnection = cnn.ConnectionString Set rst = cmd.Execute While Not rst.EOF Debug.Print rst(0).Value & " - " & rst(1).Value rst.MoveNext Wend cnn.Close -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Thursday, February 22, 2007 1:51 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Uh..hmmm...Jim and Shamil...I was replying to Colby's question on passing parameters to SQL which was the original thread. Someone suggested pass-thru queries somewhere in the thread. I just happened to reply to the last message in the thread that came from Shamil. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, February 21, 2007 2:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Eric My recommendation is do not use pass-through queries. They are more problem than they are worth as they seem to be an easy quick fix to start with but end up being slow, awkward and unstable. I believe this set of processes was designed to punish newbie developers scaring them off weaning from a MDB BE. MS should have simply remove that whole gambit of functions from Access and never bring them up again in polite company. Now if you want my unvarnished opinion on the subject don't be afraid to ask. :-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Wednesday, February 21, 2007 1:47 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Unfortunately dynamic parameters and sql pass-thru queries don't play well in Access. http://www.utteraccess.com/forums/showflat.php?Board=82&Number=1361479 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, February 21, 2007 1:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Hello John, Let's suppose you use NorthWind sample database and you have to calculate total Freight for a Shipper given from/to dates. I assume you do not use ADPs - if you have used them then you could have created - a stored procedure: ===================== CREATE PROCEDURE usp_TotalFreightStats (@fromDate datetime, @toDate datetime ) AS BEGIN select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName END - or a UDF =========== CREATE FUNCTION TotalFreightStats (@fromDate datetime, @toDate datetime ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN declare @fromDate1 dateTime declare @toDate1 dateTime INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName RETURN END And you could have bound your report to this stored procedure or UDF - on open this report would have requested from/to dates in parameters input dialog. I assume you use mdb and then you can: - create table to keep parameters ================================== CREATE TABLE [dbo].[ParametersForUDFs] ( [fromDate] [datetime] NULL , [toDate] [datetime] NULL ) ON [PRIMARY] GO - populate this table with parameters' values (clear in first) ============================================================= delete from ParametersForUDFs insert into ParametersForUDFs (fromDate, toDate) values ('1996-07-04', '1996-07-12') - create UDF ============ CREATE FUNCTION TotalFreightStats1 ( ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between (select top 1 fromDate from ParametersForUDFs) and (select top 1 toDate from ParametersForUDFs) Group by ShipName RETURN END - use UDF in view ================== CREATE VIEW dbo.vw_TotalFreightStats1 AS SELECT ShipperName, TotalFreight FROM dbo.TotalFreightStats1() TotalFreightStats1 ++++++++++++++++++++++++++++++++++++ - link view to MS Access mdb ++++++++++++++++++++++++++++++++++++ Of course that approach will not work well in multi-user environment if different users will need different from/to dates... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, February 21, 2007 10:11 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Well... I dunno. I have a view in SQL Server returning 8 fields, 6K records (currently), completely unfiltered, all records in the table. I pull that linked table into a query in order to do some preliminary filtering - check date between a pair of dates and check number not null. I want the view in sql server to do the "check number not null" for me, and I know how to do that. I want the SQL Server to take a pair of parameters - "From Date" and "To Date" and return only those records. If I could do this, then I could get rid of my "base query" in access which applies these filters, reduce traffic across the wire etc. However even if I do this, the view is not being requested by a form in XP (for example) where some magical thing happens in Access to pass the parameters off to SQL Server. The linked view will be used immediately in another query which joins this view to other tables (on one field - BEID - in the view) in order to build up a set of data for a report. So the "parent" query that is using the view will have to "feed" the parameters to the linked view. Being a nubee to SQL Server I do not even know if what I am attempting to do is possible. I cannot wrap my mind around how a query that is using a view can know that the view needs parameters, and if it did, what to feed it. If it is possible, I have never done so obviously, so I don't even have the basics of what to set in Access to do the parameter passing. John W. Colby Colby Consulting www.ColbyConsulting.com <<< tail skipped >>> -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwelz at hotmail.com Wed Feb 21 20:18:09 2007 From: jwelz at hotmail.com (Jurgen Welz) Date: Wed, 21 Feb 2007 19:18:09 -0700 Subject: [AccessD] MDB to SQL Server In-Reply-To: <003001c755f8$e1110d70$0200a8c0@danwaters> Message-ID: Dan: >1) SQL Server 2005 Express has a 2G storage capacity, and is free. I don't think money is an object here. Head office has SQL Server and licences. All my users run their accounting and equipment applications and my project management and costing software. They do a significant amount of double entry. I'd prefer to integrate with their systems but so far, I've been refused any rights or access. Presumably I could run a full blown SQL Server BE separate and apart from what they do. >2) You can protect your production BE data file using Windows folder >permissions in an interesting and non-intuitive way. You'll need to get a >copy of the book by Garry Robinson on Real World MS Access Security, and >read through Chapter 12. This prevents regular users from opening the >folder, but allows them to use a FE that connects to a BE in that folder. >I >use this at two customers, and it works well. This would help monitor the copying of the open BE provided that is the primary remaining cause of corruption. A very useful tip. >3) It sounds as though you have 10 years' data accumulated into one BE >file. >Is there a possibility that some of the data could be moved to an archive >BE >file? This is an option I am entertaining. >4) For speedier performance, several people have suggested creating a >connection to the BE from the FE when first opening a database. Keeping >the >connection open can improve performance because the overhead associated >with >opening and closing many connections (recordsets, queries, bound forms, >etc.) can be avoided. However, there is a registry key which defines a >time-out period for an inactive connection to Jet - the default value is 10 >minutes. I have a function like CurrentDb that maintains a static object variable connected to the BE and only refreshes when necessary. I first wrote about relinking performance when maintaining an open connection about 7 years ago at this list and have used the technique ever since. >5) Why are you getting complaints about your system which is faster? >Because everyone knows that complaining to the corporate parent is useless, >but when they ask you to do something, you respond! :-) The simple fact is that my users were spoiled with a system that was many times faster and the performance has deteriorated with the passage of time. I could display less data and split out more tabs and do a bit more Just In Time data retrieval. The system essentially retrieves only one record upon navigation of the primary forms, but sub forms may have up to a couple hundred related records. However, many of the subforms have records based on relatively large tables that can not be diminished in size and this appears to be the greatest slowdown. The truth is, there are few tables with more than 10,000 records, it's just that there are well over 150 tables and I'm pulling data from many of them for each form. Ultimately, the question is, can I go up to 70 or so users in the next five years with a database that was originally designed to support a half dozen with a much smaller data file. I can certainly play with upsizing, but I suspect that, given the relatively small size of the tables (from a SQL Server perspective), I'm not going to get a performance increase. It would probably allow me to normalize further than I have heretofore and I should get better security and robustness. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com _________________________________________________________________ http://local.live.com/default.aspx?v=2&cp=43.658648~-79.383962&style=r&lvl=15&tilt=-90&dir=0&alt=-1000&scene=3702663&cid=7ABE80D1746919B4!1329 From jwelz at hotmail.com Wed Feb 21 21:05:23 2007 From: jwelz at hotmail.com (Jurgen Welz) Date: Wed, 21 Feb 2007 20:05:23 -0700 Subject: [AccessD] MDB to SQL Server In-Reply-To: <20070221232004.2679.qmail@web88205.mail.re2.yahoo.com> Message-ID: Arthur: I appreciate the suggestions. However, all our servers are in a single office remote to every user. All are connected via some form of terminal services so the conventional advantages of replication do not really apply. Quite frankly, I've got a Dell XPS laptop with a fast core duo processor, two gigs of fast RAM, and a 7200 RPM drive and the application is not significantly faster on that laptop. It's a bit faster in Access 97, but the fact is, even with local data and a single user, my boss is going to bemoan the lack of speed because it used to run faster. Remember the bit wise querying, storing data in arrays to avoid hitting the drive and other such stuff I did. It's not enough anymore because there are so many tables from which related data must be retrieved. In the past couple years, I have ceased to store quite so much in arrays because I though we'd be hitting a RAM limiit with the number of users we have on a single and more recently, two terminal servers. As a result, the more recently added tables and types of data I've added are more normalized. I had even dropped some of my bit wise join querying used to store multiple attributes in a single byte (integer or long) and gone to joined tables. That was a performance hit. I suspect I'm going to run into even worse performance with SQL Express or the MSDE (that's what it was called in A2K wasn't it?). I could try upsizing on my personal PC, I only have A2K, and presumably get similar performance as the SQL Express. At least I could determine whether it will help or hinder performance. I would really like to normalize further than I have and as it stands, that would probably kill an MDB of the size and number of users I currently serve. As much as I'd love to have a table of phone numbers, with a table of number types, and addresses and address types, and relate them to a single table of entities of both corporate and people types, in all their permutations and combinations, this has proved to be far slower than having a seperate table of corporate and individual entities and just keeping phone numbers and addresses with them. As far as using named queries, these are rare and few. I manipulate the record and row sources with filters based on numerous variables and usually set them in code. I understand that there can be no optimization of a query execution plan with this approach, but my experience has been that throwing a variable number of something like 4, 5, 6 or 10 parameters at a query will slow it down as much. Practically all of my recordsets and rowsources are generated in code at runtime in the open event of the form. Not only the subforms, but the forms themselves are Just in Time, and the same applies to a large percentage of the lists and combos. This actually makes changes in things like field and table names quite simple because it can be done by a find and replace in the code window. Those saved queries that I do have frequently have their .SQL properties set at runtime. This allows me to in/exclude unions and join disparate tables depending on the users choices. The unions allow me to split off current from archival data, yet display both when necessary. This is a tactic I could exploit further. Another example; a user may need to see an employee report that shows contact information where he may or may not need to filter the report on joins based on a combination of training certifications involving joins with completely different tables than where the training records are not a basis for retrieval. For example, I want a list of contact info on the Saskatoon office based employees vs I want a list of Alberta regional employees who have CSTS, a current forklift certificate, Swingstage training who also fall into a trade category from yet another table. Same report but involving joins, and sometimes equal and other times unequal joins to an indeterminate variety of tables. Sometimes 1 table, sometimes 5 or 6, sometimes with parameters on some fields, at other times with parameters on other fields. I couldn't imagine doing this with saved queries. I take it I would lose much of the flexibility I've given my users by upsizing? I could normalize more without hurting performance, but the performance would likely not be better than what I'm getting? Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: artful at rogers.com > >My suggestions: > >1. If you wish to stay with an MDB back end (undoubtedly your least >expensive choice), then I suggest replication as the way to go. You can >even replicate a copy to every individual user. I did that with 70 users in >4 branch offices and it all worked nicely. Each branch had a server in >charge of local replication, and HQ's server handled both HQ replication >and also replication between the branches. This all occurred on a WAN. >Every user everywhere was guaranteed to see the changes from everyone else >within 15 minutes. A significant advantage of this approach is the dramatic >cutdown on net traffic -- everyone has all the tables locally, so the only >net traffic is the changes, not the data itself. > >2. If you want to go beyond MDB, then install a copy of SQL Express. This >would involve "translating" your app, but the result will ultimately be >better. One thing you definitely should do is identify all your row and >record sources that do not use named queries, and fix them to use named >queries. If you don't do this before upsizing, you'll end up with dozens of >objects whose names were manufactured and will be utterly meaningless to >you. > > >Arthur Fuller >Technical Writer, Data Modeler, SQL Sensei >Artful Databases Organization >www.artfulsoftware.com _________________________________________________________________ Windows Live Spaces: share your New Year pictures! http://spaces.live.com/?mkt=en-ca From jwcolby at colbyconsulting.com Wed Feb 21 22:02:50 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 21 Feb 2007 23:02:50 -0500 Subject: [AccessD] Feeding parameters to SQL Server In-Reply-To: <000f01c755fb$409ece10$6401a8c0@nant> Message-ID: <001501c75636$52ac3a30$657aa8c0@m6805> Shamil, >And you could have bound your report to this stored procedure or UDF - on open this report would have requested from/to dates in parameters input dialog. Well, when I say "report" that means something a little different here. My client feeds data to mainframes. They give me a table of specs which looks briefly like: Field name Data Type Default Value Format Field width Required Field 1 Char Some Val 9 Yes Field 2 Num Some Val2 000.00 10 No Field 3 Field 4 . . . Etc. I then have to pull the data out into queries, and somehow get them out into fixed width text files, named according to their naming spec etc. In order to do this I use (what else) classes. I import their table into a report field spec table (with a few fields of my own to make my life easier). I then built a class to hold each field spec record plus code to manipulate the data as required by their specs. Apply the correct formatting, determine if the field has to be there or not, replace nulls with default values if any, etc. The Field Spec class is responsible for all formatting of a given field and handing back a fully formatted string, regardless of whether the data is a date (YYYYMMDD? MMDDYYYY? MMYYYY?), currency (00000.00?, 00000^00 - decimal shifted out), string (width? Pad left / right? Pad char?). Each field class is responsible for error reporting should any error occur in formatting, padding etc. since the field class "knows" what the format should be, width of the final string should be etc. I build a report spec table which holds the query required to pull the data, the name / path of the destination file and some other stuff. In the end I have a system where I load a Report Spec supervisor class and that class loads the field spec classes, loads the data, processes each field of each data record through each field class, assembles the strings returned by the field classes into a big string, and then uses text streams to write the files out to disk. The Report spec class is responsible for error reporting at the record level - errors from field classes, no data, etc., with errors logged to files on the hard disk for attachment to email to the person who can fix the problem. These files can and often but not always do have header information which goes in the same file, which may or may not be the same width as the detail data, and can have trailer info (usually sums and counts) which are also appended into the same file. Thus a "report" will be at the very least a detail section, but may / may not have a header and / or footer. Processed the way I do, the header and footer becomes just another set of field specs in the Field Spec Table. The Report Spec will have one to three records in it, one for a header if any, one for the detail (they all have a detail) and one for the footer if any. Thus a method of my report spec class is called passing the PKID of the detail spec record in the Report Spec table and it takes over and loads header and footer report spec classes as necessary. Each Report spec class instance loads it's own data (has it's own query) and processes it's data according to it's set of field spec records, and writes the data to the file under the supervision of the detail Report Spec class (the "overall" supervisor for the report). I did not do it this way originally, in fact I originally hard coded everything in the queries - format, conversion of nulls, padding etc. What I discovered is that it was a MAJOR PITA to adjust a report as I had to go find the right place in the right query. Done the way I do it now, it is all "formatted" by entries in my field spec table. If I need to change the width of a field, I just look up the field in the Field Spec Table and change it. Same for format, data type, default value etc. It works really well in fact once I got the classes working. I can literally tweak a report in minutes and rerun. One might wonder why such tweaking would be necessary if it was for a mainframe import, and the answer of course is that the info I get from the mainframe people is always sketchy - leading or trailing padding, spaces or zeros for padding, and I have to submit a file for testing, then tweak, resubmit, tweak until they say it is OK. And of course, it all has to be adjusted on MY END. By building this into a table, I just change my PadDir column from (L)eading to (T)railing and it pads the other way, change the PAdChar from 0 to ' ' and it changes from a zero to a space (or anything else they can think up). I use VB format strings where possible but sometimes I just have to brute force it. So we (my client) selects filter data using combos and date text boxes, and pushes a button and a report is built and placed on disk, in a specific location, with a specific name (and a dated name for our internal tracking). I can and do sometimes attach these reports to email or FTP them if that is necessary. So these are not "reports" in the Access sense. I now have reports going to 3 different companies, unknown number of different mainframes, all using the same report generator system. They give me a field spec "table", I import (or type) that in to my report / field spec table pair, build queries to pull the data and plug that query name into the report spec table and push the button. Tweak the query, then the field spec records, send, tweak, send. After that it just runs. In fact one issue that this whole class system handles very nicely is "missing data" since it can just run the reports without writing the files to disk, then see if any error reports are generated and if so email them to the examiners. They can go correct the data errors. We can rerun until it is right, then send. All in all a royal PITA but that is after all why they pay us the big bucks, right? And then came the client that wanted it in an Excel spreadsheet. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, February 21, 2007 4:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Hello John, Let's suppose you use NorthWind sample database and you have to calculate total Freight for a Shipper given from/to dates. I assume you do not use ADPs - if you have used them then you could have created - a stored procedure: ===================== CREATE PROCEDURE usp_TotalFreightStats (@fromDate datetime, @toDate datetime ) AS BEGIN select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName END - or a UDF =========== CREATE FUNCTION TotalFreightStats (@fromDate datetime, @toDate datetime ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN declare @fromDate1 dateTime declare @toDate1 dateTime INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName RETURN END And you could have bound your report to this stored procedure or UDF - on open this report would have requested from/to dates in parameters input dialog. I assume you use mdb and then you can: - create table to keep parameters ================================== CREATE TABLE [dbo].[ParametersForUDFs] ( [fromDate] [datetime] NULL , [toDate] [datetime] NULL ) ON [PRIMARY] GO - populate this table with parameters' values (clear in first) ============================================================= delete from ParametersForUDFs insert into ParametersForUDFs (fromDate, toDate) values ('1996-07-04', '1996-07-12') - create UDF ============ CREATE FUNCTION TotalFreightStats1 ( ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between (select top 1 fromDate from ParametersForUDFs) and (select top 1 toDate from ParametersForUDFs) Group by ShipName RETURN END - use UDF in view ================== CREATE VIEW dbo.vw_TotalFreightStats1 AS SELECT ShipperName, TotalFreight FROM dbo.TotalFreightStats1() TotalFreightStats1 ++++++++++++++++++++++++++++++++++++ - link view to MS Access mdb ++++++++++++++++++++++++++++++++++++ Of course that approach will not work well in multi-user environment if different users will need different from/to dates... -- Shamil From wdhindman at dejpolsystems.com Wed Feb 21 22:02:06 2007 From: wdhindman at dejpolsystems.com (William Hindman) Date: Wed, 21 Feb 2007 23:02:06 -0500 Subject: [AccessD] MDB to SQL Server References: Message-ID: <001e01c75636$386d0500$9258eb44@50NM721> Jurgen "As much as I'd love to have a table of phone numbers, with a table of number types, and addresses and address types, and relate them to a single table of entities of both corporate and people types, in all their permutations and combinations, this has proved to be far slower than having a separate table of corporate and individual entities and just keeping phone numbers and addresses with them." ...this is the template I moved to more than two years ago ...what I've found is that the address info and contact means are not required for most processes and fully normalizing them with fk to a super entity ID allows me to call them only when required rather than every time a contact or company record is called ...I display them only in JIT subforms when needed ...and that makes the critical data records much shorter and thus quicker to process ...while some processes take more time to accomplish, the overall application performance is at least as good as the prior approach ...the overall size of the first database I did this with dropped considerably because of the "full" data normalization ...ie, instead of having Loxahatchee, Fl, USA, 33470, lat, long repeated in numerous company and contact records it now exists only once in the db. ...one of the drivers behind adopting this approach was the ease it provides in deterring user data entry errors and thus the money it saves in marketing campaigns ...the returned mail has dropped drastically. ...I don't pretend to have your expertise in Access but based upon my own experience with that data model, I can't say that my results match what you posited as a far slower performance. William Hindman ----- Original Message ----- From: "Jurgen Welz" To: Sent: Wednesday, February 21, 2007 10:05 PM Subject: Re: [AccessD] MDB to SQL Server Arthur: I appreciate the suggestions. However, all our servers are in a single office remote to every user. All are connected via some form of terminal services so the conventional advantages of replication do not really apply. Quite frankly, I've got a Dell XPS laptop with a fast core duo processor, two gigs of fast RAM, and a 7200 RPM drive and the application is not significantly faster on that laptop. It's a bit faster in Access 97, but the fact is, even with local data and a single user, my boss is going to bemoan the lack of speed because it used to run faster. Remember the bit wise querying, storing data in arrays to avoid hitting the drive and other such stuff I did. It's not enough anymore because there are so many tables from which related data must be retrieved. In the past couple years, I have ceased to store quite so much in arrays because I though we'd be hitting a RAM limiit with the number of users we have on a single and more recently, two terminal servers. As a result, the more recently added tables and types of data I've added are more normalized. I had even dropped some of my bit wise join querying used to store multiple attributes in a single byte (integer or long) and gone to joined tables. That was a performance hit. I suspect I'm going to run into even worse performance with SQL Express or the MSDE (that's what it was called in A2K wasn't it?). I could try upsizing on my personal PC, I only have A2K, and presumably get similar performance as the SQL Express. At least I could determine whether it will help or hinder performance. I would really like to normalize further than I have and as it stands, that would probably kill an MDB of the size and number of users I currently serve. As much as I'd love to have a table of phone numbers, with a table of number types, and addresses and address types, and relate them to a single table of entities of both corporate and people types, in all their permutations and combinations, this has proved to be far slower than having a seperate table of corporate and individual entities and just keeping phone numbers and addresses with them. As far as using named queries, these are rare and few. I manipulate the record and row sources with filters based on numerous variables and usually set them in code. I understand that there can be no optimization of a query execution plan with this approach, but my experience has been that throwing a variable number of something like 4, 5, 6 or 10 parameters at a query will slow it down as much. Practically all of my recordsets and rowsources are generated in code at runtime in the open event of the form. Not only the subforms, but the forms themselves are Just in Time, and the same applies to a large percentage of the lists and combos. This actually makes changes in things like field and table names quite simple because it can be done by a find and replace in the code window. Those saved queries that I do have frequently have their .SQL properties set at runtime. This allows me to in/exclude unions and join disparate tables depending on the users choices. The unions allow me to split off current from archival data, yet display both when necessary. This is a tactic I could exploit further. Another example; a user may need to see an employee report that shows contact information where he may or may not need to filter the report on joins based on a combination of training certifications involving joins with completely different tables than where the training records are not a basis for retrieval. For example, I want a list of contact info on the Saskatoon office based employees vs I want a list of Alberta regional employees who have CSTS, a current forklift certificate, Swingstage training who also fall into a trade category from yet another table. Same report but involving joins, and sometimes equal and other times unequal joins to an indeterminate variety of tables. Sometimes 1 table, sometimes 5 or 6, sometimes with parameters on some fields, at other times with parameters on other fields. I couldn't imagine doing this with saved queries. I take it I would lose much of the flexibility I've given my users by upsizing? I could normalize more without hurting performance, but the performance would likely not be better than what I'm getting? Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: artful at rogers.com > >My suggestions: > >1. If you wish to stay with an MDB back end (undoubtedly your least >expensive choice), then I suggest replication as the way to go. You can >even replicate a copy to every individual user. I did that with 70 users in >4 branch offices and it all worked nicely. Each branch had a server in >charge of local replication, and HQ's server handled both HQ replication >and also replication between the branches. This all occurred on a WAN. >Every user everywhere was guaranteed to see the changes from everyone else >within 15 minutes. A significant advantage of this approach is the dramatic >cutdown on net traffic -- everyone has all the tables locally, so the only >net traffic is the changes, not the data itself. > >2. If you want to go beyond MDB, then install a copy of SQL Express. This >would involve "translating" your app, but the result will ultimately be >better. One thing you definitely should do is identify all your row and >record sources that do not use named queries, and fix them to use named >queries. If you don't do this before upsizing, you'll end up with dozens of >objects whose names were manufactured and will be utterly meaningless to >you. > > >Arthur Fuller >Technical Writer, Data Modeler, SQL Sensei >Artful Databases Organization >www.artfulsoftware.com _________________________________________________________________ Windows Live Spaces: share your New Year pictures! http://spaces.live.com/?mkt=en-ca -------------------------------------------------------------------------------- > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Wed Feb 21 22:05:08 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 21 Feb 2007 23:05:08 -0500 Subject: [AccessD] MDB to SQL Server In-Reply-To: <9972.65.196.182.34.1172094985.squirrel@65.196.182.34> Message-ID: <001601c75636$a4bb4eb0$657aa8c0@m6805> And given the average Access database, this is hardly a limit. I have what I consider a "large" database, where after 4 years of operation, it is up to about 600 mb of data. If it were in SQL Server (it is not), at least when it hit that limit the client could pay up to get the full version. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Moss Sent: Wednesday, February 21, 2007 4:56 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] MDB to SQL Server Actually SQL Server 2005 Express has a 4G capacity per database, and I guess an unlimited number of databases per. Th 4 gig doesn't include the log file, just the .mdf. > Jurgen, > > A few thoughts: > > 1) SQL Server 2005 Express has a 2G storage capacity, and is free. > > 2) You can protect your production BE data file using Windows folder > permissions in an interesting and non-intuitive way. You'll need to > get a copy of the book by Garry Robinson on Real World MS Access > Security, and read through Chapter 12. This prevents regular users > from opening the folder, but allows them to use a FE that connects to a BE in that folder. > I > use this at two customers, and it works well. > > 3) It sounds as though you have 10 years' data accumulated into one BE > file. > Is there a possibility that some of the data could be moved to an > archive BE file? > > 4) For speedier performance, several people have suggested creating a > connection to the BE from the FE when first opening a database. > Keeping the connection open can improve performance because the > overhead associated with opening and closing many connections > (recordsets, queries, bound forms, > etc.) can be avoided. However, there is a registry key which defines > a time-out period for an inactive connection to Jet - the default > value is 10 minutes. > > 5) Why are you getting complaints about your system which is faster? > Because everyone knows that complaining to the corporate parent is > useless, but when they ask you to do something, you respond! :-) > > HTH! > Dan Waters > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jurgen Welz > Sent: Wednesday, February 21, 2007 2:20 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] MDB to SQL Server > > People: Given that the organization I work for has decided that the > database I built for them over the years will be going from a maximum > of > 41 > to about 50 users in the course of this year and the complexity and > size of our database has been growing at an ever accellerating rate > and we have been > > suffering from the occasional corruption, the question of what we can > do has > > been asked of me. We are running individual DAO FE files via a pair > (soon to be four) of servers against a file server MDB on a gigabit LAN. > > Corruptions started happening a couple years back when users copied > the backend MDB file to their local laptops. When we were on a local > network, this never caused any grief but when we switched to a > terminal server environment, the copy duration went to several minutes > and, unhappily, the original server data flie frequently became > corrupted. If any users logged on after the corruption, they were > given an error about a damaged database while existing logins > proceeded without issue. The only resolution was to bump everyone > off, repair the BE file and then allow everyone back on again. > > Typically, one record in a single table would be found to be at > fault with > > a ton of invalid junk in the fields. That record would typically have > to be > > deleted. Curiously, it often contained out of range numbers even > after repair. > > We put a stop to copying open MDB files to remote laptops (you could > still make a copy on the server and then copy that copy without issue). > Notwithstanding that, we occasionally get a corrupt MDB BE file > showing a similar kind of damage. Of course I have no way of knowing > whether anyone tried to copy the file or whether it was just the fact > that user or MDB limits had been exceeded. Corruption may happen once every 4 to 8 months. > > When I started all this in about '96, my boss was told that our parent > company would look at our data needs in 5 to 7 years. My boss was > told today that it would be another 4 years at least. I suspect that > target will > > be signifcantly exceeded. We could be up to 100 users by that time, > with a 200 Megabyte BE file. > > The whole discussion about DAO/ADO caught my attention as I haven't > been doing much with our system in the past 4 years other than some > refinements and enhancements. Access development has become more of a > sideline. I wrote the basics at a time when DAO was my only option > and wasn't give the resources to convert to ADO. SQL Server has never > been an option, even though the parent company, which grosses over a > billion in annual revenue, relies on it for their systems. If I can > provide sufficient justification, I may get the go ahead to upsize. > > The question I am posed is, what is the next step for the system I built. > My boss is complaining about performance of some of our forms, but the > fact is, our forms display considerably more information on a screen > than any of the parent company forms and they still open and populate > a great deal faster than our parent company forms. When I pull a > safety stats report on screen from the parent company on a single > manager on perhaps 20 projects, it may take 20 to 30 seconds to load, > yet my slowest project form will load within 10 seconds. My load time > is a bit slow because of a number of lists and combos that retrieve a > large number of records or retrieve from tables that I can reduce in > size by archiving datas, but it shows a great deal more > > information from a broader variety of sources. > > I know I can gain sginficant performance by denormalizing. I've > always split my addresses into tables for country, province/state, > city and address. By storing all the data in a single field rather > than in separate tables, the joins process significantly faster. > > I have used Callback functions for many lists and combos to aviod > hitting a BE repeatedly, but, for continuous forms using combos > filling from a table with a large number of records, the forms > poplulate quite slowly, much more slowly than when the combo is filled > with an SQL rowsource. I could make Just In Time combos and use > arrays of controls (as I have done in various > situations) but I think my best option is to cut down the size of the > data file, giving users the option to see current data only, and > current data unioned with archived data and let them wait the small > percentage of the time when that is necessary. > > Given that we are moving from 2 servers to 4 over the next few weeks, > it seems that people are starting to realize that our division has > increasingly > > significant needs and be more amenable to suggestions. I welcome any > input from the list. > > Ciao > J|rgen Welz > Edmonton, Alberta > jwelz at hotmail.com > > _________________________________________________________________ > Find out the restaurants participating in Winterlicious > http://local.live.com/default.aspx?v=2&cp=43.658648~-79.383962&style=r > &lvl=1 > 5&tilt=-90&dir=0&alt=-1000&scene=3702663&cid=7ABE80D1746919B4!1329 >>From January 26 to February 8, 2007 > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Feb 22 02:47:36 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 22 Feb 2007 09:47:36 +0100 Subject: [AccessD] MySQL Falcon, new transactional engine Message-ID: Hi all Here's more on this. Still in alpha though: Understanding the Falcon Transaction Storage Engine * Part 1 http://dev.mysql.com/tech-resources/articles/falcon-transactional-engine-part1.html /gustav >>> Gustav at cactus.dk 31-01-2007 11:15:12 >>> Hi all This may be useful for some - sounds very interesting: Falcon is MySQL's new cutting-edge transactional engine that is designed to support high-volume user traffic in tandem with very fast and secure transaction management. Falcon supplies data management professionals with all the right features needed to support critical transaction-based systems that manage key needs in their business. Download the White Paper: http://www.mysql.com/why-mysql/white-papers/falcon-getting-started.php It's free, but you need to register. Has anyone tested this? /gustav From Gustav at cactus.dk Thu Feb 22 04:59:48 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 22 Feb 2007 11:59:48 +0100 Subject: [AccessD] MDB to SQL Server Message-ID: Hi J?rgen Maybe that is part of your problem. I often use one a main query joined with different subqueries, each saved as a new query that the report pulls data from - which query to be used is set by the code than runs the report. However, often this can be boiled down to 1) define the selection of ID to pull, 2) pull the "real" data for that selection of IDs. A lot of time can be saved if the selection if IDs is written to a temp table which then is inner joined to select and extract the real data. I remember on example on reporting taxes to the authorities on liquors delivered, based on both percentage of alcohol and the type of liquors as well as rates varying over time. A nice setup of queries fixed it perfectly but it took "ages" to run. By using one temp table I cut minutes to seconds. I know many refrain from temp tables because they are scared of bloating the mdb (avoid that by using a separate local temp database you recreate each time the user launches the app) but most (all?) SQL server engines feature automatic maintenance of temp tables. /gustav >>> jwelz at hotmail.com 22-02-2007 04:05:23 >>> .. Same report but involving joins, and sometimes equal and other times unequal joins to an indeterminate variety of tables. Sometimes 1 table, sometimes 5 or 6, sometimes with parameters on some fields, at other times with parameters on other fields. I couldn't imagine doing this with saved queries. From paul.hartland at fsmail.net Thu Feb 22 06:06:40 2007 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 22 Feb 2007 13:06:40 +0100 (CET) Subject: [AccessD] Advancing in SQL Server Message-ID: <12660593.1538681172146000895.JavaMail.www@wwinf3004.me-wanadoo.net> To all, I know how to write basic stored procedures etc, but I want to know if the following is possible. I have the code below in Visual Basic: Dim rsOnJob As ADODB.Recordset Dim rsNew As ADODB.Recordset Dim rsDupe As ADODB.Recordset Set rsOnJob = New ADODB.Recordset rsOnJob.CursorLocation = adUseClient rsOnJob.Open ("SELECT PayrollNo FROM tblAvailabilityAll WHERE JobNo = '" & PublicJobNumber & "'"), DESQLGenesis.SQLConn, adOpenDynamic, adLockReadOnly If (rsOnJob.RecordCount > 0) Then With rsOnJob .MoveFirst Do Until (.EOF) Set rsNew = DESQLGenesis.SQLConn.Execute("genesis_select_NewStarterNotification '" & .Fields("PayrollNo") & "'") If (rsNew.RecordCount > 0) Then Set rsDupe = DESQLGenesis.SQLConn.Execute("genesis_select_DupeInNewStarter '" & rsNew.Fields("PayrollNo") & "'") If (rsDupe.RecordCount < 1) Then DESQLGenesis.SQLConn.Execute ("genesis_insert_NewStarters '" & rsNew.Fields("PayrollNo") & "', '" & rsNew.Fields("Fullname") & "', '" & Format(rsNew.Fields("StartDate"), "MM/DD/YY") & "', '" & rsNew.Fields("JN") & "', '" & Format(rsNew.Fields("JD"), "MM/DD/YY") & "'") End If rsDupe.Close Set rsDupe = Nothing End If rsNew.Close Set rsNew = Nothing .MoveNext Loop End With End If rsOnJob.Close Set rsOnJob = Nothing Does anyone know if it is possible to put this into either a stored procedure or a user defined function enabling me to just make a call to the one stored procedure of function ? Thanks in advance for any help on this. Paul Hartland paul.hartland at fsmail.net 07730 523179 From JHewson at karta.com Thu Feb 22 08:05:36 2007 From: JHewson at karta.com (Jim Hewson) Date: Thu, 22 Feb 2007 08:05:36 -0600 Subject: [AccessD] Update form after click event of Treeview Message-ID: <9C382E065F54AE48BC3AA7925DCBB01C04F20B3F@karta-exc-int.Karta.com> I created a relatively simple database used by our recruiter in HR. On the main form I have two treeviews; one listing supervisors with their requisition requests and the other by position title with associated requests. On the form is also a list box used to find requisition numbers On the form there are multiple check boxes and radial buttons. To make the form easier to read, the labels of each check box and radial button are bolded when checked. I created a function that bolds the labels when the requisition changes. The list box works as expected - once a requisition number is clicked the form finds the requisition and the appropriate labels are changed. The problem is that when either treeview is clicked the appropriate requisition is found, but the labels are not changed unless the treeview is clicked twice. I placed the label function in the node click event, right after updating the requisition list box. How can I get the form to update after a requisition number is clicked in either treeview? Any suggestions on what I need to check? Jim From rusty.hammond at cpiqpc.com Thu Feb 22 08:54:19 2007 From: rusty.hammond at cpiqpc.com (rusty.hammond at cpiqpc.com) Date: Thu, 22 Feb 2007 08:54:19 -0600 Subject: [AccessD] Feeding parameters to SQL Server Message-ID: <8301C8A868251E4C8ECD3D4FFEA40F8A2584B980@cpixchng-1.cpiqpc.net> Shamil, Your earlier example of using a parameter table is interesting but you mention it doesn't work well in a multi-user environment, how would you get around the multi-user issue? Jim/Eric, I dynamically update the pass-through query as the link Eric gave suggests but I haven't run into any stability issues using this method (that I'm aware of). Have you seen any specific issues that you can point me to that I need to look out for? I'm using this in an app for our company that gathers data from other databases to produce invoices to our clients. This app is used by most of our more than 400 in-house users. Granted they won't all be running the reports that use the pass-through. Thanks, Rusty -----Original Message----- From: Shamil Salakhetdinov [mailto:shamil at users.mns.ru] Sent: Wednesday, February 21, 2007 5:41 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server No problem, Eric, I anyway planned to write a short note here on ADODB and parameterized stored procedures... BTW, for parameterized UDFs ADODB can be also used but the issue with access permissions usually forces to use stored procedures - I mean UDF can't be used with a table if a user does not have access permissions for this table. As for stored procedure - it can be used with a table even if a user does not have access permission to this table - user should only have a permission to execute this stored procedure. Here is an example with parameterized UDF and ADODB - parameters's values in this sample are hardcoded in select expression: Dim cnn As ADODB.Connection Dim strCnn As String Dim cmd As ADODB.Command Dim prm As ADODB.Parameter Dim rst As ADODB.Recordset strCnn = "Provider=sqloledb;Data Source=(local);Initial Catalog=Northwind;Integrated Security=SSPI;" Set cnn = New ADODB.Connection cnn.Open strCnn cnn.CursorLocation = adUseClient Set cmd = New ADODB.Command cmd.CommandType = adCmdText cmd.CommandText = "select * from TotalFreightStats( _ '1996-07-02', '1996-07-12')" cmd.ActiveConnection = cnn.ConnectionString Set rst = cmd.Execute While Not rst.EOF Debug.Print rst(0).Value & " - " & rst(1).Value rst.MoveNext Wend cnn.Close -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Thursday, February 22, 2007 1:51 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Uh..hmmm...Jim and Shamil...I was replying to Colby's question on passing parameters to SQL which was the original thread. Someone suggested pass-thru queries somewhere in the thread. I just happened to reply to the last message in the thread that came from Shamil. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, February 21, 2007 2:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Eric My recommendation is do not use pass-through queries. They are more problem than they are worth as they seem to be an easy quick fix to start with but end up being slow, awkward and unstable. I believe this set of processes was designed to punish newbie developers scaring them off weaning from a MDB BE. MS should have simply remove that whole gambit of functions from Access and never bring them up again in polite company. Now if you want my unvarnished opinion on the subject don't be afraid to ask. :-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Wednesday, February 21, 2007 1:47 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Unfortunately dynamic parameters and sql pass-thru queries don't play well in Access. http://www.utteraccess.com/forums/showflat.php?Board=82&Number=1361479 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, February 21, 2007 1:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Hello John, Let's suppose you use NorthWind sample database and you have to calculate total Freight for a Shipper given from/to dates. I assume you do not use ADPs - if you have used them then you could have created - a stored procedure: ===================== CREATE PROCEDURE usp_TotalFreightStats (@fromDate datetime, @toDate datetime ) AS BEGIN select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName END - or a UDF =========== CREATE FUNCTION TotalFreightStats (@fromDate datetime, @toDate datetime ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN declare @fromDate1 dateTime declare @toDate1 dateTime INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName RETURN END And you could have bound your report to this stored procedure or UDF - on open this report would have requested from/to dates in parameters input dialog. I assume you use mdb and then you can: - create table to keep parameters ================================== CREATE TABLE [dbo].[ParametersForUDFs] ( [fromDate] [datetime] NULL , [toDate] [datetime] NULL ) ON [PRIMARY] GO - populate this table with parameters' values (clear in first) ============================================================= delete from ParametersForUDFs insert into ParametersForUDFs (fromDate, toDate) values ('1996-07-04', '1996-07-12') - create UDF ============ CREATE FUNCTION TotalFreightStats1 ( ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between (select top 1 fromDate from ParametersForUDFs) and (select top 1 toDate from ParametersForUDFs) Group by ShipName RETURN END - use UDF in view ================== CREATE VIEW dbo.vw_TotalFreightStats1 AS SELECT ShipperName, TotalFreight FROM dbo.TotalFreightStats1() TotalFreightStats1 ++++++++++++++++++++++++++++++++++++ - link view to MS Access mdb ++++++++++++++++++++++++++++++++++++ Of course that approach will not work well in multi-user environment if different users will need different from/to dates... -- Shamil ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** From Gustav at cactus.dk Thu Feb 22 09:06:03 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 22 Feb 2007 16:06:03 +0100 Subject: [AccessD] Feeding parameters to SQL Server Message-ID: Hi Rusty You could add a field for a user-id, session-id, timer value or just a random GUID which is set automatically by the app to identify the user or call, and then filter on that. /gustav >>> rusty.hammond at cpiqpc.com 22-02-2007 15:54:19 >>> Shamil, Your earlier example of using a parameter table is interesting but you mention it doesn't work well in a multi-user environment, how would you get around the multi-user issue? Jim/Eric, I dynamically update the pass-through query as the link Eric gave suggests but I haven't run into any stability issues using this method (that I'm aware of). Have you seen any specific issues that you can point me to that I need to look out for? I'm using this in an app for our company that gathers data from other databases to produce invoices to our clients. This app is used by most of our more than 400 in-house users. Granted they won't all be running the reports that use the pass-through. Thanks, Rusty From ebarro at verizon.net Thu Feb 22 09:16:39 2007 From: ebarro at verizon.net (Eric Barro) Date: Thu, 22 Feb 2007 07:16:39 -0800 Subject: [AccessD] Feeding parameters to SQL Server In-Reply-To: <8301C8A868251E4C8ECD3D4FFEA40F8A2584B980@cpixchng-1.cpiqpc.net> Message-ID: <0JDV00B7ZEFSNJS6@vms044.mailsrvcs.net> Here's another approach to feeding parameters to SQL server. http://www.databasejournal.com/features/msaccess/article.php/3567511 This approach involves consuming a web service to return the dataset. This solution eliminates the need to link to the SQL data source which eliminates that overhead. All the work is done on the SQL server side and the all client app needs to do is to "consume" the web service. Web services can return values or datasets. This will also work in an internal network scenario albeit with the need for an internal web server to run the web service. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rusty.hammond at cpiqpc.com Sent: Thursday, February 22, 2007 6:54 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Feeding parameters to SQL Server Shamil, Your earlier example of using a parameter table is interesting but you mention it doesn't work well in a multi-user environment, how would you get around the multi-user issue? Jim/Eric, I dynamically update the pass-through query as the link Eric gave suggests but I haven't run into any stability issues using this method (that I'm aware of). Have you seen any specific issues that you can point me to that I need to look out for? I'm using this in an app for our company that gathers data from other databases to produce invoices to our clients. This app is used by most of our more than 400 in-house users. Granted they won't all be running the reports that use the pass-through. Thanks, Rusty -----Original Message----- From: Shamil Salakhetdinov [mailto:shamil at users.mns.ru] Sent: Wednesday, February 21, 2007 5:41 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server No problem, Eric, I anyway planned to write a short note here on ADODB and parameterized stored procedures... BTW, for parameterized UDFs ADODB can be also used but the issue with access permissions usually forces to use stored procedures - I mean UDF can't be used with a table if a user does not have access permissions for this table. As for stored procedure - it can be used with a table even if a user does not have access permission to this table - user should only have a permission to execute this stored procedure. Here is an example with parameterized UDF and ADODB - parameters's values in this sample are hardcoded in select expression: Dim cnn As ADODB.Connection Dim strCnn As String Dim cmd As ADODB.Command Dim prm As ADODB.Parameter Dim rst As ADODB.Recordset strCnn = "Provider=sqloledb;Data Source=(local);Initial Catalog=Northwind;Integrated Security=SSPI;" Set cnn = New ADODB.Connection cnn.Open strCnn cnn.CursorLocation = adUseClient Set cmd = New ADODB.Command cmd.CommandType = adCmdText cmd.CommandText = "select * from TotalFreightStats( _ '1996-07-02', '1996-07-12')" cmd.ActiveConnection = cnn.ConnectionString Set rst = cmd.Execute While Not rst.EOF Debug.Print rst(0).Value & " - " & rst(1).Value rst.MoveNext Wend cnn.Close -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Thursday, February 22, 2007 1:51 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Uh..hmmm...Jim and Shamil...I was replying to Colby's question on passing parameters to SQL which was the original thread. Someone suggested pass-thru queries somewhere in the thread. I just happened to reply to the last message in the thread that came from Shamil. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, February 21, 2007 2:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Eric My recommendation is do not use pass-through queries. They are more problem than they are worth as they seem to be an easy quick fix to start with but end up being slow, awkward and unstable. I believe this set of processes was designed to punish newbie developers scaring them off weaning from a MDB BE. MS should have simply remove that whole gambit of functions from Access and never bring them up again in polite company. Now if you want my unvarnished opinion on the subject don't be afraid to ask. :-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Wednesday, February 21, 2007 1:47 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Unfortunately dynamic parameters and sql pass-thru queries don't play well in Access. http://www.utteraccess.com/forums/showflat.php?Board=82&Number=1361479 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, February 21, 2007 1:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Hello John, Let's suppose you use NorthWind sample database and you have to calculate total Freight for a Shipper given from/to dates. I assume you do not use ADPs - if you have used them then you could have created - a stored procedure: ===================== CREATE PROCEDURE usp_TotalFreightStats (@fromDate datetime, @toDate datetime ) AS BEGIN select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName END - or a UDF =========== CREATE FUNCTION TotalFreightStats (@fromDate datetime, @toDate datetime ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN declare @fromDate1 dateTime declare @toDate1 dateTime INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName RETURN END And you could have bound your report to this stored procedure or UDF - on open this report would have requested from/to dates in parameters input dialog. I assume you use mdb and then you can: - create table to keep parameters ================================== CREATE TABLE [dbo].[ParametersForUDFs] ( [fromDate] [datetime] NULL , [toDate] [datetime] NULL ) ON [PRIMARY] GO - populate this table with parameters' values (clear in first) ============================================================= delete from ParametersForUDFs insert into ParametersForUDFs (fromDate, toDate) values ('1996-07-04', '1996-07-12') - create UDF ============ CREATE FUNCTION TotalFreightStats1 ( ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between (select top 1 fromDate from ParametersForUDFs) and (select top 1 toDate from ParametersForUDFs) Group by ShipName RETURN END - use UDF in view ================== CREATE VIEW dbo.vw_TotalFreightStats1 AS SELECT ShipperName, TotalFreight FROM dbo.TotalFreightStats1() TotalFreightStats1 ++++++++++++++++++++++++++++++++++++ - link view to MS Access mdb ++++++++++++++++++++++++++++++++++++ Of course that approach will not work well in multi-user environment if different users will need different from/to dates... -- Shamil ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/697 - Release Date: 2/22/2007 11:55 AM From DElam at jenkens.com Thu Feb 22 09:24:54 2007 From: DElam at jenkens.com (Elam, Debbie) Date: Thu, 22 Feb 2007 09:24:54 -0600 Subject: [AccessD] Feeding parameters to SQL Server Message-ID: <7B1961ED924D1A459E378C9B1BB22B4C068DECCF@natexch.jenkens.com> I have had good luck using pass through queries and parameters by using a bit of code I got off of Microsoft's site to dynamically create pass through queries. Instead of writing parameters into the query itself, I create the query with the parameters I want. Saves a lot of headache and pushes more processing off on the server. http://support.microsoft.com/kb/112108 Debbie -----Original Message----- From: Jim Lawrence [mailto:accessd at shaw.ca] Sent: Wednesday, February 21, 2007 4:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Eric My recommendation is do not use pass-through queries. They are more problem than they are worth as they seem to be an easy quick fix to start with but end up being slow, awkward and unstable. I believe this set of processes was designed to punish newbie developers scaring them off weaning from a MDB BE. MS should have simply remove that whole gambit of functions from Access and never bring them up again in polite company. Now if you want my unvarnished opinion on the subject don't be afraid to ask. :-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Wednesday, February 21, 2007 1:47 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Unfortunately dynamic parameters and sql pass-thru queries don't play well in Access. http://www.utteraccess.com/forums/showflat.php?Board=82&Number=1361479 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, February 21, 2007 1:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Hello John, Let's suppose you use NorthWind sample database and you have to calculate total Freight for a Shipper given from/to dates. I assume you do not use ADPs - if you have used them then you could have created - a stored procedure: ===================== CREATE PROCEDURE usp_TotalFreightStats (@fromDate datetime, @toDate datetime ) AS BEGIN select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName END - or a UDF =========== CREATE FUNCTION TotalFreightStats (@fromDate datetime, @toDate datetime ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN declare @fromDate1 dateTime declare @toDate1 dateTime INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName RETURN END And you could have bound your report to this stored procedure or UDF - on open this report would have requested from/to dates in parameters input dialog. I assume you use mdb and then you can: - create table to keep parameters ================================== CREATE TABLE [dbo].[ParametersForUDFs] ( [fromDate] [datetime] NULL , [toDate] [datetime] NULL ) ON [PRIMARY] GO - populate this table with parameters' values (clear in first) ============================================================= delete from ParametersForUDFs insert into ParametersForUDFs (fromDate, toDate) values ('1996-07-04', '1996-07-12') - create UDF ============ CREATE FUNCTION TotalFreightStats1 ( ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between (select top 1 fromDate from ParametersForUDFs) and (select top 1 toDate from ParametersForUDFs) Group by ShipName RETURN END - use UDF in view ================== CREATE VIEW dbo.vw_TotalFreightStats1 AS SELECT ShipperName, TotalFreight FROM dbo.TotalFreightStats1() TotalFreightStats1 ++++++++++++++++++++++++++++++++++++ - link view to MS Access mdb ++++++++++++++++++++++++++++++++++++ Of course that approach will not work well in multi-user environment if different users will need different from/to dates... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, February 21, 2007 10:11 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Well... I dunno. I have a view in SQL Server returning 8 fields, 6K records (currently), completely unfiltered, all records in the table. I pull that linked table into a query in order to do some preliminary filtering - check date between a pair of dates and check number not null. I want the view in sql server to do the "check number not null" for me, and I know how to do that. I want the SQL Server to take a pair of parameters - "From Date" and "To Date" and return only those records. If I could do this, then I could get rid of my "base query" in access which applies these filters, reduce traffic across the wire etc. However even if I do this, the view is not being requested by a form in XP (for example) where some magical thing happens in Access to pass the parameters off to SQL Server. The linked view will be used immediately in another query which joins this view to other tables (on one field - BEID - in the view) in order to build up a set of data for a report. So the "parent" query that is using the view will have to "feed" the parameters to the linked view. Being a nubee to SQL Server I do not even know if what I am attempting to do is possible. I cannot wrap my mind around how a query that is using a view can know that the view needs parameters, and if it did, what to feed it. If it is possible, I have never done so obviously, so I don't even have the basics of what to set in Access to do the parameter passing. John W. Colby Colby Consulting www.ColbyConsulting.com <<< tail skipped >>> -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/694 - Release Date: 2/20/2007 1:44 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 jim.moss at jlmoss.net Thu Feb 22 10:02:01 2007 From: jim.moss at jlmoss.net (Jim Moss) Date: Thu, 22 Feb 2007 10:02:01 -0600 (CST) Subject: [AccessD] Feeding parameters to SQL Server In-Reply-To: <7B1961ED924D1A459E378C9B1BB22B4C068DECCF@natexch.jenkens.com> References: <7B1961ED924D1A459E378C9B1BB22B4C068DECCF@natexch.jenkens.com> Message-ID: <25358.65.196.182.34.1172160121.squirrel@65.196.182.34> I too have had good luck using pass thrus that aren't slow and haven't exhibited any instability issues. Databases were converted from Access Jet to SQL 2005 about 10 months ago, have grown from around 500 and 600 mb to a little over 2 gb with appx 80 - 90 users. My pass thrus are built in vba from an idea I got from AccessMonster.com Jim > I have had good luck using pass through queries and parameters by using a > bit of code I got off of Microsoft's site to dynamically create pass > through > queries. Instead of writing parameters into the query itself, I create > the > query with the parameters I want. Saves a lot of headache and pushes more > processing off on the server. > http://support.microsoft.com/kb/112108 > > Debbie > > -----Original Message----- > From: Jim Lawrence [mailto:accessd at shaw.ca] > Sent: Wednesday, February 21, 2007 4:48 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Feeding parameters to SQL Server > > > Eric > > My recommendation is do not use pass-through queries. They are more > problem > than they are worth as they seem to be an easy quick fix to start with but > end up being slow, awkward and unstable. > > I believe this set of processes was designed to punish newbie developers > scaring them off weaning from a MDB BE. MS should have simply remove that > whole gambit of functions from Access and never bring them up again in > polite company. > > Now if you want my unvarnished opinion on the subject don't be afraid to > ask. :-) > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro > Sent: Wednesday, February 21, 2007 1:47 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Feeding parameters to SQL Server > > Unfortunately dynamic parameters and sql pass-thru queries don't play well > in Access. > > http://www.utteraccess.com/forums/showflat.php?Board=82&Number=1361479 > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil > Salakhetdinov > Sent: Wednesday, February 21, 2007 1:00 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Feeding parameters to SQL Server > > Hello John, > > Let's suppose you use NorthWind sample database and you have to calculate > total Freight for a Shipper given from/to dates. > > I assume you do not use ADPs - if you have used them then you could have > created > > - a stored procedure: > ===================== > > CREATE PROCEDURE usp_TotalFreightStats (@fromDate datetime, @toDate > datetime > ) > AS > BEGIN > select ShipName, Sum(Freight) as FreightTotal > from Orders > where Orders.OrderDate between @fromDate and @toDate > Group by ShipName > END > > - or a UDF > =========== > CREATE FUNCTION TotalFreightStats (@fromDate datetime, @toDate datetime ) > RETURNS @TotalFreightStatsTable TABLE > ( > ShipperName nvarchar(80), > TotalFreight money > ) > AS > BEGIN > declare @fromDate1 dateTime > declare @toDate1 dateTime > INSERT @TotalFreightStatsTable > select ShipName, Sum(Freight) as FreightTotal > from Orders > where Orders.OrderDate between @fromDate and @toDate > Group by ShipName > RETURN > END > > And you could have bound your report to this stored procedure or UDF - on > open this report would have requested from/to dates in parameters input > dialog. > > I assume you use mdb and then you can: > > - create table to keep parameters > ================================== > > CREATE TABLE [dbo].[ParametersForUDFs] ( > [fromDate] [datetime] NULL , > [toDate] [datetime] NULL > ) ON [PRIMARY] > GO > > - populate this table with parameters' values (clear in first) > ============================================================= > > delete from ParametersForUDFs > insert into ParametersForUDFs (fromDate, toDate) values ('1996-07-04', > '1996-07-12') > > - create UDF > ============ > > CREATE FUNCTION TotalFreightStats1 ( ) > RETURNS @TotalFreightStatsTable TABLE > ( > ShipperName nvarchar(80), > TotalFreight money > ) > AS > BEGIN > INSERT @TotalFreightStatsTable > select ShipName, Sum(Freight) as FreightTotal > from Orders > where Orders.OrderDate > between (select top 1 fromDate from ParametersForUDFs) > and (select top 1 toDate from ParametersForUDFs) > Group by ShipName > RETURN > END > > - use UDF in view > ================== > > CREATE VIEW dbo.vw_TotalFreightStats1 > AS > SELECT ShipperName, TotalFreight > FROM dbo.TotalFreightStats1() TotalFreightStats1 > > ++++++++++++++++++++++++++++++++++++ > - link view to MS Access mdb > ++++++++++++++++++++++++++++++++++++ > > Of course that approach will not work well in multi-user environment if > different users will need different from/to dates... > > > -- > Shamil > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby > Sent: Wednesday, February 21, 2007 10:11 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Feeding parameters to SQL Server > > Well... I dunno. > > I have a view in SQL Server returning 8 fields, 6K records (currently), > completely unfiltered, all records in the table. I pull that linked table > into a query in order to do some preliminary filtering - check date > between > a pair of dates and check number not null. > > I want the view in sql server to do the "check number not null" for me, > and > I know how to do that. > > I want the SQL Server to take a pair of parameters - "From Date" and "To > Date" and return only those records. > > If I could do this, then I could get rid of my "base query" in access > which > applies these filters, reduce traffic across the wire etc. However even > if > I do this, the view is not being requested by a form in XP (for example) > where some magical thing happens in Access to pass the parameters off to > SQL > Server. The linked view will be used immediately in another query which > joins this view to other tables (on one field - BEID - in the view) in > order > to build up a set of data for a report. > > So the "parent" query that is using the view will have to "feed" the > parameters to the linked view. Being a nubee to SQL Server I do not even > know if what I am attempting to do is possible. I cannot wrap my mind > around how a query that is using a view can know that the view needs > parameters, and if it did, what to feed it. If it is possible, I have > never > done so obviously, so I don't even have the basics of what to set in > Access > to do the parameter passing. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > <<< tail skipped >>> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.441 / Virus Database: 268.18.3/694 - Release Date: 2/20/2007 > 1:44 PM > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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. > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rockysmolin at bchacc.com Thu Feb 22 10:48:44 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Thu, 22 Feb 2007 08:48:44 -0800 Subject: [AccessD] FW: Basic Question Message-ID: <008901c756a1$50d77790$0201a8c0@HAL9005> >From a colleague. Any ideas on this? TIA Rocky _____ From: Mike Dwyer [mailto:mike at aesadvantage.net] Sent: Thursday, February 22, 2007 12:13 AM To: bheygood at abestsystems.com; Dixon; Barry Hynum; Bob_Heygood; Doug Murphy; Ed Lance; Jackie Murphy; JKA Joe K Anderson; Rocky Smolin Subject: Basic Question Ok, this is Access 101 but I must be having a mental moment. If I use a function instead of an event procedure for BeforeUpdate, can that function return a value that cancels the update? I have a form with 120 fields on it (lots of tabs). I don't want 120 event procedures for each BeforeUpdate and I don't want 120 event procedures for AfterUpdate. I would like to select all 120 fields and set the BeforeUpdate property to something like =BeforeUpdate(). This works great for AfterUpdate, however, when I set it for the BeforeUpdate property, returning a value from this function doesn't cancel the edit. Is this possible? -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/696 - Release Date: 2/21/2007 3:19 PM From Gustav at cactus.dk Thu Feb 22 11:02:34 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 22 Feb 2007 18:02:34 +0100 Subject: [AccessD] FW: Basic Question Message-ID: Hi Rocky No, that is not possible - and it was a major drawback in Access 1.x which didn't have code-behind-form modules. What you are asking for is WithEvents. Shamil and JC have posted repeatedly on this subject and I believe an article is on the dba site. /gustav >>> rockysmolin at bchacc.com 22-02-2007 17:48:44 >>> >From a colleague. Any ideas on this? TIA Rocky _____ From: Mike Dwyer [mailto:mike at aesadvantage.net] Sent: Thursday, February 22, 2007 12:13 AM To: bheygood at abestsystems.com; Dixon; Barry Hynum; Bob_Heygood; Doug Murphy; Ed Lance; Jackie Murphy; JKA Joe K Anderson; Rocky Smolin Subject: Basic Question Ok, this is Access 101 but I must be having a mental moment. If I use a function instead of an event procedure for BeforeUpdate, can that function return a value that cancels the update? I have a form with 120 fields on it (lots of tabs). I don't want 120 event procedures for each BeforeUpdate and I don't want 120 event procedures for AfterUpdate. I would like to select all 120 fields and set the BeforeUpdate property to something like =BeforeUpdate(). This works great for AfterUpdate, however, when I set it for the BeforeUpdate property, returning a value from this function doesn't cancel the edit. Is this possible? From jwcolby at colbyconsulting.com Thu Feb 22 11:08:50 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Thu, 22 Feb 2007 12:08:50 -0500 Subject: [AccessD] FW: Basic Question In-Reply-To: <008901c756a1$50d77790$0201a8c0@HAL9005> Message-ID: <000001c756a4$1fd9c820$657aa8c0@m6805> Interesting question. Since BeforeUpdate has a cancel parameter, I would attempt to pass in myfunction(Cancel as integer) to the function being called and see if the returned value in cancel does indeed cancel the update. I have never tried - see below... I have to say I find using functions in event properties to be bad practice. The reason is that unless you use a search program such as Rick Fisher's "find and replace", it is almost impossible to tell where that function is used. IOW, you do a compile of the code it all compiles. You look at the function and do a search on the function name. It isn't used anywhere (in code). You say to yourself "self, this isn't used so I can delete it". You delete it. Your user discovers this six months later when he finally happens to activate that specific object / event. Light weight forms are great in theory, and great if there really isn't any event handling that needs to be done. If there is, then I say just use code behind forms to handle the events. IMHO, these kinds of "innovations" were designed for the days of yore when we ran 100 MHz Pentiums in 64 m of ram and needed all the help we could get, both in memory footprint and application load / execution speed. With a 2 GHz proc and a gig of ram, do you really think your user will know you are using a light weight form? To be quite honest, a class to handle the control, and a form class with a control scanner to find and load the control classes sounds like the ticket. Then the event works exactly as advertised, because it is sunk exactly as it was intended. Hmm... Sounds like the beginning of a framework to me. ;-) John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Thursday, February 22, 2007 11:49 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Basic Question >From a colleague. Any ideas on this? TIA Rocky _____ From: Mike Dwyer [mailto:mike at aesadvantage.net] Sent: Thursday, February 22, 2007 12:13 AM To: bheygood at abestsystems.com; Dixon; Barry Hynum; Bob_Heygood; Doug Murphy; Ed Lance; Jackie Murphy; JKA Joe K Anderson; Rocky Smolin Subject: Basic Question Ok, this is Access 101 but I must be having a mental moment. If I use a function instead of an event procedure for BeforeUpdate, can that function return a value that cancels the update? I have a form with 120 fields on it (lots of tabs). I don't want 120 event procedures for each BeforeUpdate and I don't want 120 event procedures for AfterUpdate. I would like to select all 120 fields and set the BeforeUpdate property to something like =BeforeUpdate(). This works great for AfterUpdate, however, when I set it for the BeforeUpdate property, returning a value from this function doesn't cancel the edit. Is this possible? -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/696 - Release Date: 2/21/2007 3:19 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwelz at hotmail.com Thu Feb 22 11:17:31 2007 From: jwelz at hotmail.com (Jurgen Welz) Date: Thu, 22 Feb 2007 10:17:31 -0700 Subject: [AccessD] MDB to SQL Server In-Reply-To: <001e01c75636$386d0500$9258eb44@50NM721> Message-ID: William: I ran such a design for a law office database and what killed performance was the sheer number of records in something like a phone number table. If for example, we stored the home phone number in an employee record, pulling the phone number from a 20 employee record table was trivial. However, culling the number from a table that includes those numbers together with all the company, client and other records that included fax, pager, cell, alternate address numbers etc, well now the table has 20,000 records. Yes the phone numbers were stored in a sub form, but the usual use involved looking up an entity with the purpose of contacting them. I truly appreciated the functionality of the design. If I entered a phone number that existed, I immediately knew something about the relationship implied between the current entitiy and the entity that shared the phone number. And changing the number where someone else had the same number implied additional information, though in fact, the numbers were never changed, but just deactivated and new numbers added. Very important in proving notice and communications in a law office environment. Bottom line for me was that displaying a record took several times as long as a flatter data design. I am afraid that applying the structure in my current environment will result in a significant performance hit and this is the primary issue I've been asked to address. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: "William Hindman" > >Jurgen > >"As much as I'd love to have a table of phone numbers, with a table >of number types, and addresses and address types, and relate them to a >single table of entities of both corporate and people types, in all their >permutations and combinations, this has proved to be far slower than having >a separate table of corporate and individual entities and just keeping >phone >numbers and addresses with them." > >...this is the template I moved to more than two years ago ...what I've >found is that the address info and contact means are not required for most >processes and fully normalizing them with fk to a super entity ID allows me >to call them only when required rather than every time a contact or company >record is called ...I display them only in JIT subforms when needed ...and >that makes the critical data records much shorter and thus quicker to >process ...while some processes take more time to accomplish, the overall >application performance is at least as good as the prior approach ...the >overall size of the first database I did this with dropped considerably >because of the "full" data normalization ...ie, instead of having >Loxahatchee, Fl, USA, 33470, lat, long repeated in numerous company and >contact records it now exists only once in the db. > >...one of the drivers behind adopting this approach was the ease it >provides >in deterring user data entry errors and thus the money it saves in >marketing >campaigns ...the returned mail has dropped drastically. > >...I don't pretend to have your expertise in Access but based upon my own >experience with that data model, I can't say that my results match what you >posited as a far slower performance. > >William Hindman _________________________________________________________________ Free Alerts?: Be smart - let your information find you?! http://alerts.live.com/Alerts/Default.aspx From artful at rogers.com Thu Feb 22 11:20:02 2007 From: artful at rogers.com (artful at rogers.com) Date: Thu, 22 Feb 2007 09:20:02 -0800 (PST) Subject: [AccessD] FW: Basic Question Message-ID: <585304.77075.qm@web88207.mail.re2.yahoo.com> I've used this technique quite a bit. What I typically do is create a procedure in the typical way, so that I obtain its parameters -- Cancel as int, etc. Then I take the code from the procedure and turn it into a function. The function uses the same parameter list. Once that is done, I can call the function as your friend shows below. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Rocky Smolin at Beach Access Software To: Access Developers discussion and problem solving Sent: Thursday, February 22, 2007 11:48:44 AM Subject: [AccessD] FW: Basic Question >From a colleague. Any ideas on this? TIA Rocky _____ From: Mike Dwyer [mailto:mike at aesadvantage.net] Sent: Thursday, February 22, 2007 12:13 AM To: bheygood at abestsystems.com; Dixon; Barry Hynum; Bob_Heygood; Doug Murphy; Ed Lance; Jackie Murphy; JKA Joe K Anderson; Rocky Smolin Subject: Basic Question Ok, this is Access 101 but I must be having a mental moment. If I use a function instead of an event procedure for BeforeUpdate, can that function return a value that cancels the update? I have a form with 120 fields on it (lots of tabs). I don't want 120 event procedures for each BeforeUpdate and I don't want 120 event procedures for AfterUpdate. I would like to select all 120 fields and set the BeforeUpdate property to something like =BeforeUpdate(). This works great for AfterUpdate, however, when I set it for the BeforeUpdate property, returning a value from this function doesn't cancel the edit. Is this possible? -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/696 - Release Date: 2/21/2007 3:19 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DElam at jenkens.com Thu Feb 22 11:23:13 2007 From: DElam at jenkens.com (Elam, Debbie) Date: Thu, 22 Feb 2007 11:23:13 -0600 Subject: [AccessD] FW: Basic Question Message-ID: <7B1961ED924D1A459E378C9B1BB22B4C068DECD3@natexch.jenkens.com> Will On Dirty work for what he wants? Debbie -----Original Message----- From: Rocky Smolin at Beach Access Software [mailto:rockysmolin at bchacc.com] Sent: Thursday, February 22, 2007 10:49 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Basic Question >From a colleague. Any ideas on this? TIA Rocky _____ From: Mike Dwyer [mailto:mike at aesadvantage.net] Sent: Thursday, February 22, 2007 12:13 AM To: bheygood at abestsystems.com; Dixon; Barry Hynum; Bob_Heygood; Doug Murphy; Ed Lance; Jackie Murphy; JKA Joe K Anderson; Rocky Smolin Subject: Basic Question Ok, this is Access 101 but I must be having a mental moment. If I use a function instead of an event procedure for BeforeUpdate, can that function return a value that cancels the update? I have a form with 120 fields on it (lots of tabs). I don't want 120 event procedures for each BeforeUpdate and I don't want 120 event procedures for AfterUpdate. I would like to select all 120 fields and set the BeforeUpdate property to something like =BeforeUpdate(). This works great for AfterUpdate, however, when I set it for the BeforeUpdate property, returning a value from this function doesn't cancel the edit. Is this possible? -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/696 - Release Date: 2/21/2007 3:19 PM -- 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 mwp.reid at qub.ac.uk Thu Feb 22 11:23:25 2007 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Thu, 22 Feb 2007 17:23:25 -0000 Subject: [AccessD] MDB to SQL Server References: Message-ID: Jurgen You ever considered local caching of records on the users PC for data that may not change much? Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From rockysmolin at bchacc.com Thu Feb 22 11:39:06 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Thu, 22 Feb 2007 09:39:06 -0800 Subject: [AccessD] FW: Basic Question In-Reply-To: Message-ID: <00a901c756a8$5a028ec0$0201a8c0@HAL9005> Will forward. Thanks. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, February 22, 2007 9:03 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] FW: Basic Question Hi Rocky No, that is not possible - and it was a major drawback in Access 1.x which didn't have code-behind-form modules. What you are asking for is WithEvents. Shamil and JC have posted repeatedly on this subject and I believe an article is on the dba site. /gustav >>> rockysmolin at bchacc.com 22-02-2007 17:48:44 >>> >From a colleague. Any ideas on this? TIA Rocky _____ From: Mike Dwyer [mailto:mike at aesadvantage.net] Sent: Thursday, February 22, 2007 12:13 AM To: bheygood at abestsystems.com; Dixon; Barry Hynum; Bob_Heygood; Doug Murphy; Ed Lance; Jackie Murphy; JKA Joe K Anderson; Rocky Smolin Subject: Basic Question Ok, this is Access 101 but I must be having a mental moment. If I use a function instead of an event procedure for BeforeUpdate, can that function return a value that cancels the update? I have a form with 120 fields on it (lots of tabs). I don't want 120 event procedures for each BeforeUpdate and I don't want 120 event procedures for AfterUpdate. I would like to select all 120 fields and set the BeforeUpdate property to something like =BeforeUpdate(). This works great for AfterUpdate, however, when I set it for the BeforeUpdate property, returning a value from this function doesn't cancel the edit. Is this possible? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/696 - Release Date: 2/21/2007 3:19 PM From jwelz at hotmail.com Thu Feb 22 11:40:51 2007 From: jwelz at hotmail.com (Jurgen Welz) Date: Thu, 22 Feb 2007 10:40:51 -0700 Subject: [AccessD] MDB to SQL Server In-Reply-To: Message-ID: Gustav: I fully expect that this is part of the problem and I am certainly not afraid of temp tables. You can create a temp database for this purpose on the fly and that is my preferred approach for temp tables. Part of the problem with the flexible queries is that I need to report fields from some of the various tables. I generally export these kinds of report directly to Excel rather than using Access reporting. I had previously mentioned the 'too many databases' error and am looking at ways to cut the number of connections even further. At one point I had 3 forms that could not be opened at the same time but I resolved that issue by adding callbacks for all combos that had rowsources with fewer than 100 records. No doubt such a message would be an indication that it is time to remove some information from those screens and maybe move some of the data to more tabbed sub forms. I doubt that much optimization can be done by JET or whatever database engine if a variety of queries are joined ad hoc in a mix of equal and unequal joins. I can do some playing with using temp tables and will work with that. A temp table that just contains active projects and current active related companies could provide a massive boost in performance. The problem is that if I bind to that and fire updates with a dbExecute, I'm effectively running unbound and need to manage record locking. I will definitely give this some thought. Of course reporting (to screen in a form) and adding/updating data are two different issues. Up to this point, I've not needed to distinguish much between the two. I've always tried to make things as flexible and convenient as possible in terms of allowing data to be located and updated no matter where it is seen. I generally allow related data to be edited in subforms without the need to open a parent form viewing only the related data. I just received a forwarded email from IT to my boss that SQL Server will be an option, but that with the move from 2 to 4 newer and faster servers, we would adopt a wait and see attitude. For the time being, I will do a number of minor things to fine tune performance. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: "Gustav Brock" > >Hi J?rgen > >Maybe that is part of your problem. I often use one a main query joined >with different subqueries, each saved as a new query that the report pulls >data from - which query to be used is set by the code than runs the report. > >However, often this can be boiled down to 1) define the selection of ID to >pull, 2) pull the "real" data for that selection of IDs. >A lot of time can be saved if the selection if IDs is written to a temp >table which then is inner joined to select and extract the real data. > >I remember on example on reporting taxes to the authorities on liquors >delivered, based on both percentage of alcohol and the type of liquors as >well as rates varying over time. A nice setup of queries fixed it perfectly >but it took "ages" to run. By using one temp table I cut minutes to >seconds. >I know many refrain from temp tables because they are scared of bloating >the mdb (avoid that by using a separate local temp database you recreate >each time the user launches the app) but most (all?) SQL server engines >feature automatic maintenance of temp tables. > >/gustav > > >>> jwelz at hotmail.com 22-02-2007 04:05:23 >>> > >.. Same report but involving joins, and sometimes equal and other times >unequal joins to an indeterminate variety of tables. Sometimes 1 table, >sometimes 5 or 6, sometimes with parameters on some fields, at other times >with parameters on other fields. I couldn't imagine doing this with saved >queries. _________________________________________________________________ Don?t waste time standing in line?try shopping online. Visit Sympatico / MSN Shopping today! http://shopping.sympatico.msn.ca From rockysmolin at bchacc.com Thu Feb 22 11:41:56 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Thu, 22 Feb 2007 09:41:56 -0800 Subject: [AccessD] FW: Basic Question In-Reply-To: <000001c756a4$1fd9c820$657aa8c0@m6805> Message-ID: <00b401c756a8$bf51c4d0$0201a8c0@HAL9005> Will forward - Thank you. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, February 22, 2007 9:09 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Basic Question Interesting question. Since BeforeUpdate has a cancel parameter, I would attempt to pass in myfunction(Cancel as integer) to the function being called and see if the returned value in cancel does indeed cancel the update. I have never tried - see below... I have to say I find using functions in event properties to be bad practice. The reason is that unless you use a search program such as Rick Fisher's "find and replace", it is almost impossible to tell where that function is used. IOW, you do a compile of the code it all compiles. You look at the function and do a search on the function name. It isn't used anywhere (in code). You say to yourself "self, this isn't used so I can delete it". You delete it. Your user discovers this six months later when he finally happens to activate that specific object / event. Light weight forms are great in theory, and great if there really isn't any event handling that needs to be done. If there is, then I say just use code behind forms to handle the events. IMHO, these kinds of "innovations" were designed for the days of yore when we ran 100 MHz Pentiums in 64 m of ram and needed all the help we could get, both in memory footprint and application load / execution speed. With a 2 GHz proc and a gig of ram, do you really think your user will know you are using a light weight form? To be quite honest, a class to handle the control, and a form class with a control scanner to find and load the control classes sounds like the ticket. Then the event works exactly as advertised, because it is sunk exactly as it was intended. Hmm... Sounds like the beginning of a framework to me. ;-) John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Thursday, February 22, 2007 11:49 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Basic Question >From a colleague. Any ideas on this? TIA Rocky _____ From: Mike Dwyer [mailto:mike at aesadvantage.net] Sent: Thursday, February 22, 2007 12:13 AM To: bheygood at abestsystems.com; Dixon; Barry Hynum; Bob_Heygood; Doug Murphy; Ed Lance; Jackie Murphy; JKA Joe K Anderson; Rocky Smolin Subject: Basic Question Ok, this is Access 101 but I must be having a mental moment. If I use a function instead of an event procedure for BeforeUpdate, can that function return a value that cancels the update? I have a form with 120 fields on it (lots of tabs). I don't want 120 event procedures for each BeforeUpdate and I don't want 120 event procedures for AfterUpdate. I would like to select all 120 fields and set the BeforeUpdate property to something like =BeforeUpdate(). This works great for AfterUpdate, however, when I set it for the BeforeUpdate property, returning a value from this function doesn't cancel the edit. Is this possible? -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/696 - Release Date: 2/21/2007 3:19 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/696 - Release Date: 2/21/2007 3:19 PM From rockysmolin at bchacc.com Thu Feb 22 11:42:06 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Thu, 22 Feb 2007 09:42:06 -0800 Subject: [AccessD] FW: Basic Question In-Reply-To: <585304.77075.qm@web88207.mail.re2.yahoo.com> Message-ID: <00b501c756a8$c59b1d00$0201a8c0@HAL9005> Forwarding - Thanks. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Thursday, February 22, 2007 9:20 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FW: Basic Question I've used this technique quite a bit. What I typically do is create a procedure in the typical way, so that I obtain its parameters -- Cancel as int, etc. Then I take the code from the procedure and turn it into a function. The function uses the same parameter list. Once that is done, I can call the function as your friend shows below. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Rocky Smolin at Beach Access Software To: Access Developers discussion and problem solving Sent: Thursday, February 22, 2007 11:48:44 AM Subject: [AccessD] FW: Basic Question >From a colleague. Any ideas on this? TIA Rocky _____ From: Mike Dwyer [mailto:mike at aesadvantage.net] Sent: Thursday, February 22, 2007 12:13 AM To: bheygood at abestsystems.com; Dixon; Barry Hynum; Bob_Heygood; Doug Murphy; Ed Lance; Jackie Murphy; JKA Joe K Anderson; Rocky Smolin Subject: Basic Question Ok, this is Access 101 but I must be having a mental moment. If I use a function instead of an event procedure for BeforeUpdate, can that function return a value that cancels the update? I have a form with 120 fields on it (lots of tabs). I don't want 120 event procedures for each BeforeUpdate and I don't want 120 event procedures for AfterUpdate. I would like to select all 120 fields and set the BeforeUpdate property to something like =BeforeUpdate(). This works great for AfterUpdate, however, when I set it for the BeforeUpdate property, returning a value from this function doesn't cancel the edit. Is this possible? -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/696 - Release Date: 2/21/2007 3:19 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/696 - Release Date: 2/21/2007 3:19 PM From rockysmolin at bchacc.com Thu Feb 22 11:43:03 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Thu, 22 Feb 2007 09:43:03 -0800 Subject: [AccessD] FW: Basic Question In-Reply-To: <7B1961ED924D1A459E378C9B1BB22B4C068DECD3@natexch.jenkens.com> Message-ID: <00b601c756a8$e7d774e0$0201a8c0@HAL9005> I'll ask. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Elam, Debbie Sent: Thursday, February 22, 2007 9:23 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Basic Question Will On Dirty work for what he wants? Debbie -----Original Message----- From: Rocky Smolin at Beach Access Software [mailto:rockysmolin at bchacc.com] Sent: Thursday, February 22, 2007 10:49 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Basic Question >From a colleague. Any ideas on this? TIA Rocky _____ From: Mike Dwyer [mailto:mike at aesadvantage.net] Sent: Thursday, February 22, 2007 12:13 AM To: bheygood at abestsystems.com; Dixon; Barry Hynum; Bob_Heygood; Doug Murphy; Ed Lance; Jackie Murphy; JKA Joe K Anderson; Rocky Smolin Subject: Basic Question Ok, this is Access 101 but I must be having a mental moment. If I use a function instead of an event procedure for BeforeUpdate, can that function return a value that cancels the update? I have a form with 120 fields on it (lots of tabs). I don't want 120 event procedures for each BeforeUpdate and I don't want 120 event procedures for AfterUpdate. I would like to select all 120 fields and set the BeforeUpdate property to something like =BeforeUpdate(). This works great for AfterUpdate, however, when I set it for the BeforeUpdate property, returning a value from this function doesn't cancel the edit. Is this possible? -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/696 - Release Date: 2/21/2007 3:19 PM -- 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. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/696 - Release Date: 2/21/2007 3:19 PM From Gustav at cactus.dk Thu Feb 22 11:52:22 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 22 Feb 2007 18:52:22 +0100 Subject: [AccessD] MDB to SQL Server Message-ID: Hi J?rgen OK. Please keep us posted on any progress you may achieve. /gustav >>> jwelz at hotmail.com 22-02-2007 18:40:51 >>> Gustav: I fully expect that this is part of the problem and I am certainly not afraid of temp tables. You can create a temp database for this purpose on the fly and that is my preferred approach for temp tables. Part of the problem with the flexible queries is that I need to report fields from some of the various tables. I generally export these kinds of report directly to Excel rather than using Access reporting. I had previously mentioned the 'too many databases' error and am looking at ways to cut the number of connections even further. At one point I had 3 forms that could not be opened at the same time but I resolved that issue by adding callbacks for all combos that had rowsources with fewer than 100 records. No doubt such a message would be an indication that it is time to remove some information from those screens and maybe move some of the data to more tabbed sub forms. I doubt that much optimization can be done by JET or whatever database engine if a variety of queries are joined ad hoc in a mix of equal and unequal joins. I can do some playing with using temp tables and will work with that. A temp table that just contains active projects and current active related companies could provide a massive boost in performance. The problem is that if I bind to that and fire updates with a dbExecute, I'm effectively running unbound and need to manage record locking. I will definitely give this some thought. Of course reporting (to screen in a form) and adding/updating data are two different issues. Up to this point, I've not needed to distinguish much between the two. I've always tried to make things as flexible and convenient as possible in terms of allowing data to be located and updated no matter where it is seen. I generally allow related data to be edited in subforms without the need to open a parent form viewing only the related data. I just received a forwarded email from IT to my boss that SQL Server will be an option, but that with the move from 2 to 4 newer and faster servers, we would adopt a wait and see attitude. For the time being, I will do a number of minor things to fine tune performance. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: "Gustav Brock" > >Hi J?rgen > >Maybe that is part of your problem. I often use one a main query joined >with different subqueries, each saved as a new query that the report pulls >data from - which query to be used is set by the code than runs the report. > >However, often this can be boiled down to 1) define the selection of ID to >pull, 2) pull the "real" data for that selection of IDs. >A lot of time can be saved if the selection if IDs is written to a temp >table which then is inner joined to select and extract the real data. > >I remember on example on reporting taxes to the authorities on liquors >delivered, based on both percentage of alcohol and the type of liquors as >well as rates varying over time. A nice setup of queries fixed it perfectly >but it took "ages" to run. By using one temp table I cut minutes to >seconds. >I know many refrain from temp tables because they are scared of bloating >the mdb (avoid that by using a separate local temp database you recreate >each time the user launches the app) but most (all?) SQL server engines >feature automatic maintenance of temp tables. > >/gustav > > >>> jwelz at hotmail.com 22-02-2007 04:05:23 >>> > >.. Same report but involving joins, and sometimes equal and other times >unequal joins to an indeterminate variety of tables. Sometimes 1 table, >sometimes 5 or 6, sometimes with parameters on some fields, at other times >with parameters on other fields. I couldn't imagine doing this with saved >queries. From ssharkins at setel.com Thu Feb 22 11:52:57 2007 From: ssharkins at setel.com (Susan Harkins) Date: Thu, 22 Feb 2007 12:52:57 -0500 Subject: [AccessD] FW: Basic Question In-Reply-To: <00b601c756a8$e7d774e0$0201a8c0@HAL9005> Message-ID: <000701c756aa$4ae88550$22b82ad1@SUSANONE> Will On Dirty work for what he wants? ======Someone please correct me if I'm wrong -- but Dirty will fire with all changes -- including entering new data, while Before Update only fires if existing data changes. Susan H. From rockysmolin at bchacc.com Thu Feb 22 12:02:01 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Thu, 22 Feb 2007 10:02:01 -0800 Subject: [AccessD] FW: Basic Question Message-ID: <00d701c756ab$8e541560$0201a8c0@HAL9005> FYI - Here's the workaround he came up with Rocky _____ From: Mike Dwyer [mailto:mike at aesadvantage.net] Sent: Thursday, February 22, 2007 9:58 AM To: Rocky Smolin; bheygood at abestsystems.com; Dixon; Barry Hynum; Bob_Heygood; Doug Murphy; Ed Lance; Jackie Murphy; JKA Joe K Anderson Subject: RE: Basic Question Thanks, Rocky. My workaround seems to be nice and simple: I selected all 120 fields and in the Property Sheet I entered: "BeforeUpdate() = True" in the ValidationRule property. This will call the function and if it returns False, the validation rule will fail. Within the function I set the ValidationText to my error message and it works just fine. From markamatte at hotmail.com Thu Feb 22 12:10:39 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 22 Feb 2007 18:10:39 +0000 Subject: [AccessD] FW: Basic Question In-Reply-To: <00d701c756ab$8e541560$0201a8c0@HAL9005> Message-ID: How do you put a set the BeforeUpdate to a function...I thought you could either pick [Event Procedure] or the name of a macro? Thanks, Mark >From: "Rocky Smolin at Beach Access Software" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: [AccessD] FW: Basic Question >Date: Thu, 22 Feb 2007 10:02:01 -0800 > >FYI - Here's the workaround he came up with > >Rocky > > > _____ > >From: Mike Dwyer [mailto:mike at aesadvantage.net] >Sent: Thursday, February 22, 2007 9:58 AM >To: Rocky Smolin; bheygood at abestsystems.com; Dixon; Barry Hynum; >Bob_Heygood; Doug Murphy; Ed Lance; Jackie Murphy; JKA Joe K Anderson >Subject: RE: Basic Question > > > >Thanks, Rocky. > >My workaround seems to be nice and simple: I selected all 120 fields and >in >the Property Sheet I entered: "BeforeUpdate() = True" in the ValidationRule >property. This will call the function and if it returns False, the >validation rule will fail. Within the function I set the ValidationText to >my error message and it works just fine. > > > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Find what you need at prices you?ll love. Compare products and save at MSN? Shopping. http://shopping.msn.com/default/shp/?ptnrid=37,ptnrdata=24102&tcode=T001MSN20A0701 From Gustav at cactus.dk Thu Feb 22 12:21:24 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 22 Feb 2007 19:21:24 +0100 Subject: [AccessD] FW: Basic Question Message-ID: Hi Rocky Oh, that will work, I thought he was trying to achieve something else. /gustav >>> rockysmolin at bchacc.com 22-02-2007 19:02:01 >>> FYI - Here's the workaround he came up with Rocky _____ From: Mike Dwyer [mailto:mike at aesadvantage.net] Sent: Thursday, February 22, 2007 9:58 AM To: Rocky Smolin; bheygood at abestsystems.com; Dixon; Barry Hynum; Bob_Heygood; Doug Murphy; Ed Lance; Jackie Murphy; JKA Joe K Anderson Subject: RE: Basic Question Thanks, Rocky. My workaround seems to be nice and simple: I selected all 120 fields and in the Property Sheet I entered: "BeforeUpdate() = True" in the ValidationRule property. This will call the function and if it returns False, the validation rule will fail. Within the function I set the ValidationText to my error message and it works just fine. From jwelz at hotmail.com Thu Feb 22 14:47:54 2007 From: jwelz at hotmail.com (Jurgen Welz) Date: Thu, 22 Feb 2007 13:47:54 -0700 Subject: [AccessD] MDB to SQL Server In-Reply-To: Message-ID: Martin: No local PCs exist. Everyone currently logs on to one of two terminal servers reserved for our use. The data resides on a gigabit connected server with really fast drives. All users see performance similar to what I see on a gaming system laptop running purely local data with exclusive access to the data file. I suppose I could try caching to the application server. Caching locally would cut out the gigabit LAN and prove how much faster the heavy iron is than my laptop, but I would then need to select to run unbound locally and operate read only, connecting bound to the actual data when needing to add/edit data. It is certainly worthy of consideration. This is akin to Arthur's suggestion, which would involve replication. I will try importing all the data to an FE on the server I use, lose the links to the shared file and see what the maximum benefit of such an approach would be. I'm not convinced I will see much difference, but it would be a benchmark of what can be attained. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: "Martin Reid" > >Jurgen > >You ever considered local caching of records on the users PC for data that >may not change much? > >Martin > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 _________________________________________________________________ Your Space. Your Friends. Your Stories. Share your world with Windows Live Spaces. http://spaces.live.com/?mkt=en-ca From shamil at users.mns.ru Thu Feb 22 15:36:28 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Fri, 23 Feb 2007 00:36:28 +0300 Subject: [AccessD] Feeding parameters to SQL Server In-Reply-To: <8301C8A868251E4C8ECD3D4FFEA40F8A2584B980@cpixchng-1.cpiqpc.net> Message-ID: <005601c756c9$831560a0$6501a8c0@nant> Rusty, I think the only solution is to use parameterized stored procedure(s), extract data into temp tables and bind report(s) to these temp tables... We talk about .mdb and MS Access reports here - correct? -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rusty.hammond at cpiqpc.com Sent: Thursday, February 22, 2007 5:54 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Feeding parameters to SQL Server Shamil, Your earlier example of using a parameter table is interesting but you mention it doesn't work well in a multi-user environment, how would you get around the multi-user issue? Jim/Eric, I dynamically update the pass-through query as the link Eric gave suggests but I haven't run into any stability issues using this method (that I'm aware of). Have you seen any specific issues that you can point me to that I need to look out for? I'm using this in an app for our company that gathers data from other databases to produce invoices to our clients. This app is used by most of our more than 400 in-house users. Granted they won't all be running the reports that use the pass-through. Thanks, Rusty -----Original Message----- From: Shamil Salakhetdinov [mailto:shamil at users.mns.ru] Sent: Wednesday, February 21, 2007 5:41 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server No problem, Eric, I anyway planned to write a short note here on ADODB and parameterized stored procedures... BTW, for parameterized UDFs ADODB can be also used but the issue with access permissions usually forces to use stored procedures - I mean UDF can't be used with a table if a user does not have access permissions for this table. As for stored procedure - it can be used with a table even if a user does not have access permission to this table - user should only have a permission to execute this stored procedure. Here is an example with parameterized UDF and ADODB - parameters's values in this sample are hardcoded in select expression: Dim cnn As ADODB.Connection Dim strCnn As String Dim cmd As ADODB.Command Dim prm As ADODB.Parameter Dim rst As ADODB.Recordset strCnn = "Provider=sqloledb;Data Source=(local);Initial Catalog=Northwind;Integrated Security=SSPI;" Set cnn = New ADODB.Connection cnn.Open strCnn cnn.CursorLocation = adUseClient Set cmd = New ADODB.Command cmd.CommandType = adCmdText cmd.CommandText = "select * from TotalFreightStats( _ '1996-07-02', '1996-07-12')" cmd.ActiveConnection = cnn.ConnectionString Set rst = cmd.Execute While Not rst.EOF Debug.Print rst(0).Value & " - " & rst(1).Value rst.MoveNext Wend cnn.Close -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Thursday, February 22, 2007 1:51 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Uh..hmmm...Jim and Shamil...I was replying to Colby's question on passing parameters to SQL which was the original thread. Someone suggested pass-thru queries somewhere in the thread. I just happened to reply to the last message in the thread that came from Shamil. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, February 21, 2007 2:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Eric My recommendation is do not use pass-through queries. They are more problem than they are worth as they seem to be an easy quick fix to start with but end up being slow, awkward and unstable. I believe this set of processes was designed to punish newbie developers scaring them off weaning from a MDB BE. MS should have simply remove that whole gambit of functions from Access and never bring them up again in polite company. Now if you want my unvarnished opinion on the subject don't be afraid to ask. :-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Wednesday, February 21, 2007 1:47 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Unfortunately dynamic parameters and sql pass-thru queries don't play well in Access. http://www.utteraccess.com/forums/showflat.php?Board=82&Number=1361479 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, February 21, 2007 1:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Hello John, Let's suppose you use NorthWind sample database and you have to calculate total Freight for a Shipper given from/to dates. I assume you do not use ADPs - if you have used them then you could have created - a stored procedure: ===================== CREATE PROCEDURE usp_TotalFreightStats (@fromDate datetime, @toDate datetime ) AS BEGIN select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName END - or a UDF =========== CREATE FUNCTION TotalFreightStats (@fromDate datetime, @toDate datetime ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN declare @fromDate1 dateTime declare @toDate1 dateTime INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName RETURN END And you could have bound your report to this stored procedure or UDF - on open this report would have requested from/to dates in parameters input dialog. I assume you use mdb and then you can: - create table to keep parameters ================================== CREATE TABLE [dbo].[ParametersForUDFs] ( [fromDate] [datetime] NULL , [toDate] [datetime] NULL ) ON [PRIMARY] GO - populate this table with parameters' values (clear in first) ============================================================= delete from ParametersForUDFs insert into ParametersForUDFs (fromDate, toDate) values ('1996-07-04', '1996-07-12') - create UDF ============ CREATE FUNCTION TotalFreightStats1 ( ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between (select top 1 fromDate from ParametersForUDFs) and (select top 1 toDate from ParametersForUDFs) Group by ShipName RETURN END - use UDF in view ================== CREATE VIEW dbo.vw_TotalFreightStats1 AS SELECT ShipperName, TotalFreight FROM dbo.TotalFreightStats1() TotalFreightStats1 ++++++++++++++++++++++++++++++++++++ - link view to MS Access mdb ++++++++++++++++++++++++++++++++++++ Of course that approach will not work well in multi-user environment if different users will need different from/to dates... -- Shamil ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at users.mns.ru Thu Feb 22 15:36:28 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Fri, 23 Feb 2007 00:36:28 +0300 Subject: [AccessD] Feeding parameters to SQL Server In-Reply-To: <001501c75636$52ac3a30$657aa8c0@m6805> Message-ID: <005701c756c9$85244370$6501a8c0@nant> <<< So these are not "reports" in the Access sense. >>> OK, John, then you can use parameterized stored procedures and ADODB. <<< And then came the client that wanted it in an Excel spreadsheet. >>> John, when text reporting/export is done then an easy "trick" to make Excel spreadsheets without running Excel Automation could be to export Tab delimited text files with .xls extension - I suppose you use this "trick"? Or your customers need real .xls workbooks? -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, February 22, 2007 7:03 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Shamil, >And you could have bound your report to this stored procedure or UDF - on open this report would have requested from/to dates in parameters input dialog. Well, when I say "report" that means something a little different here. My client feeds data to mainframes. They give me a table of specs which looks briefly like: Field name Data Type Default Value Format Field width Required Field 1 Char Some Val 9 Yes Field 2 Num Some Val2 000.00 10 No Field 3 Field 4 . . . Etc. I then have to pull the data out into queries, and somehow get them out into fixed width text files, named according to their naming spec etc. In order to do this I use (what else) classes. I import their table into a report field spec table (with a few fields of my own to make my life easier). I then built a class to hold each field spec record plus code to manipulate the data as required by their specs. Apply the correct formatting, determine if the field has to be there or not, replace nulls with default values if any, etc. The Field Spec class is responsible for all formatting of a given field and handing back a fully formatted string, regardless of whether the data is a date (YYYYMMDD? MMDDYYYY? MMYYYY?), currency (00000.00?, 00000^00 - decimal shifted out), string (width? Pad left / right? Pad char?). Each field class is responsible for error reporting should any error occur in formatting, padding etc. since the field class "knows" what the format should be, width of the final string should be etc. I build a report spec table which holds the query required to pull the data, the name / path of the destination file and some other stuff. In the end I have a system where I load a Report Spec supervisor class and that class loads the field spec classes, loads the data, processes each field of each data record through each field class, assembles the strings returned by the field classes into a big string, and then uses text streams to write the files out to disk. The Report spec class is responsible for error reporting at the record level - errors from field classes, no data, etc., with errors logged to files on the hard disk for attachment to email to the person who can fix the problem. These files can and often but not always do have header information which goes in the same file, which may or may not be the same width as the detail data, and can have trailer info (usually sums and counts) which are also appended into the same file. Thus a "report" will be at the very least a detail section, but may / may not have a header and / or footer. Processed the way I do, the header and footer becomes just another set of field specs in the Field Spec Table. The Report Spec will have one to three records in it, one for a header if any, one for the detail (they all have a detail) and one for the footer if any. Thus a method of my report spec class is called passing the PKID of the detail spec record in the Report Spec table and it takes over and loads header and footer report spec classes as necessary. Each Report spec class instance loads it's own data (has it's own query) and processes it's data according to it's set of field spec records, and writes the data to the file under the supervision of the detail Report Spec class (the "overall" supervisor for the report). I did not do it this way originally, in fact I originally hard coded everything in the queries - format, conversion of nulls, padding etc. What I discovered is that it was a MAJOR PITA to adjust a report as I had to go find the right place in the right query. Done the way I do it now, it is all "formatted" by entries in my field spec table. If I need to change the width of a field, I just look up the field in the Field Spec Table and change it. Same for format, data type, default value etc. It works really well in fact once I got the classes working. I can literally tweak a report in minutes and rerun. One might wonder why such tweaking would be necessary if it was for a mainframe import, and the answer of course is that the info I get from the mainframe people is always sketchy - leading or trailing padding, spaces or zeros for padding, and I have to submit a file for testing, then tweak, resubmit, tweak until they say it is OK. And of course, it all has to be adjusted on MY END. By building this into a table, I just change my PadDir column from (L)eading to (T)railing and it pads the other way, change the PAdChar from 0 to ' ' and it changes from a zero to a space (or anything else they can think up). I use VB format strings where possible but sometimes I just have to brute force it. So we (my client) selects filter data using combos and date text boxes, and pushes a button and a report is built and placed on disk, in a specific location, with a specific name (and a dated name for our internal tracking). I can and do sometimes attach these reports to email or FTP them if that is necessary. So these are not "reports" in the Access sense. I now have reports going to 3 different companies, unknown number of different mainframes, all using the same report generator system. They give me a field spec "table", I import (or type) that in to my report / field spec table pair, build queries to pull the data and plug that query name into the report spec table and push the button. Tweak the query, then the field spec records, send, tweak, send. After that it just runs. In fact one issue that this whole class system handles very nicely is "missing data" since it can just run the reports without writing the files to disk, then see if any error reports are generated and if so email them to the examiners. They can go correct the data errors. We can rerun until it is right, then send. All in all a royal PITA but that is after all why they pay us the big bucks, right? And then came the client that wanted it in an Excel spreadsheet. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, February 21, 2007 4:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Hello John, Let's suppose you use NorthWind sample database and you have to calculate total Freight for a Shipper given from/to dates. I assume you do not use ADPs - if you have used them then you could have created - a stored procedure: ===================== CREATE PROCEDURE usp_TotalFreightStats (@fromDate datetime, @toDate datetime ) AS BEGIN select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName END - or a UDF =========== CREATE FUNCTION TotalFreightStats (@fromDate datetime, @toDate datetime ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN declare @fromDate1 dateTime declare @toDate1 dateTime INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName RETURN END And you could have bound your report to this stored procedure or UDF - on open this report would have requested from/to dates in parameters input dialog. I assume you use mdb and then you can: - create table to keep parameters ================================== CREATE TABLE [dbo].[ParametersForUDFs] ( [fromDate] [datetime] NULL , [toDate] [datetime] NULL ) ON [PRIMARY] GO - populate this table with parameters' values (clear in first) ============================================================= delete from ParametersForUDFs insert into ParametersForUDFs (fromDate, toDate) values ('1996-07-04', '1996-07-12') - create UDF ============ CREATE FUNCTION TotalFreightStats1 ( ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between (select top 1 fromDate from ParametersForUDFs) and (select top 1 toDate from ParametersForUDFs) Group by ShipName RETURN END - use UDF in view ================== CREATE VIEW dbo.vw_TotalFreightStats1 AS SELECT ShipperName, TotalFreight FROM dbo.TotalFreightStats1() TotalFreightStats1 ++++++++++++++++++++++++++++++++++++ - link view to MS Access mdb ++++++++++++++++++++++++++++++++++++ Of course that approach will not work well in multi-user environment if different users will need different from/to dates... -- Shamil -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Feb 22 15:39:51 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Thu, 22 Feb 2007 16:39:51 -0500 Subject: [AccessD] Using XML Message-ID: <003201c756c9$fc841bc0$657aa8c0@m6805> One of the things I try to do when my classes prepare reports to send off to my client's clients is to log the data sent. Doing this allows me to have a record of what was sent in case there is ever a dispute. The data is rarely if ever used but a nice security blanket if you will. One of the problems with doing this is simply that since the data is custom to that report, a custom table has to be created to hold the data. I have also taken to outputting the file in a dated format as well as the "generic name" that the client receives - with the date and time that the file was output. I was in the middle of trying to figure out how to do this "generically" (you know me, make it available always) when it suddenly occurred to me... why not create an XML file instead of (or in addition to) my dated file. The xml file could have the identical name as my dated file except that it would have an XML extension. The XML is supposed to be "a table" in text format (kinda). Unfortunately I was working in A2K ( the least common denominator at this specific client) so I stopped, opened the project in Access 2002, and added a couple of lines of code to my report generator, and voila, XML files. I had to modify my mclsRptName (holds all of the names of my reports plus text streams) to add an XML file spec string and property, and then Application.ExportXML acExportQuery, mRSP_QueryName, mclsRptName.pFileSpecXML and I had an XML report sitting in the directory along with the other files. Unfortunately, the XML file causes Windows Explorer to open to display it, and then displays the xml text, not tables. My question is, is there some sort of viewer that can display the data in tables? I mean for just browsing data, XML is hardly intuitive to the human mind. Also unfortunate of course is the OVERHEAD. Holy smoke batman, a 15 kbyte file turns into a 91 kbyte file. And finally, unfortunately, whereas my custom class knows how to use the same text stream object to write the date, the application.ExportXML simply writes the last query presented to the file name. since my files can be a header, detail and footer, the footer will be the only thing there if a footer is the last query presented, the detail will be the last thing if the detail query is the last query presented etc. IOW, no possibility AFAICT to APPEND xml files to each other, at least using the built in application method. I am jazzed though how easy it was to do the xml thing. I must say I expected Internet explorer to show me a table though, complete with field names at the top. Wouldn't ya think? John W. Colby Colby Consulting www.ColbyConsulting.com From jwcolby at colbyconsulting.com Thu Feb 22 15:41:53 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Thu, 22 Feb 2007 16:41:53 -0500 Subject: [AccessD] Feeding parameters to SQL Server In-Reply-To: <005701c756c9$85244370$6501a8c0@nant> Message-ID: <003701c756ca$44fb7060$657aa8c0@m6805> Yea, they want SPREADSHEETS. I assume so that they can do calcs on them. No se por que exactamente, I just do what they tell me. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, February 22, 2007 4:36 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server <<< So these are not "reports" in the Access sense. >>> OK, John, then you can use parameterized stored procedures and ADODB. <<< And then came the client that wanted it in an Excel spreadsheet. >>> John, when text reporting/export is done then an easy "trick" to make Excel spreadsheets without running Excel Automation could be to export Tab delimited text files with .xls extension - I suppose you use this "trick"? Or your customers need real .xls workbooks? -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, February 22, 2007 7:03 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Shamil, >And you could have bound your report to this stored procedure or UDF - >on open this report would have requested from/to dates in parameters input dialog. Well, when I say "report" that means something a little different here. My client feeds data to mainframes. They give me a table of specs which looks briefly like: Field name Data Type Default Value Format Field width Required Field 1 Char Some Val 9 Yes Field 2 Num Some Val2 000.00 10 No Field 3 Field 4 . . . Etc. I then have to pull the data out into queries, and somehow get them out into fixed width text files, named according to their naming spec etc. In order to do this I use (what else) classes. I import their table into a report field spec table (with a few fields of my own to make my life easier). I then built a class to hold each field spec record plus code to manipulate the data as required by their specs. Apply the correct formatting, determine if the field has to be there or not, replace nulls with default values if any, etc. The Field Spec class is responsible for all formatting of a given field and handing back a fully formatted string, regardless of whether the data is a date (YYYYMMDD? MMDDYYYY? MMYYYY?), currency (00000.00?, 00000^00 - decimal shifted out), string (width? Pad left / right? Pad char?). Each field class is responsible for error reporting should any error occur in formatting, padding etc. since the field class "knows" what the format should be, width of the final string should be etc. I build a report spec table which holds the query required to pull the data, the name / path of the destination file and some other stuff. In the end I have a system where I load a Report Spec supervisor class and that class loads the field spec classes, loads the data, processes each field of each data record through each field class, assembles the strings returned by the field classes into a big string, and then uses text streams to write the files out to disk. The Report spec class is responsible for error reporting at the record level - errors from field classes, no data, etc., with errors logged to files on the hard disk for attachment to email to the person who can fix the problem. These files can and often but not always do have header information which goes in the same file, which may or may not be the same width as the detail data, and can have trailer info (usually sums and counts) which are also appended into the same file. Thus a "report" will be at the very least a detail section, but may / may not have a header and / or footer. Processed the way I do, the header and footer becomes just another set of field specs in the Field Spec Table. The Report Spec will have one to three records in it, one for a header if any, one for the detail (they all have a detail) and one for the footer if any. Thus a method of my report spec class is called passing the PKID of the detail spec record in the Report Spec table and it takes over and loads header and footer report spec classes as necessary. Each Report spec class instance loads it's own data (has it's own query) and processes it's data according to it's set of field spec records, and writes the data to the file under the supervision of the detail Report Spec class (the "overall" supervisor for the report). I did not do it this way originally, in fact I originally hard coded everything in the queries - format, conversion of nulls, padding etc. What I discovered is that it was a MAJOR PITA to adjust a report as I had to go find the right place in the right query. Done the way I do it now, it is all "formatted" by entries in my field spec table. If I need to change the width of a field, I just look up the field in the Field Spec Table and change it. Same for format, data type, default value etc. It works really well in fact once I got the classes working. I can literally tweak a report in minutes and rerun. One might wonder why such tweaking would be necessary if it was for a mainframe import, and the answer of course is that the info I get from the mainframe people is always sketchy - leading or trailing padding, spaces or zeros for padding, and I have to submit a file for testing, then tweak, resubmit, tweak until they say it is OK. And of course, it all has to be adjusted on MY END. By building this into a table, I just change my PadDir column from (L)eading to (T)railing and it pads the other way, change the PAdChar from 0 to ' ' and it changes from a zero to a space (or anything else they can think up). I use VB format strings where possible but sometimes I just have to brute force it. So we (my client) selects filter data using combos and date text boxes, and pushes a button and a report is built and placed on disk, in a specific location, with a specific name (and a dated name for our internal tracking). I can and do sometimes attach these reports to email or FTP them if that is necessary. So these are not "reports" in the Access sense. I now have reports going to 3 different companies, unknown number of different mainframes, all using the same report generator system. They give me a field spec "table", I import (or type) that in to my report / field spec table pair, build queries to pull the data and plug that query name into the report spec table and push the button. Tweak the query, then the field spec records, send, tweak, send. After that it just runs. In fact one issue that this whole class system handles very nicely is "missing data" since it can just run the reports without writing the files to disk, then see if any error reports are generated and if so email them to the examiners. They can go correct the data errors. We can rerun until it is right, then send. All in all a royal PITA but that is after all why they pay us the big bucks, right? And then came the client that wanted it in an Excel spreadsheet. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, February 21, 2007 4:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Hello John, Let's suppose you use NorthWind sample database and you have to calculate total Freight for a Shipper given from/to dates. I assume you do not use ADPs - if you have used them then you could have created - a stored procedure: ===================== CREATE PROCEDURE usp_TotalFreightStats (@fromDate datetime, @toDate datetime ) AS BEGIN select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName END - or a UDF =========== CREATE FUNCTION TotalFreightStats (@fromDate datetime, @toDate datetime ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN declare @fromDate1 dateTime declare @toDate1 dateTime INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName RETURN END And you could have bound your report to this stored procedure or UDF - on open this report would have requested from/to dates in parameters input dialog. I assume you use mdb and then you can: - create table to keep parameters ================================== CREATE TABLE [dbo].[ParametersForUDFs] ( [fromDate] [datetime] NULL , [toDate] [datetime] NULL ) ON [PRIMARY] GO - populate this table with parameters' values (clear in first) ============================================================= delete from ParametersForUDFs insert into ParametersForUDFs (fromDate, toDate) values ('1996-07-04', '1996-07-12') - create UDF ============ CREATE FUNCTION TotalFreightStats1 ( ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between (select top 1 fromDate from ParametersForUDFs) and (select top 1 toDate from ParametersForUDFs) Group by ShipName RETURN END - use UDF in view ================== CREATE VIEW dbo.vw_TotalFreightStats1 AS SELECT ShipperName, TotalFreight FROM dbo.TotalFreightStats1() TotalFreightStats1 ++++++++++++++++++++++++++++++++++++ - link view to MS Access mdb ++++++++++++++++++++++++++++++++++++ Of course that approach will not work well in multi-user environment if different users will need different from/to dates... -- Shamil -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ebarro at verizon.net Thu Feb 22 15:52:06 2007 From: ebarro at verizon.net (Eric Barro) Date: Thu, 22 Feb 2007 13:52:06 -0800 Subject: [AccessD] Using XML In-Reply-To: <003201c756c9$fc841bc0$657aa8c0@m6805> Message-ID: <0JDV004XOWQM32R9@vms040.mailsrvcs.net> John, You need an XSL (stylesheet) in order to display the XML properly using a browser. Here's a sample...
Customer ID Company Contact Country Phone
Eric -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, February 22, 2007 1:40 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Using XML One of the things I try to do when my classes prepare reports to send off to my client's clients is to log the data sent. Doing this allows me to have a record of what was sent in case there is ever a dispute. The data is rarely if ever used but a nice security blanket if you will. One of the problems with doing this is simply that since the data is custom to that report, a custom table has to be created to hold the data. I have also taken to outputting the file in a dated format as well as the "generic name" that the client receives - with the date and time that the file was output. I was in the middle of trying to figure out how to do this "generically" (you know me, make it available always) when it suddenly occurred to me... why not create an XML file instead of (or in addition to) my dated file. The xml file could have the identical name as my dated file except that it would have an XML extension. The XML is supposed to be "a table" in text format (kinda). Unfortunately I was working in A2K ( the least common denominator at this specific client) so I stopped, opened the project in Access 2002, and added a couple of lines of code to my report generator, and voila, XML files. I had to modify my mclsRptName (holds all of the names of my reports plus text streams) to add an XML file spec string and property, and then Application.ExportXML acExportQuery, mRSP_QueryName, mclsRptName.pFileSpecXML and I had an XML report sitting in the directory along with the other files. Unfortunately, the XML file causes Windows Explorer to open to display it, and then displays the xml text, not tables. My question is, is there some sort of viewer that can display the data in tables? I mean for just browsing data, XML is hardly intuitive to the human mind. Also unfortunate of course is the OVERHEAD. Holy smoke batman, a 15 kbyte file turns into a 91 kbyte file. And finally, unfortunately, whereas my custom class knows how to use the same text stream object to write the date, the application.ExportXML simply writes the last query presented to the file name. since my files can be a header, detail and footer, the footer will be the only thing there if a footer is the last query presented, the detail will be the last thing if the detail query is the last query presented etc. IOW, no possibility AFAICT to APPEND xml files to each other, at least using the built in application method. I am jazzed though how easy it was to do the xml thing. I must say I expected Internet explorer to show me a table though, complete with field names at the top. Wouldn't ya think? John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/697 - Release Date: 2/22/2007 11:55 AM From jwcolby at colbyconsulting.com Thu Feb 22 16:00:19 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Thu, 22 Feb 2007 17:00:19 -0500 Subject: [AccessD] Using XML In-Reply-To: <0JDV004XOWQM32R9@vms040.mailsrvcs.net> Message-ID: <003d01c756cc$d7f54100$657aa8c0@m6805> Eric, thanks for this. I just ran into "user expectations" in my own application so I guess I need to be a little more careful of my own expectations. The problem of course is how do I determine this data. Is there a "generator" somewhere that generates this style sheet? Is it then placed at the top of the xml file before the xml data? I am not attempting to generate a web page, it just happened that Windows decided that IE should display the file. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Thursday, February 22, 2007 4:52 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Using XML John, You need an XSL (stylesheet) in order to display the XML properly using a browser. Here's a sample...
Customer ID Company Contact Country Phone
Eric -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, February 22, 2007 1:40 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Using XML One of the things I try to do when my classes prepare reports to send off to my client's clients is to log the data sent. Doing this allows me to have a record of what was sent in case there is ever a dispute. The data is rarely if ever used but a nice security blanket if you will. One of the problems with doing this is simply that since the data is custom to that report, a custom table has to be created to hold the data. I have also taken to outputting the file in a dated format as well as the "generic name" that the client receives - with the date and time that the file was output. I was in the middle of trying to figure out how to do this "generically" (you know me, make it available always) when it suddenly occurred to me... why not create an XML file instead of (or in addition to) my dated file. The xml file could have the identical name as my dated file except that it would have an XML extension. The XML is supposed to be "a table" in text format (kinda). Unfortunately I was working in A2K ( the least common denominator at this specific client) so I stopped, opened the project in Access 2002, and added a couple of lines of code to my report generator, and voila, XML files. I had to modify my mclsRptName (holds all of the names of my reports plus text streams) to add an XML file spec string and property, and then Application.ExportXML acExportQuery, mRSP_QueryName, mclsRptName.pFileSpecXML and I had an XML report sitting in the directory along with the other files. Unfortunately, the XML file causes Windows Explorer to open to display it, and then displays the xml text, not tables. My question is, is there some sort of viewer that can display the data in tables? I mean for just browsing data, XML is hardly intuitive to the human mind. Also unfortunate of course is the OVERHEAD. Holy smoke batman, a 15 kbyte file turns into a 91 kbyte file. And finally, unfortunately, whereas my custom class knows how to use the same text stream object to write the date, the application.ExportXML simply writes the last query presented to the file name. since my files can be a header, detail and footer, the footer will be the only thing there if a footer is the last query presented, the detail will be the last thing if the detail query is the last query presented etc. IOW, no possibility AFAICT to APPEND xml files to each other, at least using the built in application method. I am jazzed though how easy it was to do the xml thing. I must say I expected Internet explorer to show me a table though, complete with field names at the top. Wouldn't ya think? John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/697 - Release Date: 2/22/2007 11:55 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at users.mns.ru Thu Feb 22 16:06:00 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Fri, 23 Feb 2007 01:06:00 +0300 Subject: [AccessD] Using XML In-Reply-To: <003201c756c9$fc841bc0$657aa8c0@m6805> Message-ID: <006e01c756cd$a306ba40$6501a8c0@nant> <<< IOW, no possibility AFAICT to APPEND xml files to each other, at least using the built in application method. >>> John, This is possible, starting MS Access 2002 I think - see AdditionalData object description. Here is a sample from online help. Dim objOrderInfo As AdditionalData Dim objOrderDetailsInfo As AdditionalData Set objOrderInfo = Application.CreateAdditionalData ' Add the Orders and Order Details tables to the data to be exported. Set objOrderDetailsInfo = objOrderInfo.Add("Orders") objOrderDetailsInfo.Add "Order Details" ' Export the contents of the Customers table. The Orders and Order ' Details tables will be included in the XML file. Application.ExportXML ObjectType:=acExportTable, DataSource:="Customers", _ DataTarget:="Customer Orders.xml", _ AdditionalData:=objOrderInfo <<< I must say I expected Internet explorer to show me a table though, complete with field names at the top. Wouldn't ya think? >>> You have to specify the PresentationTarget parameter with the fullpath for the .xsl file to be generated. Then additionally .htm file will be generated - and this latter will be mainly a vbscript to show your exported to .xml data in table format... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Friday, February 23, 2007 12:40 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Using XML One of the things I try to do when my classes prepare reports to send off to my client's clients is to log the data sent. Doing this allows me to have a record of what was sent in case there is ever a dispute. The data is rarely if ever used but a nice security blanket if you will. One of the problems with doing this is simply that since the data is custom to that report, a custom table has to be created to hold the data. I have also taken to outputting the file in a dated format as well as the "generic name" that the client receives - with the date and time that the file was output. I was in the middle of trying to figure out how to do this "generically" (you know me, make it available always) when it suddenly occurred to me... why not create an XML file instead of (or in addition to) my dated file. The xml file could have the identical name as my dated file except that it would have an XML extension. The XML is supposed to be "a table" in text format (kinda). Unfortunately I was working in A2K ( the least common denominator at this specific client) so I stopped, opened the project in Access 2002, and added a couple of lines of code to my report generator, and voila, XML files. I had to modify my mclsRptName (holds all of the names of my reports plus text streams) to add an XML file spec string and property, and then Application.ExportXML acExportQuery, mRSP_QueryName, mclsRptName.pFileSpecXML and I had an XML report sitting in the directory along with the other files. Unfortunately, the XML file causes Windows Explorer to open to display it, and then displays the xml text, not tables. My question is, is there some sort of viewer that can display the data in tables? I mean for just browsing data, XML is hardly intuitive to the human mind. Also unfortunate of course is the OVERHEAD. Holy smoke batman, a 15 kbyte file turns into a 91 kbyte file. And finally, unfortunately, whereas my custom class knows how to use the same text stream object to write the date, the application.ExportXML simply writes the last query presented to the file name. since my files can be a header, detail and footer, the footer will be the only thing there if a footer is the last query presented, the detail will be the last thing if the detail query is the last query presented etc. IOW, no possibility AFAICT to APPEND xml files to each other, at least using the built in application method. I am jazzed though how easy it was to do the xml thing. I must say I expected Internet explorer to show me a table though, complete with field names at the top. Wouldn't ya think? John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ebarro at verizon.net Thu Feb 22 16:16:08 2007 From: ebarro at verizon.net (Eric Barro) Date: Thu, 22 Feb 2007 14:16:08 -0800 Subject: [AccessD] Using XML In-Reply-To: <003d01c756cc$d7f54100$657aa8c0@m6805> Message-ID: <0JDV00G7AXUUICA7@vms042.mailsrvcs.net> There's a couple out there...here's one I ran across. http://www.topxml.com/downloads/default.asp?id=v200111181229 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, February 22, 2007 2:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Using XML Eric, thanks for this. I just ran into "user expectations" in my own application so I guess I need to be a little more careful of my own expectations. The problem of course is how do I determine this data. Is there a "generator" somewhere that generates this style sheet? Is it then placed at the top of the xml file before the xml data? I am not attempting to generate a web page, it just happened that Windows decided that IE should display the file. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Thursday, February 22, 2007 4:52 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Using XML John, You need an XSL (stylesheet) in order to display the XML properly using a browser. Here's a sample...
Customer ID Company Contact Country Phone
Eric -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, February 22, 2007 1:40 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Using XML One of the things I try to do when my classes prepare reports to send off to my client's clients is to log the data sent. Doing this allows me to have a record of what was sent in case there is ever a dispute. The data is rarely if ever used but a nice security blanket if you will. One of the problems with doing this is simply that since the data is custom to that report, a custom table has to be created to hold the data. I have also taken to outputting the file in a dated format as well as the "generic name" that the client receives - with the date and time that the file was output. I was in the middle of trying to figure out how to do this "generically" (you know me, make it available always) when it suddenly occurred to me... why not create an XML file instead of (or in addition to) my dated file. The xml file could have the identical name as my dated file except that it would have an XML extension. The XML is supposed to be "a table" in text format (kinda). Unfortunately I was working in A2K ( the least common denominator at this specific client) so I stopped, opened the project in Access 2002, and added a couple of lines of code to my report generator, and voila, XML files. I had to modify my mclsRptName (holds all of the names of my reports plus text streams) to add an XML file spec string and property, and then Application.ExportXML acExportQuery, mRSP_QueryName, mclsRptName.pFileSpecXML and I had an XML report sitting in the directory along with the other files. Unfortunately, the XML file causes Windows Explorer to open to display it, and then displays the xml text, not tables. My question is, is there some sort of viewer that can display the data in tables? I mean for just browsing data, XML is hardly intuitive to the human mind. Also unfortunate of course is the OVERHEAD. Holy smoke batman, a 15 kbyte file turns into a 91 kbyte file. And finally, unfortunately, whereas my custom class knows how to use the same text stream object to write the date, the application.ExportXML simply writes the last query presented to the file name. since my files can be a header, detail and footer, the footer will be the only thing there if a footer is the last query presented, the detail will be the last thing if the detail query is the last query presented etc. IOW, no possibility AFAICT to APPEND xml files to each other, at least using the built in application method. I am jazzed though how easy it was to do the xml thing. I must say I expected Internet explorer to show me a table though, complete with field names at the top. Wouldn't ya think? John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/697 - Release Date: 2/22/2007 11:55 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/697 - Release Date: 2/22/2007 11:55 AM From Drawbridge.Jack at ic.gc.ca Thu Feb 22 16:26:51 2007 From: Drawbridge.Jack at ic.gc.ca (Drawbridge, Jack: #CIO - BPI) Date: Thu, 22 Feb 2007 17:26:51 -0500 Subject: [AccessD] Using XML. In-Reply-To: <0JDV00G7AXUUICA7@vms042.mailsrvcs.net> Message-ID: <0F3AFAE449DD4A40BED8B6C4A97ABF5B086C3A62@MSG-MB3.icent.ic.gc.ca> Guys here's a link that might be helpful. http://www.ibiblio.org/xml/books/bible2/chapters/ch17.html -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Thursday, February 22, 2007 5:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Using XML There's a couple out there...here's one I ran across. http://www.topxml.com/downloads/default.asp?id=v200111181229 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, February 22, 2007 2:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Using XML Eric, thanks for this. I just ran into "user expectations" in my own application so I guess I need to be a little more careful of my own expectations. The problem of course is how do I determine this data. Is there a "generator" somewhere that generates this style sheet? Is it then placed at the top of the xml file before the xml data? I am not attempting to generate a web page, it just happened that Windows decided that IE should display the file. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Thursday, February 22, 2007 4:52 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Using XML John, You need an XSL (stylesheet) in order to display the XML properly using a browser. Here's a sample...
Customer ID Company Contact Country Phone
Eric -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, February 22, 2007 1:40 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Using XML One of the things I try to do when my classes prepare reports to send off to my client's clients is to log the data sent. Doing this allows me to have a record of what was sent in case there is ever a dispute. The data is rarely if ever used but a nice security blanket if you will. One of the problems with doing this is simply that since the data is custom to that report, a custom table has to be created to hold the data. I have also taken to outputting the file in a dated format as well as the "generic name" that the client receives - with the date and time that the file was output. I was in the middle of trying to figure out how to do this "generically" (you know me, make it available always) when it suddenly occurred to me... why not create an XML file instead of (or in addition to) my dated file. The xml file could have the identical name as my dated file except that it would have an XML extension. The XML is supposed to be "a table" in text format (kinda). Unfortunately I was working in A2K ( the least common denominator at this specific client) so I stopped, opened the project in Access 2002, and added a couple of lines of code to my report generator, and voila, XML files. I had to modify my mclsRptName (holds all of the names of my reports plus text streams) to add an XML file spec string and property, and then Application.ExportXML acExportQuery, mRSP_QueryName, mclsRptName.pFileSpecXML and I had an XML report sitting in the directory along with the other files. Unfortunately, the XML file causes Windows Explorer to open to display it, and then displays the xml text, not tables. My question is, is there some sort of viewer that can display the data in tables? I mean for just browsing data, XML is hardly intuitive to the human mind. Also unfortunate of course is the OVERHEAD. Holy smoke batman, a 15 kbyte file turns into a 91 kbyte file. And finally, unfortunately, whereas my custom class knows how to use the same text stream object to write the date, the application.ExportXML simply writes the last query presented to the file name. since my files can be a header, detail and footer, the footer will be the only thing there if a footer is the last query presented, the detail will be the last thing if the detail query is the last query presented etc. IOW, no possibility AFAICT to APPEND xml files to each other, at least using the built in application method. I am jazzed though how easy it was to do the xml thing. I must say I expected Internet explorer to show me a table though, complete with field names at the top. Wouldn't ya think? John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/697 - Release Date: 2/22/2007 11:55 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/697 - Release Date: 2/22/2007 11:55 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Thu Feb 22 18:07:02 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 22 Feb 2007 16:07:02 -0800 Subject: [AccessD] Feeding parameters to SQL Server In-Reply-To: <8301C8A868251E4C8ECD3D4FFEA40F8A2584B980@cpixchng-1.cpiqpc.net> Message-ID: <0JDW002972VN4140@l-daemon> Hi Rusty: I am not sure if that is true for DAO databases... never tried it but for MS SQL and other DBs it is definitely not so and in fact performance is dramatically enhanced over any other method. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rusty.hammond at cpiqpc.com Sent: Thursday, February 22, 2007 6:54 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Feeding parameters to SQL Server Shamil, Your earlier example of using a parameter table is interesting but you mention it doesn't work well in a multi-user environment, how would you get around the multi-user issue? Jim/Eric, I dynamically update the pass-through query as the link Eric gave suggests but I haven't run into any stability issues using this method (that I'm aware of). Have you seen any specific issues that you can point me to that I need to look out for? I'm using this in an app for our company that gathers data from other databases to produce invoices to our clients. This app is used by most of our more than 400 in-house users. Granted they won't all be running the reports that use the pass-through. Thanks, Rusty -----Original Message----- From: Shamil Salakhetdinov [mailto:shamil at users.mns.ru] Sent: Wednesday, February 21, 2007 5:41 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server No problem, Eric, I anyway planned to write a short note here on ADODB and parameterized stored procedures... BTW, for parameterized UDFs ADODB can be also used but the issue with access permissions usually forces to use stored procedures - I mean UDF can't be used with a table if a user does not have access permissions for this table. As for stored procedure - it can be used with a table even if a user does not have access permission to this table - user should only have a permission to execute this stored procedure. Here is an example with parameterized UDF and ADODB - parameters's values in this sample are hardcoded in select expression: Dim cnn As ADODB.Connection Dim strCnn As String Dim cmd As ADODB.Command Dim prm As ADODB.Parameter Dim rst As ADODB.Recordset strCnn = "Provider=sqloledb;Data Source=(local);Initial Catalog=Northwind;Integrated Security=SSPI;" Set cnn = New ADODB.Connection cnn.Open strCnn cnn.CursorLocation = adUseClient Set cmd = New ADODB.Command cmd.CommandType = adCmdText cmd.CommandText = "select * from TotalFreightStats( _ '1996-07-02', '1996-07-12')" cmd.ActiveConnection = cnn.ConnectionString Set rst = cmd.Execute While Not rst.EOF Debug.Print rst(0).Value & " - " & rst(1).Value rst.MoveNext Wend cnn.Close -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Thursday, February 22, 2007 1:51 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Uh..hmmm...Jim and Shamil...I was replying to Colby's question on passing parameters to SQL which was the original thread. Someone suggested pass-thru queries somewhere in the thread. I just happened to reply to the last message in the thread that came from Shamil. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, February 21, 2007 2:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Eric My recommendation is do not use pass-through queries. They are more problem than they are worth as they seem to be an easy quick fix to start with but end up being slow, awkward and unstable. I believe this set of processes was designed to punish newbie developers scaring them off weaning from a MDB BE. MS should have simply remove that whole gambit of functions from Access and never bring them up again in polite company. Now if you want my unvarnished opinion on the subject don't be afraid to ask. :-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Wednesday, February 21, 2007 1:47 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Unfortunately dynamic parameters and sql pass-thru queries don't play well in Access. http://www.utteraccess.com/forums/showflat.php?Board=82&Number=1361479 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, February 21, 2007 1:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Hello John, Let's suppose you use NorthWind sample database and you have to calculate total Freight for a Shipper given from/to dates. I assume you do not use ADPs - if you have used them then you could have created - a stored procedure: ===================== CREATE PROCEDURE usp_TotalFreightStats (@fromDate datetime, @toDate datetime ) AS BEGIN select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName END - or a UDF =========== CREATE FUNCTION TotalFreightStats (@fromDate datetime, @toDate datetime ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN declare @fromDate1 dateTime declare @toDate1 dateTime INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName RETURN END And you could have bound your report to this stored procedure or UDF - on open this report would have requested from/to dates in parameters input dialog. I assume you use mdb and then you can: - create table to keep parameters ================================== CREATE TABLE [dbo].[ParametersForUDFs] ( [fromDate] [datetime] NULL , [toDate] [datetime] NULL ) ON [PRIMARY] GO - populate this table with parameters' values (clear in first) ============================================================= delete from ParametersForUDFs insert into ParametersForUDFs (fromDate, toDate) values ('1996-07-04', '1996-07-12') - create UDF ============ CREATE FUNCTION TotalFreightStats1 ( ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between (select top 1 fromDate from ParametersForUDFs) and (select top 1 toDate from ParametersForUDFs) Group by ShipName RETURN END - use UDF in view ================== CREATE VIEW dbo.vw_TotalFreightStats1 AS SELECT ShipperName, TotalFreight FROM dbo.TotalFreightStats1() TotalFreightStats1 ++++++++++++++++++++++++++++++++++++ - link view to MS Access mdb ++++++++++++++++++++++++++++++++++++ Of course that approach will not work well in multi-user environment if different users will need different from/to dates... -- Shamil ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Thu Feb 22 18:15:48 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 22 Feb 2007 16:15:48 -0800 Subject: [AccessD] Feeding parameters to SQL Server In-Reply-To: <7B1961ED924D1A459E378C9B1BB22B4C068DECCF@natexch.jenkens.com> Message-ID: <0JDW002AN3A9F541@l-daemon> Hi Debbie: Have you not found that pass-through queries that do a single record update or delete are not adversely affected but when you tried selecting 5000 records, for a report....that different story.... the pipe is just too narrow. Add a heavy multi-user environment, month-end and suddenly things start to unhinge. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Elam, Debbie Sent: Thursday, February 22, 2007 7:25 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server I have had good luck using pass through queries and parameters by using a bit of code I got off of Microsoft's site to dynamically create pass through queries. Instead of writing parameters into the query itself, I create the query with the parameters I want. Saves a lot of headache and pushes more processing off on the server. http://support.microsoft.com/kb/112108 Debbie -----Original Message----- From: Jim Lawrence [mailto:accessd at shaw.ca] Sent: Wednesday, February 21, 2007 4:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Eric My recommendation is do not use pass-through queries. They are more problem than they are worth as they seem to be an easy quick fix to start with but end up being slow, awkward and unstable. I believe this set of processes was designed to punish newbie developers scaring them off weaning from a MDB BE. MS should have simply remove that whole gambit of functions from Access and never bring them up again in polite company. Now if you want my unvarnished opinion on the subject don't be afraid to ask. :-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Wednesday, February 21, 2007 1:47 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Unfortunately dynamic parameters and sql pass-thru queries don't play well in Access. http://www.utteraccess.com/forums/showflat.php?Board=82&Number=1361479 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, February 21, 2007 1:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Hello John, Let's suppose you use NorthWind sample database and you have to calculate total Freight for a Shipper given from/to dates. I assume you do not use ADPs - if you have used them then you could have created - a stored procedure: ===================== CREATE PROCEDURE usp_TotalFreightStats (@fromDate datetime, @toDate datetime ) AS BEGIN select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName END - or a UDF =========== CREATE FUNCTION TotalFreightStats (@fromDate datetime, @toDate datetime ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN declare @fromDate1 dateTime declare @toDate1 dateTime INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName RETURN END And you could have bound your report to this stored procedure or UDF - on open this report would have requested from/to dates in parameters input dialog. I assume you use mdb and then you can: - create table to keep parameters ================================== CREATE TABLE [dbo].[ParametersForUDFs] ( [fromDate] [datetime] NULL , [toDate] [datetime] NULL ) ON [PRIMARY] GO - populate this table with parameters' values (clear in first) ============================================================= delete from ParametersForUDFs insert into ParametersForUDFs (fromDate, toDate) values ('1996-07-04', '1996-07-12') - create UDF ============ CREATE FUNCTION TotalFreightStats1 ( ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between (select top 1 fromDate from ParametersForUDFs) and (select top 1 toDate from ParametersForUDFs) Group by ShipName RETURN END - use UDF in view ================== CREATE VIEW dbo.vw_TotalFreightStats1 AS SELECT ShipperName, TotalFreight FROM dbo.TotalFreightStats1() TotalFreightStats1 ++++++++++++++++++++++++++++++++++++ - link view to MS Access mdb ++++++++++++++++++++++++++++++++++++ Of course that approach will not work well in multi-user environment if different users will need different from/to dates... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, February 21, 2007 10:11 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Well... I dunno. I have a view in SQL Server returning 8 fields, 6K records (currently), completely unfiltered, all records in the table. I pull that linked table into a query in order to do some preliminary filtering - check date between a pair of dates and check number not null. I want the view in sql server to do the "check number not null" for me, and I know how to do that. I want the SQL Server to take a pair of parameters - "From Date" and "To Date" and return only those records. If I could do this, then I could get rid of my "base query" in access which applies these filters, reduce traffic across the wire etc. However even if I do this, the view is not being requested by a form in XP (for example) where some magical thing happens in Access to pass the parameters off to SQL Server. The linked view will be used immediately in another query which joins this view to other tables (on one field - BEID - in the view) in order to build up a set of data for a report. So the "parent" query that is using the view will have to "feed" the parameters to the linked view. Being a nubee to SQL Server I do not even know if what I am attempting to do is possible. I cannot wrap my mind around how a query that is using a view can know that the view needs parameters, and if it did, what to feed it. If it is possible, I have never done so obviously, so I don't even have the basics of what to set in Access to do the parameter passing. John W. Colby Colby Consulting www.ColbyConsulting.com <<< tail skipped >>> -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/694 - Release Date: 2/20/2007 1:44 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Thu Feb 22 18:32:11 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 22 Feb 2007 16:32:11 -0800 Subject: [AccessD] Feeding parameters to SQL Server In-Reply-To: <8301C8A868251E4C8ECD3D4FFEA40F8A2584B980@cpixchng-1.cpiqpc.net> Message-ID: <0JDW002FJ41KE610@l-daemon> Hi Rusty: Here is am old example of how to run any size report, using ADO. http://www.databaseadvisors.com/newsletters/newsletter112003/0311UnboundRepo rts.asp All the code is explained and sample database is provided. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rusty.hammond at cpiqpc.com Sent: Thursday, February 22, 2007 6:54 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Feeding parameters to SQL Server Shamil, Your earlier example of using a parameter table is interesting but you mention it doesn't work well in a multi-user environment, how would you get around the multi-user issue? Jim/Eric, I dynamically update the pass-through query as the link Eric gave suggests but I haven't run into any stability issues using this method (that I'm aware of). Have you seen any specific issues that you can point me to that I need to look out for? I'm using this in an app for our company that gathers data from other databases to produce invoices to our clients. This app is used by most of our more than 400 in-house users. Granted they won't all be running the reports that use the pass-through. Thanks, Rusty -----Original Message----- From: Shamil Salakhetdinov [mailto:shamil at users.mns.ru] Sent: Wednesday, February 21, 2007 5:41 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server No problem, Eric, I anyway planned to write a short note here on ADODB and parameterized stored procedures... BTW, for parameterized UDFs ADODB can be also used but the issue with access permissions usually forces to use stored procedures - I mean UDF can't be used with a table if a user does not have access permissions for this table. As for stored procedure - it can be used with a table even if a user does not have access permission to this table - user should only have a permission to execute this stored procedure. Here is an example with parameterized UDF and ADODB - parameters's values in this sample are hardcoded in select expression: Dim cnn As ADODB.Connection Dim strCnn As String Dim cmd As ADODB.Command Dim prm As ADODB.Parameter Dim rst As ADODB.Recordset strCnn = "Provider=sqloledb;Data Source=(local);Initial Catalog=Northwind;Integrated Security=SSPI;" Set cnn = New ADODB.Connection cnn.Open strCnn cnn.CursorLocation = adUseClient Set cmd = New ADODB.Command cmd.CommandType = adCmdText cmd.CommandText = "select * from TotalFreightStats( _ '1996-07-02', '1996-07-12')" cmd.ActiveConnection = cnn.ConnectionString Set rst = cmd.Execute While Not rst.EOF Debug.Print rst(0).Value & " - " & rst(1).Value rst.MoveNext Wend cnn.Close -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Thursday, February 22, 2007 1:51 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Uh..hmmm...Jim and Shamil...I was replying to Colby's question on passing parameters to SQL which was the original thread. Someone suggested pass-thru queries somewhere in the thread. I just happened to reply to the last message in the thread that came from Shamil. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, February 21, 2007 2:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Eric My recommendation is do not use pass-through queries. They are more problem than they are worth as they seem to be an easy quick fix to start with but end up being slow, awkward and unstable. I believe this set of processes was designed to punish newbie developers scaring them off weaning from a MDB BE. MS should have simply remove that whole gambit of functions from Access and never bring them up again in polite company. Now if you want my unvarnished opinion on the subject don't be afraid to ask. :-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Wednesday, February 21, 2007 1:47 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Unfortunately dynamic parameters and sql pass-thru queries don't play well in Access. http://www.utteraccess.com/forums/showflat.php?Board=82&Number=1361479 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, February 21, 2007 1:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Hello John, Let's suppose you use NorthWind sample database and you have to calculate total Freight for a Shipper given from/to dates. I assume you do not use ADPs - if you have used them then you could have created - a stored procedure: ===================== CREATE PROCEDURE usp_TotalFreightStats (@fromDate datetime, @toDate datetime ) AS BEGIN select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName END - or a UDF =========== CREATE FUNCTION TotalFreightStats (@fromDate datetime, @toDate datetime ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN declare @fromDate1 dateTime declare @toDate1 dateTime INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName RETURN END And you could have bound your report to this stored procedure or UDF - on open this report would have requested from/to dates in parameters input dialog. I assume you use mdb and then you can: - create table to keep parameters ================================== CREATE TABLE [dbo].[ParametersForUDFs] ( [fromDate] [datetime] NULL , [toDate] [datetime] NULL ) ON [PRIMARY] GO - populate this table with parameters' values (clear in first) ============================================================= delete from ParametersForUDFs insert into ParametersForUDFs (fromDate, toDate) values ('1996-07-04', '1996-07-12') - create UDF ============ CREATE FUNCTION TotalFreightStats1 ( ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between (select top 1 fromDate from ParametersForUDFs) and (select top 1 toDate from ParametersForUDFs) Group by ShipName RETURN END - use UDF in view ================== CREATE VIEW dbo.vw_TotalFreightStats1 AS SELECT ShipperName, TotalFreight FROM dbo.TotalFreightStats1() TotalFreightStats1 ++++++++++++++++++++++++++++++++++++ - link view to MS Access mdb ++++++++++++++++++++++++++++++++++++ Of course that approach will not work well in multi-user environment if different users will need different from/to dates... -- Shamil ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ebarro at verizon.net Thu Feb 22 18:32:01 2007 From: ebarro at verizon.net (Eric Barro) Date: Thu, 22 Feb 2007 16:32:01 -0800 Subject: [AccessD] Feeding parameters to SQL Server In-Reply-To: <0JDW002AN3A9F541@l-daemon> Message-ID: <0JDW000O345C3XC1@vms044.mailsrvcs.net> Try adding (nolock) to your SELECT statements. SELECT field FROM table a (nolock) INNER JOIN table2 b (nolock) ON a.field1 = b.field1 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, February 22, 2007 4:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Hi Debbie: Have you not found that pass-through queries that do a single record update or delete are not adversely affected but when you tried selecting 5000 records, for a report....that different story.... the pipe is just too narrow. Add a heavy multi-user environment, month-end and suddenly things start to unhinge. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Elam, Debbie Sent: Thursday, February 22, 2007 7:25 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server I have had good luck using pass through queries and parameters by using a bit of code I got off of Microsoft's site to dynamically create pass through queries. Instead of writing parameters into the query itself, I create the query with the parameters I want. Saves a lot of headache and pushes more processing off on the server. http://support.microsoft.com/kb/112108 Debbie -----Original Message----- From: Jim Lawrence [mailto:accessd at shaw.ca] Sent: Wednesday, February 21, 2007 4:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Eric My recommendation is do not use pass-through queries. They are more problem than they are worth as they seem to be an easy quick fix to start with but end up being slow, awkward and unstable. I believe this set of processes was designed to punish newbie developers scaring them off weaning from a MDB BE. MS should have simply remove that whole gambit of functions from Access and never bring them up again in polite company. Now if you want my unvarnished opinion on the subject don't be afraid to ask. :-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Wednesday, February 21, 2007 1:47 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Unfortunately dynamic parameters and sql pass-thru queries don't play well in Access. http://www.utteraccess.com/forums/showflat.php?Board=82&Number=1361479 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, February 21, 2007 1:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Hello John, Let's suppose you use NorthWind sample database and you have to calculate total Freight for a Shipper given from/to dates. I assume you do not use ADPs - if you have used them then you could have created - a stored procedure: ===================== CREATE PROCEDURE usp_TotalFreightStats (@fromDate datetime, @toDate datetime ) AS BEGIN select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName END - or a UDF =========== CREATE FUNCTION TotalFreightStats (@fromDate datetime, @toDate datetime ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN declare @fromDate1 dateTime declare @toDate1 dateTime INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName RETURN END And you could have bound your report to this stored procedure or UDF - on open this report would have requested from/to dates in parameters input dialog. I assume you use mdb and then you can: - create table to keep parameters ================================== CREATE TABLE [dbo].[ParametersForUDFs] ( [fromDate] [datetime] NULL , [toDate] [datetime] NULL ) ON [PRIMARY] GO - populate this table with parameters' values (clear in first) ============================================================= delete from ParametersForUDFs insert into ParametersForUDFs (fromDate, toDate) values ('1996-07-04', '1996-07-12') - create UDF ============ CREATE FUNCTION TotalFreightStats1 ( ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between (select top 1 fromDate from ParametersForUDFs) and (select top 1 toDate from ParametersForUDFs) Group by ShipName RETURN END - use UDF in view ================== CREATE VIEW dbo.vw_TotalFreightStats1 AS SELECT ShipperName, TotalFreight FROM dbo.TotalFreightStats1() TotalFreightStats1 ++++++++++++++++++++++++++++++++++++ - link view to MS Access mdb ++++++++++++++++++++++++++++++++++++ Of course that approach will not work well in multi-user environment if different users will need different from/to dates... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, February 21, 2007 10:11 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Well... I dunno. I have a view in SQL Server returning 8 fields, 6K records (currently), completely unfiltered, all records in the table. I pull that linked table into a query in order to do some preliminary filtering - check date between a pair of dates and check number not null. I want the view in sql server to do the "check number not null" for me, and I know how to do that. I want the SQL Server to take a pair of parameters - "From Date" and "To Date" and return only those records. If I could do this, then I could get rid of my "base query" in access which applies these filters, reduce traffic across the wire etc. However even if I do this, the view is not being requested by a form in XP (for example) where some magical thing happens in Access to pass the parameters off to SQL Server. The linked view will be used immediately in another query which joins this view to other tables (on one field - BEID - in the view) in order to build up a set of data for a report. So the "parent" query that is using the view will have to "feed" the parameters to the linked view. Being a nubee to SQL Server I do not even know if what I am attempting to do is possible. I cannot wrap my mind around how a query that is using a view can know that the view needs parameters, and if it did, what to feed it. If it is possible, I have never done so obviously, so I don't even have the basics of what to set in Access to do the parameter passing. John W. Colby Colby Consulting www.ColbyConsulting.com <<< tail skipped >>> -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/694 - Release Date: 2/20/2007 1:44 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/697 - Release Date: 2/22/2007 11:55 AM From accessd at shaw.ca Thu Feb 22 18:43:43 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 22 Feb 2007 16:43:43 -0800 Subject: [AccessD] Feeding parameters to SQL Server In-Reply-To: <0JDW000O345C3XC1@vms044.mailsrvcs.net> Message-ID: <0JDW002XN4KSA240@l-daemon> Hi Eric: Now that is very interesting. My goodness I learn something every day. Any samples or descriptions on websites? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Thursday, February 22, 2007 4:32 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Try adding (nolock) to your SELECT statements. SELECT field FROM table a (nolock) INNER JOIN table2 b (nolock) ON a.field1 = b.field1 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, February 22, 2007 4:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Hi Debbie: Have you not found that pass-through queries that do a single record update or delete are not adversely affected but when you tried selecting 5000 records, for a report....that different story.... the pipe is just too narrow. Add a heavy multi-user environment, month-end and suddenly things start to unhinge. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Elam, Debbie Sent: Thursday, February 22, 2007 7:25 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server I have had good luck using pass through queries and parameters by using a bit of code I got off of Microsoft's site to dynamically create pass through queries. Instead of writing parameters into the query itself, I create the query with the parameters I want. Saves a lot of headache and pushes more processing off on the server. http://support.microsoft.com/kb/112108 Debbie -----Original Message----- From: Jim Lawrence [mailto:accessd at shaw.ca] Sent: Wednesday, February 21, 2007 4:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Eric My recommendation is do not use pass-through queries. They are more problem than they are worth as they seem to be an easy quick fix to start with but end up being slow, awkward and unstable. I believe this set of processes was designed to punish newbie developers scaring them off weaning from a MDB BE. MS should have simply remove that whole gambit of functions from Access and never bring them up again in polite company. Now if you want my unvarnished opinion on the subject don't be afraid to ask. :-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Wednesday, February 21, 2007 1:47 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Unfortunately dynamic parameters and sql pass-thru queries don't play well in Access. http://www.utteraccess.com/forums/showflat.php?Board=82&Number=1361479 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, February 21, 2007 1:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Hello John, Let's suppose you use NorthWind sample database and you have to calculate total Freight for a Shipper given from/to dates. I assume you do not use ADPs - if you have used them then you could have created - a stored procedure: ===================== CREATE PROCEDURE usp_TotalFreightStats (@fromDate datetime, @toDate datetime ) AS BEGIN select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName END - or a UDF =========== CREATE FUNCTION TotalFreightStats (@fromDate datetime, @toDate datetime ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN declare @fromDate1 dateTime declare @toDate1 dateTime INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName RETURN END And you could have bound your report to this stored procedure or UDF - on open this report would have requested from/to dates in parameters input dialog. I assume you use mdb and then you can: - create table to keep parameters ================================== CREATE TABLE [dbo].[ParametersForUDFs] ( [fromDate] [datetime] NULL , [toDate] [datetime] NULL ) ON [PRIMARY] GO - populate this table with parameters' values (clear in first) ============================================================= delete from ParametersForUDFs insert into ParametersForUDFs (fromDate, toDate) values ('1996-07-04', '1996-07-12') - create UDF ============ CREATE FUNCTION TotalFreightStats1 ( ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between (select top 1 fromDate from ParametersForUDFs) and (select top 1 toDate from ParametersForUDFs) Group by ShipName RETURN END - use UDF in view ================== CREATE VIEW dbo.vw_TotalFreightStats1 AS SELECT ShipperName, TotalFreight FROM dbo.TotalFreightStats1() TotalFreightStats1 ++++++++++++++++++++++++++++++++++++ - link view to MS Access mdb ++++++++++++++++++++++++++++++++++++ Of course that approach will not work well in multi-user environment if different users will need different from/to dates... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, February 21, 2007 10:11 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Well... I dunno. I have a view in SQL Server returning 8 fields, 6K records (currently), completely unfiltered, all records in the table. I pull that linked table into a query in order to do some preliminary filtering - check date between a pair of dates and check number not null. I want the view in sql server to do the "check number not null" for me, and I know how to do that. I want the SQL Server to take a pair of parameters - "From Date" and "To Date" and return only those records. If I could do this, then I could get rid of my "base query" in access which applies these filters, reduce traffic across the wire etc. However even if I do this, the view is not being requested by a form in XP (for example) where some magical thing happens in Access to pass the parameters off to SQL Server. The linked view will be used immediately in another query which joins this view to other tables (on one field - BEID - in the view) in order to build up a set of data for a report. So the "parent" query that is using the view will have to "feed" the parameters to the linked view. Being a nubee to SQL Server I do not even know if what I am attempting to do is possible. I cannot wrap my mind around how a query that is using a view can know that the view needs parameters, and if it did, what to feed it. If it is possible, I have never done so obviously, so I don't even have the basics of what to set in Access to do the parameter passing. John W. Colby Colby Consulting www.ColbyConsulting.com <<< tail skipped >>> -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/694 - Release Date: 2/20/2007 1:44 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/697 - Release Date: 2/22/2007 11:55 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ebarro at verizon.net Thu Feb 22 21:42:27 2007 From: ebarro at verizon.net (Eric Barro) Date: Thu, 22 Feb 2007 19:42:27 -0800 Subject: [AccessD] Feeding parameters to SQL Server In-Reply-To: <0JDW002XN4KSA240@l-daemon> Message-ID: <0JDW00JSWCZ8LCW5@vms048.mailsrvcs.net> Jim, Here's a good article... http://www.sql-server-performance.com/lock_contention_tamed_article.asp Eric -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, February 22, 2007 4:44 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Hi Eric: Now that is very interesting. My goodness I learn something every day. Any samples or descriptions on websites? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Thursday, February 22, 2007 4:32 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Try adding (nolock) to your SELECT statements. SELECT field FROM table a (nolock) INNER JOIN table2 b (nolock) ON a.field1 = b.field1 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, February 22, 2007 4:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Hi Debbie: Have you not found that pass-through queries that do a single record update or delete are not adversely affected but when you tried selecting 5000 records, for a report....that different story.... the pipe is just too narrow. Add a heavy multi-user environment, month-end and suddenly things start to unhinge. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Elam, Debbie Sent: Thursday, February 22, 2007 7:25 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server I have had good luck using pass through queries and parameters by using a bit of code I got off of Microsoft's site to dynamically create pass through queries. Instead of writing parameters into the query itself, I create the query with the parameters I want. Saves a lot of headache and pushes more processing off on the server. http://support.microsoft.com/kb/112108 Debbie -----Original Message----- From: Jim Lawrence [mailto:accessd at shaw.ca] Sent: Wednesday, February 21, 2007 4:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Eric My recommendation is do not use pass-through queries. They are more problem than they are worth as they seem to be an easy quick fix to start with but end up being slow, awkward and unstable. I believe this set of processes was designed to punish newbie developers scaring them off weaning from a MDB BE. MS should have simply remove that whole gambit of functions from Access and never bring them up again in polite company. Now if you want my unvarnished opinion on the subject don't be afraid to ask. :-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Wednesday, February 21, 2007 1:47 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Unfortunately dynamic parameters and sql pass-thru queries don't play well in Access. http://www.utteraccess.com/forums/showflat.php?Board=82&Number=1361479 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, February 21, 2007 1:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Hello John, Let's suppose you use NorthWind sample database and you have to calculate total Freight for a Shipper given from/to dates. I assume you do not use ADPs - if you have used them then you could have created - a stored procedure: ===================== CREATE PROCEDURE usp_TotalFreightStats (@fromDate datetime, @toDate datetime ) AS BEGIN select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName END - or a UDF =========== CREATE FUNCTION TotalFreightStats (@fromDate datetime, @toDate datetime ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN declare @fromDate1 dateTime declare @toDate1 dateTime INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName RETURN END And you could have bound your report to this stored procedure or UDF - on open this report would have requested from/to dates in parameters input dialog. I assume you use mdb and then you can: - create table to keep parameters ================================== CREATE TABLE [dbo].[ParametersForUDFs] ( [fromDate] [datetime] NULL , [toDate] [datetime] NULL ) ON [PRIMARY] GO - populate this table with parameters' values (clear in first) ============================================================= delete from ParametersForUDFs insert into ParametersForUDFs (fromDate, toDate) values ('1996-07-04', '1996-07-12') - create UDF ============ CREATE FUNCTION TotalFreightStats1 ( ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between (select top 1 fromDate from ParametersForUDFs) and (select top 1 toDate from ParametersForUDFs) Group by ShipName RETURN END - use UDF in view ================== CREATE VIEW dbo.vw_TotalFreightStats1 AS SELECT ShipperName, TotalFreight FROM dbo.TotalFreightStats1() TotalFreightStats1 ++++++++++++++++++++++++++++++++++++ - link view to MS Access mdb ++++++++++++++++++++++++++++++++++++ Of course that approach will not work well in multi-user environment if different users will need different from/to dates... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, February 21, 2007 10:11 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Well... I dunno. I have a view in SQL Server returning 8 fields, 6K records (currently), completely unfiltered, all records in the table. I pull that linked table into a query in order to do some preliminary filtering - check date between a pair of dates and check number not null. I want the view in sql server to do the "check number not null" for me, and I know how to do that. I want the SQL Server to take a pair of parameters - "From Date" and "To Date" and return only those records. If I could do this, then I could get rid of my "base query" in access which applies these filters, reduce traffic across the wire etc. However even if I do this, the view is not being requested by a form in XP (for example) where some magical thing happens in Access to pass the parameters off to SQL Server. The linked view will be used immediately in another query which joins this view to other tables (on one field - BEID - in the view) in order to build up a set of data for a report. So the "parent" query that is using the view will have to "feed" the parameters to the linked view. Being a nubee to SQL Server I do not even know if what I am attempting to do is possible. I cannot wrap my mind around how a query that is using a view can know that the view needs parameters, and if it did, what to feed it. If it is possible, I have never done so obviously, so I don't even have the basics of what to set in Access to do the parameter passing. John W. Colby Colby Consulting www.ColbyConsulting.com <<< tail skipped >>> -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/694 - Release Date: 2/20/2007 1:44 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/697 - Release Date: 2/22/2007 11:55 AM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/697 - Release Date: 2/22/2007 11:55 AM From DElam at jenkens.com Fri Feb 23 08:50:08 2007 From: DElam at jenkens.com (Elam, Debbie) Date: Fri, 23 Feb 2007 08:50:08 -0600 Subject: [AccessD] Feeding parameters to SQL Server Message-ID: <7B1961ED924D1A459E378C9B1BB22B4C068DECDF@natexch.jenkens.com> Perhaps it is an environment issue. I have not had a performance hit off even large queries for reports. Debbie -----Original Message----- From: Jim Lawrence [mailto:accessd at shaw.ca] Sent: Thursday, February 22, 2007 6:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Hi Debbie: Have you not found that pass-through queries that do a single record update or delete are not adversely affected but when you tried selecting 5000 records, for a report....that different story.... the pipe is just too narrow. Add a heavy multi-user environment, month-end and suddenly things start to unhinge. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Elam, Debbie Sent: Thursday, February 22, 2007 7:25 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server I have had good luck using pass through queries and parameters by using a bit of code I got off of Microsoft's site to dynamically create pass through queries. Instead of writing parameters into the query itself, I create the query with the parameters I want. Saves a lot of headache and pushes more processing off on the server. http://support.microsoft.com/kb/112108 Debbie -----Original Message----- From: Jim Lawrence [mailto:accessd at shaw.ca] Sent: Wednesday, February 21, 2007 4:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Eric My recommendation is do not use pass-through queries. They are more problem than they are worth as they seem to be an easy quick fix to start with but end up being slow, awkward and unstable. I believe this set of processes was designed to punish newbie developers scaring them off weaning from a MDB BE. MS should have simply remove that whole gambit of functions from Access and never bring them up again in polite company. Now if you want my unvarnished opinion on the subject don't be afraid to ask. :-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Wednesday, February 21, 2007 1:47 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Unfortunately dynamic parameters and sql pass-thru queries don't play well in Access. http://www.utteraccess.com/forums/showflat.php?Board=82&Number=1361479 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, February 21, 2007 1:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Hello John, Let's suppose you use NorthWind sample database and you have to calculate total Freight for a Shipper given from/to dates. I assume you do not use ADPs - if you have used them then you could have created - a stored procedure: ===================== CREATE PROCEDURE usp_TotalFreightStats (@fromDate datetime, @toDate datetime ) AS BEGIN select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName END - or a UDF =========== CREATE FUNCTION TotalFreightStats (@fromDate datetime, @toDate datetime ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN declare @fromDate1 dateTime declare @toDate1 dateTime INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName RETURN END And you could have bound your report to this stored procedure or UDF - on open this report would have requested from/to dates in parameters input dialog. I assume you use mdb and then you can: - create table to keep parameters ================================== CREATE TABLE [dbo].[ParametersForUDFs] ( [fromDate] [datetime] NULL , [toDate] [datetime] NULL ) ON [PRIMARY] GO - populate this table with parameters' values (clear in first) ============================================================= delete from ParametersForUDFs insert into ParametersForUDFs (fromDate, toDate) values ('1996-07-04', '1996-07-12') - create UDF ============ CREATE FUNCTION TotalFreightStats1 ( ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between (select top 1 fromDate from ParametersForUDFs) and (select top 1 toDate from ParametersForUDFs) Group by ShipName RETURN END - use UDF in view ================== CREATE VIEW dbo.vw_TotalFreightStats1 AS SELECT ShipperName, TotalFreight FROM dbo.TotalFreightStats1() TotalFreightStats1 ++++++++++++++++++++++++++++++++++++ - link view to MS Access mdb ++++++++++++++++++++++++++++++++++++ Of course that approach will not work well in multi-user environment if different users will need different from/to dates... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, February 21, 2007 10:11 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Well... I dunno. I have a view in SQL Server returning 8 fields, 6K records (currently), completely unfiltered, all records in the table. I pull that linked table into a query in order to do some preliminary filtering - check date between a pair of dates and check number not null. I want the view in sql server to do the "check number not null" for me, and I know how to do that. I want the SQL Server to take a pair of parameters - "From Date" and "To Date" and return only those records. If I could do this, then I could get rid of my "base query" in access which applies these filters, reduce traffic across the wire etc. However even if I do this, the view is not being requested by a form in XP (for example) where some magical thing happens in Access to pass the parameters off to SQL Server. The linked view will be used immediately in another query which joins this view to other tables (on one field - BEID - in the view) in order to build up a set of data for a report. So the "parent" query that is using the view will have to "feed" the parameters to the linked view. Being a nubee to SQL Server I do not even know if what I am attempting to do is possible. I cannot wrap my mind around how a query that is using a view can know that the view needs parameters, and if it did, what to feed it. If it is possible, I have never done so obviously, so I don't even have the basics of what to set in Access to do the parameter passing. John W. Colby Colby Consulting www.ColbyConsulting.com <<< tail skipped >>> -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/694 - Release Date: 2/20/2007 1:44 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Kwilliamson at RTKL.com Fri Feb 23 12:41:47 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Fri, 23 Feb 2007 13:41:47 -0500 Subject: [AccessD] Crosstab Question Message-ID: Hi all, I have a query with "[Enter Year for Report]" and "[Enter Month for Report]" as criteria for the Year, and Month of the financial data. This works fine, for prompting the user for the info, to filter the data. However, I have also created a crosstab query, based on this query. When I try to run the crosstab, it tells me that the jet database engine does not recognize [Enter Year for Report] as a valid field name. ?? Regards, Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com From Kwilliamson at RTKL.com Fri Feb 23 12:50:39 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Fri, 23 Feb 2007 13:50:39 -0500 Subject: [AccessD] Crosstab Question In-Reply-To: References: Message-ID: Oops. Nevermind. :) Discovered adding parameters in my crosstab properties. Unless someone else has other advice. Regards, Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Friday, February 23, 2007 1:42 PM To: Access Developers discussion and problem solving Subject: [AccessD] Crosstab Question Hi all, I have a query with "[Enter Year for Report]" and "[Enter Month for Report]" as criteria for the Year, and Month of the financial data. This works fine, for prompting the user for the info, to filter the data. However, I have also created a crosstab query, based on this query. When I try to run the crosstab, it tells me that the jet database engine does not recognize [Enter Year for Report] as a valid field name. ?? Regards, Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Fri Feb 23 12:51:04 2007 From: artful at rogers.com (artful at rogers.com) Date: Fri, 23 Feb 2007 10:51:04 -0800 (PST) Subject: [AccessD] Crosstab Question Message-ID: <323437.20485.qm@web88202.mail.re2.yahoo.com> You have to base the crosstab on the result query from the first operation, so that the parameters are gone, and only their result set left. Then your problem will disappear. Arthur Fuller Technical Writer, Data Modeler, SQL Sensei Artful Databases Organization www.artfulsoftware.com ----- Original Message ---- From: Keith Williamson To: Access Developers discussion and problem solving Sent: Friday, February 23, 2007 1:41:47 PM Subject: [AccessD] Crosstab Question Hi all, I have a query with "[Enter Year for Report]" and "[Enter Month for Report]" as criteria for the Year, and Month of the financial data. This works fine, for prompting the user for the info, to filter the data. However, I have also created a crosstab query, based on this query. When I try to run the crosstab, it tells me that the jet database engine does not recognize [Enter Year for Report] as a valid field name. ?? Regards, Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at setel.com Fri Feb 23 13:34:11 2007 From: ssharkins at setel.com (Susan Harkins) Date: Fri, 23 Feb 2007 14:34:11 -0500 Subject: [AccessD] Checkbox contents disappear in Word Message-ID: <006901c75781$99049300$aeb82ad1@SUSANONE> I published an Access report to Word and the checkbox contents disappeared. I don't remember this happening before -- can't Word handle checkmarks? Susan H. From accessd at shaw.ca Fri Feb 23 14:45:20 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 23 Feb 2007 12:45:20 -0800 Subject: [AccessD] Feeding parameters to SQL Server In-Reply-To: <7B1961ED924D1A459E378C9B1BB22B4C068DECDF@natexch.jenkens.com> Message-ID: <0JDX002U2O7E6X20@l-daemon> Hi Debbie: I had these problems with Access 2000; maybe in later version this has been resolved. At the time before migrating the clients from a pass-through model it was taking over 30 minutes to produce. After the re-design month end reports would start in less than a few minutes... After that I have never looked back. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Elam, Debbie Sent: Friday, February 23, 2007 6:50 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Perhaps it is an environment issue. I have not had a performance hit off even large queries for reports. Debbie -----Original Message----- From: Jim Lawrence [mailto:accessd at shaw.ca] Sent: Thursday, February 22, 2007 6:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Hi Debbie: Have you not found that pass-through queries that do a single record update or delete are not adversely affected but when you tried selecting 5000 records, for a report....that different story.... the pipe is just too narrow. Add a heavy multi-user environment, month-end and suddenly things start to unhinge. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Elam, Debbie Sent: Thursday, February 22, 2007 7:25 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server I have had good luck using pass through queries and parameters by using a bit of code I got off of Microsoft's site to dynamically create pass through queries. Instead of writing parameters into the query itself, I create the query with the parameters I want. Saves a lot of headache and pushes more processing off on the server. http://support.microsoft.com/kb/112108 Debbie -----Original Message----- From: Jim Lawrence [mailto:accessd at shaw.ca] Sent: Wednesday, February 21, 2007 4:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Eric My recommendation is do not use pass-through queries. They are more problem than they are worth as they seem to be an easy quick fix to start with but end up being slow, awkward and unstable. I believe this set of processes was designed to punish newbie developers scaring them off weaning from a MDB BE. MS should have simply remove that whole gambit of functions from Access and never bring them up again in polite company. Now if you want my unvarnished opinion on the subject don't be afraid to ask. :-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Wednesday, February 21, 2007 1:47 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Unfortunately dynamic parameters and sql pass-thru queries don't play well in Access. http://www.utteraccess.com/forums/showflat.php?Board=82&Number=1361479 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, February 21, 2007 1:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Hello John, Let's suppose you use NorthWind sample database and you have to calculate total Freight for a Shipper given from/to dates. I assume you do not use ADPs - if you have used them then you could have created - a stored procedure: ===================== CREATE PROCEDURE usp_TotalFreightStats (@fromDate datetime, @toDate datetime ) AS BEGIN select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName END - or a UDF =========== CREATE FUNCTION TotalFreightStats (@fromDate datetime, @toDate datetime ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN declare @fromDate1 dateTime declare @toDate1 dateTime INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between @fromDate and @toDate Group by ShipName RETURN END And you could have bound your report to this stored procedure or UDF - on open this report would have requested from/to dates in parameters input dialog. I assume you use mdb and then you can: - create table to keep parameters ================================== CREATE TABLE [dbo].[ParametersForUDFs] ( [fromDate] [datetime] NULL , [toDate] [datetime] NULL ) ON [PRIMARY] GO - populate this table with parameters' values (clear in first) ============================================================= delete from ParametersForUDFs insert into ParametersForUDFs (fromDate, toDate) values ('1996-07-04', '1996-07-12') - create UDF ============ CREATE FUNCTION TotalFreightStats1 ( ) RETURNS @TotalFreightStatsTable TABLE ( ShipperName nvarchar(80), TotalFreight money ) AS BEGIN INSERT @TotalFreightStatsTable select ShipName, Sum(Freight) as FreightTotal from Orders where Orders.OrderDate between (select top 1 fromDate from ParametersForUDFs) and (select top 1 toDate from ParametersForUDFs) Group by ShipName RETURN END - use UDF in view ================== CREATE VIEW dbo.vw_TotalFreightStats1 AS SELECT ShipperName, TotalFreight FROM dbo.TotalFreightStats1() TotalFreightStats1 ++++++++++++++++++++++++++++++++++++ - link view to MS Access mdb ++++++++++++++++++++++++++++++++++++ Of course that approach will not work well in multi-user environment if different users will need different from/to dates... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, February 21, 2007 10:11 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feeding parameters to SQL Server Well... I dunno. I have a view in SQL Server returning 8 fields, 6K records (currently), completely unfiltered, all records in the table. I pull that linked table into a query in order to do some preliminary filtering - check date between a pair of dates and check number not null. I want the view in sql server to do the "check number not null" for me, and I know how to do that. I want the SQL Server to take a pair of parameters - "From Date" and "To Date" and return only those records. If I could do this, then I could get rid of my "base query" in access which applies these filters, reduce traffic across the wire etc. However even if I do this, the view is not being requested by a form in XP (for example) where some magical thing happens in Access to pass the parameters off to SQL Server. The linked view will be used immediately in another query which joins this view to other tables (on one field - BEID - in the view) in order to build up a set of data for a report. So the "parent" query that is using the view will have to "feed" the parameters to the linked view. Being a nubee to SQL Server I do not even know if what I am attempting to do is possible. I cannot wrap my mind around how a query that is using a view can know that the view needs parameters, and if it did, what to feed it. If it is possible, I have never done so obviously, so I don't even have the basics of what to set in Access to do the parameter passing. John W. Colby Colby Consulting www.ColbyConsulting.com <<< tail skipped >>> -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.18.3/694 - Release Date: 2/20/2007 1:44 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Fri Feb 23 21:03:21 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Sat, 24 Feb 2007 03:03:21 +0000 Subject: [AccessD] FW: Basic Question In-Reply-To: Message-ID: >From: "Mark A Matte" >Reply-To: Access Developers discussion and problem >solving >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] FW: Basic Question >Date: Thu, 22 Feb 2007 18:10:39 +0000 > >How do you put a set the BeforeUpdate to a function...I thought you could >either pick [Event Procedure] or the name of a macro? > >Thanks, > >Mark > > >>From: "Rocky Smolin at Beach Access Software" >>Reply-To: Access Developers discussion and problem >>solving >>To: >>Subject: [AccessD] FW: Basic Question >>Date: Thu, 22 Feb 2007 10:02:01 -0800 >> >>FYI - Here's the workaround he came up with >> >>Rocky >> >> >> _____ >> >>From: Mike Dwyer [mailto:mike at aesadvantage.net] >>Sent: Thursday, February 22, 2007 9:58 AM >>To: Rocky Smolin; bheygood at abestsystems.com; Dixon; Barry Hynum; >>Bob_Heygood; Doug Murphy; Ed Lance; Jackie Murphy; JKA Joe K Anderson >>Subject: RE: Basic Question >> >> >> >>Thanks, Rocky. >> >>My workaround seems to be nice and simple: I selected all 120 fields and >>in >>the Property Sheet I entered: "BeforeUpdate() = True" in the >>ValidationRule >>property. This will call the function and if it returns False, the >>validation rule will fail. Within the function I set the ValidationText >>to >>my error message and it works just fine. >> >> >> >> >> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com > >_________________________________________________________________ >Find what you need at prices you?ll love. Compare products and save at MSN? >Shopping. >http://shopping.msn.com/default/shp/?ptnrid=37,ptnrdata=24102&tcode=T001MSN20A0701 > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Refi Now: Rates near 39yr lows! $430,000 Mortgage for $1,399/mo - Calculate new payment http://www.lowermybills.com/lre/index.jsp?sourceid=lmb-9632-17727&moid=7581 From markamatte at hotmail.com Fri Feb 23 21:03:54 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Sat, 24 Feb 2007 03:03:54 +0000 Subject: [AccessD] FW: Basic Question In-Reply-To: Message-ID: How do you put a set the BeforeUpdate to a function...I thought you could either pick [Event Procedure] or the name of a macro? Thanks, Mark >From: "Mark A Matte" >Reply-To: Access Developers discussion and problem >solving >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] FW: Basic Question >Date: Thu, 22 Feb 2007 18:10:39 +0000 > >How do you put a set the BeforeUpdate to a function...I thought you could >either pick [Event Procedure] or the name of a macro? > >Thanks, > >Mark > > >>From: "Rocky Smolin at Beach Access Software" >>Reply-To: Access Developers discussion and problem >>solving >>To: >>Subject: [AccessD] FW: Basic Question >>Date: Thu, 22 Feb 2007 10:02:01 -0800 >> >>FYI - Here's the workaround he came up with >> >>Rocky >> >> >> _____ >> >>From: Mike Dwyer [mailto:mike at aesadvantage.net] >>Sent: Thursday, February 22, 2007 9:58 AM >>To: Rocky Smolin; bheygood at abestsystems.com; Dixon; Barry Hynum; >>Bob_Heygood; Doug Murphy; Ed Lance; Jackie Murphy; JKA Joe K Anderson >>Subject: RE: Basic Question >> >> >> >>Thanks, Rocky. >> >>My workaround seems to be nice and simple: I selected all 120 fields and >>in >>the Property Sheet I entered: "BeforeUpdate() = True" in the >>ValidationRule >>property. This will call the function and if it returns False, the >>validation rule will fail. Within the function I set the ValidationText >>to >>my error message and it works just fine. >> >> >> >> >> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com > >_________________________________________________________________ >Find what you need at prices you?ll love. Compare products and save at MSN? >Shopping. >http://shopping.msn.com/default/shp/?ptnrid=37,ptnrdata=24102&tcode=T001MSN20A0701 > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ With tax season right around the corner, make sure to follow these few simple tips. http://articles.moneycentral.msn.com/Taxes/PreparationTips/PreparationTips.aspx?icid=HMFebtagline From stuart at lexacorp.com.pg Fri Feb 23 23:20:07 2007 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 24 Feb 2007 15:20:07 +1000 Subject: [AccessD] FW: Basic Question In-Reply-To: References: , Message-ID: <45DFCB07.29198.2CBFD1D1@stuart.lexacorp.com.pg> Instead of "[Event Procedure]" or "MacroName", put "=myFunction()" in the property box. On 24 Feb 2007 at 3:03, Mark A Matte wrote: > How do you put a set the BeforeUpdate to a function...I thought you > could either pick [Event Procedure] or the name of a macro? > > Thanks, > > Mark > > > >From: "Mark A Matte" > >Reply-To: Access Developers discussion and problem > >solving > >To: accessd at databaseadvisors.com > >Subject: Re: [AccessD] FW: Basic Question > >Date: Thu, 22 Feb 2007 18:10:39 +0000 > > > >How do you put a set the BeforeUpdate to a function...I thought you could > >either pick [Event Procedure] or the name of a macro? > > > >Thanks, > > > >Mark > > > > > >>From: "Rocky Smolin at Beach Access Software" > >>Reply-To: Access Developers discussion and problem > >>solving To: > >>Subject: [AccessD] FW: Basic Question Date: Thu, 22 Feb 2007 10:02:01 > >>-0800 > >> > >>FYI - Here's the workaround he came up with > >> > >>Rocky > >> > >> > >> _____ > >> > >>From: Mike Dwyer [mailto:mike at aesadvantage.net] > >>Sent: Thursday, February 22, 2007 9:58 AM > >>To: Rocky Smolin; bheygood at abestsystems.com; Dixon; Barry Hynum; > >>Bob_Heygood; Doug Murphy; Ed Lance; Jackie Murphy; JKA Joe K Anderson > >>Subject: RE: Basic Question > >> > >> > >> > >>Thanks, Rocky. > >> > >>My workaround seems to be nice and simple: I selected all 120 fields and > >>in the Property Sheet I entered: "BeforeUpdate() = True" in the > >>ValidationRule property. This will call the function and if it returns > >>False, the validation rule will fail. Within the function I set the > >>ValidationText to my error message and it works just fine. > >> > >> > >> > >> > >> > >>-- > >>AccessD mailing list > >>AccessD at databaseadvisors.com > >>http://databaseadvisors.com/mailman/listinfo/accessd > >>Website: http://www.databaseadvisors.com > > > >_________________________________________________________________ > >Find what you need at prices you?ll love. Compare products and save at MSN? > > Shopping. > >http://shopping.msn.com/default/shp/?ptnrid=37,ptnrdata=24102&tcode=T001MSN > >20A0701 > > > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > _________________________________________________________________ > With tax season right around the corner, make sure to follow these few > simple tips. > http://articles.moneycentral.msn.com/Taxes/PreparationTips/PreparationTips.a > spx?icid=HMFebtagline > > -- Stuart From viner at EUnet.yu Mon Feb 26 08:02:33 2007 From: viner at EUnet.yu (Ervin Brindza) Date: Mon, 26 Feb 2007 15:02:33 +0100 Subject: [AccessD] VBE Express videos Message-ID: <042901c759ae$c6504780$0100a8c0@RazvojErvin> I'm lurking in my personal archives and found a John W. Colby's email message about VBE Express Videos. But, unfortunately, the url isn' available ;0( The url is http://lab.msdn.microsoft.com/express/beginner/ Does anybody know where can I find those videos? Many thanks in advance, Ervin Brindza From rockysmolin at bchacc.com Mon Feb 26 10:39:07 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Mon, 26 Feb 2007 08:39:07 -0800 Subject: [AccessD] You canceled the previous operation (but I didn't) Message-ID: <005b01c759c4$a2ab0ed0$0201a8c0@HAL9005> Dear List: Can anyone see why I should get an error "2001 - you cancelled the previous operation" on the statement Me.Bookmark = Me.RecordsetClone.Bookmark in the following? Me.RecordsetClone.FindFirst "[PartNumber] = '" & Me.cboPartsList.Value & "'" MsgBox Me.RecordsetClone.NoMatch If Me.RecordsetClone.NoMatch = True Then MsgboxUni Me.hWnd, TranslateMsgbox("PartNumberNotFound"), , vbExclamation DoCmd.GoToRecord , , acFirst Else Me.Bookmark = Me.RecordsetClone.Bookmark 'Me.cmdExitDemandSide.SetFocus 'cboPartsList.Visible = False End If Interestingly, if I hit debug to the error message (and it opens the code page with that statement highlighted) and I pressF5, it carries on just fine. MTIA, Rocky From Gustav at cactus.dk Mon Feb 26 10:53:37 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 26 Feb 2007 17:53:37 +0100 Subject: [AccessD] You canceled the previous operation (but I didn't) Message-ID: Hi Rocky Try with: If Me.RecordsetClone.NoMatch = True Then MsgboxUni Me.hWnd, TranslateMsgbox("PartNumberNotFound"), , vbExclamation Me.RecordsetClone.MoveFirst End If Me.Bookmark = Me.RecordsetClone.Bookmark 'Me.cmdExitDemandSide.SetFocus 'cboPartsList.Visible = False Also, you should assign RecordsetClone to a Recordset and then manipulate that. /gustav >>> rockysmolin at bchacc.com 26-02-2007 17:39:07 >>> Dear List: Can anyone see why I should get an error "2001 - you cancelled the previous operation" on the statement Me.Bookmark = Me.RecordsetClone.Bookmark in the following? Me.RecordsetClone.FindFirst "[PartNumber] = '" & Me.cboPartsList.Value & "'" MsgBox Me.RecordsetClone.NoMatch If Me.RecordsetClone.NoMatch = True Then MsgboxUni Me.hWnd, TranslateMsgbox("PartNumberNotFound"), , vbExclamation DoCmd.GoToRecord , , acFirst Else Me.Bookmark = Me.RecordsetClone.Bookmark 'Me.cmdExitDemandSide.SetFocus 'cboPartsList.Visible = False End If Interestingly, if I hit debug to the error message (and it opens the code page with that statement highlighted) and I pressF5, it carries on just fine. MTIA, Rocky From rockysmolin at bchacc.com Mon Feb 26 11:18:12 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Mon, 26 Feb 2007 09:18:12 -0800 Subject: [AccessD] You canceled the previous operation (but I didn't) In-Reply-To: Message-ID: <006901c759ca$18bddb70$0201a8c0@HAL9005> Gustav: Thanks for your reply. I tried substituting your code but got the same result. This is a bound form and I'm trying to go to the record selected in the combo box. As I noted, if I debug and then press F5 it carries on successfully. Is perhaps that a clue? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, February 26, 2007 8:54 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] You canceled the previous operation (but I didn't) Hi Rocky Try with: If Me.RecordsetClone.NoMatch = True Then MsgboxUni Me.hWnd, TranslateMsgbox("PartNumberNotFound"), , vbExclamation Me.RecordsetClone.MoveFirst End If Me.Bookmark = Me.RecordsetClone.Bookmark 'Me.cmdExitDemandSide.SetFocus 'cboPartsList.Visible = False Also, you should assign RecordsetClone to a Recordset and then manipulate that. /gustav >>> rockysmolin at bchacc.com 26-02-2007 17:39:07 >>> Dear List: Can anyone see why I should get an error "2001 - you cancelled the previous operation" on the statement Me.Bookmark = Me.RecordsetClone.Bookmark in the following? Me.RecordsetClone.FindFirst "[PartNumber] = '" & Me.cboPartsList.Value & "'" MsgBox Me.RecordsetClone.NoMatch If Me.RecordsetClone.NoMatch = True Then MsgboxUni Me.hWnd, TranslateMsgbox("PartNumberNotFound"), , vbExclamation DoCmd.GoToRecord , , acFirst Else Me.Bookmark = Me.RecordsetClone.Bookmark 'Me.cmdExitDemandSide.SetFocus 'cboPartsList.Visible = False End If Interestingly, if I hit debug to the error message (and it opens the code page with that statement highlighted) and I pressF5, it carries on just fine. MTIA, Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.4/702 - Release Date: 2/25/2007 3:16 PM From JHewson at karta.com Mon Feb 26 11:20:25 2007 From: JHewson at karta.com (Jim Hewson) Date: Mon, 26 Feb 2007 11:20:25 -0600 Subject: [AccessD] You canceled the previous operation (but I didn't) References: <006901c759ca$18bddb70$0201a8c0@HAL9005> Message-ID: <9C382E065F54AE48BC3AA7925DCBB01C04F20C6E@karta-exc-int.Karta.com> Try removing the quotes around your cboPartslist. If it's text it might work as is but if the Parts list is numeric it could give you that error. Jim jhewson at karta.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, February 26, 2007 11:18 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] You canceled the previous operation (but I didn't) Gustav: Thanks for your reply. I tried substituting your code but got the same result. This is a bound form and I'm trying to go to the record selected in the combo box. As I noted, if I debug and then press F5 it carries on successfully. Is perhaps that a clue? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, February 26, 2007 8:54 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] You canceled the previous operation (but I didn't) Hi Rocky Try with: If Me.RecordsetClone.NoMatch = True Then MsgboxUni Me.hWnd, TranslateMsgbox("PartNumberNotFound"), , vbExclamation Me.RecordsetClone.MoveFirst End If Me.Bookmark = Me.RecordsetClone.Bookmark 'Me.cmdExitDemandSide.SetFocus 'cboPartsList.Visible = False Also, you should assign RecordsetClone to a Recordset and then manipulate that. /gustav >>> rockysmolin at bchacc.com 26-02-2007 17:39:07 >>> Dear List: Can anyone see why I should get an error "2001 - you cancelled the previous operation" on the statement Me.Bookmark = Me.RecordsetClone.Bookmark in the following? Me.RecordsetClone.FindFirst "[PartNumber] = '" & Me.cboPartsList.Value & "'" MsgBox Me.RecordsetClone.NoMatch If Me.RecordsetClone.NoMatch = True Then MsgboxUni Me.hWnd, TranslateMsgbox("PartNumberNotFound"), , vbExclamation DoCmd.GoToRecord , , acFirst Else Me.Bookmark = Me.RecordsetClone.Bookmark 'Me.cmdExitDemandSide.SetFocus 'cboPartsList.Visible = False End If Interestingly, if I hit debug to the error message (and it opens the code page with that statement highlighted) and I pressF5, it carries on just fine. MTIA, Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.4/702 - Release Date: 2/25/2007 3:16 PM -- 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 Feb 26 11:18:35 2007 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Mon, 26 Feb 2007 11:18:35 -0600 Subject: [AccessD] Checkbox contents disappear in Word Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DE2E8@corp-es01.fleetpride.com> Select the checkbox, right click, select properties and you should see check/no check property. HTH Jim Hale -----Original Message----- From: Susan Harkins [mailto:ssharkins at setel.com] Sent: Friday, February 23, 2007 1:34 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Checkbox contents disappear in Word I published an Access report to Word and the checkbox contents disappeared. I don't remember this happening before -- can't Word handle checkmarks? Susan H. -- 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 rockysmolin at bchacc.com Mon Feb 26 11:26:14 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Mon, 26 Feb 2007 09:26:14 -0800 Subject: [AccessD] You canceled the previous operation (but I didn't) In-Reply-To: Message-ID: <006a01c759cb$37fd5190$0201a8c0@HAL9005> Gustav: Figured it out. I had some old code in there governing the Got Focus and Lost Focus events on the combo box. Removed that and the problem went away. Thanks Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, February 26, 2007 8:54 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] You canceled the previous operation (but I didn't) Hi Rocky Try with: If Me.RecordsetClone.NoMatch = True Then MsgboxUni Me.hWnd, TranslateMsgbox("PartNumberNotFound"), , vbExclamation Me.RecordsetClone.MoveFirst End If Me.Bookmark = Me.RecordsetClone.Bookmark 'Me.cmdExitDemandSide.SetFocus 'cboPartsList.Visible = False Also, you should assign RecordsetClone to a Recordset and then manipulate that. /gustav >>> rockysmolin at bchacc.com 26-02-2007 17:39:07 >>> Dear List: Can anyone see why I should get an error "2001 - you cancelled the previous operation" on the statement Me.Bookmark = Me.RecordsetClone.Bookmark in the following? Me.RecordsetClone.FindFirst "[PartNumber] = '" & Me.cboPartsList.Value & "'" MsgBox Me.RecordsetClone.NoMatch If Me.RecordsetClone.NoMatch = True Then MsgboxUni Me.hWnd, TranslateMsgbox("PartNumberNotFound"), , vbExclamation DoCmd.GoToRecord , , acFirst Else Me.Bookmark = Me.RecordsetClone.Bookmark 'Me.cmdExitDemandSide.SetFocus 'cboPartsList.Visible = False End If Interestingly, if I hit debug to the error message (and it opens the code page with that statement highlighted) and I pressF5, it carries on just fine. MTIA, Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.4/702 - Release Date: 2/25/2007 3:16 PM From mwp.reid at qub.ac.uk Mon Feb 26 11:44:23 2007 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Mon, 26 Feb 2007 17:44:23 -0000 Subject: [AccessD] OT Gustav References: Message-ID: Gustav Can you contact me of list. martinreid at gmail.com Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Gustav Brock Sent: Mon 26/02/2007 16:53 To: accessd at databaseadvisors.com Subject: Re: [AccessD] You canceled the previous operation (but I didn't) Hi Rocky Try with: If Me.RecordsetClone.NoMatch = True Then MsgboxUni Me.hWnd, TranslateMsgbox("PartNumberNotFound"), , vbExclamation Me.RecordsetClone.MoveFirst End If Me.Bookmark = Me.RecordsetClone.Bookmark 'Me.cmdExitDemandSide.SetFocus 'cboPartsList.Visible = False Also, you should assign RecordsetClone to a Recordset and then manipulate that. /gustav >>> rockysmolin at bchacc.com 26-02-2007 17:39:07 >>> Dear List: Can anyone see why I should get an error "2001 - you cancelled the previous operation" on the statement Me.Bookmark = Me.RecordsetClone.Bookmark in the following? Me.RecordsetClone.FindFirst "[PartNumber] = '" & Me.cboPartsList.Value & "'" MsgBox Me.RecordsetClone.NoMatch If Me.RecordsetClone.NoMatch = True Then MsgboxUni Me.hWnd, TranslateMsgbox("PartNumberNotFound"), , vbExclamation DoCmd.GoToRecord , , acFirst Else Me.Bookmark = Me.RecordsetClone.Bookmark 'Me.cmdExitDemandSide.SetFocus 'cboPartsList.Visible = False End If Interestingly, if I hit debug to the error message (and it opens the code page with that statement highlighted) and I pressF5, it carries on just fine. MTIA, Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at setel.com Mon Feb 26 11:50:41 2007 From: ssharkins at setel.com (Susan Harkins) Date: Mon, 26 Feb 2007 12:50:41 -0500 Subject: [AccessD] Checkbox contents disappear in Word In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB67727DE2E8@corp-es01.fleetpride.com> Message-ID: <003f01c759ce$a22f6aa0$b1b82ad1@SUSANONE> Can't find anything like that Jim. Susan H. Select the checkbox, right click, select properties and you should see check/no check property. HTH From rl_stewart at highstream.net Mon Feb 26 12:28:04 2007 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Mon, 26 Feb 2007 12:28:04 -0600 Subject: [AccessD] VBE Express videos In-Reply-To: References: Message-ID: <200702261832.l1QIW6i30257@databaseadvisors.com> http://msdn.microsoft.com/vstudio/express/vb/learning/ At 12:00 PM 2/26/2007, you wrote: >Date: Mon, 26 Feb 2007 15:02:33 +0100 >From: "Ervin Brindza" >Subject: [AccessD] VBE Express videos >To: >Message-ID: <042901c759ae$c6504780$0100a8c0 at RazvojErvin> >Content-Type: text/plain; charset="iso-8859-1" > >I'm lurking in my personal archives and found a John W. Colby's >email message about VBE Express Videos. But, >unfortunately, the url isn' available ;0( The url is >http://lab.msdn.microsoft.com/express/beginner/ > >Does anybody know where can I find those videos? >Many thanks in advance, > Ervin Brindza From martyconnelly at shaw.ca Mon Feb 26 12:44:54 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 26 Feb 2007 10:44:54 -0800 Subject: [AccessD] VBE Express videos In-Reply-To: <042901c759ae$c6504780$0100a8c0@RazvojErvin> References: <042901c759ae$c6504780$0100a8c0@RazvojErvin> Message-ID: <45E32AA6.7040203@shaw.ca> Try here http://msdn.microsoft.com/vstudio/express/vb/learning I found it through a new MSDN labs Search site for Microsoft Info MSDN/TechNet Publishing System (MTPS). http://lab.msdn.microsoft.com/search/refinement.aspx? You can write your own search code pointing at the MSDN web service http://msdn.microsoft.com/msdnmag/issues/06/10/InsideMSDN/default.aspx Here are some dotNet training CD's available for cost of shipping http://www.appdev.com/demofamily.asp?catalog%5Fname=AppDevCatalog&category%5Fname=ALLDemo Ervin Brindza wrote: >I'm lurking in my personal archives and found a John W. Colby's email message about VBE Express Videos. But, >unfortunately, the url isn' available ;0( The url is >http://lab.msdn.microsoft.com/express/beginner/ > >Does anybody know where can I find those videos? >Many thanks in advance, > Ervin Brindza > > > -- Marty Connelly Victoria, B.C. Canada From rockysmolin at bchacc.com Mon Feb 26 16:42:25 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Mon, 26 Feb 2007 14:42:25 -0800 Subject: [AccessD] Increment or replace? Message-ID: <011b01c759f7$6328a230$0201a8c0@HAL9005> Dear List: I have a text box on a sub form bound to a numeric field which contains, obviously, a numeric quantity. If the user inputs a value in this box preceded by a '+' or '-' sign, I want to add or subtract the value entered from the current value. If they enter a value without a preceding sign, I want to replace old the value with the input value. I can obviously see if they entered a minus sign because the number is negative. But how can I know if they preceded the input value with a '+'? MTIA Rocky From kp at sdsonline.net Mon Feb 26 16:56:27 2007 From: kp at sdsonline.net (Kath Pelletti) Date: Tue, 27 Feb 2007 09:56:27 +1100 Subject: [AccessD] Increment or replace? References: <011b01c759f7$6328a230$0201a8c0@HAL9005> Message-ID: <001b01c759f9$5a12aa90$6401a8c0@office> Rocky - couldn't you assume the + sign as the default? Only subtract IF they enter a minus sign? Kath ----- Original Message ----- From: Rocky Smolin at Beach Access Software To: 'Access Developers discussion and problem solving' Sent: Tuesday, February 27, 2007 9:42 AM Subject: [AccessD] Increment or replace? Dear List: I have a text box on a sub form bound to a numeric field which contains, obviously, a numeric quantity. If the user inputs a value in this box preceded by a '+' or '-' sign, I want to add or subtract the value entered from the current value. If they enter a value without a preceding sign, I want to replace old the value with the input value. I can obviously see if they entered a minus sign because the number is negative. But how can I know if they preceded the input value with a '+'? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Mon Feb 26 18:04:19 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Mon, 26 Feb 2007 16:04:19 -0800 Subject: [AccessD] Increment or replace? In-Reply-To: <001b01c759f9$5a12aa90$6401a8c0@office> Message-ID: <012c01c75a02$d4218730$0201a8c0@HAL9005> Kath: I need them to be able to either add to or replace the value. This is a continuous form, BTW. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Monday, February 26, 2007 2:56 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Increment or replace? Rocky - couldn't you assume the + sign as the default? Only subtract IF they enter a minus sign? Kath ----- Original Message ----- From: Rocky Smolin at Beach Access Software To: 'Access Developers discussion and problem solving' Sent: Tuesday, February 27, 2007 9:42 AM Subject: [AccessD] Increment or replace? Dear List: I have a text box on a sub form bound to a numeric field which contains, obviously, a numeric quantity. If the user inputs a value in this box preceded by a '+' or '-' sign, I want to add or subtract the value entered from the current value. If they enter a value without a preceding sign, I want to replace old the value with the input value. I can obviously see if they entered a minus sign because the number is negative. But how can I know if they preceded the input value with a '+'? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.4/702 - Release Date: 2/25/2007 3:16 PM From artful at rogers.com Mon Feb 26 18:11:03 2007 From: artful at rogers.com (artful at rogers.com) Date: Mon, 26 Feb 2007 16:11:03 -0800 (PST) Subject: [AccessD] Increment or replace? Message-ID: <20070227001103.86172.qmail@web88204.mail.re2.yahoo.com> I did this a different way a while back. I'll see if I can find the code, but it wasn't difficult. I trapped for the + and - keys and did the increment/decrement myself in code. Arthur ----- Original Message ---- From: Rocky Smolin at Beach Access Software To: Access Developers discussion and problem solving Sent: Monday, February 26, 2007 5:42:25 PM Subject: [AccessD] Increment or replace? Dear List: I have a text box on a sub form bound to a numeric field which contains, obviously, a numeric quantity. If the user inputs a value in this box preceded by a '+' or '-' sign, I want to add or subtract the value entered from the current value. If they enter a value without a preceding sign, I want to replace old the value with the input value. I can obviously see if they entered a minus sign because the number is negative. But how can I know if they preceded the input value with a '+'? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Mon Feb 26 18:13:14 2007 From: wdhindman at dejpolsystems.com (William Hindman) Date: Mon, 26 Feb 2007 19:13:14 -0500 Subject: [AccessD] Increment or replace? References: <011b01c759f7$6328a230$0201a8c0@HAL9005> Message-ID: <004501c75a04$1362f590$9258eb44@50NM721> ...I use a small popup calculator tied to the text box ...load the bound value into the calculator and allow the user to get to where he wants using the basic calculator functions ...when they hit enter, insert its current value into the record ...eliminates a lot of user data entry errors. William Hindman ----- Original Message ----- From: "Rocky Smolin at Beach Access Software" To: "'Access Developers discussion and problem solving'" Sent: Monday, February 26, 2007 5:42 PM Subject: [AccessD] Increment or replace? > Dear List: > > I have a text box on a sub form bound to a numeric field which contains, > obviously, a numeric quantity. > > If the user inputs a value in this box preceded by a '+' or '-' sign, I > want > to add or subtract the value entered from the current value. If they > enter > a value without a preceding sign, I want to replace old the value with the > input value. > > I can obviously see if they entered a minus sign because the number is > negative. But how can I know if they preceded the input value with a '+'? > > MTIA > > Rocky > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From kp at sdsonline.net Mon Feb 26 18:28:05 2007 From: kp at sdsonline.net (Kath Pelletti) Date: Tue, 27 Feb 2007 11:28:05 +1100 Subject: [AccessD] Increment or replace? References: <012c01c75a02$d4218730$0201a8c0@HAL9005> Message-ID: <003a01c75a06$269aeee0$6401a8c0@office> Rocky - it sounds a little strange to me that they can add to a field by overtyping it with an additional amount (maybe I have misunderstood). Do you mean that the field might hold eg. 100 and if they type +10 then the result should be 110? If they just type 10 then it should replace the 100 with the 10? If that's right then I think I would separate the fields and have the additional amounts (plus or minus) in a sep. text box. They could still replace the entire amount by overwriting the original amount. Kath ----- Original Message ----- From: Rocky Smolin at Beach Access Software To: 'Access Developers discussion and problem solving' Sent: Tuesday, February 27, 2007 11:04 AM Subject: Re: [AccessD] Increment or replace? Kath: I need them to be able to either add to or replace the value. This is a continuous form, BTW. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Monday, February 26, 2007 2:56 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Increment or replace? Rocky - couldn't you assume the + sign as the default? Only subtract IF they enter a minus sign? Kath ----- Original Message ----- From: Rocky Smolin at Beach Access Software To: 'Access Developers discussion and problem solving' Sent: Tuesday, February 27, 2007 9:42 AM Subject: [AccessD] Increment or replace? Dear List: I have a text box on a sub form bound to a numeric field which contains, obviously, a numeric quantity. If the user inputs a value in this box preceded by a '+' or '-' sign, I want to add or subtract the value entered from the current value. If they enter a value without a preceding sign, I want to replace old the value with the input value. I can obviously see if they entered a minus sign because the number is negative. But how can I know if they preceded the input value with a '+'? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.4/702 - Release Date: 2/25/2007 3:16 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pcs at azizaz.com Mon Feb 26 23:45:06 2007 From: pcs at azizaz.com (pcs at azizaz.com) Date: Tue, 27 Feb 2007 15:45:06 +1000 Subject: [AccessD] Memo fields; Access and SQL Server Message-ID: Hi, I am currently grinding my teeth on SQL Server 2005 after having upsized an Access FE BE mdb. Only upsized the BE and am now using ODBC to link tables in SQL Server back into the Access FE. A few questions: 1) Access Memo fields have been upsized to the ntext() data type. However, the online documentation for SQL 2005 recommends using the nvarchar(max) rather than ntext() saying that ntext() will be dropped in future SQL release. Can I safely ignore this for the time being, or should I change all ntext() to the nvarchar(max) ? 2) In the old Access FE BE world I could safely update a memofield with a SQL update using the following code snippet: Set Wsp = DBEngine.Workspaces(0) Wsp.BeginTrans On Error GoTo ErrorTransaction Set Db = CurrentDb Db.Execute strSQL, dbFailOnError Wsp.CommitTrans This dao code does not work well in general with SQL Server tables as the backend, but needs to have added the option dbSeeChanges like this: Set Wsp = DBEngine.Workspaces(0) Wsp.BeginTrans On Error GoTo ErrorTransaction Set db = CurrentDb db.Execute strSQL, dbFailOnError + dbSeeChanges Wsp.CommitTrans But using this dao code snippet will NOT!! update a memo field, SQL Server truncates around the 256 character. The strSQL string being built in the code contains ALL the memofield text. Creating this ado code snippet and using a stored procedure does the trick: Dim cn As New ADODB.Connection Dim lngRecsAffected As Long With cn .Provider = "Microsoft.Access.OLEDB.10.0" .Properties("Data Provider").Value = "SQLOLEDB" .Properties("Data Source").Value = CurrentSQLOLEDB_DataSource .Properties("User ID").Value = CurrentODBC_UID .Properties("Password").Value = CurrentODBC_PWD .Properties("Initial Catalog").Value = CurrentSQLOLEDB_InitialCatalog .Open End With On Error GoTo ErrorTransaction cn.BeginTrans cn.Execute strParameterString, lngRecsAffected, adExecuteNoRecords Debug.Print lngRecsAffected cn.CommitTrans (The connection properties are set using some static function calls, the strParameterString contains the stored procedure name and all the parameter values including the Memo text; the adExecuteNoRecords is apparently important for procedures that do not return records; the lngRecsAffected is optional and is given the value of -1 when running the execute command) This procedure runs ok and updates the ntext() / memo fields fine. Any text with single quotes should have the single quotes doubled in order for the sp to run though. So the string variable that holds the memo is massaged with a strMemo = replace(strMemo,"'", "''") And date fields should be parsed in a strings like 'yyyy-mm- dd'.... Now my questions from this experience are: Is this the best way to do an update of a record (unbound form), i.e. stored procedure and adodb connection? Apart from not handling memo fields are there other areas where dao code will fall short when working with odbc linked SQL server tables? Currently I am ending up with code that is a mix of dao and ado - adodb being using wherever we see the code fall over and not behave properly. regards borge From shamil at users.mns.ru Tue Feb 27 10:13:01 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Tue, 27 Feb 2007 19:13:01 +0300 Subject: [AccessD] OT: Correct bureaucratic English for some private docs... Message-ID: <003a01c75a8a$27c66a90$6401a8c0@nant> Hi All, I'm sorry for off-topic but I need to make here quick translation in English of several private docs from the following list: - Birth Certificate - Marriage Certificate - Real Estate Property Ownership Certificate - Bank Account Balance - Employment Information I need them for tomorrow morning and therefore I can't use services of translation companies here, which are closed currently because it's evening here in St.Petersburg, Russia... Question: is there somewhere on Internet a good source where I can find such docs samples/templates and especially bureaucratic English lexicon? Thank you. -- Shamil From cfoust at infostatsystems.com Tue Feb 27 10:29:03 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 27 Feb 2007 08:29:03 -0800 Subject: [AccessD] Checkbox contents disappear in Word In-Reply-To: <006901c75781$99049300$aeb82ad1@SUSANONE> References: <006901c75781$99049300$aeb82ad1@SUSANONE> Message-ID: Publishing a report to Word puts it in rtf format, which doesn't properly handle the graphics in Access reports. This has been that way forever. One of the reasons I always hated the Publish to Word "feature". Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Friday, February 23, 2007 11:34 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Checkbox contents disappear in Word I published an Access report to Word and the checkbox contents disappeared. I don't remember this happening before -- can't Word handle checkmarks? Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at setel.com Tue Feb 27 10:48:49 2007 From: ssharkins at setel.com (Susan Harkins) Date: Tue, 27 Feb 2007 11:48:49 -0500 Subject: [AccessD] Checkbox contents disappear in Word In-Reply-To: Message-ID: <006601c75a8f$285327f0$6334fad1@SUSANONE> Thanks Charlotte -- of course you're right. It just surprised me at first. I changed the Check Box format at the table level to Text Box. Interestingly, the bound report still displayed check box controls. I had to delete the original and replace them -- now it displays Yes and No. Not really what I wanted, but works. Susan H. Publishing a report to Word puts it in rtf format, which doesn't properly handle the graphics in Access reports. This has been that way forever. One of the reasons I always hated the Publish to Word "feature". From rockysmolin at bchacc.com Tue Feb 27 11:01:27 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Tue, 27 Feb 2007 09:01:27 -0800 Subject: [AccessD] Increment or replace? In-Reply-To: <003a01c75a06$269aeee0$6401a8c0@office> Message-ID: <000001c75a90$ec5ee160$0201a8c0@HAL9005> Well, I slept on it but it didn't do any good. It's JC's fault. This was working just fine as an unbound form :o) So I think for each field where I need this capability, I have to use a popup form triggered by the click event, collect the number from the user as text and process it. Any better ideas anyone? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Monday, February 26, 2007 4:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Increment or replace? Rocky - it sounds a little strange to me that they can add to a field by overtyping it with an additional amount (maybe I have misunderstood). Do you mean that the field might hold eg. 100 and if they type +10 then the result should be 110? If they just type 10 then it should replace the 100 with the 10? If that's right then I think I would separate the fields and have the additional amounts (plus or minus) in a sep. text box. They could still replace the entire amount by overwriting the original amount. Kath ----- Original Message ----- From: Rocky Smolin at Beach Access Software To: 'Access Developers discussion and problem solving' Sent: Tuesday, February 27, 2007 11:04 AM Subject: Re: [AccessD] Increment or replace? Kath: I need them to be able to either add to or replace the value. This is a continuous form, BTW. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Monday, February 26, 2007 2:56 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Increment or replace? Rocky - couldn't you assume the + sign as the default? Only subtract IF they enter a minus sign? Kath ----- Original Message ----- From: Rocky Smolin at Beach Access Software To: 'Access Developers discussion and problem solving' Sent: Tuesday, February 27, 2007 9:42 AM Subject: [AccessD] Increment or replace? Dear List: I have a text box on a sub form bound to a numeric field which contains, obviously, a numeric quantity. If the user inputs a value in this box preceded by a '+' or '-' sign, I want to add or subtract the value entered from the current value. If they enter a value without a preceding sign, I want to replace old the value with the input value. I can obviously see if they entered a minus sign because the number is negative. But how can I know if they preceded the input value with a '+'? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.4/702 - Release Date: 2/25/2007 3:16 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.4/702 - Release Date: 2/25/2007 3:16 PM From rockysmolin at bchacc.com Tue Feb 27 11:01:27 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Tue, 27 Feb 2007 09:01:27 -0800 Subject: [AccessD] OT: Correct bureaucratic English for some private docs... In-Reply-To: <003a01c75a8a$27c66a90$6401a8c0@nant> Message-ID: <000401c75a90$edecfb70$0201a8c0@HAL9005> Shamil: Max and I use freetranslation.com. I have also used babelfish: http://world.altavista.com/. And I have used http://www.worldlingo.com/en/products_services/worldlingo_translator.html for Chinese but looks good for other languages. If you can get a crude translation done on line, you could send it to me off line and I could polish it up for you. It's raining so I should be at my desk all day. :( Regards, Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Tuesday, February 27, 2007 8:13 AM To: 'Access-D' Subject: [AccessD] OT: Correct bureaucratic English for some private docs... Hi All, I'm sorry for off-topic but I need to make here quick translation in English of several private docs from the following list: - Birth Certificate - Marriage Certificate - Real Estate Property Ownership Certificate - Bank Account Balance - Employment Information I need them for tomorrow morning and therefore I can't use services of translation companies here, which are closed currently because it's evening here in St.Petersburg, Russia... Question: is there somewhere on Internet a good source where I can find such docs samples/templates and especially bureaucratic English lexicon? Thank you. -- Shamil -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.4/703 - Release Date: 2/26/2007 2:56 PM From rockysmolin at bchacc.com Tue Feb 27 11:05:06 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Tue, 27 Feb 2007 09:05:06 -0800 Subject: [AccessD] Checkbox contents disappear in Word In-Reply-To: <006601c75a8f$285327f0$6334fad1@SUSANONE> Message-ID: <000701c75a91$6f3fd300$0201a8c0@HAL9005> Susan: When I really needed it to say something besides yes and no, or 0 and -1, I put an unbound box on the report and set the value in the Format event of the detail section. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Tuesday, February 27, 2007 8:49 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Checkbox contents disappear in Word Thanks Charlotte -- of course you're right. It just surprised me at first. I changed the Check Box format at the table level to Text Box. Interestingly, the bound report still displayed check box controls. I had to delete the original and replace them -- now it displays Yes and No. Not really what I wanted, but works. Susan H. Publishing a report to Word puts it in rtf format, which doesn't properly handle the graphics in Access reports. This has been that way forever. One of the reasons I always hated the Publish to Word "feature". -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.4/703 - Release Date: 2/26/2007 2:56 PM From ssharkins at setel.com Tue Feb 27 11:12:21 2007 From: ssharkins at setel.com (Susan Harkins) Date: Tue, 27 Feb 2007 12:12:21 -0500 Subject: [AccessD] Checkbox contents disappear in Word In-Reply-To: <000701c75a91$6f3fd300$0201a8c0@HAL9005> Message-ID: <007a01c75a92$71ac22a0$6334fad1@SUSANONE> When I really needed it to say something besides yes and no, or 0 and -1, I put an unbound box on the report and set the value in the Format event of the detail section. =======The report will be published on the web, and I really wanted to display the checkmarks, but I didn't know how to do it and retain them all the way to the web. Susan H. From garykjos at gmail.com Tue Feb 27 11:55:56 2007 From: garykjos at gmail.com (Gary Kjos) Date: Tue, 27 Feb 2007 11:55:56 -0600 Subject: [AccessD] Increment or replace? In-Reply-To: <000001c75a90$ec5ee160$0201a8c0@HAL9005> References: <003a01c75a06$269aeee0$6401a8c0@office> <000001c75a90$ec5ee160$0201a8c0@HAL9005> Message-ID: You can't just do an instring function in the before update event for the control and if you find a + or - sign add the value and if you don't you replace it? Or even a left or a right to compare for a + or - sign? then do the corresponding math or replacement? GK On 2/27/07, Rocky Smolin at Beach Access Software wrote: > Well, I slept on it but it didn't do any good. It's JC's fault. This was > working just fine as an unbound form :o) > > So I think for each field where I need this capability, I have to use a > popup form triggered by the click event, collect the number from the user as > text and process it. > > Any better ideas anyone? > > TIA > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti > Sent: Monday, February 26, 2007 4:28 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Increment or replace? > > Rocky - it sounds a little strange to me that they can add to a field by > overtyping it with an additional amount (maybe I have misunderstood). Do you > mean that the field might hold eg. 100 and if they type +10 then the result > should be 110? If they just type 10 then it should replace the 100 with the > 10? > > If that's right then I think I would separate the fields and have the > additional amounts (plus or minus) in a sep. text box. They could still > replace the entire amount by overwriting the original amount. > > Kath > ----- Original Message ----- > From: Rocky Smolin at Beach Access Software > To: 'Access Developers discussion and problem solving' > Sent: Tuesday, February 27, 2007 11:04 AM > Subject: Re: [AccessD] Increment or replace? > > > Kath: > > I need them to be able to either add to or replace the value. This is a > continuous form, BTW. > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti > Sent: Monday, February 26, 2007 2:56 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Increment or replace? > > Rocky - couldn't you assume the + sign as the default? Only subtract IF > they > enter a minus sign? > > Kath > ----- Original Message ----- > From: Rocky Smolin at Beach Access Software > To: 'Access Developers discussion and problem solving' > Sent: Tuesday, February 27, 2007 9:42 AM > Subject: [AccessD] Increment or replace? > > > Dear List: > > I have a text box on a sub form bound to a numeric field which contains, > obviously, a numeric quantity. > > If the user inputs a value in this box preceded by a '+' or '-' sign, I > want > to add or subtract the value entered from the current value. If they > enter > a value without a preceding sign, I want to replace old the value with > the > input value. > > I can obviously see if they entered a minus sign because the number is > negative. But how can I know if they preceded the input value with a > '+'? > > MTIA > > Rocky > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.446 / Virus Database: 268.18.4/702 - Release Date: 2/25/2007 > 3:16 PM > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.446 / Virus Database: 268.18.4/702 - Release Date: 2/25/2007 > 3:16 PM > > > -- > 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 markamatte at hotmail.com Tue Feb 27 12:08:22 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 27 Feb 2007 18:08:22 +0000 Subject: [AccessD] Checkbox contents disappear in Word:SOLVED??? In-Reply-To: <007a01c75a92$71ac22a0$6334fad1@SUSANONE> Message-ID: I thought this should be possible...so I googled "unicode checkmark vba" and found an example...and it actually works and displays a check mark on .RTF Below are the steps and a link to the page where I found it. Good Luck... Mark A. Matte The steps Open the report in design view. If you already have a check box on your report, delete it. Add a text box for your Yes/No field. Set these properties: Control Source: Name of your yes/no field here. Font Name: WingDings Width: 0.18 in Type these characters into the Format property of the text box: Hold down the Alt key, and type 0168 on the numeric keypad (the character for False), semicolon (the separator between False and True formats), backslash (indicating the next character is a literal), Hold down the Alt key, and type 0254 on the numeric keypad (the character for True), You can now increase the Font Size, set the Fore Color or Back Color, and so on. The characters Select the characters from this list: Character Keypad number Description Alt+0254 Checked box Alt+0253 Crossed box Alt+0252 Check mark (unboxed) Alt+0251 Cross mark (unboxed) Alt+0168 Empty box http://www.everythingaccess.com/tutorials.asp?ID=Check-boxes-in-reports >From: "Susan Harkins" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] Checkbox contents disappear in Word >Date: Tue, 27 Feb 2007 12:12:21 -0500 > > >When I really needed it to say something besides yes and no, or 0 and -1, >I >put an unbound box on the report and set the value in the Format event of >the detail section. > >=======The report will be published on the web, and I really wanted to >display the checkmarks, but I didn't know how to do it and retain them all >the way to the web. > >Susan H. > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ The average US Credit Score is 675. The cost to see yours: $0 by Experian. http://www.freecreditreport.com/pm/default.aspx?sc=660600&bcd=EMAILFOOTERAVERAGE From markamatte at hotmail.com Tue Feb 27 12:13:57 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 27 Feb 2007 18:13:57 +0000 Subject: [AccessD] Max Date of Week In-Reply-To: Message-ID: Hello All, I can't seem to get the SQL for this...I have a date field...I need to group by week, but display the greatest date value in that week. Any ideas? Thanks, Mark A. Matte _________________________________________________________________ Don?t miss your chance to WIN 10 hours of private jet travel from Microsoft? Office Live http://clk.atdmt.com/MRT/go/mcrssaub0540002499mrt/direct/01/ From rockysmolin at bchacc.com Tue Feb 27 12:21:56 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Tue, 27 Feb 2007 10:21:56 -0800 Subject: [AccessD] Increment or replace? In-Reply-To: Message-ID: <002701c75a9c$29f3ccb0$0201a8c0@HAL9005> Gary: No, the "+" sign is not part of the input. Access is stripping it off. I entered +50 and in the before update event tried both MsgBox Left(Me.QuantityDue, 1) and MsgBox Left(Trim(str(Me.QuantityDue)), 1) and both printed 5. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Tuesday, February 27, 2007 9:56 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Increment or replace? You can't just do an instring function in the before update event for the control and if you find a + or - sign add the value and if you don't you replace it? Or even a left or a right to compare for a + or - sign? then do the corresponding math or replacement? GK On 2/27/07, Rocky Smolin at Beach Access Software wrote: > Well, I slept on it but it didn't do any good. It's JC's fault. This > was working just fine as an unbound form :o) > > So I think for each field where I need this capability, I have to use > a popup form triggered by the click event, collect the number from the > user as text and process it. > > Any better ideas anyone? > > TIA > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath > Pelletti > Sent: Monday, February 26, 2007 4:28 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Increment or replace? > > Rocky - it sounds a little strange to me that they can add to a field > by overtyping it with an additional amount (maybe I have > misunderstood). Do you mean that the field might hold eg. 100 and if > they type +10 then the result should be 110? If they just type 10 then > it should replace the 100 with the 10? > > If that's right then I think I would separate the fields and have the > additional amounts (plus or minus) in a sep. text box. They could > still replace the entire amount by overwriting the original amount. > > Kath > ----- Original Message ----- > From: Rocky Smolin at Beach Access Software > To: 'Access Developers discussion and problem solving' > Sent: Tuesday, February 27, 2007 11:04 AM > Subject: Re: [AccessD] Increment or replace? > > > Kath: > > I need them to be able to either add to or replace the value. This > is a continuous form, BTW. > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath > Pelletti > Sent: Monday, February 26, 2007 2:56 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Increment or replace? > > Rocky - couldn't you assume the + sign as the default? Only subtract > IF they enter a minus sign? > > Kath > ----- Original Message ----- > From: Rocky Smolin at Beach Access Software > To: 'Access Developers discussion and problem solving' > Sent: Tuesday, February 27, 2007 9:42 AM > Subject: [AccessD] Increment or replace? > > > Dear List: > > I have a text box on a sub form bound to a numeric field which contains, > obviously, a numeric quantity. > > If the user inputs a value in this box preceded by a '+' or '-' > sign, I want > to add or subtract the value entered from the current value. If > they enter > a value without a preceding sign, I want to replace old the value > with the > input value. > > I can obviously see if they entered a minus sign because the number is > negative. But how can I know if they preceded the input value with > a '+'? > > MTIA > > Rocky > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.446 / Virus Database: 268.18.4/702 - Release Date: > 2/25/2007 > 3:16 PM > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.446 / Virus Database: 268.18.4/702 - Release Date: > 2/25/2007 > 3:16 PM > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.4/703 - Release Date: 2/26/2007 2:56 PM From ssharkins at setel.com Tue Feb 27 12:26:01 2007 From: ssharkins at setel.com (Susan Harkins) Date: Tue, 27 Feb 2007 13:26:01 -0500 Subject: [AccessD] Checkbox contents disappear in Word:SOLVED??? In-Reply-To: Message-ID: <008a01c75a9c$bc7a2cf0$6334fad1@SUSANONE> Wow! Thanks! Susan H. I thought this should be possible...so I googled "unicode checkmark vba" and found an example...and it actually works and displays a check mark on .RTF From garykjos at gmail.com Tue Feb 27 12:30:59 2007 From: garykjos at gmail.com (Gary Kjos) Date: Tue, 27 Feb 2007 12:30:59 -0600 Subject: [AccessD] Increment or replace? In-Reply-To: <002701c75a9c$29f3ccb0$0201a8c0@HAL9005> References: <002701c75a9c$29f3ccb0$0201a8c0@HAL9005> Message-ID: You got some kind of input mask or format on it? GK On 2/27/07, Rocky Smolin at Beach Access Software wrote: > Gary: > > No, the "+" sign is not part of the input. Access is stripping it off. > > I entered +50 and in the before update event tried both > > MsgBox Left(Me.QuantityDue, 1) > > and > > MsgBox Left(Trim(str(Me.QuantityDue)), 1) > > and both printed 5. > > Rocky > > > > > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > Sent: Tuesday, February 27, 2007 9:56 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Increment or replace? > > You can't just do an instring function in the before update event for the > control and if you find a + or - sign add the value and if you don't you > replace it? > > Or even a left or a right to compare for a + or - sign? then do the > corresponding math or replacement? > > GK > > On 2/27/07, Rocky Smolin at Beach Access Software > wrote: > > Well, I slept on it but it didn't do any good. It's JC's fault. This > > was working just fine as an unbound form :o) > > > > So I think for each field where I need this capability, I have to use > > a popup form triggered by the click event, collect the number from the > > user as text and process it. > > > > Any better ideas anyone? > > > > TIA > > > > Rocky > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath > > Pelletti > > Sent: Monday, February 26, 2007 4:28 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Increment or replace? > > > > Rocky - it sounds a little strange to me that they can add to a field > > by overtyping it with an additional amount (maybe I have > > misunderstood). Do you mean that the field might hold eg. 100 and if > > they type +10 then the result should be 110? If they just type 10 then > > it should replace the 100 with the 10? > > > > If that's right then I think I would separate the fields and have the > > additional amounts (plus or minus) in a sep. text box. They could > > still replace the entire amount by overwriting the original amount. > > > > Kath > > ----- Original Message ----- > > From: Rocky Smolin at Beach Access Software > > To: 'Access Developers discussion and problem solving' > > Sent: Tuesday, February 27, 2007 11:04 AM > > Subject: Re: [AccessD] Increment or replace? > > > > > > Kath: > > > > I need them to be able to either add to or replace the value. This > > is a continuous form, BTW. > > > > Rocky > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath > > Pelletti > > Sent: Monday, February 26, 2007 2:56 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Increment or replace? > > > > Rocky - couldn't you assume the + sign as the default? Only subtract > > IF they enter a minus sign? > > > > Kath > > ----- Original Message ----- > > From: Rocky Smolin at Beach Access Software > > To: 'Access Developers discussion and problem solving' > > Sent: Tuesday, February 27, 2007 9:42 AM > > Subject: [AccessD] Increment or replace? > > > > > > Dear List: > > > > I have a text box on a sub form bound to a numeric field which > contains, > > obviously, a numeric quantity. > > > > If the user inputs a value in this box preceded by a '+' or '-' > > sign, I want > > to add or subtract the value entered from the current value. If > > they enter > > a value without a preceding sign, I want to replace old the value > > with the > > input value. > > > > I can obviously see if they entered a minus sign because the number is > > negative. But how can I know if they preceded the input value with > > a '+'? > > > > MTIA > > > > Rocky > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > No virus found in this incoming message. > > Checked by AVG Free Edition. > > Version: 7.5.446 / Virus Database: 268.18.4/702 - Release Date: > > 2/25/2007 > > 3:16 PM > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > No virus found in this incoming message. > > Checked by AVG Free Edition. > > Version: 7.5.446 / Virus Database: 268.18.4/702 - Release Date: > > 2/25/2007 > > 3:16 PM > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > -- > Gary Kjos > garykjos at gmail.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.446 / Virus Database: 268.18.4/703 - Release Date: 2/26/2007 > 2:56 PM > > > -- > 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 Gustav at cactus.dk Tue Feb 27 12:30:49 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 27 Feb 2007 19:30:49 +0100 Subject: [AccessD] Increment or replace? Message-ID: Hi Rocky You would need to use the Text property of the Textbox to get the entered string. Property Value is the store value. /gustav >>> rockysmolin at bchacc.com 27-02-2007 19:21:56 >>> Gary: No, the "+" sign is not part of the input. Access is stripping it off. I entered +50 and in the before update event tried both MsgBox Left(Me.QuantityDue, 1) and MsgBox Left(Trim(str(Me.QuantityDue)), 1) and both printed 5. Rocky From adtp at hotmail.com Tue Feb 27 12:39:21 2007 From: adtp at hotmail.com (A.D.TEJPAL) Date: Wed, 28 Feb 2007 00:09:21 +0530 Subject: [AccessD] Checkbox contents disappear in Word References: <007a01c75a92$71ac22a0$6334fad1@SUSANONE> Message-ID: If you are very keen to show a tick mark in word document (in lieu of Yes values in Access report), you can try the following course of action: In Access report, use a special character like ~ in lieu of Yes value. Send the report to Word. In Word, save the exported rtf file as doc file. Then run the subroutine P_InsertCheckMarks() as given below. The cursor can be anywhere in the document when the procedure is run. This will result in replacement of all instances of ~ by a tick mark (?) A.D.Tejpal --------------- =============================== Sub P_InsertCheckMarks() ' Replaces ~ by Check Marks With Selection.Find .Text = "~" .Replacement.Text = ChrW(8730) .Forward = True .Wrap = wdFindContinue End With Selection.Find.Execute Replace:=wdReplaceAll End Sub =============================== ----- Original Message ----- From: Susan Harkins To: 'Access Developers discussion and problem solving' Sent: Tuesday, February 27, 2007 22:42 Subject: Re: [AccessD] Checkbox contents disappear in Word When I really needed it to say something besides yes and no, or 0 and -1, I put an unbound box on the report and set the value in the Format event of the detail section. =======The report will be published on the web, and I really wanted to display the checkmarks, but I didn't know how to do it and retain them all the way to the web. Susan H. From rockysmolin at bchacc.com Tue Feb 27 12:46:39 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Tue, 27 Feb 2007 10:46:39 -0800 Subject: [AccessD] Increment or replace? In-Reply-To: Message-ID: <004901c75a9f$9e430240$0201a8c0@HAL9005> No input mask. It's bound to a numeric field. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Tuesday, February 27, 2007 10:31 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Increment or replace? You got some kind of input mask or format on it? GK On 2/27/07, Rocky Smolin at Beach Access Software wrote: > Gary: > > No, the "+" sign is not part of the input. Access is stripping it off. > > I entered +50 and in the before update event tried both > > MsgBox Left(Me.QuantityDue, 1) > > and > > MsgBox Left(Trim(str(Me.QuantityDue)), 1) > > and both printed 5. > > Rocky > > > > > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > Sent: Tuesday, February 27, 2007 9:56 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Increment or replace? > > You can't just do an instring function in the before update event for > the control and if you find a + or - sign add the value and if you > don't you replace it? > > Or even a left or a right to compare for a + or - sign? then do the > corresponding math or replacement? > > GK > > On 2/27/07, Rocky Smolin at Beach Access Software > > wrote: > > Well, I slept on it but it didn't do any good. It's JC's fault. > > This was working just fine as an unbound form :o) > > > > So I think for each field where I need this capability, I have to > > use a popup form triggered by the click event, collect the number > > from the user as text and process it. > > > > Any better ideas anyone? > > > > TIA > > > > Rocky > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath > > Pelletti > > Sent: Monday, February 26, 2007 4:28 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Increment or replace? > > > > Rocky - it sounds a little strange to me that they can add to a > > field by overtyping it with an additional amount (maybe I have > > misunderstood). Do you mean that the field might hold eg. 100 and if > > they type +10 then the result should be 110? If they just type 10 > > then it should replace the 100 with the 10? > > > > If that's right then I think I would separate the fields and have > > the additional amounts (plus or minus) in a sep. text box. They > > could still replace the entire amount by overwriting the original amount. > > > > Kath > > ----- Original Message ----- > > From: Rocky Smolin at Beach Access Software > > To: 'Access Developers discussion and problem solving' > > Sent: Tuesday, February 27, 2007 11:04 AM > > Subject: Re: [AccessD] Increment or replace? > > > > > > Kath: > > > > I need them to be able to either add to or replace the value. This > > is a continuous form, BTW. > > > > Rocky > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath > > Pelletti > > Sent: Monday, February 26, 2007 2:56 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Increment or replace? > > > > Rocky - couldn't you assume the + sign as the default? Only > > subtract IF they enter a minus sign? > > > > Kath > > ----- Original Message ----- > > From: Rocky Smolin at Beach Access Software > > To: 'Access Developers discussion and problem solving' > > Sent: Tuesday, February 27, 2007 9:42 AM > > Subject: [AccessD] Increment or replace? > > > > > > Dear List: > > > > I have a text box on a sub form bound to a numeric field which > contains, > > obviously, a numeric quantity. > > > > If the user inputs a value in this box preceded by a '+' or '-' > > sign, I want > > to add or subtract the value entered from the current value. If > > they enter > > a value without a preceding sign, I want to replace old the value > > with the > > input value. > > > > I can obviously see if they entered a minus sign because the number is > > negative. But how can I know if they preceded the input value > > with a '+'? > > > > MTIA > > > > Rocky > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > No virus found in this incoming message. > > Checked by AVG Free Edition. > > Version: 7.5.446 / Virus Database: 268.18.4/702 - Release Date: > > 2/25/2007 > > 3:16 PM > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > No virus found in this incoming message. > > Checked by AVG Free Edition. > > Version: 7.5.446 / Virus Database: 268.18.4/702 - Release Date: > > 2/25/2007 > > 3:16 PM > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > -- > Gary Kjos > garykjos at gmail.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.446 / Virus Database: 268.18.4/703 - Release Date: > 2/26/2007 > 2:56 PM > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.4/703 - Release Date: 2/26/2007 2:56 PM From rockysmolin at bchacc.com Tue Feb 27 12:51:13 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Tue, 27 Feb 2007 10:51:13 -0800 Subject: [AccessD] Increment or replace? In-Reply-To: Message-ID: <004a01c75aa0$41c623c0$0201a8c0@HAL9005> Text property. THAT'S what I was looking for. Works perfectly. Thanks Gustav. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, February 27, 2007 10:31 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Increment or replace? Hi Rocky You would need to use the Text property of the Textbox to get the entered string. Property Value is the store value. /gustav >>> rockysmolin at bchacc.com 27-02-2007 19:21:56 >>> Gary: No, the "+" sign is not part of the input. Access is stripping it off. I entered +50 and in the before update event tried both MsgBox Left(Me.QuantityDue, 1) and MsgBox Left(Trim(str(Me.QuantityDue)), 1) and both printed 5. Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.4/703 - Release Date: 2/26/2007 2:56 PM From adtp at hotmail.com Tue Feb 27 12:55:28 2007 From: adtp at hotmail.com (A.D.TEJPAL) Date: Wed, 28 Feb 2007 00:25:28 +0530 Subject: [AccessD] Checkbox contents disappear in Word:SOLVED??? References: Message-ID: That is an excellent solution Mark! Much better & straightforward than the work-around mentioned in my post. My best compliments. A.D.Tejpal --------------- ----- Original Message ----- From: Mark A Matte To: accessd at databaseadvisors.com Sent: Tuesday, February 27, 2007 23:38 Subject: Re: [AccessD] Checkbox contents disappear in Word:SOLVED??? I thought this should be possible...so I googled "unicode checkmark vba" and found an example...and it actually works and displays a check mark on .RTF Below are the steps and a link to the page where I found it. Good Luck... Mark A. Matte The steps Open the report in design view. If you already have a check box on your report, delete it. Add a text box for your Yes/No field. Set these properties: Control Source: Name of your yes/no field here. Font Name: WingDings Width: 0.18 in Type these characters into the Format property of the text box: Hold down the Alt key, and type 0168 on the numeric keypad (the character for False), semicolon (the separator between False and True formats), backslash (indicating the next character is a literal), Hold down the Alt key, and type 0254 on the numeric keypad (the character for True), You can now increase the Font Size, set the Fore Color or Back Color, and so on. The characters Select the characters from this list: Character Keypad number Description Alt+0254 Checked box Alt+0253 Crossed box Alt+0252 Check mark (unboxed) Alt+0251 Cross mark (unboxed) Alt+0168 Empty box http://www.everythingaccess.com/tutorials.asp?ID=Check-boxes-in-reports >From: "Susan Harkins" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] Checkbox contents disappear in Word >Date: Tue, 27 Feb 2007 12:12:21 -0500 > >When I really needed it to say something besides yes and no, or 0 and -1, I put an unbound box on the report and set the value in the Format event of the detail section. > >=======The report will be published on the web, and I really wanted to display the checkmarks, but I didn't know how to do it and retain them all the way to the web. > >Susan H. From markamatte at hotmail.com Tue Feb 27 13:09:12 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 27 Feb 2007 19:09:12 +0000 Subject: [AccessD] Checkbox contents disappear in Word:SOLVED??? Message-ID: Wow...Thank you very much for your gracious compliment...I wish I could take credit for the process...but I just searched for the right key words to find it. Thanks, Mark A. Matte >From: "A.D.TEJPAL" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Checkbox contents disappear in Word:SOLVED??? >Date: Wed, 28 Feb 2007 00:25:28 +0530 > > That is an excellent solution Mark! Much better & straightforward >than the work-around mentioned in my post. > > My best compliments. > >A.D.Tejpal >--------------- > > ----- Original Message ----- > From: Mark A Matte > To: accessd at databaseadvisors.com > Sent: Tuesday, February 27, 2007 23:38 > Subject: Re: [AccessD] Checkbox contents disappear in Word:SOLVED??? > > > I thought this should be possible...so I googled "unicode checkmark vba" >and found an example...and it actually works and displays a check mark on >.RTF > > Below are the steps and a link to the page where I found it. Good >Luck... > > Mark A. Matte > > The steps > Open the report in design view. > If you already have a check box on your report, delete it. > Add a text box for your Yes/No field. > Set these properties: > Control Source: Name of your yes/no field here. > Font Name: WingDings > Width: 0.18 in > > Type these characters into the Format property of the text box: > Hold down the Alt key, and type 0168 on the numeric keypad (the >character for False), semicolon (the separator between False and True >formats), backslash (indicating the next character is a literal), > Hold down the Alt key, and type 0254 on the numeric keypad (the >character for True), > You can now increase the Font Size, set the Fore Color or Back Color, >and so on. > > The characters > Select the characters from this list: > > Character Keypad number Description > Alt+0254 Checked box > Alt+0253 Crossed box > Alt+0252 Check mark (unboxed) > Alt+0251 Cross mark (unboxed) > Alt+0168 Empty box > > http://www.everythingaccess.com/tutorials.asp?ID=Check-boxes-in-reports > > >From: "Susan Harkins" > >Reply-To: Access Developers discussion and problem > >solving > >To: "'Access Developers discussion and problem > >solving'" > >Subject: Re: [AccessD] Checkbox contents disappear in Word > >Date: Tue, 27 Feb 2007 12:12:21 -0500 > > > >When I really needed it to say something besides yes and no, or 0 and >-1, I put an unbound box on the report and set the value in the Format >event of the detail section. > > > >=======The report will be published on the web, and I really wanted to >display the checkmarks, but I didn't know how to do it and retain them all >the way to the web. > > > >Susan H. >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Refi Now: Rates near 39yr lows! $430,000 Mortgage for $1,399/mo - Calculate new payment http://www.lowermybills.com/lre/index.jsp?sourceid=lmb-9632-17727&moid=7581 From Gustav at cactus.dk Tue Feb 27 13:15:11 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 27 Feb 2007 20:15:11 +0100 Subject: [AccessD] Max Date of Week Message-ID: Hi Mark For Monday as the first day of a week, it could be: SELECT Max([DateField]) As DateMax, DatePart("ww", [DateField], 2, 2) As WeekNo FROM tblYourTable GROUP BY DatePart("ww", [DateField], 2, 2) If this is for critical use and you need the correct ISO 8601:1988 weeknumber for week 53 as well, you should use the function for this I've posted many times: ISO_WeekNumber /gustav >>> markamatte at hotmail.com 27-02-2007 19:13:57 >>> Hello All, I can't seem to get the SQL for this...I have a date field...I need to group by week, but display the greatest date value in that week. Any ideas? Thanks, Mark A. Matte From markamatte at hotmail.com Tue Feb 27 13:31:48 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 27 Feb 2007 19:31:48 +0000 Subject: [AccessD] Max Date of Week In-Reply-To: Message-ID: Thanks Gustav, Thats what I thought I did yesterday...and it didn't work...hence my confusion. And of course it works now...I must be losing my mind. Thanks, Mark A. Matte >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] Max Date of Week >Date: Tue, 27 Feb 2007 20:15:11 +0100 > >Hi Mark > >For Monday as the first day of a week, it could be: > > SELECT > Max([DateField]) As DateMax, > DatePart("ww", [DateField], 2, 2) As WeekNo > FROM > tblYourTable > GROUP BY > DatePart("ww", [DateField], 2, 2) > >If this is for critical use and you need the correct ISO 8601:1988 >weeknumber for week 53 as well, you should use the function for this I've >posted many times: >ISO_WeekNumber > >/gustav > > > >>> markamatte at hotmail.com 27-02-2007 19:13:57 >>> >Hello All, > >I can't seem to get the SQL for this...I have a date field...I need to >group >by week, but display the greatest date value in that week. > >Any ideas? > >Thanks, > >Mark A. Matte > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Want a degree but can't afford to quit? Top school degrees online - in as fast as 1 year http://forms.nextag.com/goto.jsp?url=/serv/main/buyer/education.jsp?doSearch=n&tm=y&search=education_text_links_88_h288c&s=4079&p=5116 From Gustav at cactus.dk Tue Feb 27 13:40:32 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 27 Feb 2007 20:40:32 +0100 Subject: [AccessD] Max Date of Week Message-ID: Hi Mark Or just too busy? /gustav >>> markamatte at hotmail.com 27-02-2007 20:31:48 >>> Thanks Gustav, Thats what I thought I did yesterday...and it didn't work...hence my confusion. And of course it works now...I must be losing my mind. Thanks, Mark A. Matte >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] Max Date of Week >Date: Tue, 27 Feb 2007 20:15:11 +0100 > >Hi Mark > >For Monday as the first day of a week, it could be: > > SELECT > Max([DateField]) As DateMax, > DatePart("ww", [DateField], 2, 2) As WeekNo > FROM > tblYourTable > GROUP BY > DatePart("ww", [DateField], 2, 2) > >If this is for critical use and you need the correct ISO 8601:1988 >weeknumber for week 53 as well, you should use the function for this I've >posted many times: >ISO_WeekNumber > >/gustav > > > >>> markamatte at hotmail.com 27-02-2007 19:13:57 >>> >Hello All, > >I can't seem to get the SQL for this...I have a date field...I need to >group >by week, but display the greatest date value in that week. > >Any ideas? > >Thanks, > >Mark A. Matte From askolits at ot.com Tue Feb 27 19:55:03 2007 From: askolits at ot.com (John Skolits) Date: Tue, 27 Feb 2007 20:55:03 -0500 Subject: [AccessD] Informix and Access In-Reply-To: Message-ID: <005201c75adb$76fbce60$0f01a8c0@officexp> Anyone ever have any luck connecting to an Infomix database. I'm trying to set up an ODBC for Access and can't quite figure out the configuration. Here are the ODBC settings I'm trying. Server Name: office-xp (This is the computer name of my PC) Host Name: 192.168.1.15 (This is the IP address of my PC) Service: 1525 Protocol: olsoctcp Options: Database Name: c:\Test Infomix\InfomixDatabaseFolder\ UserID: ??? Pwd: ??? I was given a User name and password from someone who uses the database but it didn't work. I'm thinking I need to put in "my" Pc's login info as I'm the administrator? The error I'm receiving when trying to 'test the connection' is: "Test Connection was NOT successful.[Informix][Informix ODBC Driver]Attempt to connect to database server (office-xp) failed." Any idea? Thanks, John Skolits From dw-murphy at cox.net Tue Feb 27 21:21:23 2007 From: dw-murphy at cox.net (Doug Murphy) Date: Tue, 27 Feb 2007 19:21:23 -0800 Subject: [AccessD] Informix and Access In-Reply-To: <005201c75adb$76fbce60$0f01a8c0@officexp> Message-ID: <005201c75ae7$865178e0$0200a8c0@murphy3234aaf1> Don't know how pertinent this is but try http://www.connectionstrings.com/?carrier=informix -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Tuesday, February 27, 2007 5:55 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Informix and Access Anyone ever have any luck connecting to an Infomix database. I'm trying to set up an ODBC for Access and can't quite figure out the configuration. Here are the ODBC settings I'm trying. Server Name: office-xp (This is the computer name of my PC) Host Name: 192.168.1.15 (This is the IP address of my PC) Service: 1525 Protocol: olsoctcp Options: Database Name: c:\Test Infomix\InfomixDatabaseFolder\ UserID: ??? Pwd: ??? I was given a User name and password from someone who uses the database but it didn't work. I'm thinking I need to put in "my" Pc's login info as I'm the administrator? The error I'm receiving when trying to 'test the connection' is: "Test Connection was NOT successful.[Informix][Informix ODBC Driver]Attempt to connect to database server (office-xp) failed." Any idea? Thanks, John Skolits -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed Feb 28 00:15:10 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 27 Feb 2007 22:15:10 -0800 Subject: [AccessD] Informix and Access In-Reply-To: <005201c75adb$76fbce60$0f01a8c0@officexp> Message-ID: <0JE500IC9T8OCXD0@l-daemon> Hi John: If you go to the DBA web site > Reference Lists > Miscellaneous there is a link to a site that lists connection strings for various databases, on of them being Informix: http://www.databaseadvisors.com/reference/referenceMisc.asp If an ODBC driver was used to connect to the database the username and password is in the registry of the host/client computer that was connecting. Not very secure but if you have access to the original computer check it out. So go to your client's site and go to a computer that use to connect to the INFORMIX DB. First: Start the ODBC Data Source Administrator (Start > Control Panel > Administrative Tools > Data Sources (ODBC)) Second: Check the System DNS Sources tab and the name of CONNECTION should be listed and the particular Driver. The Driver type will let you know you are on the right track. Third: With the name in hand, start RegEdit (Start > Run... regedit) and do a full search (keys/values/Data) for the CONNECTION name. When you find the Key a couple of the associated values should be the correct username and password. Then you can go back home and login. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Tuesday, February 27, 2007 5:55 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Informix and Access Anyone ever have any luck connecting to an Infomix database. I'm trying to set up an ODBC for Access and can't quite figure out the configuration. Here are the ODBC settings I'm trying. Server Name: office-xp (This is the computer name of my PC) Host Name: 192.168.1.15 (This is the IP address of my PC) Service: 1525 Protocol: olsoctcp Options: Database Name: c:\Test Infomix\InfomixDatabaseFolder\ UserID: ??? Pwd: ??? I was given a User name and password from someone who uses the database but it didn't work. I'm thinking I need to put in "my" Pc's login info as I'm the administrator? The error I'm receiving when trying to 'test the connection' is: "Test Connection was NOT successful.[Informix][Informix ODBC Driver]Attempt to connect to database server (office-xp) failed." Any idea? Thanks, John Skolits -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Wed Feb 28 02:26:16 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 28 Feb 2007 09:26:16 +0100 Subject: [AccessD] Informix and Access Message-ID: Hi John Sounds like Informix is running on another machine. Thus, servername and hostname(address) must be those of the server. /gustav >>> askolits at ot.com 28-02-2007 02:55:03 >>> Anyone ever have any luck connecting to an Infomix database. I'm trying to set up an ODBC for Access and can't quite figure out the configuration. Here are the ODBC settings I'm trying. Server Name: office-xp (This is the computer name of my PC) Host Name: 192.168.1.15 (This is the IP address of my PC) Service: 1525 Protocol: olsoctcp Options: Database Name: c:\Test Infomix\InfomixDatabaseFolder\ UserID: ??? Pwd: ??? I was given a User name and password from someone who uses the database but it didn't work. I'm thinking I need to put in "my" Pc's login info as I'm the administrator? The error I'm receiving when trying to 'test the connection' is: "Test Connection was NOT successful.[Informix][Informix ODBC Driver]Attempt to connect to database server (office-xp) failed." Any idea? Thanks, John Skolits From askolits at ot.com Wed Feb 28 06:37:55 2007 From: askolits at ot.com (John Skolits) Date: Wed, 28 Feb 2007 07:37:55 -0500 Subject: [AccessD] Informix and Access In-Reply-To: Message-ID: <018801c75b35$4551ede0$6701a8c0@LaptopXP> Can't I access the data directly from the files?? I copied the files to my PC and then tried to create the ODBC connection supplying the folder where all the files are located. Is Infomix like SQLServer where it has to be running on a server in order for a client to access it? That's probably the issue. John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, February 28, 2007 3:26 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Informix and Access Hi John Sounds like Informix is running on another machine. Thus, servername and hostname(address) must be those of the server. /gustav >>> askolits at ot.com 28-02-2007 02:55:03 >>> Anyone ever have any luck connecting to an Infomix database. I'm trying to set up an ODBC for Access and can't quite figure out the configuration. Here are the ODBC settings I'm trying. Server Name: office-xp (This is the computer name of my PC) Host Name: 192.168.1.15 (This is the IP address of my PC) Service: 1525 Protocol: olsoctcp Options: Database Name: c:\Test Infomix\InfomixDatabaseFolder\ UserID: ??? Pwd: ??? I was given a User name and password from someone who uses the database but it didn't work. I'm thinking I need to put in "my" Pc's login info as I'm the administrator? The error I'm receiving when trying to 'test the connection' is: "Test Connection was NOT successful.[Informix][Informix ODBC Driver]Attempt to connect to database server (office-xp) failed." Any idea? Thanks, John Skolits -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Wed Feb 28 06:50:50 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 28 Feb 2007 13:50:50 +0100 Subject: [AccessD] Informix and Access Message-ID: Hi John Oh, certainly, one of the old boys: http://www.informix.com /gustav >>> askolits at ot.com 28-02-2007 13:37:55 >>> Is Infomix like SQLServer where it has to be running on a server in order for a client to access it? From askolits at ot.com Wed Feb 28 07:10:08 2007 From: askolits at ot.com (John Skolits) Date: Wed, 28 Feb 2007 08:10:08 -0500 Subject: [AccessD] Informix and Access In-Reply-To: Message-ID: <00cf01c75b39$c595a290$0f01a8c0@officexp> Oh well, I have no intention of buying it. I'll have to work on it by getting onto my customer's network through remote desktop or something. I thought I could access the files directly. Thanks, John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, February 28, 2007 7:51 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Informix and Access Hi John Oh, certainly, one of the old boys: http://www.informix.com /gustav >>> askolits at ot.com 28-02-2007 13:37:55 >>> Is Infomix like SQLServer where it has to be running on a server in order for a client to access it? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ebarro at verizon.net Wed Feb 28 08:05:21 2007 From: ebarro at verizon.net (Eric Barro) Date: Wed, 28 Feb 2007 06:05:21 -0800 Subject: [AccessD] Informix and Access In-Reply-To: <00cf01c75b39$c595a290$0f01a8c0@officexp> Message-ID: <0JE600M7OF4WI3O3@vms040.mailsrvcs.net> Check if they can set you up for a VPN connection so that you can access it through the network. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Wednesday, February 28, 2007 5:10 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Informix and Access Oh well, I have no intention of buying it. I'll have to work on it by getting onto my customer's network through remote desktop or something. I thought I could access the files directly. Thanks, John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, February 28, 2007 7:51 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Informix and Access Hi John Oh, certainly, one of the old boys: http://www.informix.com /gustav >>> askolits at ot.com 28-02-2007 13:37:55 >>> Is Infomix like SQLServer where it has to be running on a server in order for a client to access it? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.4/705 - Release Date: 2/27/2007 3:24 PM From askolits at ot.com Wed Feb 28 08:54:11 2007 From: askolits at ot.com (John Skolits) Date: Wed, 28 Feb 2007 09:54:11 -0500 Subject: [AccessD] Informix and Access In-Reply-To: <0JE600M7OF4WI3O3@vms040.mailsrvcs.net> Message-ID: <01a601c75b48$4ebfbcf0$6701a8c0@LaptopXP> Thanks, I may try that also. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Wednesday, February 28, 2007 9:05 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Informix and Access Check if they can set you up for a VPN connection so that you can access it through the network. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Wednesday, February 28, 2007 5:10 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Informix and Access Oh well, I have no intention of buying it. I'll have to work on it by getting onto my customer's network through remote desktop or something. I thought I could access the files directly. Thanks, John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, February 28, 2007 7:51 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Informix and Access Hi John Oh, certainly, one of the old boys: http://www.informix.com /gustav >>> askolits at ot.com 28-02-2007 13:37:55 >>> Is Infomix like SQLServer where it has to be running on a server in order for a client to access it? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.4/705 - Release Date: 2/27/2007 3:24 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at setel.com Wed Feb 28 09:48:03 2007 From: ssharkins at setel.com (Susan Harkins) Date: Wed, 28 Feb 2007 10:48:03 -0500 Subject: [AccessD] Can't Alter Values in a Query with Subquery Message-ID: <002701c75b4f$d60256d0$3fb82ad1@SUSANONE> I've found that I can't alter values in a query with a subquery -- can't alter any value in the query -- even values not evaluated in the subquery. I'm sure there's a reason why, just curious -- never noticed this before. Susan H. From garykjos at gmail.com Wed Feb 28 09:57:26 2007 From: garykjos at gmail.com (Gary Kjos) Date: Wed, 28 Feb 2007 09:57:26 -0600 Subject: [AccessD] Can't Alter Values in a Query with Subquery In-Reply-To: <002701c75b4f$d60256d0$3fb82ad1@SUSANONE> References: <002701c75b4f$d60256d0$3fb82ad1@SUSANONE> Message-ID: http://msdn2.microsoft.com/en-us/library/aa198446(office.10).aspx GK On 2/28/07, Susan Harkins wrote: > I've found that I can't alter values in a query with a subquery -- can't > alter any value in the query -- even values not evaluated in the subquery. > I'm sure there's a reason why, just curious -- never noticed this before. > > Susan H. > > -- > 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 jwcolby at colbyconsulting.com Wed Feb 28 10:00:31 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 28 Feb 2007 11:00:31 -0500 Subject: [AccessD] Can't Alter Values in a Query with Subquery In-Reply-To: <002701c75b4f$d60256d0$3fb82ad1@SUSANONE> References: <002701c75b4f$d60256d0$3fb82ad1@SUSANONE> Message-ID: <001101c75b51$935bbd10$6c7aa8c0@m6805> I run into this occasionally as well. Are there any calculated values in either query? That can cause this IIRC. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, February 28, 2007 10:48 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Can't Alter Values in a Query with Subquery I've found that I can't alter values in a query with a subquery -- can't alter any value in the query -- even values not evaluated in the subquery. I'm sure there's a reason why, just curious -- never noticed this before. 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 Wed Feb 28 10:08:12 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 28 Feb 2007 08:08:12 -0800 Subject: [AccessD] Can't Alter Values in a Query with Subquery In-Reply-To: <002701c75b4f$d60256d0$3fb82ad1@SUSANONE> References: <002701c75b4f$d60256d0$3fb82ad1@SUSANONE> Message-ID: You've done something to make the query non-updateable, Susan. You'll have to post the SQL before anyone can figure it out. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, February 28, 2007 7:48 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Can't Alter Values in a Query with Subquery I've found that I can't alter values in a query with a subquery -- can't alter any value in the query -- even values not evaluated in the subquery. I'm sure there's a reason why, just curious -- never noticed this before. Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at setel.com Wed Feb 28 10:10:44 2007 From: ssharkins at setel.com (Susan Harkins) Date: Wed, 28 Feb 2007 11:10:44 -0500 Subject: [AccessD] Can't Alter Values in a Query with Subquery In-Reply-To: <001101c75b51$935bbd10$6c7aa8c0@m6805> Message-ID: <003d01c75b53$00a699c0$3fb82ad1@SUSANONE> Yes, the subquery is calculating values that are also in the main query. Other values, not in the subquery, and not calculated remain fixed -- can't change ANY value in the main query at all, regardless of whether it's evaluated by the subquery or not. The solution would be, I guess, to base a second query on the calculating subquery query, but I thought I'd like to know what behavior is at play. Susan H. I run into this occasionally as well. Are there any calculated values in either query? That can cause this IIRC. From rockysmolin at bchacc.com Wed Feb 28 10:38:47 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Wed, 28 Feb 2007 08:38:47 -0800 Subject: [AccessD] Can't Alter Values in a Query with Subquery In-Reply-To: <003d01c75b53$00a699c0$3fb82ad1@SUSANONE> Message-ID: <004501c75b56$eb5c0560$0201a8c0@HAL9005> Susan: I get that non-updateable query thing when I have more than (IIRC) 3 tables in the query. There's a help screen in Access that explains it. Search on something like updateable query. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, February 28, 2007 8:11 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Can't Alter Values in a Query with Subquery Yes, the subquery is calculating values that are also in the main query. Other values, not in the subquery, and not calculated remain fixed -- can't change ANY value in the main query at all, regardless of whether it's evaluated by the subquery or not. The solution would be, I guess, to base a second query on the calculating subquery query, but I thought I'd like to know what behavior is at play. Susan H. I run into this occasionally as well. Are there any calculated values in either query? That can cause this IIRC. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.4/705 - Release Date: 2/27/2007 3:24 PM From ssharkins at setel.com Wed Feb 28 10:41:28 2007 From: ssharkins at setel.com (Susan Harkins) Date: Wed, 28 Feb 2007 11:41:28 -0500 Subject: [AccessD] Can't Alter Values in a Query with Subquery In-Reply-To: Message-ID: <004601c75b57$4d74a180$3fb82ad1@SUSANONE> Yelp... calculated field. You know, I've written about this at least three times, and I can't even remember it myself. :( Interestingly, a query based on the non-updateable query is also non-updateable. Don't really know a way around that. What do you guys do? Susan H. http://msdn2.microsoft.com/en-us/library/aa198446(office.10).aspx From garykjos at gmail.com Wed Feb 28 10:50:24 2007 From: garykjos at gmail.com (Gary Kjos) Date: Wed, 28 Feb 2007 10:50:24 -0600 Subject: [AccessD] Can't Alter Values in a Query with Subquery In-Reply-To: <004601c75b57$4d74a180$3fb82ad1@SUSANONE> References: <004601c75b57$4d74a180$3fb82ad1@SUSANONE> Message-ID: I would write the results of the non-updateable query out to a temp file and then join that temp table to the table I want to update and do my update. It's an extra step but for the largely one time stuff I do it's not that bad. Keeps me from beating my head against it insisting it SHOULD BE ABLE TO update in the other one. But if Access says it's not updatable it's no use arguing with it. It's not listening to my arguements to the contrary. GK On 2/28/07, Susan Harkins wrote: > Yelp... calculated field. You know, I've written about this at least three > times, and I can't even remember it myself. :( > > Interestingly, a query based on the non-updateable query is also > non-updateable. Don't really know a way around that. What do you guys do? > > Susan H. > > http://msdn2.microsoft.com/en-us/library/aa198446(office.10).aspx > > > -- > 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 jwcolby at colbyconsulting.com Wed Feb 28 11:14:21 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 28 Feb 2007 12:14:21 -0500 Subject: [AccessD] Faking an SQL record Message-ID: <001501c75b5b$e3bdd950$6c7aa8c0@m6805> I vaguely remember someone supplying a syntax for "faking" a record in SQL without having to actually supply a table name. I want to return a single record from SQL that looks like: HSomeCompanyName20061227 This is not data pulled out of any table, it is just "made up". I can do this by aliasing the three fields and then telling SQL that it came FROM SomeRealTable and then use a distinct clause etc. But I seem to remember some way of doing this without even supplying the name of a real table. Anyone have a clue what I am saying and how to do this? John W. Colby Colby Consulting www.ColbyConsulting.com From ebarro at verizon.net Wed Feb 28 11:18:24 2007 From: ebarro at verizon.net (Eric Barro) Date: Wed, 28 Feb 2007 09:18:24 -0800 Subject: [AccessD] Faking an SQL record In-Reply-To: <001501c75b5b$e3bdd950$6c7aa8c0@m6805> Message-ID: <0JE600MBKO2QIA24@vms040.mailsrvcs.net> SELECT 'HSomeCompanyName20061227' as MadeUp -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, February 28, 2007 9:14 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Faking an SQL record I vaguely remember someone supplying a syntax for "faking" a record in SQL without having to actually supply a table name. I want to return a single record from SQL that looks like: HSomeCompanyName20061227 This is not data pulled out of any table, it is just "made up". I can do this by aliasing the three fields and then telling SQL that it came FROM SomeRealTable and then use a distinct clause etc. But I seem to remember some way of doing this without even supplying the name of a real table. Anyone have a clue what I am saying and how to do this? John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.4/705 - Release Date: 2/27/2007 3:24 PM From Gustav at cactus.dk Wed Feb 28 11:19:48 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 28 Feb 2007 18:19:48 +0100 Subject: [AccessD] Faking an SQL record Message-ID: Hi John Yes. Refer to one of the MSys system tables. /gustav >>> jwcolby at colbyconsulting.com 28-02-2007 18:14:21 >>> Anyone have a clue what I am saying and how to do this? From jwcolby at colbyconsulting.com Wed Feb 28 11:24:46 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 28 Feb 2007 12:24:46 -0500 Subject: [AccessD] Faking an SQL record In-Reply-To: <0JE600MBKO2QIA24@vms040.mailsrvcs.net> References: <001501c75b5b$e3bdd950$6c7aa8c0@m6805> <0JE600MBKO2QIA24@vms040.mailsrvcs.net> Message-ID: <001b01c75b5d$58585aa0$6c7aa8c0@m6805> Eric, if I don't include a FROM clause, the bang symbol doesn't ungray and allow me to run the query. If I put in FROM SomeMadeUpTableName I get an error when I run the query that it "can't find SomeMadeUpTableName". John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Wednesday, February 28, 2007 12:18 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Faking an SQL record SELECT 'HSomeCompanyName20061227' as MadeUp -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, February 28, 2007 9:14 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Faking an SQL record I vaguely remember someone supplying a syntax for "faking" a record in SQL without having to actually supply a table name. I want to return a single record from SQL that looks like: HSomeCompanyName20061227 This is not data pulled out of any table, it is just "made up". I can do this by aliasing the three fields and then telling SQL that it came FROM SomeRealTable and then use a distinct clause etc. But I seem to remember some way of doing this without even supplying the name of a real table. Anyone have a clue what I am saying and how to do this? John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.4/705 - Release Date: 2/27/2007 3:24 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ebarro at verizon.net Wed Feb 28 11:36:40 2007 From: ebarro at verizon.net (Eric Barro) Date: Wed, 28 Feb 2007 09:36:40 -0800 Subject: [AccessD] Faking an SQL record In-Reply-To: <001b01c75b5d$58585aa0$6c7aa8c0@m6805> Message-ID: <0JE6000O4OX9AF53@vms048.mailsrvcs.net> John, What interface are you using? Is this in the Access query or SQL query analyzer? If you run it in SQL query analyzer it runs fine. Eric -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, February 28, 2007 9:25 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Faking an SQL record Eric, if I don't include a FROM clause, the bang symbol doesn't ungray and allow me to run the query. If I put in FROM SomeMadeUpTableName I get an error when I run the query that it "can't find SomeMadeUpTableName". John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Wednesday, February 28, 2007 12:18 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Faking an SQL record SELECT 'HSomeCompanyName20061227' as MadeUp -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, February 28, 2007 9:14 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Faking an SQL record I vaguely remember someone supplying a syntax for "faking" a record in SQL without having to actually supply a table name. I want to return a single record from SQL that looks like: HSomeCompanyName20061227 This is not data pulled out of any table, it is just "made up". I can do this by aliasing the three fields and then telling SQL that it came FROM SomeRealTable and then use a distinct clause etc. But I seem to remember some way of doing this without even supplying the name of a real table. Anyone have a clue what I am saying and how to do this? John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.4/705 - Release Date: 2/27/2007 3:24 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.4/705 - Release Date: 2/27/2007 3:24 PM From jwcolby at colbyconsulting.com Wed Feb 28 11:45:32 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 28 Feb 2007 12:45:32 -0500 Subject: [AccessD] Faking an SQL record In-Reply-To: <0JE6000O4OX9AF53@vms048.mailsrvcs.net> References: <001b01c75b5d$58585aa0$6c7aa8c0@m6805> <0JE6000O4OX9AF53@vms048.mailsrvcs.net> Message-ID: <001c01c75b60$3e9e53a0$6c7aa8c0@m6805> Sorry. This is in Access, QBE grid. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Wednesday, February 28, 2007 12:37 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Faking an SQL record John, What interface are you using? Is this in the Access query or SQL query analyzer? If you run it in SQL query analyzer it runs fine. Eric -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, February 28, 2007 9:25 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Faking an SQL record Eric, if I don't include a FROM clause, the bang symbol doesn't ungray and allow me to run the query. If I put in FROM SomeMadeUpTableName I get an error when I run the query that it "can't find SomeMadeUpTableName". John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Wednesday, February 28, 2007 12:18 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Faking an SQL record SELECT 'HSomeCompanyName20061227' as MadeUp -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, February 28, 2007 9:14 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Faking an SQL record I vaguely remember someone supplying a syntax for "faking" a record in SQL without having to actually supply a table name. I want to return a single record from SQL that looks like: HSomeCompanyName20061227 This is not data pulled out of any table, it is just "made up". I can do this by aliasing the three fields and then telling SQL that it came FROM SomeRealTable and then use a distinct clause etc. But I seem to remember some way of doing this without even supplying the name of a real table. Anyone have a clue what I am saying and how to do this? John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.4/705 - Release Date: 2/27/2007 3:24 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.4/705 - Release Date: 2/27/2007 3:24 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Wed Feb 28 11:48:38 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 28 Feb 2007 18:48:38 +0100 Subject: [AccessD] Faking an SQL record Message-ID: Hi John SELECT TOP 1 "HSomeCompanyName20061227" AS Company FROM MSysObjects; /gustav >>> jwcolby at colbyconsulting.com 28-02-2007 18:24:46 >>> Eric, if I don't include a FROM clause, the bang symbol doesn't ungray and allow me to run the query. If I put in FROM SomeMadeUpTableName I get an error when I run the query that it "can't find SomeMadeUpTableName". From jwcolby at colbyconsulting.com Wed Feb 28 11:55:43 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 28 Feb 2007 12:55:43 -0500 Subject: [AccessD] Faking an SQL record In-Reply-To: References: Message-ID: <001d01c75b61$aad24210$6c7aa8c0@m6805> Bueno, Thanks Gustav, that's the one. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, February 28, 2007 12:49 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Faking an SQL record Hi John SELECT TOP 1 "HSomeCompanyName20061227" AS Company FROM MSysObjects; /gustav >>> jwcolby at colbyconsulting.com 28-02-2007 18:24:46 >>> Eric, if I don't include a FROM clause, the bang symbol doesn't ungray and allow me to run the query. If I put in FROM SomeMadeUpTableName I get an error when I run the query that it "can't find SomeMadeUpTableName". -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at hotmail.com Wed Feb 28 12:23:00 2007 From: adtp at hotmail.com (A.D.TEJPAL) Date: Wed, 28 Feb 2007 23:53:00 +0530 Subject: [AccessD] Can't Alter Values in a Query with Subquery References: <004601c75b57$4d74a180$3fb82ad1@SUSANONE> Message-ID: If the result of a subquery is not required to be displayed, but merely to be used for setting up a criteria, the query remains updateable. On the other hand, if the subquery result has to represent a displayed column, the query becomes non-updateable. Following alternative remedial measures can be considered so as to ensure that the main query remains updateable: (a) Adoption of user defined functions in lieu of subquery. (b) Adoption of domain aggregate functions in lieu of subquery. It is also observed that calculated fields based upon subqueries can lead to problems if used for grouping levels in a report. That problem also stands addressed by the remedial measures suggested above. A.D.Tejpal --------------- ----- Original Message ----- From: Susan Harkins To: 'Access Developers discussion and problem solving' Sent: Wednesday, February 28, 2007 22:11 Subject: Re: [AccessD] Can't Alter Values in a Query with Subquery Yelp... calculated field. You know, I've written about this at least three times, and I can't even remember it myself. :( Interestingly, a query based on the non-updateable query is also non-updateable. Don't really know a way around that. What do you guys do? Susan H. From BarbaraRyan at cox.net Wed Feb 28 12:30:16 2007 From: BarbaraRyan at cox.net (Barbara Ryan) Date: Wed, 28 Feb 2007 13:30:16 -0500 Subject: [AccessD] Database Design Message-ID: <008d01c75b66$7ea62d00$0a00a8c0@PCRURI35> I am designing a new Access database for a therapeutic equestrian riding facility. The database holds names of all the "partners' (individuals, groups, and companies) who volunteer, donate, and/or ride horses. This database will primarily be used for mailing thank you notes, information about upcoming events, etc. Each "partner" will have a mailing address and (optionally) a billing address. Many partners will share the same mailing address (e.g., handicapped individuals who live in a facility, or a family where mom and dad are volunteers and their child is a rider). Selection of partners for mailings needs to be very flexible --- sometimes a mailing is "one per household" --- however, each rider in a facility should receive a separate letter. Sometimes mailings will only go to donors and volunteers; sometimes just to riders, etc, etc. Would you split addresses into a separate table or include mailing/billing address information in the Partners table (and provide a mechanism to "copy" an address from an existing in the same household)? Thanks, Barb Ryan From wdhindman at dejpolsystems.com Wed Feb 28 14:15:30 2007 From: wdhindman at dejpolsystems.com (William Hindman) Date: Wed, 28 Feb 2007 15:15:30 -0500 Subject: [AccessD] Database Design References: <008d01c75b66$7ea62d00$0a00a8c0@PCRURI35> Message-ID: <002901c75b75$3394a7b0$9258eb44@50NM721> ...I'd use a separate street address table with yes/nos for mailing and billing ...this ideally allows sharing of common addresses such as family or business...as well as a separate table for geo data including postal code, city, state, the geoID being an fk in the address table. ...more important than the address considerations, is the structure of your entityIDs because you need to be able to track familial and business relationships that often overlap ...I prefer using a super entity table with sub-entities such as companies and individuals as child tables. ...the street address table then becomes a child of the super entity as well ...along with tables for phones, e-mail, etc ...this approach would give you a 3rd normal relational design and the ability to do highly accurate mailings ...although it is easier to maintain, it does require more join tables and more complex queries than the default alternative of keeping addresses in the same table with the entity data. William Hindman ----- Original Message ----- From: "Barbara Ryan" To: "Access List" Sent: Wednesday, February 28, 2007 1:30 PM Subject: [AccessD] Database Design >I am designing a new Access database for a therapeutic equestrian riding >facility. > > The database holds names of all the "partners' (individuals, groups, and > companies) who volunteer, donate, and/or ride horses. This database will > primarily be used for mailing thank you notes, information about upcoming > events, etc. Each "partner" will have a mailing address and (optionally) > a billing address. Many partners will share the same mailing address > (e.g., handicapped individuals who live in a facility, or a family where > mom and dad are volunteers and their child is a rider). > > Selection of partners for mailings needs to be very flexible --- sometimes > a mailing is "one per household" --- however, each rider in a facility > should receive a separate letter. Sometimes mailings will only go to > donors and volunteers; sometimes just to riders, etc, etc. > > Would you split addresses into a separate table or include mailing/billing > address information in the Partners table (and provide a mechanism to > "copy" an address from an existing in the same household)? > > Thanks, > Barb Ryan > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From BarbaraRyan at cox.net Wed Feb 28 14:58:52 2007 From: BarbaraRyan at cox.net (Barbara Ryan) Date: Wed, 28 Feb 2007 15:58:52 -0500 Subject: [AccessD] Database Design References: <008d01c75b66$7ea62d00$0a00a8c0@PCRURI35> <002901c75b75$3394a7b0$9258eb44@50NM721> Message-ID: <009d01c75b7b$40f8ca20$0a00a8c0@PCRURI35> Thanks, William...would you happen to know of a sample database that I could look at that incorporates these concepts? (e.g. "Northwind Therapeutic Riding" :-)....Barb ----- Original Message ----- From: "William Hindman" To: "Access Developers discussion and problem solving" Sent: Wednesday, February 28, 2007 3:15 PM Subject: Re: [AccessD] Database Design > ...I'd use a separate street address table with yes/nos for mailing and > billing ...this ideally allows sharing of common addresses such as family > or > business...as well as a separate table for geo data including postal code, > city, state, the geoID being an fk in the address table. > > ...more important than the address considerations, is the structure of > your > entityIDs because you need to be able to track familial and business > relationships that often overlap ...I prefer using a super entity table > with > sub-entities such as companies and individuals as child tables. > > ...the street address table then becomes a child of the super entity as > well > ...along with tables for phones, e-mail, etc > > ...this approach would give you a 3rd normal relational design and the > ability to do highly accurate mailings ...although it is easier to > maintain, > it does require more join tables and more complex queries than the default > alternative of keeping addresses in the same table with the entity data. > > William Hindman > > ----- Original Message ----- > From: "Barbara Ryan" > To: "Access List" > Sent: Wednesday, February 28, 2007 1:30 PM > Subject: [AccessD] Database Design > > >>I am designing a new Access database for a therapeutic equestrian riding >>facility. >> >> The database holds names of all the "partners' (individuals, groups, and >> companies) who volunteer, donate, and/or ride horses. This database will >> primarily be used for mailing thank you notes, information about upcoming >> events, etc. Each "partner" will have a mailing address and (optionally) >> a billing address. Many partners will share the same mailing address >> (e.g., handicapped individuals who live in a facility, or a family where >> mom and dad are volunteers and their child is a rider). >> >> Selection of partners for mailings needs to be very flexible --- >> sometimes >> a mailing is "one per household" --- however, each rider in a facility >> should receive a separate letter. Sometimes mailings will only go to >> donors and volunteers; sometimes just to riders, etc, etc. >> >> Would you split addresses into a separate table or include >> mailing/billing >> address information in the Partners table (and provide a mechanism to >> "copy" an address from an existing in the same household)? >> >> Thanks, >> Barb Ryan >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Feb 28 15:54:28 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 28 Feb 2007 16:54:28 -0500 Subject: [AccessD] Cleaned up my downloads Message-ID: <004401c75b83$05454e60$6c7aa8c0@m6805> I just found and fixed a bunch of dead links to the files on my web site. I had a site previous to this hosted at an entirely different company and apparently had links back to that site for some of the files. I shut down that site awhile back and in the process those links went dead. If anyone was trying to get at the zip files for my framework lecture series for example, the links should now be working again. Sorry for any inconvenience. John W. Colby Colby Consulting www.ColbyConsulting.com From artful at rogers.com Wed Feb 28 18:01:52 2007 From: artful at rogers.com (artful at rogers.com) Date: Wed, 28 Feb 2007 16:01:52 -0800 (PST) Subject: [AccessD] OT: Correct bureaucratic English for some private docs... Message-ID: <245037.24272.qm@web88202.mail.re2.yahoo.com> In terms of Canada, you already have everything correct except the third one. Here in Canada and also in Britain, it is a Deed, and I believe that the same term applies in the USA but wait for confirmation on that before committing to it. A. ----- Original Message ---- From: Shamil Salakhetdinov To: Access-D Sent: Tuesday, February 27, 2007 11:13:01 AM Subject: [AccessD] OT: Correct bureaucratic English for some private docs... Hi All, I'm sorry for off-topic but I need to make here quick translation in English of several private docs from the following list: - Birth Certificate - Marriage Certificate - Real Estate Property Ownership Certificate - Bank Account Balance - Employment Information I need them for tomorrow morning and therefore I can't use services of translation companies here, which are closed currently because it's evening here in St.Petersburg, Russia... Question: is there somewhere on Internet a good source where I can find such docs samples/templates and especially bureaucratic English lexicon? Thank you. -- Shamil -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Wed Feb 28 18:24:32 2007 From: artful at rogers.com (artful at rogers.com) Date: Wed, 28 Feb 2007 16:24:32 -0800 (PST) Subject: [AccessD] Increment or replace? Message-ID: <948176.30094.qm@web88202.mail.re2.yahoo.com> I thought that I already provided you a way better idea. Trap the plus and minus keys and then increment or decrement the value to suit. Along the lines of: grab the keystroke if it's plus me.control = me.control + 1 elseif it's minus me.control = me.control - 1 end if Arthur ----- Original Message ---- From: Rocky Smolin at Beach Access Software To: Access Developers discussion and problem solving Sent: Tuesday, February 27, 2007 12:01:27 PM Subject: Re: [AccessD] Increment or replace? Well, I slept on it but it didn't do any good. It's JC's fault. This was working just fine as an unbound form :o) So I think for each field where I need this capability, I have to use a popup form triggered by the click event, collect the number from the user as text and process it. Any better ideas anyone? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Monday, February 26, 2007 4:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Increment or replace? Rocky - it sounds a little strange to me that they can add to a field by overtyping it with an additional amount (maybe I have misunderstood). Do you mean that the field might hold eg. 100 and if they type +10 then the result should be 110? If they just type 10 then it should replace the 100 with the 10? If that's right then I think I would separate the fields and have the additional amounts (plus or minus) in a sep. text box. They could still replace the entire amount by overwriting the original amount. Kath ----- Original Message ----- From: Rocky Smolin at Beach Access Software To: 'Access Developers discussion and problem solving' Sent: Tuesday, February 27, 2007 11:04 AM Subject: Re: [AccessD] Increment or replace? Kath: I need them to be able to either add to or replace the value. This is a continuous form, BTW. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Monday, February 26, 2007 2:56 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Increment or replace? Rocky - couldn't you assume the + sign as the default? Only subtract IF they enter a minus sign? Kath ----- Original Message ----- From: Rocky Smolin at Beach Access Software To: 'Access Developers discussion and problem solving' Sent: Tuesday, February 27, 2007 9:42 AM Subject: [AccessD] Increment or replace? Dear List: I have a text box on a sub form bound to a numeric field which contains, obviously, a numeric quantity. If the user inputs a value in this box preceded by a '+' or '-' sign, I want to add or subtract the value entered from the current value. If they enter a value without a preceding sign, I want to replace old the value with the input value. I can obviously see if they entered a minus sign because the number is negative. But how can I know if they preceded the input value with a '+'? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.4/702 - Release Date: 2/25/2007 3:16 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.4/702 - Release Date: 2/25/2007 3:16 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Wed Feb 28 18:54:03 2007 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Wed, 28 Feb 2007 16:54:03 -0800 Subject: [AccessD] Increment or replace? In-Reply-To: <948176.30094.qm@web88202.mail.re2.yahoo.com> Message-ID: <00b701c75b9c$1bdf18e0$0201a8c0@HAL9005> That's the way I used to do it. But is always seemed a little kludgey to me. But Gustav turned me on to the .Text property and from that I can see if initial character is + or -. I think that's probably the slickest way to do it. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Wednesday, February 28, 2007 4:25 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Increment or replace? I thought that I already provided you a way better idea. Trap the plus and minus keys and then increment or decrement the value to suit. Along the lines of: grab the keystroke if it's plus me.control = me.control + 1 elseif it's minus me.control = me.control - 1 end if Arthur ----- Original Message ---- From: Rocky Smolin at Beach Access Software To: Access Developers discussion and problem solving Sent: Tuesday, February 27, 2007 12:01:27 PM Subject: Re: [AccessD] Increment or replace? Well, I slept on it but it didn't do any good. It's JC's fault. This was working just fine as an unbound form :o) So I think for each field where I need this capability, I have to use a popup form triggered by the click event, collect the number from the user as text and process it. Any better ideas anyone? TIA Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Monday, February 26, 2007 4:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Increment or replace? Rocky - it sounds a little strange to me that they can add to a field by overtyping it with an additional amount (maybe I have misunderstood). Do you mean that the field might hold eg. 100 and if they type +10 then the result should be 110? If they just type 10 then it should replace the 100 with the 10? If that's right then I think I would separate the fields and have the additional amounts (plus or minus) in a sep. text box. They could still replace the entire amount by overwriting the original amount. Kath ----- Original Message ----- From: Rocky Smolin at Beach Access Software To: 'Access Developers discussion and problem solving' Sent: Tuesday, February 27, 2007 11:04 AM Subject: Re: [AccessD] Increment or replace? Kath: I need them to be able to either add to or replace the value. This is a continuous form, BTW. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Monday, February 26, 2007 2:56 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Increment or replace? Rocky - couldn't you assume the + sign as the default? Only subtract IF they enter a minus sign? Kath ----- Original Message ----- From: Rocky Smolin at Beach Access Software To: 'Access Developers discussion and problem solving' Sent: Tuesday, February 27, 2007 9:42 AM Subject: [AccessD] Increment or replace? Dear List: I have a text box on a sub form bound to a numeric field which contains, obviously, a numeric quantity. If the user inputs a value in this box preceded by a '+' or '-' sign, I want to add or subtract the value entered from the current value. If they enter a value without a preceding sign, I want to replace old the value with the input value. I can obviously see if they entered a minus sign because the number is negative. But how can I know if they preceded the input value with a '+'? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.4/702 - Release Date: 2/25/2007 3:16 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.4/702 - Release Date: 2/25/2007 3:16 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.4/705 - Release Date: 2/27/2007 3:24 PM From artful at rogers.com Wed Feb 28 18:57:18 2007 From: artful at rogers.com (artful at rogers.com) Date: Wed, 28 Feb 2007 16:57:18 -0800 (PST) Subject: [AccessD] Increment or replace? Message-ID: <198340.19661.qm@web88203.mail.re2.yahoo.com> I can't seem to locate the code that I wrote to do this. Please someone remind me what the opposite of SendKeys is: I want to remove the keystroke from the buffer. I have the rest working already but I need that component. A. ----- Original Message ---- From: Rocky Smolin at Beach Access Software To: Access Developers discussion and problem solving Sent: Tuesday, February 27, 2007 1:21:56 PM Subject: Re: [AccessD] Increment or replace? Gary: No, the "+" sign is not part of the input. Access is stripping it off. I entered +50 and in the before update event tried both MsgBox Left(Me.QuantityDue, 1) and MsgBox Left(Trim(str(Me.QuantityDue)), 1) and both printed 5. Rocky